videomail-client 15.7.9 → 15.7.11

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.
@@ -10970,7 +10970,7 @@ var __webpack_exports__ = {};
10970
10970
  var client = __webpack_require__("Q");
10971
10971
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10972
10972
  var package_namespaceObject = {
10973
- rE: "15.7.9"
10973
+ rE: "15.7.11"
10974
10974
  };
10975
10975
  function isAudioEnabled(options) {
10976
10976
  return Boolean(options.audio.enabled);
@@ -15218,6 +15218,7 @@ var __webpack_exports__ = {};
15218
15218
  }
15219
15219
  reportError(err) {
15220
15220
  return resource_async_to_generator(function*() {
15221
+ var _this_options_versions;
15221
15222
  const queryParams = {
15222
15223
  [constants.WHITELIST_KEY_LABEL]: this.options.whitelistKey
15223
15224
  };
@@ -15234,6 +15235,10 @@ var __webpack_exports__ = {};
15234
15235
  enumerateDevices = void 0;
15235
15236
  }
15236
15237
  const fullVideomailErrorData = {
15238
+ versions: {
15239
+ videomailClient: package_namespaceObject.rE,
15240
+ videomailNinjaFormPlugin: null == (_this_options_versions = this.options.versions) ? void 0 : _this_options_versions.videomailNinjaFormPlugin
15241
+ },
15237
15242
  browser: err.browser,
15238
15243
  code: err.code,
15239
15244
  cookie: err.cookie,
@@ -17605,8 +17610,8 @@ var __webpack_exports__ = {};
17605
17610
  let explanation;
17606
17611
  if (online) if ("timeout" === cause) explanation = `The server at ${url2Connect} did not respond within ${this.options.timeouts.connection}ms, even though your device is online. This usually points to a firewall or proxy silently dropping the connection. Please try a different network. If the problem persists, contact us.`;
17607
17612
  else {
17608
- const closeSuffix = closeEvent ? ` (close code ${closeEvent.code})` : "";
17609
- explanation = `The connection to ${url2Connect} was refused or could not be reached${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
17613
+ const closeSuffix = closeEvent ? ` (code ${closeEvent.code})` : "";
17614
+ explanation = `Connection to ${url2Connect} is closed${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
17610
17615
  }
17611
17616
  else explanation = "Your device appears to be offline. Please check your internet connection and try again.";
17612
17617
  if (this.stream) {
@@ -17771,7 +17776,7 @@ var __webpack_exports__ = {};
17771
17776
  });
17772
17777
  }, connectionTimeoutMs);
17773
17778
  this.stream.on("close", ()=>{
17774
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed`);
17779
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
17775
17780
  const neverConnected = this.connecting && !this.connected;
17776
17781
  this.clearConnectionTimeout();
17777
17782
  this.connecting = this.connected = false;
@@ -17783,9 +17788,9 @@ var __webpack_exports__ = {};
17783
17788
  }, 0);
17784
17789
  else if (this.userMediaLoaded) this.initSocket();
17785
17790
  });
17786
- this.stream.on("connect", ()=>{
17791
+ this.stream.on("connect", (args)=>{
17787
17792
  var _this_stream;
17788
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted`);
17793
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
17789
17794
  this.clearConnectionTimeout();
17790
17795
  const isClosing = (null == (_this_stream = this.stream) ? void 0 : _this_stream.socket.readyState) === WebSocket.CLOSING;
17791
17796
  if (!this.connected && !isClosing && !this.unloaded) {
@@ -17819,35 +17824,35 @@ var __webpack_exports__ = {};
17819
17824
  this.stream.on("drain", ()=>{
17820
17825
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted (should not happen!)`);
17821
17826
  });
17822
- this.stream.on("preend", ()=>{
17823
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17827
+ this.stream.on("preend", (args)=>{
17828
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted with args: ${util_pretty(args)}`);
17824
17829
  });
17825
17830
  this.stream.on("end", ()=>{
17826
17831
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *end* event emitted`);
17827
17832
  });
17828
- this.stream.on("drain", ()=>{
17829
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted`);
17833
+ this.stream.on("drain", (args)=>{
17834
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted with args: ${util_pretty(args)}`);
17830
17835
  });
17831
- this.stream.on("pipe", ()=>{
17832
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *pipe* event emitted`);
17836
+ this.stream.on("pipe", (src)=>{
17837
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *pipe* event emitted with src: ${util_pretty(src)}`);
17833
17838
  });
17834
- this.stream.on("unpipe", ()=>{
17835
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *unpipe* event emitted`);
17839
+ this.stream.on("unpipe", (src)=>{
17840
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *unpipe* event emitted with src: ${util_pretty(src)}`);
17836
17841
  });
17837
- this.stream.on("resume", ()=>{
17838
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *resume* event emitted`);
17842
+ this.stream.on("resume", (args)=>{
17843
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *resume* event emitted with args: ${util_pretty(args)}`);
17839
17844
  });
17840
- this.stream.on("uncork", ()=>{
17841
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *uncork* event emitted`);
17845
+ this.stream.on("uncork", (args)=>{
17846
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *uncork* event emitted with args: ${util_pretty(args)}`);
17842
17847
  });
17843
- this.stream.on("readable", ()=>{
17844
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17848
+ this.stream.on("readable", (args)=>{
17849
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *readable* event emitted with args: ${util_pretty(args)}`);
17845
17850
  });
17846
- this.stream.on("prefinish", ()=>{
17847
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17851
+ this.stream.on("prefinish", (args)=>{
17852
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *prefinish* event emitted with args: ${util_pretty(args)}`);
17848
17853
  });
17849
- this.stream.on("finish", ()=>{
17850
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17854
+ this.stream.on("finish", (args)=>{
17855
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *finish* event emitted with args: ${util_pretty(args)}`);
17851
17856
  });
17852
17857
  }
17853
17858
  }
package/dist/esm/index.js CHANGED
@@ -3619,7 +3619,7 @@ const constants = {
3619
3619
  }
3620
3620
  };
3621
3621
  var package_namespaceObject = {
3622
- rE: "15.7.9"
3622
+ rE: "15.7.11"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -4424,6 +4424,10 @@ class Resource {
4424
4424
  enumerateDevices = void 0;
4425
4425
  }
4426
4426
  const fullVideomailErrorData = {
4427
+ versions: {
4428
+ videomailClient: package_namespaceObject.rE,
4429
+ videomailNinjaFormPlugin: this.options.versions?.videomailNinjaFormPlugin
4430
+ },
4427
4431
  browser: err.browser,
4428
4432
  code: err.code,
4429
4433
  cookie: err.cookie,
@@ -6628,8 +6632,8 @@ class Recorder extends util_Despot {
6628
6632
  let explanation;
6629
6633
  if (online) if ("timeout" === cause) explanation = `The server at ${url2Connect} did not respond within ${this.options.timeouts.connection}ms, even though your device is online. This usually points to a firewall or proxy silently dropping the connection. Please try a different network. If the problem persists, contact us.`;
6630
6634
  else {
6631
- const closeSuffix = closeEvent ? ` (close code ${closeEvent.code})` : "";
6632
- explanation = `The connection to ${url2Connect} was refused or could not be reached${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
6635
+ const closeSuffix = closeEvent ? ` (code ${closeEvent.code})` : "";
6636
+ explanation = `Connection to ${url2Connect} is closed${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
6633
6637
  }
6634
6638
  else explanation = "Your device appears to be offline. Please check your internet connection and try again.";
6635
6639
  if (this.stream) {
@@ -6793,7 +6797,7 @@ class Recorder extends util_Despot {
6793
6797
  });
6794
6798
  }, connectionTimeoutMs);
6795
6799
  this.stream.on("close", ()=>{
6796
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed`);
6800
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
6797
6801
  const neverConnected = this.connecting && !this.connected;
6798
6802
  this.clearConnectionTimeout();
6799
6803
  this.connecting = this.connected = false;
@@ -6805,8 +6809,8 @@ class Recorder extends util_Despot {
6805
6809
  }, 0);
6806
6810
  else if (this.userMediaLoaded) this.initSocket();
6807
6811
  });
6808
- this.stream.on("connect", ()=>{
6809
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted`);
6812
+ this.stream.on("connect", (args)=>{
6813
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
6810
6814
  this.clearConnectionTimeout();
6811
6815
  const isClosing = this.stream?.socket.readyState === WebSocket.CLOSING;
6812
6816
  if (!this.connected && !isClosing && !this.unloaded) {
@@ -6840,35 +6844,35 @@ class Recorder extends util_Despot {
6840
6844
  this.stream.on("drain", ()=>{
6841
6845
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted (should not happen!)`);
6842
6846
  });
6843
- this.stream.on("preend", ()=>{
6844
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
6847
+ this.stream.on("preend", (args)=>{
6848
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted with args: ${util_pretty(args)}`);
6845
6849
  });
6846
6850
  this.stream.on("end", ()=>{
6847
6851
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *end* event emitted`);
6848
6852
  });
6849
- this.stream.on("drain", ()=>{
6850
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted`);
6853
+ this.stream.on("drain", (args)=>{
6854
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted with args: ${util_pretty(args)}`);
6851
6855
  });
6852
- this.stream.on("pipe", ()=>{
6853
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *pipe* event emitted`);
6856
+ this.stream.on("pipe", (src)=>{
6857
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *pipe* event emitted with src: ${util_pretty(src)}`);
6854
6858
  });
6855
- this.stream.on("unpipe", ()=>{
6856
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *unpipe* event emitted`);
6859
+ this.stream.on("unpipe", (src)=>{
6860
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *unpipe* event emitted with src: ${util_pretty(src)}`);
6857
6861
  });
6858
- this.stream.on("resume", ()=>{
6859
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *resume* event emitted`);
6862
+ this.stream.on("resume", (args)=>{
6863
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *resume* event emitted with args: ${util_pretty(args)}`);
6860
6864
  });
6861
- this.stream.on("uncork", ()=>{
6862
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *uncork* event emitted`);
6865
+ this.stream.on("uncork", (args)=>{
6866
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *uncork* event emitted with args: ${util_pretty(args)}`);
6863
6867
  });
6864
- this.stream.on("readable", ()=>{
6865
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
6868
+ this.stream.on("readable", (args)=>{
6869
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *readable* event emitted with args: ${util_pretty(args)}`);
6866
6870
  });
6867
- this.stream.on("prefinish", ()=>{
6868
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
6871
+ this.stream.on("prefinish", (args)=>{
6872
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *prefinish* event emitted with args: ${util_pretty(args)}`);
6869
6873
  });
6870
- this.stream.on("finish", ()=>{
6871
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
6874
+ this.stream.on("finish", (args)=>{
6875
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *finish* event emitted with args: ${util_pretty(args)}`);
6872
6876
  });
6873
6877
  }
6874
6878
  }
package/dist/umd/index.js CHANGED
@@ -10976,7 +10976,7 @@
10976
10976
  var client = __webpack_require__("Q");
10977
10977
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10978
10978
  var package_namespaceObject = {
10979
- rE: "15.7.9"
10979
+ rE: "15.7.11"
10980
10980
  };
10981
10981
  function isAudioEnabled(options) {
10982
10982
  return Boolean(options.audio.enabled);
@@ -15125,6 +15125,10 @@
15125
15125
  enumerateDevices = void 0;
15126
15126
  }
15127
15127
  const fullVideomailErrorData = {
15128
+ versions: {
15129
+ videomailClient: package_namespaceObject.rE,
15130
+ videomailNinjaFormPlugin: this.options.versions?.videomailNinjaFormPlugin
15131
+ },
15128
15132
  browser: err.browser,
15129
15133
  code: err.code,
15130
15134
  cookie: err.cookie,
@@ -17377,8 +17381,8 @@
17377
17381
  let explanation;
17378
17382
  if (online) if ("timeout" === cause) explanation = `The server at ${url2Connect} did not respond within ${this.options.timeouts.connection}ms, even though your device is online. This usually points to a firewall or proxy silently dropping the connection. Please try a different network. If the problem persists, contact us.`;
17379
17383
  else {
17380
- const closeSuffix = closeEvent ? ` (close code ${closeEvent.code})` : "";
17381
- explanation = `The connection to ${url2Connect} was refused or could not be reached${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
17384
+ const closeSuffix = closeEvent ? ` (code ${closeEvent.code})` : "";
17385
+ explanation = `Connection to ${url2Connect} is closed${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
17382
17386
  }
17383
17387
  else explanation = "Your device appears to be offline. Please check your internet connection and try again.";
17384
17388
  if (this.stream) {
@@ -17542,7 +17546,7 @@
17542
17546
  });
17543
17547
  }, connectionTimeoutMs);
17544
17548
  this.stream.on("close", ()=>{
17545
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed`);
17549
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected},`);
17546
17550
  const neverConnected = this.connecting && !this.connected;
17547
17551
  this.clearConnectionTimeout();
17548
17552
  this.connecting = this.connected = false;
@@ -17554,8 +17558,8 @@
17554
17558
  }, 0);
17555
17559
  else if (this.userMediaLoaded) this.initSocket();
17556
17560
  });
17557
- this.stream.on("connect", ()=>{
17558
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted`);
17561
+ this.stream.on("connect", (args)=>{
17562
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted with args: ${util_pretty(args)}`);
17559
17563
  this.clearConnectionTimeout();
17560
17564
  const isClosing = this.stream?.socket.readyState === WebSocket.CLOSING;
17561
17565
  if (!this.connected && !isClosing && !this.unloaded) {
@@ -17589,35 +17593,35 @@
17589
17593
  this.stream.on("drain", ()=>{
17590
17594
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted (should not happen!)`);
17591
17595
  });
17592
- this.stream.on("preend", ()=>{
17593
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17596
+ this.stream.on("preend", (args)=>{
17597
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted with args: ${util_pretty(args)}`);
17594
17598
  });
17595
17599
  this.stream.on("end", ()=>{
17596
17600
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *end* event emitted`);
17597
17601
  });
17598
- this.stream.on("drain", ()=>{
17599
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted`);
17602
+ this.stream.on("drain", (args)=>{
17603
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted with args: ${util_pretty(args)}`);
17600
17604
  });
17601
- this.stream.on("pipe", ()=>{
17602
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *pipe* event emitted`);
17605
+ this.stream.on("pipe", (src)=>{
17606
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *pipe* event emitted with src: ${util_pretty(src)}`);
17603
17607
  });
17604
- this.stream.on("unpipe", ()=>{
17605
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *unpipe* event emitted`);
17608
+ this.stream.on("unpipe", (src)=>{
17609
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *unpipe* event emitted with src: ${util_pretty(src)}`);
17606
17610
  });
17607
- this.stream.on("resume", ()=>{
17608
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *resume* event emitted`);
17611
+ this.stream.on("resume", (args)=>{
17612
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *resume* event emitted with args: ${util_pretty(args)}`);
17609
17613
  });
17610
- this.stream.on("uncork", ()=>{
17611
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *uncork* event emitted`);
17614
+ this.stream.on("uncork", (args)=>{
17615
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *uncork* event emitted with args: ${util_pretty(args)}`);
17612
17616
  });
17613
- this.stream.on("readable", ()=>{
17614
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17617
+ this.stream.on("readable", (args)=>{
17618
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *readable* event emitted with args: ${util_pretty(args)}`);
17615
17619
  });
17616
- this.stream.on("prefinish", ()=>{
17617
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17620
+ this.stream.on("prefinish", (args)=>{
17621
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *prefinish* event emitted with args: ${util_pretty(args)}`);
17618
17622
  });
17619
- this.stream.on("finish", ()=>{
17620
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *preend* event emitted`);
17623
+ this.stream.on("finish", (args)=>{
17624
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *finish* event emitted with args: ${util_pretty(args)}`);
17621
17625
  });
17622
17626
  }
17623
17627
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "15.7.9",
3
+ "version": "15.7.11",
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",