videomail-client 13.12.3 → 13.12.5

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.
@@ -10852,7 +10852,7 @@ var __webpack_exports__ = {};
10852
10852
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10853
10853
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10854
10854
  var package_namespaceObject = {
10855
- rE: "13.12.3"
10855
+ rE: "13.12.5"
10856
10856
  };
10857
10857
  function isAudioEnabled(options) {
10858
10858
  return Boolean(options.audio.enabled);
@@ -14278,8 +14278,10 @@ var __webpack_exports__ = {};
14278
14278
  if (err && "constraint" in err) {
14279
14279
  const overconstrainedError = err;
14280
14280
  const constraint = overconstrainedError.constraint;
14281
- explanation = "width" === constraint ? "Your webcam does not meet the width requirement." : constraint ? `Unmet constraint: ${constraint}` : err.message;
14282
- } else explanation = null == err ? void 0 : err.message;
14281
+ if ("width" === constraint) explanation = "Your webcam does not meet the width requirement.";
14282
+ else if (constraint) explanation = `Unmet constraint: ${constraint}`;
14283
+ else if (err.message) explanation = err.message;
14284
+ } else if (null == err ? void 0 : err.message) explanation = err.message;
14283
14285
  break;
14284
14286
  case "MediaDeviceFailedDueToShutdown":
14285
14287
  message = "Webcam is shutting down";
@@ -14345,11 +14347,11 @@ var __webpack_exports__ = {};
14345
14347
  break;
14346
14348
  case error_VideomailError.DOM_EXCEPTION:
14347
14349
  message = "DOM Exception";
14348
- explanation = util_pretty(err);
14350
+ if (err) explanation = util_pretty(err);
14349
14351
  break;
14350
14352
  case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
14351
14353
  message = "Media device not supported";
14352
- explanation = util_pretty(err);
14354
+ if (err) explanation = util_pretty(err);
14353
14355
  break;
14354
14356
  default:
14355
14357
  {
@@ -14358,11 +14360,7 @@ var __webpack_exports__ = {};
14358
14360
  if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
14359
14361
  if (!explanation && (null == err ? void 0 : err.explanation)) explanation = err.explanation;
14360
14362
  if (!message && (null == err ? void 0 : err.message)) message = err.message;
14361
- if (!message) {
14362
- if (errName) message = `${errName} (weird)`;
14363
- if (!explanation) explanation = util_pretty(err);
14364
- if (util_pretty(message) === explanation) explanation = void 0;
14365
- }
14363
+ if (!message && errName) message = `${errName} (weird)`;
14366
14364
  break;
14367
14365
  }
14368
14366
  }
@@ -14374,7 +14372,7 @@ var __webpack_exports__ = {};
14374
14372
  ].filter(Boolean).join(", ");
14375
14373
  options.logger.debug(`VideomailError: create(${args})`);
14376
14374
  const errData = {
14377
- explanation,
14375
+ explanation: null != explanation ? explanation : "(undefined explanation)",
14378
14376
  logLines,
14379
14377
  err
14380
14378
  };
package/dist/esm/index.js CHANGED
@@ -3613,7 +3613,7 @@ const constants = {
3613
3613
  }
3614
3614
  };
3615
3615
  var package_namespaceObject = {
3616
- rE: "13.12.3"
3616
+ rE: "13.12.5"
3617
3617
  };
