videomail-client 10.1.0 → 10.1.2

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.
@@ -10182,7 +10182,7 @@ var __webpack_exports__ = {};
10182
10182
  }
10183
10183
  const pretty = pretty_pretty;
10184
10184
  function isAudioEnabled(options) {
10185
- return options.audio.enabled;
10185
+ return Boolean(options.audio.enabled);
10186
10186
  }
10187
10187
  function setAudioEnabled(enabled, options) {
10188
10188
  options.audio.enabled = enabled;
@@ -13679,7 +13679,7 @@ var __webpack_exports__ = {};
13679
13679
  }
13680
13680
  const wrappers_form = Form;
13681
13681
  var package_namespaceObject = {
13682
- i8: "10.1.0"
13682
+ i8: "10.1.2"
13683
13683
  };
13684
13684
  function resource_define_property(obj, key, value) {
13685
13685
  if (key in obj) Object.defineProperty(obj, key, {
@@ -16294,7 +16294,8 @@ var __webpack_exports__ = {};
16294
16294
  const e = null == params ? void 0 : params.e;
16295
16295
  let cause;
16296
16296
  if (e) cause = e.type;
16297
- this.options.logger.debug(`Recorder: unload()${cause ? `, cause: ${cause}` : ""}`);
16297
+ const prettyCause = cause ? `, cause: ${cause}` : "";
16298
+ this.options.logger.debug(`Recorder: unload()${prettyCause}`);
16298
16299
  this.reset();
16299
16300
  this.clearUserMediaTimeout();
16300
16301
  if (this.userMedia) this.userMedia.unloadRemainingEventListeners();
package/dist/esm/index.js CHANGED
@@ -3350,7 +3350,7 @@ function pretty_pretty(anything) {
3350
3350
  }
3351
3351
  const pretty = pretty_pretty;
3352
3352
  function isAudioEnabled(options) {
3353
- return options.audio.enabled;
3353
+ return Boolean(options.audio.enabled);
3354
3354
  }
3355
3355
  function setAudioEnabled(enabled, options) {
3356
3356
  options.audio.enabled = enabled;
@@ -3964,7 +3964,7 @@ class Form extends Despot {
3964
3964
  }
3965
3965
  const wrappers_form = Form;
3966
3966
  var package_namespaceObject = {
3967
- i8: "10.1.0"
3967
+ i8: "10.1.2"
3968
3968
  };
3969
3969
  function findOriginalExc(exc) {
3970
3970
  if (exc instanceof Error && "response" in exc) {
@@ -6378,7 +6378,8 @@ class Recorder extends Despot {
6378
6378
  const e = params?.e;
6379
6379
  let cause;
6380
6380
  if (e) cause = e.type;
6381
- this.options.logger.debug(`Recorder: unload()${cause ? `, cause: ${cause}` : ""}`);
6381
+ const prettyCause = cause ? `, cause: ${cause}` : "";
6382
+ this.options.logger.debug(`Recorder: unload()${prettyCause}`);
6382
6383
  this.reset();
6383
6384
  this.clearUserMediaTimeout();
6384
6385
  if (this.userMedia) this.userMedia.unloadRemainingEventListeners();
@@ -50,10 +50,10 @@ export interface VideomailClientOptions {
50
50
  submitButtonSelector?: string | undefined;
51
51
  };
52
52
  audio: {
53
- enabled: boolean;
54
- switch: boolean;
53
+ enabled?: boolean | undefined;
54
+ switch?: boolean | undefined;
55
55
  volume: number;
56
- bufferSize: number | "auto";
56
+ bufferSize?: number | "auto";
57
57
  };
58
58
  video: {
59
59
  fps: number;
package/dist/umd/index.js CHANGED
@@ -10188,7 +10188,7 @@
10188
10188
  }
10189
10189
  const pretty = pretty_pretty;
10190
10190
  function isAudioEnabled(options) {
10191
- return options.audio.enabled;
10191
+ return Boolean(options.audio.enabled);
10192
10192
  }
10193
10193
  function setAudioEnabled(enabled, options) {
10194
10194
  options.audio.enabled = enabled;
@@ -13647,7 +13647,7 @@
13647
13647
  }
13648
13648
  const wrappers_form = Form;
13649
13649
  var package_namespaceObject = {
13650
- i8: "10.1.0"
13650
+ i8: "10.1.2"
13651
13651
  };
13652
13652
  function findOriginalExc(exc) {
13653
13653
  if (exc instanceof Error && "response" in exc) {
@@ -16139,7 +16139,8 @@
16139
16139
  const e = params?.e;
16140
16140
  let cause;
16141
16141
  if (e) cause = e.type;
16142
- this.options.logger.debug(`Recorder: unload()${cause ? `, cause: ${cause}` : ""}`);
16142
+ const prettyCause = cause ? `, cause: ${cause}` : "";
16143
+ this.options.logger.debug(`Recorder: unload()${prettyCause}`);
16143
16144
  this.reset();
16144
16145
  this.clearUserMediaTimeout();
16145
16146
  if (this.userMedia) this.userMedia.unloadRemainingEventListeners();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -72,29 +72,29 @@
72
72
  "websocket-stream": "5.5.2"
73
73
  },
74
74
  "devDependencies": {
75
- "@chromatic-com/storybook": "3.2.3",
75
+ "@chromatic-com/storybook": "3.2.4",
76
76
  "@eslint/js": "9.18.0",
77
77
  "@rsbuild/plugin-node-polyfill": "1.2.0",
78
78
  "@rsbuild/plugin-stylus": "1.0.7",
79
79
  "@rsdoctor/rspack-plugin": "0.4.13",
80
- "@rslib/core": "0.3.1",
81
- "@storybook/addon-a11y": "8.4.7",
80
+ "@rslib/core": "0.3.2",
81
+ "@storybook/addon-a11y": "8.5.0",
82
82
  "@storybook/addon-console": "3.0.0",
83
- "@storybook/addon-essentials": "8.4.7",
84
- "@storybook/addon-interactions": "8.4.7",
85
- "@storybook/addon-links": "8.4.7",
86
- "@storybook/html": "8.4.7",
87
- "@storybook/manager-api": "8.4.7",
88
- "@storybook/theming": "8.4.7",
83
+ "@storybook/addon-essentials": "8.5.0",
84
+ "@storybook/addon-interactions": "8.5.0",
85
+ "@storybook/addon-links": "8.5.0",
86
+ "@storybook/html": "8.5.0",
87
+ "@storybook/manager-api": "8.5.0",
88
+ "@storybook/theming": "8.5.0",
89
89
  "@tsconfig/node22": "22.0.0",
90
90
  "@tsconfig/strictest": "2.0.5",
91
91
  "@types/defined": "1.0.2",
92
- "@types/node": "22.10.6",
92
+ "@types/node": "22.10.7",
93
93
  "@types/superagent": "8.1.9",
94
94
  "@types/ua-parser-js": "0.7.39",
95
95
  "@vitest/eslint-plugin": "1.1.25",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "11.24.0",
97
+ "chromatic": "11.25.0",
98
98
  "cross-env": "7.0.3",
99
99
  "eslint": "9.18.0",
100
100
  "eslint-import-resolver-typescript": "3.7.0",
@@ -110,10 +110,10 @@
110
110
  "msw-storybook-addon": "2.0.4",
111
111
  "prettier": "3.4.2",
112
112
  "prettier-plugin-curly": "0.3.1",
113
- "prettier-plugin-packagejson": "2.5.7",
113
+ "prettier-plugin-packagejson": "2.5.8",
114
114
  "prettier-plugin-sh": "0.14.0",
115
115
  "release-it": "18.1.1",
116
- "storybook": "8.4.7",
116
+ "storybook": "8.5.0",
117
117
  "storybook-html-rsbuild": "0.1.8",
118
118
  "typescript": "5.7.3",
119
119
  "typescript-eslint": "8.20.0",