videomail-client 10.0.22 → 10.0.23

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.
@@ -13678,6 +13678,9 @@ var __webpack_exports__ = {};
13678
13678
  }
13679
13679
  }
13680
13680
  const wrappers_form = Form;
13681
+ var package_namespaceObject = {
13682
+ i8: "10.0.23"
13683
+ };
13681
13684
  function resource_define_property(obj, key, value) {
13682
13685
  if (key in obj) Object.defineProperty(obj, key, {
13683
13686
  value: value,
@@ -13785,7 +13788,8 @@ var __webpack_exports__ = {};
13785
13788
  status: err.status,
13786
13789
  title: err.title,
13787
13790
  message: err.message,
13788
- stack: err.stack
13791
+ stack: err.stack,
13792
+ vcVersion: package_namespaceObject.i8
13789
13793
  };
13790
13794
  await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
13791
13795
  } catch (exc) {
@@ -15096,9 +15100,6 @@ var __webpack_exports__ = {};
15096
15100
  }
15097
15101
  var is_power_of_two = __webpack_require__("./node_modules/is-power-of-two/index.js");
15098
15102
  var is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(is_power_of_two);
15099
- var package_namespaceObject = {
15100
- i8: "10.0.22"
15101
- };
15102
15103
  const NodeEnvType = {
15103
15104
  DEVELOPMENT: "development",
15104
15105
  PRODUCTION: "production"
@@ -16080,7 +16081,6 @@ var __webpack_exports__ = {};
16080
16081
  };
16081
16082
  }
16082
16083
  this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
16083
- if (!navigator.mediaDevices) throw new Error("No media devices are available.");
16084
16084
  this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
