videomail-client 11.4.9 → 11.4.11
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
|
@@ -10642,7 +10642,7 @@ var __webpack_exports__ = {};
|
|
|
10642
10642
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10643
10643
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10644
10644
|
var package_namespaceObject = {
|
|
10645
|
-
rE: "11.4.
|
|
10645
|
+
rE: "11.4.11"
|
|
10646
10646
|
};
|
|
10647
10647
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10648
10648
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -16905,7 +16905,8 @@ var __webpack_exports__ = {};
|
|
|
16905
16905
|
key: this.key,
|
|
16906
16906
|
width,
|
|
16907
16907
|
height,
|
|
16908
|
-
hasAudio
|
|
16908
|
+
hasAudio,
|
|
16909
|
+
duration: -1
|
|
16909
16910
|
});
|
|
16910
16911
|
if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
|
|
16911
16912
|
null != this.recordingStats || (this.recordingStats = {});
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import VideomailClient from "./client";
|
|
2
|
-
import { Command,
|
|
2
|
+
import { Command, VideomailCommandArgs } from "./types/command";
|
|
3
3
|
import DeliveryRecord from "./types/DeliveryRecord";
|
|
4
4
|
import { EmailAddress, EmailAddresses } from "./types/EmailAddress";
|
|
5
5
|
import { FullVideomailErrorData, VideomailErrorData } from "./types/error";
|
|
6
|
-
import VideomailEvents from "./types/events";
|
|
6
|
+
import VideomailEvents, { VideomailPreviewParams } from "./types/events";
|
|
7
7
|
import { VideomailClientOptions } from "./types/options";
|
|
8
8
|
import RecordingStats from "./types/RecordingStats";
|
|
9
9
|
import Videomail, { PartialVideomail } from "./types/Videomail";
|
|
10
10
|
import { VideoType, VideoTypeType } from "./types/VideoType";
|
|
11
|
-
export type { Command,
|
|
11
|
+
export type { Command, DeliveryRecord, EmailAddress, EmailAddresses, FullVideomailErrorData, PartialVideomail, RecordingStats, Videomail, VideomailClientOptions, VideomailCommandArgs, VideomailErrorData, VideomailEvents, VideomailPreviewParams, VideoTypeType, };
|
|
12
12
|
export { VideomailClient, VideoType };
|
package/dist/esm/index.js
CHANGED
|
@@ -3607,7 +3607,7 @@ const constants = {
|
|
|
3607
3607
|
}
|
|
3608
3608
|
};
|
|
3609
3609
|
var package_namespaceObject = {
|
|
3610
|
-
rE: "11.4.
|
|
3610
|
+
rE: "11.4.11"
|
|
3611
3611
|
};
|
|
3612
3612
|
const VideoType = {
|
|
3613
3613
|
WebM: "webm",
|
|
@@ -6370,7 +6370,8 @@ class Recorder extends util_Despot {
|
|
|
6370
6370
|
key: this.key,
|
|
6371
6371
|
width,
|
|
6372
6372
|
height,
|
|
6373
|
-
hasAudio
|
|
6373
|
+
hasAudio,
|
|
6374
|
+
duration: -1
|
|
6374
6375
|
});
|
|
6375
6376
|
if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
|
|
6376
6377
|
this.recordingStats ??= {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { ErrorObject } from "serialize-error";
|
|
2
|
-
export interface
|
|
2
|
+
export interface VideomailCommandArgs {
|
|
3
3
|
frame?: number;
|
|
4
4
|
key?: string | undefined;
|
|
5
5
|
err?: ErrorObject;
|
|
6
6
|
sample?: number;
|
|
7
7
|
mp4?: string;
|
|
8
8
|
webm?: string;
|
|
9
|
+
duration?: number;
|
|
9
10
|
}
|
|
10
11
|
export interface Command {
|
|
11
12
|
command: string;
|
|
12
|
-
args?:
|
|
13
|
+
args?: VideomailCommandArgs;
|
|
13
14
|
}
|
|
@@ -22,11 +22,12 @@ export interface ProgressParams {
|
|
|
22
22
|
frameProgress: string;
|
|
23
23
|
sampleProgress?: string | undefined;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
25
|
+
export interface VideomailPreviewParams {
|
|
26
26
|
key?: string | undefined;
|
|
27
|
-
width
|
|
28
|
-
height
|
|
27
|
+
width: number | undefined;
|
|
28
|
+
height: number | undefined;
|
|
29
29
|
hasAudio: boolean;
|
|
30
|
+
duration: number;
|
|
30
31
|
}
|
|
31
32
|
export interface StoppedParams {
|
|
32
33
|
recordingStats?: RecordingStats | undefined;
|
|
@@ -67,7 +68,7 @@ interface VideomailEvents {
|
|
|
67
68
|
LOADING_USER_MEDIA: () => void;
|
|
68
69
|
NOTIFYING: () => void;
|
|
69
70
|
PAUSED: () => void;
|
|
70
|
-
PREVIEW: (params?:
|
|
71
|
+
PREVIEW: (params?: VideomailPreviewParams) => void;
|
|
71
72
|
PREVIEW_SHOWN: () => void;
|
|
72
73
|
PROGRESS: (params: ProgressParams) => void;
|
|
73
74
|
RECORDING: (params: RecordingParams) => void;
|
|
@@ -32,7 +32,7 @@ declare class Despot {
|
|
|
32
32
|
LOADING_USER_MEDIA: (() => void)[];
|
|
33
33
|
NOTIFYING: (() => void)[];
|
|
34
34
|
PAUSED: (() => void)[];
|
|
35
|
-
PREVIEW: ((params?: import("
|
|
35
|
+
PREVIEW: ((params?: import("..").VideomailPreviewParams) => void)[];
|
|
36
36
|
PREVIEW_SHOWN: (() => void)[];
|
|
37
37
|
PROGRESS: ((params: import("../types/events").ProgressParams) => void)[];
|
|
38
38
|
RECORDING: ((params: import("../types/events").RecordingParams) => void)[];
|
package/dist/umd/index.js
CHANGED
|
@@ -10648,7 +10648,7 @@
|
|
|
10648
10648
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10649
10649
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10650
10650
|
var package_namespaceObject = {
|
|
10651
|
-
rE: "11.4.
|
|
10651
|
+
rE: "11.4.11"
|
|
10652
10652
|
};
|
|
10653
10653
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10654
10654
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -16738,7 +16738,8 @@
|
|
|
16738
16738
|
key: this.key,
|
|
16739
16739
|
width,
|
|
16740
16740
|
height,
|
|
16741
|
-
hasAudio
|
|
16741
|
+
hasAudio,
|
|
16742
|
+
duration: -1
|
|
16742
16743
|
});
|
|
16743
16744
|
if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
|
|
16744
16745
|
this.recordingStats ??= {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videomail-client",
|
|
3
|
-
"version": "11.4.
|
|
3
|
+
"version": "11.4.11",
|
|
4
4
|
"description": "A wicked npm package to record videos directly in the browser, wohooo!",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webcam",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/node": "22.18.6",
|
|
92
92
|
"@types/superagent": "8.1.9",
|
|
93
93
|
"@types/ua-parser-js": "0.7.39",
|
|
94
|
-
"@vitest/eslint-plugin": "1.3.
|
|
94
|
+
"@vitest/eslint-plugin": "1.3.16",
|
|
95
95
|
"audit-ci": "7.1.0",
|
|
96
96
|
"chromatic": "13.3.0",
|
|
97
97
|
"cross-env": "10.1.0",
|