videomail-client 13.13.5 → 13.14.1

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__(5734);
10877
10877
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10878
10878
  var package_namespaceObject = {
10879
- rE: "13.13.5"
10879
+ rE: "13.14.1"
10880
10880
  };
10881
10881
  function isAudioEnabled(options) {
10882
10882
  return Boolean(options.audio.enabled);
@@ -16818,8 +16818,10 @@ var __webpack_exports__ = {};
16818
16818
  `urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}`,
16819
16819
  "ipAsnCheck=server_side_only"
16820
16820
  ];
16821
- const diagnostic = `websocketDiagnostics(v3): ${diagnosticPairs.join("; ")}`;
16822
- return diagnostic;
16821
+ return {
16822
+ text: `websocketDiagnostics(v3): ${diagnosticPairs.join("; ")}`,
16823
+ looksAutomated: automationSignals.looksAutomated
16824
+ };
16823
16825
  }
16824
16826
  const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
16825
16827
  function figureMinHeight(height, options) {
@@ -17528,9 +17530,11 @@ var __webpack_exports__ = {};
17528
17530
  } catch (exc) {
17529
17531
  this.connecting = this.connected = false;
17530
17532
  const diagnostic = error_getWebSocketDiagnostic(url2Connect);
17533
+ const message = diagnostic.looksAutomated ? "Automated crawler: WebSocket not supported in this environment" : `Failed to construct WebSocket to ${url2Connect}`;
17534
+ const explanation = diagnostic.looksAutomated ? "Headless crawlers cannot use Videomail's WebSocket. No action needed." : `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic.text}`;
17531
17535
  const err = error_createError({
17532
- message: `Failed to construct WebSocket to ${url2Connect}`,
17533
- explanation: `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic}`,
17536
+ message,
17537
+ explanation,
17534
17538
  options: this.options,
17535
17539
  exc
17536
17540
  });
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.5"
3620
+ rE: "13.14.1"
3621
3621
  };
3622
3622
  function isAudioEnabled(options) {
3623
3623
  return Boolean(options.audio.enabled);
@@ -5978,8 +5978,10 @@ function getWebSocketDiagnostic(url2Connect) {
5978
5978
  `urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}`,
5979
5979
  "ipAsnCheck=server_side_only"
5980
5980
  ];
5981
- const diagnostic = `websocketDiagnostics(v3): ${diagnosticPairs.join("; ")}`;
5982
- return diagnostic;
5981
+ return {
5982
+ text: `websocketDiagnostics(v3): ${diagnosticPairs.join("; ")}`,
5983
+ looksAutomated: automationSignals.looksAutomated
5984
+ };
5983
5985
  }
5984
5986
  const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
