videomail-client 13.13.3 → 13.13.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.
@@ -10876,7 +10876,7 @@ var __webpack_exports__ = {};
10876
10876
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10877
10877
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10878
10878
  var package_namespaceObject = {
10879
- rE: "13.13.3"
10879
+ rE: "13.13.4"
10880
10880
  };
10881
10881
  function isAudioEnabled(options) {
10882
10882
  return Boolean(options.audio.enabled);
@@ -16767,7 +16767,7 @@ var __webpack_exports__ = {};
16767
16767
  const urlHasWhitespace = /\s/u.test(url2Connect);
16768
16768
  const urlHasControlChars = hasControlCharacters(url2Connect);
16769
16769
  const urlHasReplacementChar = url2Connect.includes("\uFFFD");
16770
- const diagnostic = ` websocketDiagnostics{webdriver=${String(navigator.webdriver)}, wsCtorNative=${String(wsCtorNative)}, urlLen=${url2Connect.length}, urlParsedProtocol=${urlParsedProtocol}, locationProtocol=${location.protocol}, secureContext=${String(globalThis.isSecureContext)}, online=${String(navigator.onLine)}, urlHasWhitespace=${String(urlHasWhitespace)}, urlHasControlChars=${String(urlHasControlChars)}, urlHasReplacementChar=${String(urlHasReplacementChar)}, urlFirstCodes=${getEdgeCodes(url2Connect, 4)}, urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}}`;
16770
+ const diagnostic = `websocketDiagnostics{webdriver=${String(navigator.webdriver)}, wsCtorNative=${String(wsCtorNative)}, urlLen=${url2Connect.length}, urlParsedProtocol=${urlParsedProtocol}, locationProtocol=${location.protocol}, secureContext=${String(globalThis.isSecureContext)}, online=${String(navigator.onLine)}, urlHasWhitespace=${String(urlHasWhitespace)}, urlHasControlChars=${String(urlHasControlChars)}, urlHasReplacementChar=${String(urlHasReplacementChar)}, urlFirstCodes=${getEdgeCodes(url2Connect, 4)}, urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}}`;
16771
16771
  return diagnostic;
16772
16772
  }
16773
16773
  const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
@@ -17470,16 +17470,31 @@ var __webpack_exports__ = {};
17470
17470
  });
17471
17471
  return;
17472
17472
  }