3618
3618
  function isAudioEnabled(options) {
3619
3619
  return Boolean(options.audio.enabled);
@@ -3842,8 +3842,10 @@ function createError(errorParams) {
3842
3842
  if (err && "constraint" in err) {
3843
3843
  const overconstrainedError = err;
3844
3844
  const constraint = overconstrainedError.constraint;
3845
- explanation = "width" === constraint ? "Your webcam does not meet the width requirement." : constraint ? `Unmet constraint: ${constraint}` : err.message;
3846
- } else explanation = err?.message;
3845
+ if ("width" === constraint) explanation = "Your webcam does not meet the width requirement.";
3846
+ else if (constraint) explanation = `Unmet constraint: ${constraint}`;
3847
+ else if (err.message) explanation = err.message;
3848
+ } else if (err?.message) explanation = err.message;
3847
3849
  break;
3848
3850
  case "MediaDeviceFailedDueToShutdown":
3849
3851
  message = "Webcam is shutting down";
@@ -3909,11 +3911,11 @@ function createError(errorParams) {
3909
3911
  break;
3910
3912
  case error_VideomailError.DOM_EXCEPTION:
3911
3913
  message = "DOM Exception";
3912
- explanation = util_pretty(err);
3914
+ if (err) explanation = util_pretty(err);
3913
3915
  break;
3914
3916
  case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
3915
3917
  message = "Media device not supported";
3916
- explanation = util_pretty(err);
3918
+ if (err) explanation = util_pretty(err);
3917
3919
  break;
3918
3920
  default:
3919
3921
  {
@@ -3922,11 +3924,7 @@ function createError(errorParams) {
3922
3924
  if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
3923
3925
  if (!explanation && err?.explanation) explanation = err.explanation;
3924
3926
  if (!message && err?.message) message = err.message;
3925
- if (!message) {
3926
- if (errName) message = `${errName} (weird)`;
3927
- if (!explanation) explanation = util_pretty(err);
3928
- if (util_pretty(message) === explanation) explanation = void 0;
3929
- }
3927
+ if (!message && errName) message = `${errName} (weird)`;
3930
3928
  break;
3931
3929
  }
3932
3930
  }
@@ -3938,7 +3936,7 @@ function createError(errorParams) {
3938
3936
  ].filter(Boolean).join(", ");
3939
3937
  options.logger.debug(`VideomailError: create(${args})`);
3940
3938
  const errData = {
3941
- explanation,
3939
+ explanation: explanation ?? "(undefined explanation)",
3942
3940
  logLines,
3943
3941
  err
3944
3942
  };
package/dist/umd/index.js CHANGED
@@ -10858,7 +10858,7 @@
10858
10858
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10859
10859
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10860
10860
  var package_namespaceObject = {
10861
- rE: "13.12.3"
10861
+ rE: "13.12.5"
10862
10862
  };
10863
10863
  function isAudioEnabled(options) {
10864
10864
  return Boolean(options.audio.enabled);
@@ -14267,8 +14267,10 @@
14267
14267
  if (err && "constraint" in err) {
14268
14268
  const overconstrainedError = err;
14269
14269
  const constraint = overconstrainedError.constraint;
14270
- explanation = "width" === constraint ? "Your webcam does not meet the width requirement." : constraint ? `Unmet constraint: ${constraint}` : err.message;
14271
- } else explanation = err?.message;
14270
+ if ("width" === constraint) explanation = "Your webcam does not meet the width requirement.";
14271
+ else if (constraint) explanation = `Unmet constraint: ${constraint}`;
14272
+ else if (err.message) explanation = err.message;
14273
+ } else if (err?.message) explanation = err.message;
14272
14274
  break;
14273
14275
  case "MediaDeviceFailedDueToShutdown":
14274
14276
  message = "Webcam is shutting down";
@@ -14334,11 +14336,11 @@
14334
14336
  break;
14335
14337
  case error_VideomailError.DOM_EXCEPTION:
14336
14338
  message = "DOM Exception";
14337
- explanation = util_pretty(err);
14339
+ if (err) explanation = util_pretty(err);
14338
14340
  break;
14339
14341
  case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
14340
14342
  message = "Media device not supported";
14341
- explanation = util_pretty(err);
14343
+ if (err) explanation = util_pretty(err);
14342
14344
  break;
14343
14345
  default:
14344
14346
  {
@@ -14347,11 +14349,7 @@
14347
14349
  if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
14348
14350
  if (!explanation && err?.explanation) explanation = err.explanation;
14349
14351
  if (!message && err?.message) message = err.message;
14350
- if (!message) {
14351
- if (errName) message = `${errName} (weird)`;
14352
- if (!explanation) explanation = util_pretty(err);
14353
- if (util_pretty(message) === explanation) explanation = void 0;
14354
- }
14352
+ if (!message && errName) message = `${errName} (weird)`;
14355
14353
  break;
14356
14354
  }
14357
14355
  }
@@ -14363,7 +14361,7 @@
14363
14361
  ].filter(Boolean).join(", ");
14364
14362
  options.logger.debug(`VideomailError: create(${args})`);
14365
14363
  const errData = {
14366
- explanation,
14364
+ explanation: explanation ?? "(undefined explanation)",
14367
14365
  logLines,
14368
14366
  err
14369
14367
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.12.3",
3
+ "version": "13.12.5",
4
4
  "description": "A wicked npm package to record videos directly in the browser, for Deaf and Sign Language!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -80,7 +80,7 @@
80
80
  "@eslint/js": "10.0.1",
81
81
  "@rsbuild/plugin-node-polyfill": "1.4.4",
82
82
  "@rsbuild/plugin-stylus": "1.3.2",
83
- "@rsdoctor/rspack-plugin": "1.5.9",
83
+ "@rsdoctor/rspack-plugin": "1.5.10",
84
84
  "@rslib/core": "0.21.4",
85
85
  "@storybook/addon-a11y": "10.3.6",
86
86
  "@storybook/addon-docs": "10.3.6",
@@ -92,9 +92,9 @@
92
92
  "@types/node": "24.12.2",
93
93
  "@types/superagent": "8.1.9",
94
94
  "@types/ua-parser-js": "0.7.39",
95
- "@vitest/eslint-plugin": "1.6.16",
95
+ "@vitest/eslint-plugin": "1.6.17",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "16.9.0",
97
+ "chromatic": "16.9.1",
98
98
  "cross-env": "10.1.0",
99
99
  "eslint": "10.3.0",
100
100
  "eslint-import-resolver-typescript": "4.4.4",
@@ -106,7 +106,7 @@
106
106
  "eslint-plugin-simple-import-sort": "13.0.0",
107
107
  "globals": "17.6.0",
108
108
  "jsdom": "29.1.1",
109
- "msw": "2.14.3",
109
+ "msw": "2.14.5",
110
110
  "msw-storybook-addon": "2.0.7",
111
111
  "prettier": "3.8.3",
112
112
  "prettier-plugin-curly": "0.4.1",