16085
16085
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
16086
16086
  genuineUserMediaRequest.then((localStream)=>{
@@ -16102,6 +16102,7 @@ var __webpack_exports__ = {};
16102
16102
  this.options.logger.debug(`Recorder: loadUserMedia(${params ? pretty(params) : ""})`);
16103
16103
  this.emit("LOADING_USER_MEDIA");
16104
16104
  try {
16105
+ if (!navigator.mediaDevices) throw new Error("No media devices are available.");
16105
16106
  this.userMediaTimeout = window.setTimeout(()=>{
16106
16107
  if (!this.isReady()) {
16107
16108
  const err = util_getBrowser(this.options).getNoAccessIssue();
@@ -16113,6 +16114,7 @@ var __webpack_exports__ = {};
16113
16114
  this.userMediaLoading = true;
16114
16115
  this.loadGenuineUserMedia(params);
16115
16116
  } catch (exc) {
16117
+ this.clearUserMediaTimeout();
16116
16118
  this.options.logger.debug("Recorder: failed to load genuine user media");
16117
16119
  this.userMediaLoading = false;
16118
16120
  const errorListeners = util_Despot.getListeners("ERROR");
package/dist/esm/index.js CHANGED
@@ -3963,6 +3963,9 @@ class Form extends Despot {
3963
3963
  }
3964
3964
  }
3965
3965
  const wrappers_form = Form;
3966
+ var package_namespaceObject = {
3967
+ i8: "10.0.23"
3968
+ };
3966
3969
  function findOriginalExc(exc) {
3967
3970
  if (exc instanceof Error && "response" in exc) {
3968
3971
  const response = exc.response;
@@ -4066,7 +4069,8 @@ class Resource {
4066
4069
  status: err.status,
4067
4070
  title: err.title,
4068
4071
  message: err.message,
4069
- stack: err.stack
4072
+ stack: err.stack,
4073
+ vcVersion: package_namespaceObject.i8
4070
4074
  };
4071
4075
  await (0, __WEBPACK_EXTERNAL_MODULE_superagent__["default"])(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
4072
4076
  } catch (exc) {
@@ -5188,9 +5192,6 @@ function isPromise(anything) {
5188
5192
  return anything && "undefined" != typeof Promise && anything instanceof Promise;
5189
5193
  }
5190
5194
  const util_isPromise = isPromise;
5191
- var package_namespaceObject = {
5192
- i8: "10.0.22"
5193
- };
5194
5195
  const NodeEnvType = {
5195
5196
  DEVELOPMENT: "development",
5196
5197
  PRODUCTION: "production"
@@ -6169,7 +6170,6 @@ class Recorder extends Despot {
6169
6170
  };
6170
6171
  }
6171
6172
  this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
6172
- if (!navigator.mediaDevices) throw new Error("No media devices are available.");
6173
6173
  this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
6174
6174
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
6175
6175
  genuineUserMediaRequest.then((localStream)=>{
@@ -6191,6 +6191,7 @@ class Recorder extends Despot {
6191
6191
  this.options.logger.debug(`Recorder: loadUserMedia(${params ? pretty(params) : ""})`);
6192
6192
  this.emit("LOADING_USER_MEDIA");
6193
6193
  try {
6194
+ if (!navigator.mediaDevices) throw new Error("No media devices are available.");
6194
6195
  this.userMediaTimeout = window.setTimeout(()=>{
6195
6196
  if (!this.isReady()) {
6196
6197
  const err = util_getBrowser(this.options).getNoAccessIssue();
@@ -6202,6 +6203,7 @@ class Recorder extends Despot {
6202
6203
  this.userMediaLoading = true;
6203
6204
  this.loadGenuineUserMedia(params);
6204
6205
  } catch (exc) {
6206
+ this.clearUserMediaTimeout();
6205
6207
  this.options.logger.debug("Recorder: failed to load genuine user media");
6206
6208
  this.userMediaLoading = false;
6207
6209
  const errorListeners = Despot.getListeners("ERROR");
@@ -29,4 +29,5 @@ export interface FullVideomailErrorData extends VideomailErrorData {
29
29
  orientation?: string | undefined;
30
30
  os?: IOS | undefined;
31
31
  screen: string;
32
+ vcVersion: string;
32
33
  }
package/dist/umd/index.js CHANGED
@@ -13646,6 +13646,9 @@
13646
13646
  }
13647
13647
  }
13648
13648
  const wrappers_form = Form;
13649
+ var package_namespaceObject = {
13650
+ i8: "10.0.23"
13651
+ };
13649
13652
  function findOriginalExc(exc) {
13650
13653
  if (exc instanceof Error && "response" in exc) {
13651
13654
  const response = exc.response;
@@ -13749,7 +13752,8 @@
13749
13752
  status: err.status,
13750
13753
  title: err.title,
13751
13754
  message: err.message,
13752
- stack: err.stack
13755
+ stack: err.stack,
13756
+ vcVersion: package_namespaceObject.i8
13753
13757
  };
13754
13758
  await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
13755
13759
  } catch (exc) {
@@ -14951,9 +14955,6 @@
14951
14955
  }
14952
14956
  var is_power_of_two = __webpack_require__("./node_modules/is-power-of-two/index.js");
14953
14957
  var is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(is_power_of_two);
14954
- var package_namespaceObject = {
14955
- i8: "10.0.22"
14956
- };
14957
14958
  function getNodeEnv() {
14958
14959
  return "production";
14959
14960
  }
@@ -15930,7 +15931,6 @@
15930
15931
  };
15931
15932
  }
15932
15933
  this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
15933
- if (!navigator.mediaDevices) throw new Error("No media devices are available.");
15934
15934
  this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
15935
15935
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
15936
15936
  genuineUserMediaRequest.then((localStream)=>{
@@ -15952,6 +15952,7 @@
15952
15952
  this.options.logger.debug(`Recorder: loadUserMedia(${params ? pretty(params) : ""})`);
15953
15953
  this.emit("LOADING_USER_MEDIA");
15954
15954
  try {
15955
+ if (!navigator.mediaDevices) throw new Error("No media devices are available.");
15955
15956
  this.userMediaTimeout = window.setTimeout(()=>{
15956
15957
  if (!this.isReady()) {
15957
15958
  const err = util_getBrowser(this.options).getNoAccessIssue();
@@ -15963,6 +15964,7 @@
15963
15964
  this.userMediaLoading = true;
15964
15965
  this.loadGenuineUserMedia(params);
15965
15966
  } catch (exc) {
15967
+ this.clearUserMediaTimeout();
15966
15968
  this.options.logger.debug("Recorder: failed to load genuine user media");
15967
15969
  this.userMediaLoading = false;
15968
15970
  const errorListeners = Despot.getListeners("ERROR");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.0.22",
3
+ "version": "10.0.23",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -75,9 +75,9 @@
75
75
  "@chromatic-com/storybook": "3.2.3",
76
76
  "@eslint/js": "9.17.0",
77
77
  "@rsbuild/plugin-node-polyfill": "1.2.0",
78
- "@rsbuild/plugin-stylus": "1.0.6",
78
+ "@rsbuild/plugin-stylus": "1.0.7",
79
79
  "@rsdoctor/rspack-plugin": "0.4.12",
80
- "@rslib/core": "0.1.5",
80
+ "@rslib/core": "0.2.2",
81
81
  "@storybook/addon-a11y": "8.4.7",
82
82
  "@storybook/addon-console": "3.0.0",
83
83
  "@storybook/addon-essentials": "8.4.7",
@@ -89,12 +89,12 @@
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.2",
92
+ "@types/node": "22.10.5",
93
93
  "@types/superagent": "8.1.9",
94
94
  "@types/ua-parser-js": "0.7.39",
95
- "@vitest/eslint-plugin": "1.1.20",
95
+ "@vitest/eslint-plugin": "1.1.24",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "11.20.2",
97
+ "chromatic": "11.22.0",
98
98
  "cross-env": "7.0.3",
99
99
  "eslint": "9.17.0",
100
100
  "eslint-import-resolver-typescript": "3.7.0",
@@ -103,7 +103,7 @@
103
103
  "eslint-plugin-promise": "7.2.1",
104
104
  "eslint-plugin-regexp": "2.7.0",
105
105
  "eslint-plugin-security": "3.0.1",
106
- "eslint-plugin-storybook": "0.11.1",
106
+ "eslint-plugin-storybook": "0.11.2",
107
107
  "globals": "15.14.0",
108
108
  "jsdom": "25.0.1",
109
109
  "msw": "2.7.0",
@@ -112,11 +112,11 @@
112
112
  "prettier-plugin-curly": "0.3.1",
113
113
  "prettier-plugin-packagejson": "2.5.6",
114
114
  "prettier-plugin-sh": "0.14.0",
115
- "release-it": "17.10.0",
115
+ "release-it": "17.11.0",
116
116
  "storybook": "8.4.7",
117
- "storybook-html-rsbuild": "0.1.6",
117
+ "storybook-html-rsbuild": "0.1.7",
118
118
  "typescript": "5.7.2",
119
- "typescript-eslint": "8.18.1",
119
+ "typescript-eslint": "8.19.0",
120
120
  "vitest": "2.1.8"
121
121
  },
122
122
  "engines": {