videomail-client 13.7.0 → 13.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -16
- package/dist/cjs/index.cjs +156 -67
- package/dist/esm/index.js +22 -22
- package/dist/umd/index.js +156 -67
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
Record videos in contact forms!
|
|
15
15
|
|
|
16
16
|
Finally you can encode any webcam recordings from modern browsers and mobiles into MP4 + WebM within seconds.
|
|
17
|
-
This without the need for Flash, Java nor any other plugins / addons. Just TypeScript, compiled into ESM
|
|
17
|
+
This without the need for Flash, Java nor any other plugins / addons. Just TypeScript, compiled into ESM with their declarations.
|
|
18
18
|
|
|
19
|
+
- <a href="#demo">Live Demo
|
|
19
20
|
- <a href="#storybook">Storybook (examples)</a>
|
|
20
|
-
- <a href="#demo">Demo / Fully working version</a>
|
|
21
21
|
- <a href="#options">Options</a>
|
|
22
22
|
- <a href="#api">API</a>
|
|
23
23
|
- <a href="#form">Form Submissions</a>
|
|
@@ -27,31 +27,34 @@ This without the need for Flash, Java nor any other plugins / addons. Just TypeS
|
|
|
27
27
|
- <a href="#addons">Addons</a>
|
|
28
28
|
- <a href="#notes">Notes</a>
|
|
29
29
|
|
|
30
|
-
<a name="
|
|
30
|
+
<a name="demo"></a>
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Live Demo
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Have fun on [videomail-client.netlify.app](https://videomail-client.netlify.app)
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
2. `npm run storybook`
|
|
36
|
+
### Real world usages
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
There is a full version with all its features on [videomail.io](https://videomail.io).
|
|
40
39
|
|
|
41
|
-
|
|
40
|
+
And there is more:
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
- https://wfdeaf.org/contact
|
|
43
|
+
- https://www.deaf.org.nz/contact
|
|
44
|
+
- ...
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
And many more out there. We are rolling ...
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
<a name="storybook"></a>
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
## Storybook (examples)
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
To check out some examples in your browser locally, just run these two commands:
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
1. `npm install`
|
|
55
|
+
2. `npm run storybook`
|
|
56
|
+
|
|
57
|
+
That's it. Easy as apple pie.
|
|
55
58
|
|
|
56
59
|
<a name="options"></a>
|
|
57
60
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var __webpack_modules__ = {
|
|
2
|
-
"./node_modules/@
|
|
2
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl" (module, __webpack_exports__, __webpack_require__) {
|
|
3
3
|
"use strict";
|
|
4
4
|
__webpack_require__.d(__webpack_exports__, {
|
|
5
5
|
A: ()=>__rspack_default_export
|
|
6
6
|
});
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
7
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
8
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
9
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
10
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
11
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
12
12
|
___CSS_LOADER_EXPORT___.push([
|
|
13
13
|
module.id,
|
|
14
14
|
`@keyframes blink {
|
|
@@ -10272,7 +10272,7 @@ var __webpack_modules__ = {
|
|
|
10272
10272
|
"?3f0e" () {},
|
|
10273
10273
|
"?3412" () {},
|
|
10274
10274
|
"?3152" () {},
|
|
10275
|
-
"./node_modules/@
|
|
10275
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
|
|
10276
10276
|
"use strict";
|
|
10277
10277
|
module.exports = function(cssWithMappingToString) {
|
|
10278
10278
|
var list = [];
|
|
@@ -10326,13 +10326,13 @@ var __webpack_modules__ = {
|
|
|
10326
10326
|
return list;
|
|
10327
10327
|
};
|
|
10328
10328
|
},
|
|
10329
|
-
"./node_modules/@
|
|
10329
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
|
|
10330
10330
|
"use strict";
|
|
10331
10331
|
module.exports = function(i) {
|
|
10332
10332
|
return i[1];
|
|
10333
10333
|
};
|
|
10334
10334
|
},
|
|
10335
|
-
"./node_modules/@
|
|
10335
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
|
|
10336
10336
|
"use strict";
|
|
10337
10337
|
var stylesInDOM = [];
|
|
10338
10338
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10411,7 +10411,7 @@ var __webpack_modules__ = {
|
|
|
10411
10411
|
};
|
|
10412
10412
|
};
|
|
10413
10413
|
},
|
|
10414
|
-
"./node_modules/@
|
|
10414
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module) {
|
|
10415
10415
|
"use strict";
|
|
10416
10416
|
var memo = {};
|
|
10417
10417
|
function getTarget(target) {
|
|
@@ -10433,7 +10433,7 @@ var __webpack_modules__ = {
|
|
|
10433
10433
|
}
|
|
10434
10434
|
module.exports = insertBySelector;
|
|
10435
10435
|
},
|
|
10436
|
-
"./node_modules/@
|
|
10436
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module) {
|
|
10437
10437
|
"use strict";
|
|
10438
10438
|
function insertStyleElement(options) {
|
|
10439
10439
|
var element = document.createElement("style");
|
|
@@ -10443,7 +10443,7 @@ var __webpack_modules__ = {
|
|
|
10443
10443
|
}
|
|
10444
10444
|
module.exports = insertStyleElement;
|
|
10445
10445
|
},
|
|
10446
|
-
"./node_modules/@
|
|
10446
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10447
10447
|
"use strict";
|
|
10448
10448
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10449
10449
|
var nonce = __webpack_require__.nc;
|
|
@@ -10451,7 +10451,7 @@ var __webpack_modules__ = {
|
|
|
10451
10451
|
}
|
|
10452
10452
|
module.exports = setAttributesWithoutAttributes;
|
|
10453
10453
|
},
|
|
10454
|
-
"./node_modules/@
|
|
10454
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module) {
|
|
10455
10455
|
"use strict";
|
|
10456
10456
|
function apply(styleElement, options, obj) {
|
|
10457
10457
|
var css = "";
|
|
@@ -10488,7 +10488,7 @@ var __webpack_modules__ = {
|
|
|
10488
10488
|
}
|
|
10489
10489
|
module.exports = domAPI;
|
|
10490
10490
|
},
|
|
10491
|
-
"./node_modules/@
|
|
10491
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module) {
|
|
10492
10492
|
"use strict";
|
|
10493
10493
|
function styleTagTransform(css, styleElement) {
|
|
10494
10494
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10584,6 +10584,79 @@ var __webpack_exports__ = {};
|
|
|
10584
10584
|
ENC_TYPE_FORM: "application/x-www-form-urlencoded"
|
|
10585
10585
|
}
|
|
10586
10586
|
};
|
|
10587
|
+
const isNonErrorSymbol = Symbol('isNonError');
|
|
10588
|
+
function defineProperty(object, key, value) {
|
|
10589
|
+
Object.defineProperty(object, key, {
|
|
10590
|
+
value,
|
|
10591
|
+
writable: false,
|
|
10592
|
+
enumerable: false,
|
|
10593
|
+
configurable: false
|
|
10594
|
+
});
|
|
10595
|
+
}
|
|
10596
|
+
function stringify(value) {
|
|
10597
|
+
if (void 0 === value) return 'undefined';
|
|
10598
|
+
if (null === value) return 'null';
|
|
10599
|
+
if ('string' == typeof value) return value;
|
|
10600
|
+
if ('number' == typeof value || 'boolean' == typeof value) return String(value);
|
|
10601
|
+
if ('bigint' == typeof value) return `${value}n`;
|
|
10602
|
+
if ('symbol' == typeof value) return value.toString();
|
|
10603
|
+
if ('function' == typeof value) return `[Function${value.name ? ` ${value.name}` : ' (anonymous)'}]`;
|
|
10604
|
+
if (value instanceof Error) try {
|
|
10605
|
+
return String(value);
|
|
10606
|
+
} catch {
|
|
10607
|
+
return '<Unserializable error>';
|
|
10608
|
+
}
|
|
10609
|
+
try {
|
|
10610
|
+
return JSON.stringify(value);
|
|
10611
|
+
} catch {
|
|
10612
|
+
try {
|
|
10613
|
+
return String(value);
|
|
10614
|
+
} catch {
|
|
10615
|
+
return '<Unserializable value>';
|
|
10616
|
+
}
|
|
10617
|
+
}
|
|
10618
|
+
}
|
|
10619
|
+
class NonError extends Error {
|
|
10620
|
+
constructor(value, { superclass: Superclass = Error } = {}){
|
|
10621
|
+
if (NonError.isNonError(value)) return value;
|
|
10622
|
+
if (value instanceof Error) throw new TypeError('Do not pass Error instances to NonError. Throw the error directly instead.');
|
|
10623
|
+
super(`Non-error value: ${stringify(value)}`);
|
|
10624
|
+
if (Superclass !== Error) Object.setPrototypeOf(this, Superclass.prototype);
|
|
10625
|
+
defineProperty(this, 'name', 'NonError');
|
|
10626
|
+
defineProperty(this, isNonErrorSymbol, true);
|
|
10627
|
+
defineProperty(this, 'isNonError', true);
|
|
10628
|
+
defineProperty(this, 'value', value);
|
|
10629
|
+
}
|
|
10630
|
+
static isNonError(value) {
|
|
10631
|
+
return value?.[isNonErrorSymbol] === true;
|
|
10632
|
+
}
|
|
10633
|
+
static #handleCallback(callback, arguments_) {
|
|
10634
|
+
try {
|
|
10635
|
+
const result = callback(...arguments_);
|
|
10636
|
+
if (result && 'function' == typeof result.then) return (async ()=>{
|
|
10637
|
+
try {
|
|
10638
|
+
return await result;
|
|
10639
|
+
} catch (error) {
|
|
10640
|
+
if (error instanceof Error) throw error;
|
|
10641
|
+
throw new NonError(error);
|
|
10642
|
+
}
|
|
10643
|
+
})();
|
|
10644
|
+
return result;
|
|
10645
|
+
} catch (error) {
|
|
10646
|
+
if (error instanceof Error) throw error;
|
|
10647
|
+
throw new NonError(error);
|
|
10648
|
+
}
|
|
10649
|
+
}
|
|
10650
|
+
static try(callback) {
|
|
10651
|
+
return NonError.#handleCallback(callback, []);
|
|
10652
|
+
}
|
|
10653
|
+
static wrap(callback) {
|
|
10654
|
+
return (...arguments_)=>NonError.#handleCallback(callback, arguments_);
|
|
10655
|
+
}
|
|
10656
|
+
static [Symbol.hasInstance](instance) {
|
|
10657
|
+
return NonError.isNonError(instance);
|
|
10658
|
+
}
|
|
10659
|
+
}
|
|
10587
10660
|
const list = [
|
|
10588
10661
|
Error,
|
|
10589
10662
|
EvalError,
|
|
@@ -10601,19 +10674,7 @@ var __webpack_exports__ = {};
|
|
|
10601
10674
|
constructor
|
|
10602
10675
|
]);
|
|
10603
10676
|
const errorConstructors = new Map(list);
|
|
10604
|
-
|
|
10605
|
-
name = 'NonError';
|
|
10606
|
-
constructor(message){
|
|
10607
|
-
super(NonError._prepareSuperMessage(message));
|
|
10608
|
-
}
|
|
10609
|
-
static _prepareSuperMessage(message) {
|
|
10610
|
-
try {
|
|
10611
|
-
return JSON.stringify(message);
|
|
10612
|
-
} catch {
|
|
10613
|
-
return String(message);
|
|
10614
|
-
}
|
|
10615
|
-
}
|
|
10616
|
-
}
|
|
10677
|
+
const errorFactories = new Map();
|
|
10617
10678
|
const errorProperties = [
|
|
10618
10679
|
{
|
|
10619
10680
|
property: 'name',
|
|
@@ -10648,79 +10709,107 @@ var __webpack_exports__ = {};
|
|
|
10648
10709
|
return json;
|
|
10649
10710
|
};
|
|
10650
10711
|
const newError = (name)=>{
|
|
10712
|
+
if ('NonError' === name) return new NonError();
|
|
10713
|
+
const factory = errorFactories.get(name);
|
|
10714
|
+
if (factory) return factory();
|
|
10651
10715
|
const ErrorConstructor = errorConstructors.get(name) ?? Error;
|
|
10652
10716
|
return ErrorConstructor === AggregateError ? new ErrorConstructor([]) : new ErrorConstructor();
|
|
10653
10717
|
};
|
|
10654
10718
|
const destroyCircular = ({ from, seen, to, forceEnumerable, maxDepth, depth, useToJSON, serialize })=>{
|
|
10655
10719
|
if (!to) to = Array.isArray(from) ? [] : !serialize && isErrorLike(from) ? newError(from.name) : {};
|
|
10656
|
-
seen.
|
|
10657
|
-
if (depth >= maxDepth)
|
|
10658
|
-
|
|
10720
|
+
seen.add(from);
|
|
10721
|
+
if (depth >= maxDepth) {
|
|
10722
|
+
seen.delete(from);
|
|
10723
|
+
return to;
|
|
10724
|
+
}
|
|
10725
|
+
if (useToJSON && 'function' == typeof from.toJSON && !toJsonWasCalled.has(from)) {
|
|
10726
|
+
seen.delete(from);
|
|
10727
|
+
return toJSON(from);
|
|
10728
|
+
}
|
|
10659
10729
|
const continueDestroyCircular = (value)=>destroyCircular({
|
|
10660
10730
|
from: value,
|
|
10661
|
-
seen
|
|
10662
|
-
...seen
|
|
10663
|
-
],
|
|
10731
|
+
seen,
|
|
10664
10732
|
forceEnumerable,
|
|
10665
10733
|
maxDepth,
|
|
10666
|
-
depth,
|
|
10734
|
+
depth: depth + 1,
|
|
10667
10735
|
useToJSON,
|
|
10668
10736
|
serialize
|
|
10669
10737
|
});
|
|
10670
|
-
for (const
|
|
10738
|
+
for (const key of Object.keys(from)){
|
|
10739
|
+
const value = from[key];
|
|
10671
10740
|
if (value && value instanceof Uint8Array && 'Buffer' === value.constructor.name) {
|
|
10672
|
-
to[key] = '[object Buffer]';
|
|
10741
|
+
to[key] = serialize ? '[object Buffer]' : value;
|
|
10673
10742
|
continue;
|
|
10674
10743
|
}
|
|
10675
10744
|
if (null !== value && 'object' == typeof value && 'function' == typeof value.pipe) {
|
|
10676
|
-
to[key] = '[object Stream]';
|
|
10745
|
+
to[key] = serialize ? '[object Stream]' : value;
|
|
10677
10746
|
continue;
|
|
10678
10747
|
}
|
|
10679
|
-
if ('function'
|
|
10680
|
-
if (!
|
|
10681
|
-
|
|
10682
|
-
to[key] = value;
|
|
10683
|
-
} catch {}
|
|
10684
|
-
continue;
|
|
10685
|
-
}
|
|
10686
|
-
if (!seen.includes(from[key])) {
|
|
10687
|
-
depth++;
|
|
10688
|
-
to[key] = continueDestroyCircular(from[key]);
|
|
10689
|
-
continue;
|
|
10690
|
-
}
|
|
10691
|
-
to[key] = '[Circular]';
|
|
10748
|
+
if ('function' == typeof value) {
|
|
10749
|
+
if (!serialize) to[key] = value;
|
|
10750
|
+
continue;
|
|
10692
10751
|
}
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10752
|
+
if (serialize && 'bigint' == typeof value) {
|
|
10753
|
+
to[key] = `${value}n`;
|
|
10754
|
+
continue;
|
|
10755
|
+
}
|
|
10756
|
+
if (!value || 'object' != typeof value) {
|
|
10757
|
+
try {
|
|
10758
|
+
to[key] = value;
|
|
10759
|
+
} catch {}
|
|
10760
|
+
continue;
|
|
10761
|
+
}
|
|
10762
|
+
if (!seen.has(value)) {
|
|
10763
|
+
to[key] = continueDestroyCircular(value);
|
|
10764
|
+
continue;
|
|
10765
|
+
}
|
|
10766
|
+
to[key] = '[Circular]';
|
|
10767
|
+
}
|
|
10768
|
+
if (serialize || to instanceof Error) for (const { property, enumerable } of errorProperties){
|
|
10769
|
+
const value = from[property];
|
|
10770
|
+
if (null == value) continue;
|
|
10771
|
+
const descriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
10772
|
+
if (descriptor?.configurable === false) continue;
|
|
10773
|
+
let processedValue = value;
|
|
10774
|
+
if ('object' == typeof value) processedValue = seen.has(value) ? '[Circular]' : continueDestroyCircular(value);
|
|
10775
|
+
Object.defineProperty(to, property, {
|
|
10776
|
+
value: processedValue,
|
|
10777
|
+
enumerable: forceEnumerable || enumerable,
|
|
10698
10778
|
configurable: true,
|
|
10699
10779
|
writable: true
|
|
10700
10780
|
});
|
|
10701
10781
|
}
|
|
10782
|
+
seen.delete(from);
|
|
10702
10783
|
return to;
|
|
10703
10784
|
};
|
|
10704
10785
|
function serializeError(value, options = {}) {
|
|
10705
10786
|
const { maxDepth = 1 / 0, useToJSON = true } = options;
|
|
10706
10787
|
if ('object' == typeof value && null !== value) return destroyCircular({
|
|
10707
10788
|
from: value,
|
|
10708
|
-
seen:
|
|
10789
|
+
seen: new Set(),
|
|
10790
|
+
forceEnumerable: true,
|
|
10791
|
+
maxDepth,
|
|
10792
|
+
depth: 0,
|
|
10793
|
+
useToJSON,
|
|
10794
|
+
serialize: true
|
|
10795
|
+
});
|
|
10796
|
+
if ('function' == typeof value) value = '<Function>';
|
|
10797
|
+
return destroyCircular({
|
|
10798
|
+
from: new NonError(value),
|
|
10799
|
+
seen: new Set(),
|
|
10709
10800
|
forceEnumerable: true,
|
|
10710
10801
|
maxDepth,
|
|
10711
10802
|
depth: 0,
|
|
10712
10803
|
useToJSON,
|
|
10713
10804
|
serialize: true
|
|
10714
10805
|
});
|
|
10715
|
-
if ('function' == typeof value) return `[Function: ${value.name || 'anonymous'}]`;
|
|
10716
|
-
return value;
|
|
10717
10806
|
}
|
|
10718
10807
|
function deserializeError(value, options = {}) {
|
|
10719
10808
|
const { maxDepth = 1 / 0 } = options;
|
|
10720
10809
|
if (value instanceof Error) return value;
|
|
10721
10810
|
if (isMinimumViableSerializedError(value)) return destroyCircular({
|
|
10722
10811
|
from: value,
|
|
10723
|
-
seen:
|
|
10812
|
+
seen: new Set(),
|
|
10724
10813
|
to: newError(value.name),
|
|
10725
10814
|
maxDepth,
|
|
10726
10815
|
depth: 0,
|
|
@@ -10737,7 +10826,7 @@ var __webpack_exports__ = {};
|
|
|
10737
10826
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10738
10827
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10739
10828
|
var package_namespaceObject = {
|
|
10740
|
-
rE: "13.7.
|
|
10829
|
+
rE: "13.7.1"
|
|
10741
10830
|
};
|
|
10742
10831
|
function isAudioEnabled(options) {
|
|
10743
10832
|
return Boolean(options.audio.enabled);
|
|
@@ -15163,19 +15252,19 @@ var __webpack_exports__ = {};
|
|
|
15163
15252
|
return newOptions;
|
|
15164
15253
|
}
|
|
15165
15254
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
15166
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
15255
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
15167
15256
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
15168
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
15257
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
15169
15258
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
15170
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
15259
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
15171
15260
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
15172
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
15261
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
15173
15262
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
15174
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
15263
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
15175
15264
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
15176
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
15265
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
15177
15266
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
15178
|
-
var main = __webpack_require__("./node_modules/@
|
|
15267
|
+
var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
|
|
15179
15268
|
var main_options = {};
|
|
15180
15269
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
15181
15270
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
package/dist/esm/index.js
CHANGED
|
@@ -14,15 +14,15 @@ import websocket_stream from "websocket-stream";
|
|
|
14
14
|
import audio_sample from "audio-sample";
|
|
15
15
|
import is_power_of_two from "is-power-of-two";
|
|
16
16
|
__webpack_require__.add({
|
|
17
|
-
"./node_modules/@
|
|
17
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl" (module, __webpack_exports__, __webpack_require__) {
|
|
18
18
|
__webpack_require__.d(__webpack_exports__, {
|
|
19
19
|
A: ()=>__rspack_default_export
|
|
20
20
|
});
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
21
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
22
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
23
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
24
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
25
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
26
26
|
___CSS_LOADER_EXPORT___.push([
|
|
27
27
|
module.id,
|
|
28
28
|
`@keyframes blink {
|
|
@@ -3327,7 +3327,7 @@ __webpack_require__.add({
|
|
|
3327
3327
|
return tryTypedArrays(value);
|
|
3328
3328
|
};
|
|
3329
3329
|
},
|
|
3330
|
-
"./node_modules/@
|
|
3330
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js" (module) {
|
|
3331
3331
|
module.exports = function(cssWithMappingToString) {
|
|
3332
3332
|
var list = [];
|
|
3333
3333
|
list.toString = function() {
|
|
@@ -3380,12 +3380,12 @@ __webpack_require__.add({
|
|
|
3380
3380
|
return list;
|
|
3381
3381
|
};
|
|
3382
3382
|
},
|
|
3383
|
-
"./node_modules/@
|
|
3383
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module) {
|
|
3384
3384
|
module.exports = function(i) {
|
|
3385
3385
|
return i[1];
|
|
3386
3386
|
};
|
|
3387
3387
|
},
|
|
3388
|
-
"./node_modules/@
|
|
3388
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module) {
|
|
3389
3389
|
var stylesInDOM = [];
|
|
3390
3390
|
function getIndexByIdentifier(identifier) {
|
|
3391
3391
|
var result = -1;
|
|
@@ -3463,7 +3463,7 @@ __webpack_require__.add({
|
|
|
3463
3463
|
};
|
|
3464
3464
|
};
|
|
3465
3465
|
},
|
|
3466
|
-
"./node_modules/@
|
|
3466
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module) {
|
|
3467
3467
|
var memo = {};
|
|
3468
3468
|
function getTarget(target) {
|
|
3469
3469
|
if (void 0 === memo[target]) {
|
|
@@ -3484,7 +3484,7 @@ __webpack_require__.add({
|
|
|
3484
3484
|
}
|
|
3485
3485
|
module.exports = insertBySelector;
|
|
3486
3486
|
},
|
|
3487
|
-
"./node_modules/@
|
|
3487
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module) {
|
|
3488
3488
|
function insertStyleElement(options) {
|
|
3489
3489
|
var element = document.createElement("style");
|
|
3490
3490
|
options.setAttributes(element, options.attributes);
|
|
@@ -3493,14 +3493,14 @@ __webpack_require__.add({
|
|
|
3493
3493
|
}
|
|
3494
3494
|
module.exports = insertStyleElement;
|
|
3495
3495
|
},
|
|
3496
|
-
"./node_modules/@
|
|
3496
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
3497
3497
|
function setAttributesWithoutAttributes(styleElement) {
|
|
3498
3498
|
var nonce = __webpack_require__.nc;
|
|
3499
3499
|
if (nonce) styleElement.setAttribute("nonce", nonce);
|
|
3500
3500
|
}
|
|
3501
3501
|
module.exports = setAttributesWithoutAttributes;
|
|
3502
3502
|
},
|
|
3503
|
-
"./node_modules/@
|
|
3503
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module) {
|
|
3504
3504
|
function apply(styleElement, options, obj) {
|
|
3505
3505
|
var css = "";
|
|
3506
3506
|
if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
|
|
@@ -3536,7 +3536,7 @@ __webpack_require__.add({
|
|
|
3536
3536
|
}
|
|
3537
3537
|
module.exports = domAPI;
|
|
3538
3538
|
},
|
|
3539
|
-
"./node_modules/@
|
|
3539
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module) {
|
|
3540
3540
|
function styleTagTransform(css, styleElement) {
|
|
3541
3541
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
3542
3542
|
else {
|
|
@@ -3569,7 +3569,7 @@ const constants = {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
};
|
|
3571
3571
|
var package_namespaceObject = {
|
|
3572
|
-
rE: "13.7.
|
|
3572
|
+
rE: "13.7.1"
|
|
3573
3573
|
};
|
|
3574
3574
|
function isAudioEnabled(options) {
|
|
3575
3575
|
return Boolean(options.audio.enabled);
|
|
@@ -4627,19 +4627,19 @@ function mergeWithDefaultOptions(options = {}) {
|
|
|
4627
4627
|
return newOptions;
|
|
4628
4628
|
}
|
|
4629
4629
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
4630
|
-
const injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
4630
|
+
const injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
4631
4631
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
4632
|
-
const styleDomAPI = __webpack_require__("./node_modules/@
|
|
4632
|
+
const styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
4633
4633
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
4634
|
-
const insertBySelector = __webpack_require__("./node_modules/@
|
|
4634
|
+
const insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
4635
4635
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
4636
|
-
const setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
4636
|
+
const setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
4637
4637
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
4638
|
-
const insertStyleElement = __webpack_require__("./node_modules/@
|
|
4638
|
+
const insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
4639
4639
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
4640
|
-
const styleTagTransform = __webpack_require__("./node_modules/@
|
|
4640
|
+
const styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
4641
4641
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
4642
|
-
const main_0 = __webpack_require__("./node_modules/@
|
|
4642
|
+
const main_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
|
|
4643
4643
|
var main_options = {};
|
|
4644
4644
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
4645
4645
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
package/dist/umd/index.js
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
else root["VideomailClient"] = factory();
|
|
6
6
|
})(globalThis, ()=>(()=>{
|
|
7
7
|
var __webpack_modules__ = {
|
|
8
|
-
"./node_modules/@
|
|
8
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl" (module1, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
"use strict";
|
|
10
10
|
__webpack_require__.d(__webpack_exports__, {
|
|
11
11
|
A: ()=>__rspack_default_export
|
|
12
12
|
});
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
13
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
14
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
|
|
15
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
16
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1);
|
|
17
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1_default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default());
|
|
18
18
|
___CSS_LOADER_EXPORT___.push([
|
|
19
19
|
module1.id,
|
|
20
20
|
`@keyframes blink {
|
|
@@ -10278,7 +10278,7 @@
|
|
|
10278
10278
|
"?3f0e" () {},
|
|
10279
10279
|
"?3412" () {},
|
|
10280
10280
|
"?3152" () {},
|
|
10281
|
-
"./node_modules/@
|
|
10281
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js" (module1) {
|
|
10282
10282
|
"use strict";
|
|
10283
10283
|
module1.exports = function(cssWithMappingToString) {
|
|
10284
10284
|
var list = [];
|
|
@@ -10332,13 +10332,13 @@
|
|
|
10332
10332
|
return list;
|
|
10333
10333
|
};
|
|
10334
10334
|
},
|
|
10335
|
-
"./node_modules/@
|
|
10335
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js" (module1) {
|
|
10336
10336
|
"use strict";
|
|
10337
10337
|
module1.exports = function(i) {
|
|
10338
10338
|
return i[1];
|
|
10339
10339
|
};
|
|
10340
10340
|
},
|
|
10341
|
-
"./node_modules/@
|
|
10341
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js" (module1) {
|
|
10342
10342
|
"use strict";
|
|
10343
10343
|
var stylesInDOM = [];
|
|
10344
10344
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10417,7 +10417,7 @@
|
|
|
10417
10417
|
};
|
|
10418
10418
|
};
|
|
10419
10419
|
},
|
|
10420
|
-
"./node_modules/@
|
|
10420
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js" (module1) {
|
|
10421
10421
|
"use strict";
|
|
10422
10422
|
var memo = {};
|
|
10423
10423
|
function getTarget(target) {
|
|
@@ -10439,7 +10439,7 @@
|
|
|
10439
10439
|
}
|
|
10440
10440
|
module1.exports = insertBySelector;
|
|
10441
10441
|
},
|
|
10442
|
-
"./node_modules/@
|
|
10442
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js" (module1) {
|
|
10443
10443
|
"use strict";
|
|
10444
10444
|
function insertStyleElement(options) {
|
|
10445
10445
|
var element = document.createElement("style");
|
|
@@ -10449,7 +10449,7 @@
|
|
|
10449
10449
|
}
|
|
10450
10450
|
module1.exports = insertStyleElement;
|
|
10451
10451
|
},
|
|
10452
|
-
"./node_modules/@
|
|
10452
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js" (module1, __unused_rspack_exports, __webpack_require__) {
|
|
10453
10453
|
"use strict";
|
|
10454
10454
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10455
10455
|
var nonce = __webpack_require__.nc;
|
|
@@ -10457,7 +10457,7 @@
|
|
|
10457
10457
|
}
|
|
10458
10458
|
module1.exports = setAttributesWithoutAttributes;
|
|
10459
10459
|
},
|
|
10460
|
-
"./node_modules/@
|
|
10460
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js" (module1) {
|
|
10461
10461
|
"use strict";
|
|
10462
10462
|
function apply(styleElement, options, obj) {
|
|
10463
10463
|
var css = "";
|
|
@@ -10494,7 +10494,7 @@
|
|
|
10494
10494
|
}
|
|
10495
10495
|
module1.exports = domAPI;
|
|
10496
10496
|
},
|
|
10497
|
-
"./node_modules/@
|
|
10497
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js" (module1) {
|
|
10498
10498
|
"use strict";
|
|
10499
10499
|
function styleTagTransform(css, styleElement) {
|
|
10500
10500
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10590,6 +10590,79 @@
|
|
|
10590
10590
|
ENC_TYPE_FORM: "application/x-www-form-urlencoded"
|
|
10591
10591
|
}
|
|
10592
10592
|
};
|
|
10593
|
+
const isNonErrorSymbol = Symbol('isNonError');
|
|
10594
|
+
function defineProperty(object, key, value) {
|
|
10595
|
+
Object.defineProperty(object, key, {
|
|
10596
|
+
value,
|
|
10597
|
+
writable: false,
|
|
10598
|
+
enumerable: false,
|
|
10599
|
+
configurable: false
|
|
10600
|
+
});
|
|
10601
|
+
}
|
|
10602
|
+
function stringify(value) {
|
|
10603
|
+
if (void 0 === value) return 'undefined';
|
|
10604
|
+
if (null === value) return 'null';
|
|
10605
|
+
if ('string' == typeof value) return value;
|
|
10606
|
+
if ('number' == typeof value || 'boolean' == typeof value) return String(value);
|
|
10607
|
+
if ('bigint' == typeof value) return `${value}n`;
|
|
10608
|
+
if ('symbol' == typeof value) return value.toString();
|
|
10609
|
+
if ('function' == typeof value) return `[Function${value.name ? ` ${value.name}` : ' (anonymous)'}]`;
|
|
10610
|
+
if (value instanceof Error) try {
|
|
10611
|
+
return String(value);
|
|
10612
|
+
} catch {
|
|
10613
|
+
return '<Unserializable error>';
|
|
10614
|
+
}
|
|
10615
|
+
try {
|
|
10616
|
+
return JSON.stringify(value);
|
|
10617
|
+
} catch {
|
|
10618
|
+
try {
|
|
10619
|
+
return String(value);
|
|
10620
|
+
} catch {
|
|
10621
|
+
return '<Unserializable value>';
|
|
10622
|
+
}
|
|
10623
|
+
}
|
|
10624
|
+
}
|
|
10625
|
+
class NonError extends Error {
|
|
10626
|
+
constructor(value, { superclass: Superclass = Error } = {}){
|
|
10627
|
+
if (NonError.isNonError(value)) return value;
|
|
10628
|
+
if (value instanceof Error) throw new TypeError('Do not pass Error instances to NonError. Throw the error directly instead.');
|
|
10629
|
+
super(`Non-error value: ${stringify(value)}`);
|
|
10630
|
+
if (Superclass !== Error) Object.setPrototypeOf(this, Superclass.prototype);
|
|
10631
|
+
defineProperty(this, 'name', 'NonError');
|
|
10632
|
+
defineProperty(this, isNonErrorSymbol, true);
|
|
10633
|
+
defineProperty(this, 'isNonError', true);
|
|
10634
|
+
defineProperty(this, 'value', value);
|
|
10635
|
+
}
|
|
10636
|
+
static isNonError(value) {
|
|
10637
|
+
return value?.[isNonErrorSymbol] === true;
|
|
10638
|
+
}
|
|
10639
|
+
static #handleCallback(callback, arguments_) {
|
|
10640
|
+
try {
|
|
10641
|
+
const result = callback(...arguments_);
|
|
10642
|
+
if (result && 'function' == typeof result.then) return (async ()=>{
|
|
10643
|
+
try {
|
|
10644
|
+
return await result;
|
|
10645
|
+
} catch (error) {
|
|
10646
|
+
if (error instanceof Error) throw error;
|
|
10647
|
+
throw new NonError(error);
|
|
10648
|
+
}
|
|
10649
|
+
})();
|
|
10650
|
+
return result;
|
|
10651
|
+
} catch (error) {
|
|
10652
|
+
if (error instanceof Error) throw error;
|
|
10653
|
+
throw new NonError(error);
|
|
10654
|
+
}
|
|
10655
|
+
}
|
|
10656
|
+
static try(callback) {
|
|
10657
|
+
return NonError.#handleCallback(callback, []);
|
|
10658
|
+
}
|
|
10659
|
+
static wrap(callback) {
|
|
10660
|
+
return (...arguments_)=>NonError.#handleCallback(callback, arguments_);
|
|
10661
|
+
}
|
|
10662
|
+
static [Symbol.hasInstance](instance) {
|
|
10663
|
+
return NonError.isNonError(instance);
|
|
10664
|
+
}
|
|
10665
|
+
}
|
|
10593
10666
|
const list = [
|
|
10594
10667
|
Error,
|
|
10595
10668
|
EvalError,
|
|
@@ -10607,19 +10680,7 @@
|
|
|
10607
10680
|
constructor
|
|
10608
10681
|
]);
|
|
10609
10682
|
const errorConstructors = new Map(list);
|
|
10610
|
-
|
|
10611
|
-
name = 'NonError';
|
|
10612
|
-
constructor(message){
|
|
10613
|
-
super(NonError._prepareSuperMessage(message));
|
|
10614
|
-
}
|
|
10615
|
-
static _prepareSuperMessage(message) {
|
|
10616
|
-
try {
|
|
10617
|
-
return JSON.stringify(message);
|
|
10618
|
-
} catch {
|
|
10619
|
-
return String(message);
|
|
10620
|
-
}
|
|
10621
|
-
}
|
|
10622
|
-
}
|
|
10683
|
+
const errorFactories = new Map();
|
|
10623
10684
|
const errorProperties = [
|
|
10624
10685
|
{
|
|
10625
10686
|
property: 'name',
|
|
@@ -10654,79 +10715,107 @@
|
|
|
10654
10715
|
return json;
|
|
10655
10716
|
};
|
|
10656
10717
|
const newError = (name)=>{
|
|
10718
|
+
if ('NonError' === name) return new NonError();
|
|
10719
|
+
const factory = errorFactories.get(name);
|
|
10720
|
+
if (factory) return factory();
|
|
10657
10721
|
const ErrorConstructor = errorConstructors.get(name) ?? Error;
|
|
10658
10722
|
return ErrorConstructor === AggregateError ? new ErrorConstructor([]) : new ErrorConstructor();
|
|
10659
10723
|
};
|
|
10660
10724
|
const destroyCircular = ({ from, seen, to, forceEnumerable, maxDepth, depth, useToJSON, serialize })=>{
|
|
10661
10725
|
if (!to) to = Array.isArray(from) ? [] : !serialize && isErrorLike(from) ? newError(from.name) : {};
|
|
10662
|
-
seen.
|
|
10663
|
-
if (depth >= maxDepth)
|
|
10664
|
-
|
|
10726
|
+
seen.add(from);
|
|
10727
|
+
if (depth >= maxDepth) {
|
|
10728
|
+
seen.delete(from);
|
|
10729
|
+
return to;
|
|
10730
|
+
}
|
|
10731
|
+
if (useToJSON && 'function' == typeof from.toJSON && !toJsonWasCalled.has(from)) {
|
|
10732
|
+
seen.delete(from);
|
|
10733
|
+
return toJSON(from);
|
|
10734
|
+
}
|
|
10665
10735
|
const continueDestroyCircular = (value)=>destroyCircular({
|
|
10666
10736
|
from: value,
|
|
10667
|
-
seen
|
|
10668
|
-
...seen
|
|
10669
|
-
],
|
|
10737
|
+
seen,
|
|
10670
10738
|
forceEnumerable,
|
|
10671
10739
|
maxDepth,
|
|
10672
|
-
depth,
|
|
10740
|
+
depth: depth + 1,
|
|
10673
10741
|
useToJSON,
|
|
10674
10742
|
serialize
|
|
10675
10743
|
});
|
|
10676
|
-
for (const
|
|
10744
|
+
for (const key of Object.keys(from)){
|
|
10745
|
+
const value = from[key];
|
|
10677
10746
|
if (value && value instanceof Uint8Array && 'Buffer' === value.constructor.name) {
|
|
10678
|
-
to[key] = '[object Buffer]';
|
|
10747
|
+
to[key] = serialize ? '[object Buffer]' : value;
|
|
10679
10748
|
continue;
|
|
10680
10749
|
}
|
|
10681
10750
|
if (null !== value && 'object' == typeof value && 'function' == typeof value.pipe) {
|
|
10682
|
-
to[key] = '[object Stream]';
|
|
10751
|
+
to[key] = serialize ? '[object Stream]' : value;
|
|
10683
10752
|
continue;
|
|
10684
10753
|
}
|
|
10685
|
-
if ('function'
|
|
10686
|
-
if (!
|
|
10687
|
-
|
|
10688
|
-
to[key] = value;
|
|
10689
|
-
} catch {}
|
|
10690
|
-
continue;
|
|
10691
|
-
}
|
|
10692
|
-
if (!seen.includes(from[key])) {
|
|
10693
|
-
depth++;
|
|
10694
|
-
to[key] = continueDestroyCircular(from[key]);
|
|
10695
|
-
continue;
|
|
10696
|
-
}
|
|
10697
|
-
to[key] = '[Circular]';
|
|
10754
|
+
if ('function' == typeof value) {
|
|
10755
|
+
if (!serialize) to[key] = value;
|
|
10756
|
+
continue;
|
|
10698
10757
|
}
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10758
|
+
if (serialize && 'bigint' == typeof value) {
|
|
10759
|
+
to[key] = `${value}n`;
|
|
10760
|
+
continue;
|
|
10761
|
+
}
|
|
10762
|
+
if (!value || 'object' != typeof value) {
|
|
10763
|
+
try {
|
|
10764
|
+
to[key] = value;
|
|
10765
|
+
} catch {}
|
|
10766
|
+
continue;
|
|
10767
|
+
}
|
|
10768
|
+
if (!seen.has(value)) {
|
|
10769
|
+
to[key] = continueDestroyCircular(value);
|
|
10770
|
+
continue;
|
|
10771
|
+
}
|
|
10772
|
+
to[key] = '[Circular]';
|
|
10773
|
+
}
|
|
10774
|
+
if (serialize || to instanceof Error) for (const { property, enumerable } of errorProperties){
|
|
10775
|
+
const value = from[property];
|
|
10776
|
+
if (null == value) continue;
|
|
10777
|
+
const descriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
10778
|
+
if (descriptor?.configurable === false) continue;
|
|
10779
|
+
let processedValue = value;
|
|
10780
|
+
if ('object' == typeof value) processedValue = seen.has(value) ? '[Circular]' : continueDestroyCircular(value);
|
|
10781
|
+
Object.defineProperty(to, property, {
|
|
10782
|
+
value: processedValue,
|
|
10783
|
+
enumerable: forceEnumerable || enumerable,
|
|
10704
10784
|
configurable: true,
|
|
10705
10785
|
writable: true
|
|
10706
10786
|
});
|
|
10707
10787
|
}
|
|
10788
|
+
seen.delete(from);
|
|
10708
10789
|
return to;
|
|
10709
10790
|
};
|
|
10710
10791
|
function serializeError(value, options = {}) {
|
|
10711
10792
|
const { maxDepth = 1 / 0, useToJSON = true } = options;
|
|
10712
10793
|
if ('object' == typeof value && null !== value) return destroyCircular({
|
|
10713
10794
|
from: value,
|
|
10714
|
-
seen:
|
|
10795
|
+
seen: new Set(),
|
|
10796
|
+
forceEnumerable: true,
|
|
10797
|
+
maxDepth,
|
|
10798
|
+
depth: 0,
|
|
10799
|
+
useToJSON,
|
|
10800
|
+
serialize: true
|
|
10801
|
+
});
|
|
10802
|
+
if ('function' == typeof value) value = '<Function>';
|
|
10803
|
+
return destroyCircular({
|
|
10804
|
+
from: new NonError(value),
|
|
10805
|
+
seen: new Set(),
|
|
10715
10806
|
forceEnumerable: true,
|
|
10716
10807
|
maxDepth,
|
|
10717
10808
|
depth: 0,
|
|
10718
10809
|
useToJSON,
|
|
10719
10810
|
serialize: true
|
|
10720
10811
|
});
|
|
10721
|
-
if ('function' == typeof value) return `[Function: ${value.name || 'anonymous'}]`;
|
|
10722
|
-
return value;
|
|
10723
10812
|
}
|
|
10724
10813
|
function deserializeError(value, options = {}) {
|
|
10725
10814
|
const { maxDepth = 1 / 0 } = options;
|
|
10726
10815
|
if (value instanceof Error) return value;
|
|
10727
10816
|
if (isMinimumViableSerializedError(value)) return destroyCircular({
|
|
10728
10817
|
from: value,
|
|
10729
|
-
seen:
|
|
10818
|
+
seen: new Set(),
|
|
10730
10819
|
to: newError(value.name),
|
|
10731
10820
|
maxDepth,
|
|
10732
10821
|
depth: 0,
|
|
@@ -10743,7 +10832,7 @@
|
|
|
10743
10832
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10744
10833
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10745
10834
|
var package_namespaceObject = {
|
|
10746
|
-
rE: "13.7.
|
|
10835
|
+
rE: "13.7.1"
|
|
10747
10836
|
};
|
|
10748
10837
|
function isAudioEnabled(options) {
|
|
10749
10838
|
return Boolean(options.audio.enabled);
|
|
@@ -15029,19 +15118,19 @@
|
|
|
15029
15118
|
return newOptions;
|
|
15030
15119
|
}
|
|
15031
15120
|
const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
|
|
15032
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
15121
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
15033
15122
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
15034
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
15123
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
15035
15124
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
15036
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
15125
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
15037
15126
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
15038
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
15127
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
15039
15128
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
15040
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
15129
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
15041
15130
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
15042
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
15131
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
15043
15132
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
15044
|
-
var main = __webpack_require__("./node_modules/@
|
|
15133
|
+
var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
|
|
15045
15134
|
var main_options = {};
|
|
15046
15135
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
15047
15136
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.1",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"get-form-data": "3.0.0",
|
|
69
69
|
"is-power-of-two": "1.0.0",
|
|
70
70
|
"nanoevents": "9.1.0",
|
|
71
|
-
"serialize-error": "
|
|
71
|
+
"serialize-error": "13.0.1",
|
|
72
72
|
"superagent": "10.3.0",
|
|
73
73
|
"ua-parser-js": "2.0.8",
|
|
74
74
|
"websocket-stream": "5.5.2"
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"@rsbuild/plugin-node-polyfill": "1.4.3",
|
|
81
81
|
"@rsbuild/plugin-stylus": "1.2.1",
|
|
82
82
|
"@rsdoctor/rspack-plugin": "1.5.0",
|
|
83
|
-
"@rslib/core": "0.19.
|
|
84
|
-
"@storybook/addon-a11y": "10.
|
|
85
|
-
"@storybook/addon-docs": "10.
|
|
86
|
-
"@storybook/addon-links": "10.
|
|
87
|
-
"@storybook/html": "10.
|
|
88
|
-
"@tsconfig/node24": "24.0.
|
|
83
|
+
"@rslib/core": "0.19.3",
|
|
84
|
+
"@storybook/addon-a11y": "10.2.0",
|
|
85
|
+
"@storybook/addon-docs": "10.2.0",
|
|
86
|
+
"@storybook/addon-links": "10.2.0",
|
|
87
|
+
"@storybook/html": "10.2.0",
|
|
88
|
+
"@tsconfig/node24": "24.0.4",
|
|
89
89
|
"@tsconfig/strictest": "2.0.8",
|
|
90
90
|
"@types/defined": "1.0.2",
|
|
91
91
|
"@types/node": "24.10.8",
|
|
@@ -109,17 +109,17 @@
|
|
|
109
109
|
"jsdom": "27.4.0",
|
|
110
110
|
"msw": "2.12.7",
|
|
111
111
|
"msw-storybook-addon": "2.0.6",
|
|
112
|
-
"prettier": "3.8.
|
|
112
|
+
"prettier": "3.8.1",
|
|
113
113
|
"prettier-plugin-curly": "0.4.1",
|
|
114
114
|
"prettier-plugin-jsdoc": "1.8.0",
|
|
115
|
-
"prettier-plugin-packagejson": "
|
|
115
|
+
"prettier-plugin-packagejson": "3.0.0",
|
|
116
116
|
"prettier-plugin-sh": "0.18.0",
|
|
117
|
-
"release-it": "19.2.
|
|
118
|
-
"storybook": "10.
|
|
119
|
-
"storybook-html-rsbuild": "3.2.
|
|
117
|
+
"release-it": "19.2.4",
|
|
118
|
+
"storybook": "10.2.0",
|
|
119
|
+
"storybook-html-rsbuild": "3.2.2",
|
|
120
120
|
"type-fest": "5.4.1",
|
|
121
121
|
"typescript": "5.9.3",
|
|
122
|
-
"typescript-eslint": "8.53.
|
|
122
|
+
"typescript-eslint": "8.53.1",
|
|
123
123
|
"vitest": "4.0.17"
|
|
124
124
|
},
|
|
125
125
|
"engines": {
|