17473
- this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
17473
+ this.options.logger.debug(`Recorder: initializing web socket stream to ${url2Connect}`);
17474
+ let nativeSocket;
17474
17475
  try {
17475
- const nativeSocket = new WebSocket(url2Connect);
17476
- this.stream = stream_default()(nativeSocket);
17476
+ nativeSocket = new WebSocket(url2Connect);
17477
17477
  } catch (exc) {
17478
17478
  this.connecting = this.connected = false;
17479
17479
  const diagnostic = error_getWebSocketDiagnostic(url2Connect);
17480
17480
  const err = error_createError({
17481
- message: "Failed to connect to server",
17482
- explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.${diagnostic}`,
17481
+ message: `Failed to construct WebSocket to ${url2Connect}`,
17482
+ explanation: `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic}`,
17483
+ options: this.options,
17484
+ exc
17485
+ });
17486
+ this.emit("ERROR", {
17487
+ err
17488
+ });
17489
+ return;
17490
+ }
17491
+ try {
17492
+ this.stream = stream_default()(nativeSocket);
17493
+ } catch (exc) {
17494
+ this.connecting = this.connected = false;
17495
+ const err = error_createError({
17496
+ message: `Failed to create a stream to ${url2Connect}`,
17497
+ explanation: "Please check your connection and try again. If the problem persists, contact us.",
17483
17498
  options: this.options,
17484
17499
  exc
17485
17500
  });
package/dist/esm/index.js CHANGED
@@ -3617,7 +3617,7 @@ const constants = {
3617
3617
  }
3618
3618
  };
3619
3619
  var package_namespaceObject = {
3620
- rE: "13.13.3"
3620
+ rE: "13.13.4"
3621
3621
  };
3622
3622
  function isAudioEnabled(options) {
3623
3623
  return Boolean(options.audio.enabled);
@@ -5927,7 +5927,7 @@ function getWebSocketDiagnostic(url2Connect) {
5927
5927
  const urlHasWhitespace = /\s/u.test(url2Connect);
5928
5928
  const urlHasControlChars = hasControlCharacters(url2Connect);
5929
5929
  const urlHasReplacementChar = url2Connect.includes("\uFFFD");
5930
- const diagnostic = ` websocketDiagnostics{webdriver=${String(navigator.webdriver)}, wsCtorNative=${String(wsCtorNative)}, urlLen=${url2Connect.length}, urlParsedProtocol=${urlParsedProtocol}, locationProtocol=${location.protocol}, secureContext=${String(globalThis.isSecureContext)}, online=${String(navigator.onLine)}, urlHasWhitespace=${String(urlHasWhitespace)}, urlHasControlChars=${String(urlHasControlChars)}, urlHasReplacementChar=${String(urlHasReplacementChar)}, urlFirstCodes=${getEdgeCodes(url2Connect, 4)}, urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}}`;
5930
+ const diagnostic = `websocketDiagnostics{webdriver=${String(navigator.webdriver)}, wsCtorNative=${String(wsCtorNative)}, urlLen=${url2Connect.length}, urlParsedProtocol=${urlParsedProtocol}, locationProtocol=${location.protocol}, secureContext=${String(globalThis.isSecureContext)}, online=${String(navigator.onLine)}, urlHasWhitespace=${String(urlHasWhitespace)}, urlHasControlChars=${String(urlHasControlChars)}, urlHasReplacementChar=${String(urlHasReplacementChar)}, urlFirstCodes=${getEdgeCodes(url2Connect, 4)}, urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}}`;
5931
5931
  return diagnostic;
5932
5932
  }
5933
5933
  const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
@@ -6600,16 +6600,31 @@ class Recorder extends util_Despot {
6600
6600
  });
6601
6601
  return;
6602
6602
  }
6603
- this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
6603
+ this.options.logger.debug(`Recorder: initializing web socket stream to ${url2Connect}`);
6604
+ let nativeSocket;
6604
6605
  try {
6605
- const nativeSocket = new WebSocket(url2Connect);
6606
- this.stream = websocket_stream(nativeSocket);
6606
+ nativeSocket = new WebSocket(url2Connect);
6607
6607
  } catch (exc) {
6608
6608
  this.connecting = this.connected = false;
6609
6609
  const diagnostic = error_getWebSocketDiagnostic(url2Connect);
6610
6610
  const err = error_createError({
6611
- message: "Failed to connect to server",
6612
- explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.${diagnostic}`,
6611
+ message: `Failed to construct WebSocket to ${url2Connect}`,
6612
+ explanation: `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic}`,
6613
+ options: this.options,
6614
+ exc
6615
+ });
6616
+ this.emit("ERROR", {
6617
+ err
6618
+ });
6619
+ return;
6620
+ }
6621
+ try {
6622
+ this.stream = websocket_stream(nativeSocket);
6623
+ } catch (exc) {
6624
+ this.connecting = this.connected = false;
6625
+ const err = error_createError({
6626
+ message: `Failed to create a stream to ${url2Connect}`,
6627
+ explanation: "Please check your connection and try again. If the problem persists, contact us.",
6613
6628
  options: this.options,
6614
6629
  exc
6615
6630
  });
package/dist/umd/index.js CHANGED
@@ -10882,7 +10882,7 @@
10882
10882
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10883
10883
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10884
10884
  var package_namespaceObject = {
10885
- rE: "13.13.3"
10885
+ rE: "13.13.4"
10886
10886
  };
10887
10887
  function isAudioEnabled(options) {
10888
10888
  return Boolean(options.audio.enabled);
@@ -16530,7 +16530,7 @@
16530
16530
  const urlHasWhitespace = /\s/u.test(url2Connect);
16531
16531
  const urlHasControlChars = hasControlCharacters(url2Connect);
16532
16532
  const urlHasReplacementChar = url2Connect.includes("\uFFFD");
16533
- const diagnostic = ` websocketDiagnostics{webdriver=${String(navigator.webdriver)}, wsCtorNative=${String(wsCtorNative)}, urlLen=${url2Connect.length}, urlParsedProtocol=${urlParsedProtocol}, locationProtocol=${location.protocol}, secureContext=${String(globalThis.isSecureContext)}, online=${String(navigator.onLine)}, urlHasWhitespace=${String(urlHasWhitespace)}, urlHasControlChars=${String(urlHasControlChars)}, urlHasReplacementChar=${String(urlHasReplacementChar)}, urlFirstCodes=${getEdgeCodes(url2Connect, 4)}, urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}}`;
16533
+ const diagnostic = `websocketDiagnostics{webdriver=${String(navigator.webdriver)}, wsCtorNative=${String(wsCtorNative)}, urlLen=${url2Connect.length}, urlParsedProtocol=${urlParsedProtocol}, locationProtocol=${location.protocol}, secureContext=${String(globalThis.isSecureContext)}, online=${String(navigator.onLine)}, urlHasWhitespace=${String(urlHasWhitespace)}, urlHasControlChars=${String(urlHasControlChars)}, urlHasReplacementChar=${String(urlHasReplacementChar)}, urlFirstCodes=${getEdgeCodes(url2Connect, 4)}, urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}}`;
16534
16534
  return diagnostic;
16535
16535
  }
16536
16536
  const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
@@ -17234,16 +17234,31 @@
17234
17234
  });
