videomail-client 13.7.2 → 13.7.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
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.7.
|
|
10829
|
+
rE: "13.7.4"
|
|
10830
10830
|
};
|
|
10831
10831
|
function isAudioEnabled(options) {
|
|
10832
10832
|
return Boolean(options.audio.enabled);
|
|
@@ -14722,9 +14722,8 @@ var __webpack_exports__ = {};
|
|
|
14722
14722
|
if ((null == params ? void 0 : params.key) || (null == (_this_keyInput = this.keyInput) ? void 0 : _this_keyInput.value)) {
|
|
14723
14723
|
if ((null == params ? void 0 : params.key) && this.keyInput) {
|
|
14724
14724
|
this.keyInput.value = params.key;
|
|
14725
|
-
this.keyInput.dispatchEvent(new InputEvent("
|
|
14726
|
-
bubbles: true
|
|
14727
|
-
data: params.key
|
|
14725
|
+
this.keyInput.dispatchEvent(new InputEvent("input", {
|
|
14726
|
+
bubbles: true
|
|
14728
14727
|
}));
|
|
14729
14728
|
}
|
|
14730
14729
|
} else {
|
|
@@ -17608,14 +17607,17 @@ var __webpack_exports__ = {};
|
|
|
17608
17607
|
null == (_this_loop = this.loop) || _this_loop.dispose();
|
|
17609
17608
|
}
|
|
17610
17609
|
getIntervalSum() {
|
|
17610
|
+
if (!this.loop) return;
|
|
17611
17611
|
return this.loop.getElapsedTime();
|
|
17612
17612
|
}
|
|
17613
17613
|
getAvgInterval() {
|
|
17614
|
-
|
|
17614
|
+
const intervalSum = this.getIntervalSum();
|
|
17615
|
+
if (!intervalSum) return;
|
|
17616
|
+
return intervalSum / this.framesCount;
|
|
17615
17617
|
}
|
|
17616
17618
|
getAvgFps() {
|
|
17617
17619
|
const intervalSum = this.getIntervalSum();
|
|
17618
|
-
if (
|
|
17620
|
+
if (!intervalSum) return;
|
|
17619
17621
|
return this.framesCount / intervalSum * 1000;
|
|
17620
17622
|
}
|
|
17621
17623
|
getRecordingStats() {
|
package/dist/esm/index.js
CHANGED
|
@@ -3569,7 +3569,7 @@ const constants = {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
};
|
|
3571
3571
|
var package_namespaceObject = {
|
|
3572
|
-
rE: "13.7.
|
|
3572
|
+
rE: "13.7.4"
|
|
3573
3573
|
};
|
|
3574
3574
|
function isAudioEnabled(options) {
|
|
3575
3575
|
return Boolean(options.audio.enabled);
|
|
@@ -4128,9 +4128,8 @@ class Form extends util_Despot {
|
|
|
4128
4128
|
if (params?.key || this.keyInput?.value) {
|
|
4129
4129
|
if (params?.key && this.keyInput) {
|
|
4130
4130
|
this.keyInput.value = params.key;
|
|
4131
|
-
this.keyInput.dispatchEvent(new InputEvent("
|
|
4132
|
-
bubbles: true
|
|
4133
|
-
data: params.key
|
|
4131
|
+
this.keyInput.dispatchEvent(new InputEvent("input", {
|
|
4132
|
+
bubbles: true
|
|
4134
4133
|
}));
|
|
4135
4134
|
}
|
|
4136
4135
|
} else {
|
|
@@ -6807,14 +6806,17 @@ class Recorder extends util_Despot {
|
|
|
6807
6806
|
this.loop?.dispose();
|
|
6808
6807
|
}
|
|
6809
6808
|
getIntervalSum() {
|
|
6809
|
+
if (!this.loop) return;
|
|
6810
6810
|
return this.loop.getElapsedTime();
|
|
6811
6811
|
}
|
|
6812
6812
|
getAvgInterval() {
|
|
6813
|
-
|
|
6813
|
+
const intervalSum = this.getIntervalSum();
|
|
6814
|
+
if (!intervalSum) return;
|
|
6815
|
+
return intervalSum / this.framesCount;
|
|
6814
6816
|
}
|
|
6815
6817
|
getAvgFps() {
|
|
6816
6818
|
const intervalSum = this.getIntervalSum();
|
|
6817
|
-
if (
|
|
6819
|
+
if (!intervalSum) return;
|
|
6818
6820
|
return this.framesCount / intervalSum * 1000;
|
|
6819
6821
|
}
|
|
6820
6822
|
getRecordingStats() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface RecordingStats {
|
|
2
2
|
avgFps?: number | undefined;
|
|
3
|
-
avgInterval?: number;
|
|
3
|
+
avgInterval?: number | undefined;
|
|
4
4
|
framesCount?: number;
|
|
5
|
-
intervalSum?: number;
|
|
5
|
+
intervalSum?: number | undefined;
|
|
6
6
|
sampleRate?: number;
|
|
7
7
|
samplesCount?: number;
|
|
8
8
|
videoType?: string;
|
|
@@ -93,9 +93,9 @@ declare class Form extends Despot {
|
|
|
93
93
|
} | undefined;
|
|
94
94
|
recordingStats?: {
|
|
95
95
|
avgFps?: number | undefined | undefined;
|
|
96
|
-
avgInterval?: number;
|
|
96
|
+
avgInterval?: number | undefined | undefined;
|
|
97
97
|
framesCount?: number;
|
|
98
|
-
intervalSum?: number;
|
|
98
|
+
intervalSum?: number | undefined | undefined;
|
|
99
99
|
sampleRate?: number;
|
|
100
100
|
samplesCount?: number;
|
|
101
101
|
videoType?: string;
|
|
@@ -232,9 +232,9 @@ declare class Form extends Despot {
|
|
|
232
232
|
} | undefined;
|
|
233
233
|
recordingStats?: {
|
|
234
234
|
avgFps?: number | undefined | undefined;
|
|
235
|
-
avgInterval?: number;
|
|
235
|
+
avgInterval?: number | undefined | undefined;
|
|
236
236
|
framesCount?: number;
|
|
237
|
-
intervalSum?: number;
|
|
237
|
+
intervalSum?: number | undefined | undefined;
|
|
238
238
|
sampleRate?: number;
|
|
239
239
|
samplesCount?: number;
|
|
240
240
|
videoType?: string;
|
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.7.
|
|
10835
|
+
rE: "13.7.4"
|
|
10836
10836
|
};
|
|
10837
10837
|
function isAudioEnabled(options) {
|
|
10838
10838
|
return Boolean(options.audio.enabled);
|
|
@@ -14684,9 +14684,8 @@
|
|
|
14684
14684
|
if (params?.key || this.keyInput?.value) {
|
|
14685
14685
|
if (params?.key && this.keyInput) {
|
|
14686
14686
|
this.keyInput.value = params.key;
|
|
14687
|
-
this.keyInput.dispatchEvent(new InputEvent("
|
|
14688
|
-
bubbles: true
|
|
14689
|
-
data: params.key
|
|
14687
|
+
this.keyInput.dispatchEvent(new InputEvent("input", {
|
|
14688
|
+
bubbles: true
|
|
14690
14689
|
}));
|
|
14691
14690
|
}
|
|
14692
14691
|
} else {
|
|
@@ -17371,14 +17370,17 @@
|
|
|
17371
17370
|
this.loop?.dispose();
|
|
17372
17371
|
}
|
|
17373
17372
|
getIntervalSum() {
|
|
17373
|
+
if (!this.loop) return;
|
|
17374
17374
|
return this.loop.getElapsedTime();
|
|
17375
17375
|
}
|
|
17376
17376
|
getAvgInterval() {
|
|
17377
|
-
|
|
17377
|
+
const intervalSum = this.getIntervalSum();
|
|
17378
|
+
if (!intervalSum) return;
|
|
17379
|
+
return intervalSum / this.framesCount;
|
|
17378
17380
|
}
|
|
17379
17381
|
getAvgFps() {
|
|
17380
17382
|
const intervalSum = this.getIntervalSum();
|
|
17381
|
-
if (
|
|
17383
|
+
if (!intervalSum) return;
|
|
17382
17384
|
return this.framesCount / intervalSum * 1000;
|
|
17383
17385
|
}
|
|
17384
17386
|
getRecordingStats() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "13.7.
|
|
3
|
+
"version": "13.7.4",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -74,24 +74,24 @@
|
|
|
74
74
|
"websocket-stream": "5.5.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@chromatic-com/storybook": "5.0.
|
|
77
|
+
"@chromatic-com/storybook": "5.0.1",
|
|
78
78
|
"@eslint/config-inspector": "1.4.2",
|
|
79
79
|
"@eslint/js": "9.39.2",
|
|
80
80
|
"@rsbuild/plugin-node-polyfill": "1.4.4",
|
|
81
81
|
"@rsbuild/plugin-stylus": "1.3.0",
|
|
82
82
|
"@rsdoctor/rspack-plugin": "1.5.2",
|
|
83
83
|
"@rslib/core": "0.19.5",
|
|
84
|
-
"@storybook/addon-a11y": "10.2.
|
|
85
|
-
"@storybook/addon-docs": "10.2.
|
|
86
|
-
"@storybook/addon-links": "10.2.
|
|
87
|
-
"@storybook/html": "10.2.
|
|
84
|
+
"@storybook/addon-a11y": "10.2.8",
|
|
85
|
+
"@storybook/addon-docs": "10.2.8",
|
|
86
|
+
"@storybook/addon-links": "10.2.8",
|
|
87
|
+
"@storybook/html": "10.2.8",
|
|
88
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",
|
|
92
92
|
"@types/superagent": "8.1.9",
|
|
93
93
|
"@types/ua-parser-js": "0.7.39",
|
|
94
|
-
"@vitest/eslint-plugin": "1.6.
|
|
94
|
+
"@vitest/eslint-plugin": "1.6.7",
|
|
95
95
|
"audit-ci": "7.1.0",
|
|
96
96
|
"chromatic": "15.0.0",
|
|
97
97
|
"cross-env": "10.1.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
109
109
|
"globals": "17.3.0",
|
|
110
110
|
"jsdom": "28.0.0",
|
|
111
|
-
"msw": "2.12.
|
|
111
|
+
"msw": "2.12.9",
|
|
112
112
|
"msw-storybook-addon": "2.0.6",
|
|
113
113
|
"prettier": "3.8.1",
|
|
114
114
|
"prettier-plugin-curly": "0.4.1",
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
"prettier-plugin-packagejson": "3.0.0",
|
|
117
117
|
"prettier-plugin-sh": "0.18.0",
|
|
118
118
|
"release-it": "19.2.4",
|
|
119
|
-
"storybook": "10.2.
|
|
119
|
+
"storybook": "10.2.8",
|
|
120
120
|
"storybook-html-rsbuild": "3.2.2",
|
|
121
|
-
"type-fest": "5.4.
|
|
121
|
+
"type-fest": "5.4.4",
|
|
122
122
|
"typescript": "5.9.3",
|
|
123
|
-
"typescript-eslint": "8.
|
|
123
|
+
"typescript-eslint": "8.55.0",
|
|
124
124
|
"vitest": "4.0.18"
|
|
125
125
|
},
|
|
126
126
|
"engines": {
|