videomail-client 13.13.1 → 13.13.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.
@@ -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.1"
10879
+ rE: "13.13.2"
10880
10880
  };
10881
10881
  function isAudioEnabled(options) {
10882
10882
  return Boolean(options.audio.enabled);
@@ -16745,6 +16745,14 @@ var __webpack_exports__ = {};
16745
16745
  canvas_to_buffer_modern_r.atob = void 0;
16746
16746
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
16747
16747
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
16748
+ function getWebSocketDiagnostic() {
16749
+ const wsCtorName = globalThis.WebSocket.name;
16750
+ const wsCtorFingerprint = String(globalThis.WebSocket).slice(0, 80).replace(/\s+/gu, " ");
16751
+ const webdriverFlag = String(navigator.webdriver);
16752
+ const diagnostic = ` websocketDiagnostics{webdriver=${webdriverFlag}, wsCtor=${wsCtorName}, wsCtorFingerprint=${wsCtorFingerprint}}`;
16753
+ return diagnostic;
16754
+ }
16755
+ const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
16748
16756
  function figureMinHeight(height, options) {
16749
16757
  let minHeight;
16750
16758
  if (options.video.height) {
@@ -17446,14 +17454,14 @@ var __webpack_exports__ = {};
17446
17454
  }
17447
17455
  this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
17448
17456
  try {
17449
- this.stream = stream_default()(url2Connect, void 0, {
17450
- perMessageDeflate: false
17451
- });
17457
+ const nativeSocket = new WebSocket(url2Connect);
17458
+ this.stream = stream_default()(nativeSocket);
17452
17459
  } catch (exc) {
17453
17460
  this.connecting = this.connected = false;
17461
+ const diagnostic = error_getWebSocketDiagnostic();
17454
17462
  const err = error_createError({
17455
17463
  message: "Failed to connect to server",
17456
- explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.`,
17464
+ explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.${diagnostic}`,
17457
17465
  options: this.options,
17458
17466
  exc
17459
17467
  });
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.1"
3620
+ rE: "13.13.2"
3621
3621
  };
3622
3622
  function isAudioEnabled(options) {
3623
3623
  return Boolean(options.audio.enabled);
@@ -5905,6 +5905,14 @@ class Notifier extends util_Despot {
5905
5905
  }
5906
5906
  }
5907
5907
  const notifier = Notifier;
5908
+ function getWebSocketDiagnostic() {
5909
+ const wsCtorName = globalThis.WebSocket.name;
5910
+ const wsCtorFingerprint = String(globalThis.WebSocket).slice(0, 80).replace(/\s+/gu, " ");
5911
+ const webdriverFlag = String(navigator.webdriver);
5912
+ const diagnostic = ` websocketDiagnostics{webdriver=${webdriverFlag}, wsCtor=${wsCtorName}, wsCtorFingerprint=${wsCtorFingerprint}}`;
5913
+ return diagnostic;
5914
+ }
5915
+ const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
5908
5916
  function figureMinHeight(height, options) {
5909
5917
  let minHeight;
5910
5918
  if (options.video.height) {
@@ -6576,14 +6584,14 @@ class Recorder extends util_Despot {
6576
6584
  }
6577
6585
  this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
6578
6586
  try {
6579
- this.stream = websocket_stream(url2Connect, void 0, {
6580
- perMessageDeflate: false
6581
- });
6587
+ const nativeSocket = new WebSocket(url2Connect);
6588
+ this.stream = websocket_stream(nativeSocket);
6582
6589
  } catch (exc) {
6583
6590
  this.connecting = this.connected = false;
6591
+ const diagnostic = error_getWebSocketDiagnostic();
6584
6592
  const err = error_createError({
6585
6593
  message: "Failed to connect to server",
6586
- explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.`,
6594
+ explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.${diagnostic}`,
6587
6595
  options: this.options,
6588
6596
  exc
6589
6597
  });
@@ -0,0 +1,2 @@
1
+ declare function getWebSocketDiagnostic(): string;
2
+ export default getWebSocketDiagnostic;
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.1"
10885
+ rE: "13.13.2"
10886
10886
  };
10887
10887
  function isAudioEnabled(options) {
10888
10888
  return Boolean(options.audio.enabled);
@@ -16508,6 +16508,14 @@
16508
16508
  canvas_to_buffer_modern_r.atob = void 0;
16509
16509
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
16510
16510
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
16511
+ function getWebSocketDiagnostic() {
16512
+ const wsCtorName = globalThis.WebSocket.name;
16513
+ const wsCtorFingerprint = String(globalThis.WebSocket).slice(0, 80).replace(/\s+/gu, " ");
16514
+ const webdriverFlag = String(navigator.webdriver);
16515
+ const diagnostic = ` websocketDiagnostics{webdriver=${webdriverFlag}, wsCtor=${wsCtorName}, wsCtorFingerprint=${wsCtorFingerprint}}`;
16516
+ return diagnostic;
16517
+ }
16518
+ const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
16511
16519
  function figureMinHeight(height, options) {
16512
16520
  let minHeight;
16513
16521
  if (options.video.height) {
@@ -17210,14 +17218,14 @@
17210
17218
  }
17211
17219
  this.options.logger.debug(`Recorder: initializing web socket to ${url2Connect}`);
17212
17220
  try {
17213
- this.stream = stream_default()(url2Connect, void 0, {
17214
- perMessageDeflate: false
17215
- });
17221
+ const nativeSocket = new WebSocket(url2Connect);
17222
+ this.stream = stream_default()(nativeSocket);
17216
17223
  } catch (exc) {
17217
17224
  this.connecting = this.connected = false;
17225
+ const diagnostic = error_getWebSocketDiagnostic();
17218
17226
  const err = error_createError({
17219
17227
  message: "Failed to connect to server",
17220
- explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.`,
17228
+ explanation: `Unable to build websocket to ${url2Connect}. Please check your connection and try again. If the problem persists, contact us.${diagnostic}`,
17221
17229
  options: this.options,
17222
17230
  exc
17223
17231
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.13.1",
3
+ "version": "13.13.2",
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",
@@ -92,7 +92,7 @@
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.18",
95
+ "@vitest/eslint-plugin": "1.6.19",
96
96
  "audit-ci": "7.1.0",
97
97
  "chromatic": "17.1.0",
98
98
  "cross-env": "10.1.0",
@@ -116,7 +116,7 @@
116
116
  "release-it": "20.2.0",
117
117
  "storybook": "10.4.1",
118
118
  "storybook-html-rsbuild": "3.3.4",
119
- "type-fest": "5.6.0",
119
+ "type-fest": "5.7.0",
120
120
  "typescript": "6.0.3",
121
121
  "typescript-eslint": "8.60.0",
122
122
  "vitest": "4.1.7"