17235
17235
  return;
17236
17236
  }
17237
- this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
17237
+ this.options.logger.debug(`Recorder: initializing web socket stream to ${url2Connect}`);
17238
+ let nativeSocket;
17238
17239
  try {
17239
- const nativeSocket = new WebSocket(url2Connect);
17240
- this.stream = stream_default()(nativeSocket);
17240
+ nativeSocket = new WebSocket(url2Connect);
17241
17241
  } catch (exc) {
17242
17242
  this.connecting = this.connected = false;
17243
17243
  const diagnostic = error_getWebSocketDiagnostic(url2Connect);
17244
17244
  const err = error_createError({
17245
- message: "Failed to connect to server",
17246
- explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.${diagnostic}`,
17245
+ message: `Failed to construct WebSocket to ${url2Connect}`,
17246
+ explanation: `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic}`,
17247
+ options: this.options,
17248
+ exc
17249
+ });
17250
+ this.emit("ERROR", {
17251
+ err
17252
+ });
17253
+ return;
17254
+ }
17255
+ try {
17256
+ this.stream = stream_default()(nativeSocket);
17257
+ } catch (exc) {
17258
+ this.connecting = this.connected = false;
17259
+ const err = error_createError({
17260
+ message: `Failed to create a stream to ${url2Connect}`,
17261
+ explanation: "Please check your connection and try again. If the problem persists, contact us.",
17247
17262
  options: this.options,
17248
17263
  exc
17249
17264
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.13.3",
3
+ "version": "13.13.4",
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,23 +80,23 @@
80
80
  "@eslint/js": "10.0.1",
81
81
  "@rsbuild/plugin-node-polyfill": "1.4.6",
82
82
  "@rsbuild/plugin-stylus": "2.0.1",
83
- "@rsdoctor/rspack-plugin": "1.5.12",
84
- "@rslib/core": "0.22.0",
85
- "@storybook/addon-a11y": "10.4.2",
86
- "@storybook/addon-docs": "10.4.2",
87
- "@storybook/addon-links": "10.4.2",
88
- "@storybook/html": "10.4.2",
83
+ "@rsdoctor/rspack-plugin": "1.5.13",
84
+ "@rslib/core": "0.22.1",
85
+ "@storybook/addon-a11y": "10.4.5",
86
+ "@storybook/addon-docs": "10.4.5",
87
+ "@storybook/addon-links": "10.4.5",
88
+ "@storybook/html": "10.4.5",
89
89
  "@tsconfig/node24": "24.0.4",
90
90
  "@tsconfig/strictest": "2.0.8",
91
91
  "@types/defined": "1.0.2",
92
92
  "@types/node": "24.12.3",
93
93
  "@types/superagent": "8.1.10",
94
94
  "@types/ua-parser-js": "0.7.39",
95
- "@vitest/eslint-plugin": "1.6.19",
95
+ "@vitest/eslint-plugin": "1.6.20",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "17.2.0",
97
+ "chromatic": "17.4.1",
98
98
  "cross-env": "10.1.0",
99
- "eslint": "10.4.1",
99
+ "eslint": "10.5.0",
100
100
  "eslint-import-resolver-typescript": "4.4.5",
101
101
  "eslint-plugin-de-morgan": "2.1.2",
102
102
  "eslint-plugin-depend": "1.5.0",
@@ -108,18 +108,18 @@
108
108
  "jsdom": "29.1.1",
109
109
  "msw": "2.14.6",
110
110
  "msw-storybook-addon": "2.0.7",
111
- "prettier": "3.8.3",
111
+ "prettier": "3.8.4",
112
112
  "prettier-plugin-curly": "0.4.1",
113
113
  "prettier-plugin-jsdoc": "1.8.1",
114
114
  "prettier-plugin-packagejson": "3.0.2",
115
115
  "prettier-plugin-sh": "0.18.1",
116
116
  "release-it": "20.2.0",
117
- "storybook": "10.4.2",
117
+ "storybook": "10.4.5",
118
118
  "storybook-html-rsbuild": "3.3.4",
119
119
  "type-fest": "5.7.0",
120
120
  "typescript": "6.0.3",
121
- "typescript-eslint": "8.60.1",
122
- "vitest": "4.1.8"
121
+ "typescript-eslint": "8.61.1",
122
+ "vitest": "4.1.9"
123
123
  },
124
124
  "engines": {
125
125
  "node": "^24.15.0",