videomail-client 13.8.2 → 13.8.4
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/dist/cjs/index.cjs +7 -7
- package/dist/esm/index.js +58 -8
- package/dist/umd/index.js +7 -7
- package/package.json +14 -14
- package/dist/esm/rslib-runtime.js +0 -52
package/dist/cjs/index.cjs
CHANGED
|
@@ -10826,7 +10826,7 @@ var __webpack_exports__ = {};
|
|
|
10826
10826
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10827
10827
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10828
10828
|
var package_namespaceObject = {
|
|
10829
|
-
rE: "13.8.
|
|
10829
|
+
rE: "13.8.4"
|
|
10830
10830
|
};
|
|
10831
10831
|
function isAudioEnabled(options) {
|
|
10832
10832
|
return Boolean(options.audio.enabled);
|
|
@@ -17293,12 +17293,14 @@ var __webpack_exports__ = {};
|
|
|
17293
17293
|
const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.WHITELIST_KEY_LABEL)}=${encodeURIComponent(this.options.whitelistKey)}`;
|
|
17294
17294
|
this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
|
|
17295
17295
|
try {
|
|
17296
|
-
this.stream = stream_default()(url2Connect
|
|
17296
|
+
this.stream = stream_default()(url2Connect, {
|
|
17297
|
+
perMessageDeflate: false
|
|
17298
|
+
});
|
|
17297
17299
|
} catch (exc) {
|
|
17298
17300
|
this.connecting = this.connected = false;
|
|
17299
17301
|
const err = error_createError({
|
|
17300
17302
|
message: "Failed to connect to server",
|
|
17301
|
-
explanation: "
|
|
17303
|
+
explanation: "If this happens again, please contact us with the details of your environment.",
|
|
17302
17304
|
options: this.options,
|
|
17303
17305
|
exc
|
|
17304
17306
|
});
|
|
@@ -17328,9 +17330,9 @@ var __webpack_exports__ = {};
|
|
|
17328
17330
|
});
|
|
17329
17331
|
this.stream.on("data", (data)=>{
|
|
17330
17332
|
this.options.logger.debug(`${PIPE_SYMBOL}Stream *data* event emitted`);
|
|
17331
|
-
let command;
|
|
17332
17333
|
try {
|
|
17333
|
-
command = JSON.parse(data.toString());
|
|
17334
|
+
const command = JSON.parse(data.toString());
|
|
17335
|
+
this.executeCommand(command);
|
|
17334
17336
|
} catch (exc) {
|
|
17335
17337
|
this.options.logger.debug(`Failed to parse command: ${exc}`);
|
|
17336
17338
|
const err = error_createError({
|
|
@@ -17342,8 +17344,6 @@ var __webpack_exports__ = {};
|
|
|
17342
17344
|
this.emit("ERROR", {
|
|
17343
17345
|
err
|
|
17344
17346
|
});
|
|
17345
|
-
} finally{
|
|
17346
|
-
this.executeCommand(command);
|
|
17347
17347
|
}
|
|
17348
17348
|
});
|
|
17349
17349
|
this.stream.on("error", (err)=>{
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
1
|
import { deserializeError, serializeError } from "serialize-error";
|
|
3
2
|
import superagent from "superagent";
|
|
4
3
|
import defined from "defined";
|
|
@@ -13,6 +12,57 @@ import canvas_to_buffer from "canvas-to-buffer";
|
|
|
13
12
|
import websocket_stream from "websocket-stream";
|
|
14
13
|
import audio_sample from "audio-sample";
|
|
15
14
|
import is_power_of_two from "is-power-of-two";
|
|
15
|
+
var __webpack_modules__ = {};
|
|
16
|
+
var __webpack_module_cache__ = {};
|
|
17
|
+
function __webpack_require__(moduleId) {
|
|
18
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
19
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
20
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
21
|
+
id: moduleId,
|
|
22
|
+
exports: {}
|
|
23
|
+
};
|
|
24
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
25
|
+
return module.exports;
|
|
26
|
+
}
|
|
27
|
+
__webpack_require__.m = __webpack_modules__;
|
|
28
|
+
(()=>{
|
|
29
|
+
__webpack_require__.n = (module)=>{
|
|
30
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
31
|
+
__webpack_require__.d(getter, {
|
|
32
|
+
a: getter
|
|
33
|
+
});
|
|
34
|
+
return getter;
|
|
35
|
+
};
|
|
36
|
+
})();
|
|
37
|
+
(()=>{
|
|
38
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
39
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: definition[key]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
(()=>{
|
|
46
|
+
__webpack_require__.add = function(modules) {
|
|
47
|
+
Object.assign(__webpack_require__.m, modules);
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
50
|
+
(()=>{
|
|
51
|
+
__webpack_require__.g = (()=>{
|
|
52
|
+
if ('object' == typeof globalThis) return globalThis;
|
|
53
|
+
try {
|
|
54
|
+
return this || new Function('return this')();
|
|
55
|
+
} catch (e) {
|
|
56
|
+
if ('object' == typeof window) return window;
|
|
57
|
+
}
|
|
58
|
+
})();
|
|
59
|
+
})();
|
|
60
|
+
(()=>{
|
|
61
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
62
|
+
})();
|
|
63
|
+
(()=>{
|
|
64
|
+
__webpack_require__.nc = void 0;
|
|
65
|
+
})();
|
|
16
66
|
__webpack_require__.add({
|
|
17
67
|
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[10].oneOf[2].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[10].oneOf[2].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[10].oneOf[2].use[3]!./src/styles/main.styl" (module, __webpack_exports__, __webpack_require__) {
|
|
18
68
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -3569,7 +3619,7 @@ const constants = {
|
|
|
3569
3619
|
}
|
|
3570
3620
|
};
|
|
3571
3621
|
var package_namespaceObject = {
|
|
3572
|
-
rE: "13.8.
|
|
3622
|
+
rE: "13.8.4"
|
|
3573
3623
|
};
|
|
3574
3624
|
function isAudioEnabled(options) {
|
|
3575
3625
|
return Boolean(options.audio.enabled);
|
|
@@ -6496,12 +6546,14 @@ class Recorder extends util_Despot {
|
|
|
6496
6546
|
const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.WHITELIST_KEY_LABEL)}=${encodeURIComponent(this.options.whitelistKey)}`;
|
|
6497
6547
|
this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
|
|
6498
6548
|
try {
|
|
6499
|
-
this.stream = websocket_stream(url2Connect
|
|
6549
|
+
this.stream = websocket_stream(url2Connect, {
|
|
6550
|
+
perMessageDeflate: false
|
|
6551
|
+
});
|
|
6500
6552
|
} catch (exc) {
|
|
6501
6553
|
this.connecting = this.connected = false;
|
|
6502
6554
|
const err = error_createError({
|
|
6503
6555
|
message: "Failed to connect to server",
|
|
6504
|
-
explanation: "
|
|
6556
|
+
explanation: "If this happens again, please contact us with the details of your environment.",
|
|
6505
6557
|
options: this.options,
|
|
6506
6558
|
exc
|
|
6507
6559
|
});
|
|
@@ -6530,9 +6582,9 @@ class Recorder extends util_Despot {
|
|
|
6530
6582
|
});
|
|
6531
6583
|
this.stream.on("data", (data)=>{
|
|
6532
6584
|
this.options.logger.debug(`${PIPE_SYMBOL}Stream *data* event emitted`);
|
|
6533
|
-
let command;
|
|
6534
6585
|
try {
|
|
6535
|
-
command = JSON.parse(data.toString());
|
|
6586
|
+
const command = JSON.parse(data.toString());
|
|
6587
|
+
this.executeCommand(command);
|
|
6536
6588
|
} catch (exc) {
|
|
6537
6589
|
this.options.logger.debug(`Failed to parse command: ${exc}`);
|
|
6538
6590
|
const err = error_createError({
|
|
@@ -6544,8 +6596,6 @@ class Recorder extends util_Despot {
|
|
|
6544
6596
|
this.emit("ERROR", {
|
|
6545
6597
|
err
|
|
6546
6598
|
});
|
|
6547
|
-
} finally{
|
|
6548
|
-
this.executeCommand(command);
|
|
6549
6599
|
}
|
|
6550
6600
|
});
|
|
6551
6601
|
this.stream.on("error", (err)=>{
|
package/dist/umd/index.js
CHANGED
|
@@ -10832,7 +10832,7 @@
|
|
|
10832
10832
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10833
10833
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10834
10834
|
var package_namespaceObject = {
|
|
10835
|
-
rE: "13.8.
|
|
10835
|
+
rE: "13.8.4"
|
|
10836
10836
|
};
|
|
10837
10837
|
function isAudioEnabled(options) {
|
|
10838
10838
|
return Boolean(options.audio.enabled);
|
|
@@ -17060,12 +17060,14 @@
|
|
|
17060
17060
|
const url2Connect = `${this.options.socketUrl}?${encodeURIComponent(constants.WHITELIST_KEY_LABEL)}=${encodeURIComponent(this.options.whitelistKey)}`;
|
|
17061
17061
|
this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
|
|
17062
17062
|
try {
|
|
17063
|
-
this.stream = stream_default()(url2Connect
|
|
17063
|
+
this.stream = stream_default()(url2Connect, {
|
|
17064
|
+
perMessageDeflate: false
|
|
17065
|
+
});
|
|
17064
17066
|
} catch (exc) {
|
|
17065
17067
|
this.connecting = this.connected = false;
|
|
17066
17068
|
const err = error_createError({
|
|
17067
17069
|
message: "Failed to connect to server",
|
|
17068
|
-
explanation: "
|
|
17070
|
+
explanation: "If this happens again, please contact us with the details of your environment.",
|
|
17069
17071
|
options: this.options,
|
|
17070
17072
|
exc
|
|
17071
17073
|
});
|
|
@@ -17094,9 +17096,9 @@
|
|
|
17094
17096
|
});
|
|
17095
17097
|
this.stream.on("data", (data)=>{
|
|
17096
17098
|
this.options.logger.debug(`${PIPE_SYMBOL}Stream *data* event emitted`);
|
|
17097
|
-
let command;
|
|
17098
17099
|
try {
|
|
17099
|
-
command = JSON.parse(data.toString());
|
|
17100
|
+
const command = JSON.parse(data.toString());
|
|
17101
|
+
this.executeCommand(command);
|
|
17100
17102
|
} catch (exc) {
|
|
17101
17103
|
this.options.logger.debug(`Failed to parse command: ${exc}`);
|
|
17102
17104
|
const err = error_createError({
|
|
@@ -17108,8 +17110,6 @@
|
|
|
17108
17110
|
this.emit("ERROR", {
|
|
17109
17111
|
err
|
|
17110
17112
|
});
|
|
17111
|
-
} finally{
|
|
17112
|
-
this.executeCommand(command);
|
|
17113
17113
|
}
|
|
17114
17114
|
});
|
|
17115
17115
|
this.stream.on("error", (err)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "13.8.
|
|
3
|
+
"version": "13.8.4",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -75,24 +75,24 @@
|
|
|
75
75
|
"websocket-stream": "5.5.2"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@chromatic-com/storybook": "5.
|
|
78
|
+
"@chromatic-com/storybook": "5.1.1",
|
|
79
79
|
"@eslint/config-inspector": "1.5.0",
|
|
80
80
|
"@eslint/js": "9.39.2",
|
|
81
81
|
"@rsbuild/plugin-node-polyfill": "1.4.4",
|
|
82
82
|
"@rsbuild/plugin-stylus": "1.3.1",
|
|
83
|
-
"@rsdoctor/rspack-plugin": "1.5.
|
|
84
|
-
"@rslib/core": "0.20.
|
|
85
|
-
"@storybook/addon-a11y": "10.
|
|
86
|
-
"@storybook/addon-docs": "10.
|
|
87
|
-
"@storybook/addon-links": "10.
|
|
88
|
-
"@storybook/html": "10.
|
|
83
|
+
"@rsdoctor/rspack-plugin": "1.5.5",
|
|
84
|
+
"@rslib/core": "0.20.1",
|
|
85
|
+
"@storybook/addon-a11y": "10.3.3",
|
|
86
|
+
"@storybook/addon-docs": "10.3.3",
|
|
87
|
+
"@storybook/addon-links": "10.3.3",
|
|
88
|
+
"@storybook/html": "10.3.3",
|
|
89
89
|
"@tsconfig/node24": "24.0.4",
|
|
90
90
|
"@tsconfig/strictest": "2.0.8",
|
|
91
91
|
"@types/defined": "1.0.2",
|
|
92
92
|
"@types/node": "24.10.8",
|
|
93
93
|
"@types/superagent": "8.1.9",
|
|
94
94
|
"@types/ua-parser-js": "0.7.39",
|
|
95
|
-
"@vitest/eslint-plugin": "1.6.
|
|
95
|
+
"@vitest/eslint-plugin": "1.6.13",
|
|
96
96
|
"audit-ci": "7.1.0",
|
|
97
97
|
"chromatic": "15.3.0",
|
|
98
98
|
"cross-env": "10.1.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
110
110
|
"globals": "17.4.0",
|
|
111
111
|
"jsdom": "28.1.0",
|
|
112
|
-
"msw": "2.12.
|
|
112
|
+
"msw": "2.12.14",
|
|
113
113
|
"msw-storybook-addon": "2.0.6",
|
|
114
114
|
"prettier": "3.8.1",
|
|
115
115
|
"prettier-plugin-curly": "0.4.1",
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"prettier-plugin-packagejson": "3.0.2",
|
|
118
118
|
"prettier-plugin-sh": "0.18.0",
|
|
119
119
|
"release-it": "19.2.4",
|
|
120
|
-
"storybook": "10.
|
|
120
|
+
"storybook": "10.3.3",
|
|
121
121
|
"storybook-html-rsbuild": "3.3.2",
|
|
122
|
-
"type-fest": "5.
|
|
122
|
+
"type-fest": "5.5.0",
|
|
123
123
|
"typescript": "5.9.3",
|
|
124
|
-
"typescript-eslint": "8.57.
|
|
125
|
-
"vitest": "4.1.
|
|
124
|
+
"typescript-eslint": "8.57.2",
|
|
125
|
+
"vitest": "4.1.2"
|
|
126
126
|
},
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": "^24.13.0",
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __webpack_modules__ = {};
|
|
2
|
-
var __webpack_module_cache__ = {};
|
|
3
|
-
function __webpack_require__(moduleId) {
|
|
4
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
-
id: moduleId,
|
|
8
|
-
exports: {}
|
|
9
|
-
};
|
|
10
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
11
|
-
return module.exports;
|
|
12
|
-
}
|
|
13
|
-
__webpack_require__.m = __webpack_modules__;
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.n = (module)=>{
|
|
16
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
17
|
-
__webpack_require__.d(getter, {
|
|
18
|
-
a: getter
|
|
19
|
-
});
|
|
20
|
-
return getter;
|
|
21
|
-
};
|
|
22
|
-
})();
|
|
23
|
-
(()=>{
|
|
24
|
-
__webpack_require__.d = (exports, definition)=>{
|
|
25
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: definition[key]
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
})();
|
|
31
|
-
(()=>{
|
|
32
|
-
__webpack_require__.add = function(modules) {
|
|
33
|
-
Object.assign(__webpack_require__.m, modules);
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
(()=>{
|
|
37
|
-
__webpack_require__.g = (()=>{
|
|
38
|
-
if ('object' == typeof globalThis) return globalThis;
|
|
39
|
-
try {
|
|
40
|
-
return this || new Function('return this')();
|
|
41
|
-
} catch (e) {
|
|
42
|
-
if ('object' == typeof window) return window;
|
|
43
|
-
}
|
|
44
|
-
})();
|
|
45
|
-
})();
|
|
46
|
-
(()=>{
|
|
47
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
48
|
-
})();
|
|
49
|
-
(()=>{
|
|
50
|
-
__webpack_require__.nc = void 0;
|
|
51
|
-
})();
|
|
52
|
-
export { __webpack_require__ };
|