5985
5987
  function figureMinHeight(height, options) {
@@ -6658,9 +6660,11 @@ class Recorder extends util_Despot {
6658
6660
  } catch (exc) {
6659
6661
  this.connecting = this.connected = false;
6660
6662
  const diagnostic = error_getWebSocketDiagnostic(url2Connect);
6663
+ const message = diagnostic.looksAutomated ? "Automated crawler: WebSocket not supported in this environment" : `Failed to construct WebSocket to ${url2Connect}`;
6664
+ const explanation = diagnostic.looksAutomated ? "Headless crawlers cannot use Videomail's WebSocket. No action needed." : `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic.text}`;
6661
6665
  const err = error_createError({
6662
- message: `Failed to construct WebSocket to ${url2Connect}`,
6663
- explanation: `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic}`,
6666
+ message,
6667
+ explanation,
6664
6668
  options: this.options,
6665
6669
  exc
6666
6670
  });
@@ -31,6 +31,7 @@ export interface Videomail {
31
31
  dateCreatedServerPretty: string;
32
32
  dateUpdated?: number;
33
33
  dateUpdatedServerPretty?: string;
34
+ expired?: boolean;
34
35
  expiresAfter: number;
35
36
  expiresAfterIso: string;
36
37
  expiresAfterServerPretty: string;
@@ -1,2 +1,6 @@
1
- declare function getWebSocketDiagnostic(url2Connect: string): string;
1
+ export interface WebSocketDiagnosticResult {
2
+ text: string;
3
+ looksAutomated: boolean;
4
+ }
5
+ declare function getWebSocketDiagnostic(url2Connect: string): WebSocketDiagnosticResult;
2
6
  export default getWebSocketDiagnostic;
@@ -67,6 +67,7 @@ declare class Form extends Despot {
67
67
  dateCreatedServerPretty?: string;
68
68
  dateUpdated?: number;
69
69
  dateUpdatedServerPretty?: string;
70
+ expired?: boolean;
70
71
  expiresAfter?: number;
71
72
  expiresAfterIso?: string;
72
73
  expiresAfterServerPretty?: string;
@@ -251,6 +252,7 @@ declare class Form extends Despot {
251
252
  dateCreatedServerPretty?: string;
252
253
  dateUpdated?: number;
253
254
  dateUpdatedServerPretty?: string;
255
+ expired?: boolean;
254
256
  expiresAfter?: number;
255
257
  expiresAfterIso?: string;
256
258
  expiresAfterServerPretty?: string;
package/dist/umd/index.js CHANGED
@@ -10882,7 +10882,7 @@
10882
10882
  var client = __webpack_require__(5734);
10883
10883
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10884
10884
  var package_namespaceObject = {
10885
- rE: "13.13.5"
10885
+ rE: "13.14.1"
10886
10886
  };
10887
10887
  function isAudioEnabled(options) {
10888
10888
  return Boolean(options.audio.enabled);
@@ -16581,8 +16581,10 @@
16581
16581
  `urlLastCodes=${getEdgeCodes(url2Connect, 4, true)}`,
16582
16582
  "ipAsnCheck=server_side_only"
16583
16583
  ];
16584
- const diagnostic = `websocketDiagnostics(v3): ${diagnosticPairs.join("; ")}`;
16585
- return diagnostic;
16584
+ return {
16585
+ text: `websocketDiagnostics(v3): ${diagnosticPairs.join("; ")}`,
16586
+ looksAutomated: automationSignals.looksAutomated
16587
+ };
16586
16588
  }
16587
16589
  const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
16588
16590
  function figureMinHeight(height, options) {
@@ -17292,9 +17294,11 @@
17292
17294
  } catch (exc) {
17293
17295
  this.connecting = this.connected = false;
17294
17296
  const diagnostic = error_getWebSocketDiagnostic(url2Connect);
17297
+ const message = diagnostic.looksAutomated ? "Automated crawler: WebSocket not supported in this environment" : `Failed to construct WebSocket to ${url2Connect}`;
17298
+ const explanation = diagnostic.looksAutomated ? "Headless crawlers cannot use Videomail's WebSocket. No action needed." : `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic.text}`;
17295
17299
  const err = error_createError({
17296
- message: `Failed to construct WebSocket to ${url2Connect}`,
17297
- explanation: `Please check your connection and try again. If the problem persists, contact us. Diagnostic: ${diagnostic}`,
17300
+ message,
17301
+ explanation,
17298
17302
  options: this.options,
17299
17303
  exc
17300
17304
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.13.5",
3
+ "version": "13.14.1",
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.6",
82
82
  "@rsbuild/plugin-stylus": "2.0.1",
83
- "@rsdoctor/rspack-plugin": "1.5.14",
83
+ "@rsdoctor/rspack-plugin": "1.5.16",
84
84
  "@rslib/core": "0.23.0",
85
85
  "@storybook/addon-a11y": "10.4.6",
86
86
  "@storybook/addon-docs": "10.4.6",
@@ -100,11 +100,11 @@
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",
103
- "eslint-plugin-import-x": "4.16.2",
104
- "eslint-plugin-package-json": "1.4.0",
103
+ "eslint-plugin-import-x": "4.17.0",
104
+ "eslint-plugin-package-json": "1.5.0",
105
105
  "eslint-plugin-regexp": "3.1.0",
106
106
  "eslint-plugin-simple-import-sort": "13.0.0",
107
- "globals": "17.6.0",
107
+ "globals": "17.7.0",
108
108
  "jsdom": "29.1.1",
109
109
  "msw": "2.14.6",
110
110
  "msw-storybook-addon": "2.0.7",
@@ -118,7 +118,7 @@
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.61.1",
121
+ "typescript-eslint": "8.62.0",
122
122
  "vitest": "4.1.9"
123
123
  },
124
124
  "engines": {