videomail-client 15.7.14 → 15.7.15

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.
@@ -1575,7 +1575,7 @@ var __webpack_modules__ = {
1575
1575
  return intrinsic;
1576
1576
  };
1577
1577
  },
1578
- rX (module) {
1578
+ r (module) {
1579
1579
  module.exports = Emitter;
1580
1580
  function Emitter(obj) {
1581
1581
  if (obj) return mixin(obj);
@@ -4404,7 +4404,7 @@ var __webpack_modules__ = {
4404
4404
  var abs = __webpack_require__("G");
4405
4405
  var floor = __webpack_require__("t");
4406
4406
  var max = __webpack_require__("u");
4407
- var min = __webpack_require__("Y");
4407
+ var min = __webpack_require__("Yx");
4408
4408
  var pow = __webpack_require__("Ik");
4409
4409
  var round = __webpack_require__("W");
4410
4410
  var sign = __webpack_require__("Xe");
@@ -5280,7 +5280,7 @@ var __webpack_modules__ = {
5280
5280
  "use strict";
5281
5281
  module.exports = Math.max;
5282
5282
  },
5283
- Y (module) {
5283
+ Yx (module) {
5284
5284
  "use strict";
5285
5285
  module.exports = Math.min;
5286
5286
  },
@@ -7041,7 +7041,7 @@ var __webpack_modules__ = {
7041
7041
  console.warn('Using browser-only version of superagent in non-browser environment');
7042
7042
  root = void 0;
7043
7043
  } else root = self;
7044
- const Emitter = __webpack_require__("rX");
7044
+ const Emitter = __webpack_require__("r");
7045
7045
  const safeStringify = __webpack_require__("X");
7046
7046
  const qs = __webpack_require__("b");
7047
7047
  const RequestBase = __webpack_require__("d");
@@ -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.14"
10973
+ rE: "15.7.15"
10974
10974
  };
10975
10975
  function isAudioEnabled(options) {
10976
10976
  return Boolean(options.audio.enabled);
@@ -17053,6 +17053,18 @@ var __webpack_exports__ = {};
17053
17053
  return /bot|crawler|spider|headlesschrome|phantomjs|puppeteer|playwright/iu.test(userAgent);
17054
17054
  }
17055
17055
  const util_isAutomatedUserAgent = isAutomatedUserAgent;
17056
+ function summarize(title, contents) {
17057
+ const lines = Object.entries(contents).sort(([keyA], [keyB])=>keyA.localeCompare(keyB)).map(([key, value])=>{
17058
+ const formattedValue = void 0 === value ? "undefined" : "object" == typeof value ? util_pretty(value) : value;
17059
+ return ` • ${key}: ${formattedValue}`;
17060
+ });
17061
+ const line = [
17062
+ `🔎 ${title}`,
17063
+ ...lines
17064
+ ].join("\n");
17065
+ return line;
17066
+ }
17067
+ const util_summarize = summarize;
17056
17068
  function esm_define_property(obj, key, value) {
17057
17069
  if (key in obj) Object.defineProperty(obj, key, {
17058
17070
  value: value,
@@ -17643,7 +17655,6 @@ var __webpack_exports__ = {};
17643
17655
  this.connectionTimeout = void 0;
17644
17656
  }
17645
17657
  failConnection(params) {
17646
- var _ref, _this_unloaded, _this_userMediaLoaded, _ref1;
17647
17658
  if (this.connectionFailed || this.connected || this.unloaded) return;
17648
17659
  this.connectionFailed = true;
17649
17660
  this.connecting = false;
@@ -17653,26 +17664,24 @@ var __webpack_exports__ = {};
17653
17664
  const elapsedMs = this.connectingStartedAt ? Date.now() - this.connectingStartedAt : void 0;
17654
17665
  const closeEvent = this.lastCloseEvent;
17655
17666
  const socketError = this.lastSocketError;
17656
- const diagnosticLines = [
17657
- ` • cause: ${cause}`,
17658
- ` • closeCode: ${null != (_ref = null == closeEvent ? void 0 : closeEvent.code) ? _ref : "undefined"}`,
17659
- ` • closeReason: ${(null == closeEvent ? void 0 : closeEvent.reason) || "undefined"}`,
17660
- ` • elapsedMs: ${null != elapsedMs ? elapsedMs : "undefined"}`,
17661
- ` • online: ${online}`,
17662
- ` • unloaded: ${null != (_this_unloaded = this.unloaded) ? _this_unloaded : "undefined"}`,
17663
- ` • userMediaLoaded: ${null != (_this_userMediaLoaded = this.userMediaLoaded) ? _this_userMediaLoaded : "undefined"}`,
17664
- ` • userMediaLoading: ${this.userMediaLoading}`,
17665
- ` • wasClean: ${null != (_ref1 = null == closeEvent ? void 0 : closeEvent.wasClean) ? _ref1 : "undefined"}`,
17666
- ` • socketError: ${socketError ? util_pretty(socketError) : "undefined"}`
17667
- ];
17668
- const debugLine = [
17669
- "🔎 Recorder: failConnection() diagnostic",
17670
- ...diagnosticLines
17671
- ].join("\n");
17667
+ const contents = {
17668
+ cause,
17669
+ closeCode: null == closeEvent ? void 0 : closeEvent.code,
17670
+ closeReason: null == closeEvent ? void 0 : closeEvent.reason,
17671
+ elapsedMs,
17672
+ online,
17673
+ unloaded: this.unloaded,
17674
+ userMediaLoaded: this.userMediaLoaded,
17675
+ userMediaLoading: this.userMediaLoading,
17676
+ wasClean: null == closeEvent ? void 0 : closeEvent.wasClean,
17677
+ socketError,
17678
+ blocking: this.blocking
17679
+ };
17680
+ const debugLine = util_summarize("Recorder: failConnection() diagnostic", contents);
17672
17681
  this.options.logger.debug(debugLine);
17673
17682
  let explanation;
17674
17683
  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.`;
17675
- else if ("error" === cause) explanation = `The WebSocket reported an error while connecting to ${url2Connect}. Details: ${util_pretty(null != socketError ? socketError : {})} Please check your internet connection and try again. If the problem persists, contact us.`;
17684
+ else if ("error" === cause) explanation = `An error occurred while connecting to ${url2Connect}. Please check your internet connection and try again. If the problem persists, contact us.`;
17676
17685
  else {
17677
17686
  const closeSuffix = closeEvent ? ` (code ${closeEvent.code})` : "";
17678
17687
  explanation = `Connection to ${url2Connect} is closed${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
@@ -17847,11 +17856,17 @@ var __webpack_exports__ = {};
17847
17856
  });
17848
17857
  }, connectionTimeoutMs);
17849
17858
  this.stream.on("close", ()=>{
17850
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected}, userMediaLoaded=${this.userMediaLoaded}`);
17859
+ const debugLine = util_summarize(`${PIPE_SYMBOL}Stream has closed:`, {
17860
+ connecting: this.connecting,
17861
+ connected: this.connected,
17862
+ userMediaLoaded: this.userMediaLoaded,
17863
+ blocking: this.blocking
17864
+ });
17865
+ this.options.logger.debug(debugLine);
17851
17866
  const tryReconnect = this.connected && this.userMediaLoaded;
17852
17867
  this.connected = false;
17853
17868
  if (tryReconnect) this.initSocket();
17854
- else if (!this.connecting) window.setTimeout(()=>{
17869
+ else if (!this.connecting && !this.blocking) window.setTimeout(()=>{
17855
17870
  this.failConnection({
17856
17871
  url2Connect,
17857
17872
  cause: "closed"
@@ -17892,7 +17907,10 @@ var __webpack_exports__ = {};
17892
17907
  var _this_lastSocketError;
17893
17908
  if ("u" > typeof Event && err instanceof Event) this.lastSocketError = error_getEventDetails(err);
17894
17909
  else this.lastSocketError = serializeError(err);
17895
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${util_pretty(err)}`);
17910
+ const debugLine = util_summarize(`${PIPE_SYMBOL}Stream *error* event emitted:`, {
17911
+ error: serializeError(err)
17912
+ });
17913
+ this.options.logger.debug(debugLine);
17896
17914
  if (!this.connected) return void this.failConnection({
17897
17915
  url2Connect,
17898
17916
  cause: "error"
@@ -18075,8 +18093,10 @@ var __webpack_exports__ = {};
18075
18093
  executeCommand(command) {
18076
18094
  if (this.unloaded) return;
18077
18095
  try {
18078
- if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${util_pretty(command.args)}`);
18079
- else this.options.logger.debug(`Server commanded: ${command.command}`);
18096
+ if (command.args) {
18097
+ const debugLine = util_summarize(`Server commanded: ${command.command} with:`, command.args);
18098
+ this.options.logger.debug(debugLine);
18099
+ } else this.options.logger.debug(`Server commanded: ${command.command}`);
18080
18100
  switch(command.command){
18081
18101
  case "ready":
18082
18102
  this.emit("SERVER_READY");
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.14"
3622
+ rE: "15.7.15"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -6120,6 +6120,18 @@ function isAutomatedUserAgent(userAgent = navigator.userAgent) {
6120
6120
  return /bot|crawler|spider|headlesschrome|phantomjs|puppeteer|playwright/iu.test(userAgent);
6121
6121
  }
6122
6122
  const util_isAutomatedUserAgent = isAutomatedUserAgent;
6123
+ function summarize(title, contents) {
6124
+ const lines = Object.entries(contents).sort(([keyA], [keyB])=>keyA.localeCompare(keyB)).map(([key, value])=>{
6125
+ const formattedValue = void 0 === value ? "undefined" : "object" == typeof value ? util_pretty(value) : value;
6126
+ return ` • ${key}: ${formattedValue}`;
6127
+ });
6128
+ const line = [
6129
+ `🔎 ${title}`,
6130
+ ...lines
6131
+ ].join("\n");
6132
+ return line;
6133
+ }
6134
+ const util_summarize = summarize;
6123
6135
  function AudioRecorder_define_property(obj, key, value) {
6124
6136
  if (key in obj) Object.defineProperty(obj, key, {
6125
6137
  value: value,
@@ -6675,26 +6687,24 @@ class Recorder extends util_Despot {
6675
6687
  const elapsedMs = this.connectingStartedAt ? Date.now() - this.connectingStartedAt : void 0;
6676
6688
  const closeEvent = this.lastCloseEvent;
6677
6689
  const socketError = this.lastSocketError;
6678
- const diagnosticLines = [
6679
- ` • cause: ${cause}`,
6680
- ` • closeCode: ${closeEvent?.code ?? "undefined"}`,
6681
- ` • closeReason: ${closeEvent?.reason || "undefined"}`,
6682
- ` • elapsedMs: ${elapsedMs ?? "undefined"}`,
6683
- ` • online: ${online}`,
6684
- ` • unloaded: ${this.unloaded ?? "undefined"}`,
6685
- ` • userMediaLoaded: ${this.userMediaLoaded ?? "undefined"}`,
6686
- ` • userMediaLoading: ${this.userMediaLoading}`,
6687
- ` • wasClean: ${closeEvent?.wasClean ?? "undefined"}`,
6688
- ` • socketError: ${socketError ? util_pretty(socketError) : "undefined"}`
6689
- ];
6690
- const debugLine = [
6691
- "🔎 Recorder: failConnection() diagnostic",
6692
- ...diagnosticLines
6693
- ].join("\n");
6690
+ const contents = {
6691
+ cause,
6692
+ closeCode: closeEvent?.code,
6693
+ closeReason: closeEvent?.reason,
6694
+ elapsedMs,
6695
+ online,
6696
+ unloaded: this.unloaded,
6697
+ userMediaLoaded: this.userMediaLoaded,
6698
+ userMediaLoading: this.userMediaLoading,
6699
+ wasClean: closeEvent?.wasClean,
6700
+ socketError,
6701
+ blocking: this.blocking
6702
+ };
6703
+ const debugLine = util_summarize("Recorder: failConnection() diagnostic", contents);
6694
6704
  this.options.logger.debug(debugLine);
6695
6705
  let explanation;
6696
6706
  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.`;
6697
- else if ("error" === cause) explanation = `The WebSocket reported an error while connecting to ${url2Connect}. Details: ${util_pretty(socketError ?? {})} Please check your internet connection and try again. If the problem persists, contact us.`;
6707
+ else if ("error" === cause) explanation = `An error occurred while connecting to ${url2Connect}. Please check your internet connection and try again. If the problem persists, contact us.`;
6698
6708
  else {
6699
6709
  const closeSuffix = closeEvent ? ` (code ${closeEvent.code})` : "";
6700
6710
  explanation = `Connection to ${url2Connect} is closed${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
@@ -6868,11 +6878,17 @@ class Recorder extends util_Despot {
6868
6878
  });
6869
6879
  }, connectionTimeoutMs);
6870
6880
  this.stream.on("close", ()=>{
6871
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected}, userMediaLoaded=${this.userMediaLoaded}`);
6881
+ const debugLine = util_summarize(`${PIPE_SYMBOL}Stream has closed:`, {
6882
+ connecting: this.connecting,
6883
+ connected: this.connected,
6884
+ userMediaLoaded: this.userMediaLoaded,
6885
+ blocking: this.blocking
6886
+ });
6887
+ this.options.logger.debug(debugLine);
6872
6888
  const tryReconnect = this.connected && this.userMediaLoaded;
6873
6889
  this.connected = false;
6874
6890
  if (tryReconnect) this.initSocket();
6875
- else if (!this.connecting) window.setTimeout(()=>{
6891
+ else if (!this.connecting && !this.blocking) window.setTimeout(()=>{
6876
6892
  this.failConnection({
6877
6893
  url2Connect,
6878
6894
  cause: "closed"
@@ -6911,7 +6927,10 @@ class Recorder extends util_Despot {
6911
6927
  this.stream.on("error", (err)=>{
6912
6928
  if ("u" > typeof Event && err instanceof Event) this.lastSocketError = error_getEventDetails(err);
6913
6929
  else this.lastSocketError = serializeError(err);
6914
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${util_pretty(err)}`);
6930
+ const debugLine = util_summarize(`${PIPE_SYMBOL}Stream *error* event emitted:`, {
6931
+ error: serializeError(err)
6932
+ });
6933
+ this.options.logger.debug(debugLine);
6915
6934
  if (!this.connected) return void this.failConnection({
6916
6935
  url2Connect,
6917
6936
  cause: "error"
@@ -7093,8 +7112,10 @@ class Recorder extends util_Despot {
7093
7112
  executeCommand(command) {
7094
7113
  if (this.unloaded) return;
7095
7114
  try {
7096
- if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${util_pretty(command.args)}`);
7097
- else this.options.logger.debug(`Server commanded: ${command.command}`);
7115
+ if (command.args) {
7116
+ const debugLine = util_summarize(`Server commanded: ${command.command} with:`, command.args);
7117
+ this.options.logger.debug(debugLine);
7118
+ } else this.options.logger.debug(`Server commanded: ${command.command}`);
7098
7119
  switch(command.command){
7099
7120
  case "ready":
7100
7121
  this.emit("SERVER_READY");
@@ -1,5 +1,6 @@
1
1
  import { ErrorObject } from "serialize-error";
2
2
  export interface VideomailCommandArgs {
3
+ [key: string]: string | number | boolean | undefined | Record<string, unknown>;
3
4
  frame?: number;
4
5
  key?: string | undefined;
5
6
  err?: ErrorObject;
@@ -0,0 +1,3 @@
1
+ export type Contents = Record<string, string | number | boolean | undefined | Record<string, unknown>>;
2
+ declare function summarize(title: string, contents: Contents): string;
3
+ export default summarize;
package/dist/umd/index.js CHANGED
@@ -1581,7 +1581,7 @@
1581
1581
  return intrinsic;
1582
1582
  };
1583
1583
  },
1584
- rX (module1) {
1584
+ r (module1) {
1585
1585
  module1.exports = Emitter;
1586
1586
  function Emitter(obj) {
1587
1587
  if (obj) return mixin(obj);
@@ -4410,7 +4410,7 @@
4410
4410
  var abs = __webpack_require__("G");
4411
4411
  var floor = __webpack_require__("t");
4412
4412
  var max = __webpack_require__("u");
4413
- var min = __webpack_require__("Y");
4413
+ var min = __webpack_require__("Yx");
4414
4414
  var pow = __webpack_require__("Ik");
4415
4415
  var round = __webpack_require__("W");
4416
4416
  var sign = __webpack_require__("Xe");
@@ -5286,7 +5286,7 @@
5286
5286
  "use strict";
5287
5287
  module1.exports = Math.max;
5288
5288
  },
5289
- Y (module1) {
5289
+ Yx (module1) {
5290
5290
  "use strict";
5291
5291
  module1.exports = Math.min;
5292
5292
  },
@@ -7047,7 +7047,7 @@
7047
7047
  console.warn('Using browser-only version of superagent in non-browser environment');
7048
7048
  root = void 0;
7049
7049
  } else root = self;
7050
- const Emitter = __webpack_require__("rX");
7050
+ const Emitter = __webpack_require__("r");
7051
7051
  const safeStringify = __webpack_require__("X");
7052
7052
  const qs = __webpack_require__("b");
7053
7053
  const RequestBase = __webpack_require__("d");
@@ -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.14"
10979
+ rE: "15.7.15"
10980
10980
  };
10981
10981
  function isAudioEnabled(options) {
10982
10982
  return Boolean(options.audio.enabled);
@@ -16818,6 +16818,18 @@
16818
16818
  return /bot|crawler|spider|headlesschrome|phantomjs|puppeteer|playwright/iu.test(userAgent);
16819
16819
  }
16820
16820
  const util_isAutomatedUserAgent = isAutomatedUserAgent;
16821
+ function summarize(title, contents) {
16822
+ const lines = Object.entries(contents).sort(([keyA], [keyB])=>keyA.localeCompare(keyB)).map(([key, value])=>{
16823
+ const formattedValue = void 0 === value ? "undefined" : "object" == typeof value ? util_pretty(value) : value;
16824
+ return ` • ${key}: ${formattedValue}`;
16825
+ });
16826
+ const line = [
16827
+ `🔎 ${title}`,
16828
+ ...lines
16829
+ ].join("\n");
16830
+ return line;
16831
+ }
16832
+ const util_summarize = summarize;
16821
16833
  function _define_property(obj, key, value) {
16822
16834
  if (key in obj) Object.defineProperty(obj, key, {
16823
16835
  value: value,
@@ -17425,26 +17437,24 @@
17425
17437
  const elapsedMs = this.connectingStartedAt ? Date.now() - this.connectingStartedAt : void 0;
17426
17438
  const closeEvent = this.lastCloseEvent;
17427
17439
  const socketError = this.lastSocketError;
17428
- const diagnosticLines = [
17429
- ` • cause: ${cause}`,
17430
- ` • closeCode: ${closeEvent?.code ?? "undefined"}`,
17431
- ` • closeReason: ${closeEvent?.reason || "undefined"}`,
17432
- ` • elapsedMs: ${elapsedMs ?? "undefined"}`,
17433
- ` • online: ${online}`,
17434
- ` • unloaded: ${this.unloaded ?? "undefined"}`,
17435
- ` • userMediaLoaded: ${this.userMediaLoaded ?? "undefined"}`,
17436
- ` • userMediaLoading: ${this.userMediaLoading}`,
17437
- ` • wasClean: ${closeEvent?.wasClean ?? "undefined"}`,
17438
- ` • socketError: ${socketError ? util_pretty(socketError) : "undefined"}`
17439
- ];
17440
- const debugLine = [
17441
- "🔎 Recorder: failConnection() diagnostic",
17442
- ...diagnosticLines
17443
- ].join("\n");
17440
+ const contents = {
17441
+ cause,
17442
+ closeCode: closeEvent?.code,
17443
+ closeReason: closeEvent?.reason,
17444
+ elapsedMs,
17445
+ online,
17446
+ unloaded: this.unloaded,
17447
+ userMediaLoaded: this.userMediaLoaded,
17448
+ userMediaLoading: this.userMediaLoading,
17449
+ wasClean: closeEvent?.wasClean,
17450
+ socketError,
17451
+ blocking: this.blocking
17452
+ };
17453
+ const debugLine = util_summarize("Recorder: failConnection() diagnostic", contents);
17444
17454
  this.options.logger.debug(debugLine);
17445
17455
  let explanation;
17446
17456
  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.`;
17447
- else if ("error" === cause) explanation = `The WebSocket reported an error while connecting to ${url2Connect}. Details: ${util_pretty(socketError ?? {})} Please check your internet connection and try again. If the problem persists, contact us.`;
17457
+ else if ("error" === cause) explanation = `An error occurred while connecting to ${url2Connect}. Please check your internet connection and try again. If the problem persists, contact us.`;
17448
17458
  else {
17449
17459
  const closeSuffix = closeEvent ? ` (code ${closeEvent.code})` : "";
17450
17460
  explanation = `Connection to ${url2Connect} is closed${closeSuffix}. Please check your internet connection and try again. If the problem persists, contact us.`;
@@ -17618,11 +17628,17 @@
17618
17628
  });
17619
17629
  }, connectionTimeoutMs);
17620
17630
  this.stream.on("close", ()=>{
17621
- this.options.logger.debug(`${PIPE_SYMBOL}Stream has closed, connecting=${this.connecting}, connected=${this.connected}, userMediaLoaded=${this.userMediaLoaded}`);
17631
+ const debugLine = util_summarize(`${PIPE_SYMBOL}Stream has closed:`, {
17632
+ connecting: this.connecting,
17633
+ connected: this.connected,
17634
+ userMediaLoaded: this.userMediaLoaded,
17635
+ blocking: this.blocking
17636
+ });
17637
+ this.options.logger.debug(debugLine);
17622
17638
  const tryReconnect = this.connected && this.userMediaLoaded;
17623
17639
  this.connected = false;
17624
17640
  if (tryReconnect) this.initSocket();
17625
- else if (!this.connecting) window.setTimeout(()=>{
17641
+ else if (!this.connecting && !this.blocking) window.setTimeout(()=>{
17626
17642
  this.failConnection({
17627
17643
  url2Connect,
17628
17644
  cause: "closed"
@@ -17661,7 +17677,10 @@
17661
17677
  this.stream.on("error", (err)=>{
17662
17678
  if ("u" > typeof Event && err instanceof Event) this.lastSocketError = error_getEventDetails(err);
17663
17679
  else this.lastSocketError = serializeError(err);
17664
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${util_pretty(err)}`);
17680
+ const debugLine = util_summarize(`${PIPE_SYMBOL}Stream *error* event emitted:`, {
17681
+ error: serializeError(err)
17682
+ });
17683
+ this.options.logger.debug(debugLine);
17665
17684
  if (!this.connected) return void this.failConnection({
17666
17685
  url2Connect,
17667
17686
  cause: "error"
@@ -17843,8 +17862,10 @@
17843
17862
  executeCommand(command) {
17844
17863
  if (this.unloaded) return;
17845
17864
  try {
17846
- if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${util_pretty(command.args)}`);
17847
- else this.options.logger.debug(`Server commanded: ${command.command}`);
17865
+ if (command.args) {
17866
+ const debugLine = util_summarize(`Server commanded: ${command.command} with:`, command.args);
17867
+ this.options.logger.debug(debugLine);
17868
+ } else this.options.logger.debug(`Server commanded: ${command.command}`);
17848
17869
  switch(command.command){
17849
17870
  case "ready":
17850
17871
  this.emit("SERVER_READY");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "15.7.14",
3
+ "version": "15.7.15",
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",