videomail-client 10.3.3 → 10.3.5

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.
@@ -6700,8 +6700,7 @@ var __webpack_modules__ = {
6700
6700
  for (const def of this._defaults)request[def.fn](...def.args);
6701
6701
  }
6702
6702
  }
6703
- for (const fn of defaults)Agent.prototype[fn] = function() {
6704
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
6703
+ for (const fn of defaults)Agent.prototype[fn] = function(...args) {
6705
6704
  this._defaults.push({
6706
6705
  fn,
6707
6706
  args
@@ -10617,7 +10616,7 @@ var __webpack_exports__ = {};
10617
10616
  return to;
10618
10617
  };
10619
10618
  function serializeError(value, options = {}) {
10620
- const { maxDepth = Number.POSITIVE_INFINITY, useToJSON = true } = options;
10619
+ const { maxDepth = 1 / 0, useToJSON = true } = options;
10621
10620
  if ('object' == typeof value && null !== value) return destroyCircular({
10622
10621
  from: value,
10623
10622
  seen: [],
@@ -10631,7 +10630,7 @@ var __webpack_exports__ = {};
10631
10630
  return value;
10632
10631
  }
10633
10632
  function deserializeError(value, options = {}) {
10634
- const { maxDepth = Number.POSITIVE_INFINITY } = options;
10633
+ const { maxDepth = 1 / 0 } = options;
10635
10634
  if (value instanceof Error) return value;
10636
10635
  if (isMinimumViableSerializedError(value)) return destroyCircular({
10637
10636
  from: value,
@@ -14556,7 +14555,7 @@ var __webpack_exports__ = {};
14556
14555
  }
14557
14556
  const wrappers_form = Form;
14558
14557
  var package_namespaceObject = {
14559
- i8: "10.3.3"
14558
+ i8: "10.3.5"
14560
14559
  };
14561
14560
  function resource_define_property(obj, key, value) {
14562
14561
  if (key in obj) Object.defineProperty(obj, key, {
@@ -14745,25 +14744,25 @@ var __webpack_exports__ = {};
14745
14744
  else element.classList.remove("disabled");
14746
14745
  }
14747
14746
  const html_enableElement = enableElement;
14748
- function hideElement_hideElement(element) {
14747
+ function hideElement(element) {
14749
14748
  if (!element) return;
14750
14749
  hidden_default()(element, true);
14751
14750
  }
14752
- const hideElement = hideElement_hideElement;
14751
+ const html_hideElement = hideElement;
14753
14752
  function showElement(element) {
14754
14753
  if (!element) return;
14755
14754
  hidden_default()(element, false);
14756
14755
  }
14757
14756
  const html_showElement = showElement;
14758
- function isShown_isShown(element) {
14757
+ function isShown(element) {
14759
14758
  if (!element) return false;
14760
14759
  return !hidden_default()(element);
14761
14760
  }
14762
- const isShown = isShown_isShown;
14761
+ const html_isShown = isShown;
14763
14762
  function adjustButton(buttonElement, show, type, disabled) {
14764
14763
  if (disabled) html_disableElement(buttonElement);
14765
14764
  if (type) buttonElement.type = type;
14766
- if (!show) hideElement(buttonElement);
14765
+ if (!show) html_hideElement(buttonElement);
14767
14766
  return buttonElement;
14768
14767
  }
14769
14768
  const html_adjustButton = adjustButton;
@@ -14885,17 +14884,17 @@ var __webpack_exports__ = {};
14885
14884
  }
14886
14885
  }
14887
14886
  onFormReady(params) {
14888
- if (!isShown(this.recordAgainButton)) {
14887
+ if (!html_isShown(this.recordAgainButton)) {
14889
14888
  if (!(null == params ? void 0 : params.paused)) html_showElement(this.recordButton);
14890
14889
  }
14891
14890
  if (!(null == params ? void 0 : params.paused)) {
14892
14891
  html_disableElement(this.previewButton);
14893
- hideElement(this.previewButton);
14892
+ html_hideElement(this.previewButton);
14894
14893
  }
14895
14894
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14896
14895
  }
14897
14896
  onGoingBack() {
14898
- hideElement(this.recordAgainButton);
14897
+ html_hideElement(this.recordAgainButton);
14899
14898
  html_showElement(this.recordButton);
14900
14899
  html_showElement(this.submitButton);
14901
14900
  }
@@ -14907,12 +14906,12 @@ var __webpack_exports__ = {};
14907
14906
  html_showElement(this.buttonsElement);
14908
14907
  html_showElement(this.audioOnRadioPair);
14909
14908
  html_showElement(this.audioOffRadioPair);
14910
- if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14911
- else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14909
+ if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14910
+ else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14912
14911
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
14913
14912
  if (!params.recordWhenReady) {
14914
- if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14915
- if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14913
+ if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14914
+ if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14916
14915
  }
14917
14916
  }
14918
14917
  onResetting() {
@@ -14920,8 +14919,8 @@ var __webpack_exports__ = {};
14920
14919
  this.reset();
14921
14920
  }
14922
14921
  onPreview() {
14923
- hideElement(this.recordButton);
14924
- hideElement(this.previewButton);
14922
+ html_hideElement(this.recordButton);
14923
+ html_hideElement(this.previewButton);
14925
14924
  html_disableElement(this.audioOnRadioPair);
14926
14925
  html_disableElement(this.audioOffRadioPair);
14927
14926
  html_showElement(this.recordAgainButton);
@@ -14933,17 +14932,17 @@ var __webpack_exports__ = {};
14933
14932
  }
14934
14933
  adjustButtonsForPause() {
14935
14934
  if (!this.isCountingDown()) {
14936
- if (this.pauseButton) hideElement(this.pauseButton);
14935
+ if (this.pauseButton) html_hideElement(this.pauseButton);
14937
14936
  html_showElement(this.resumeButton);
14938
14937
  html_enableElement(this.resumeButton);
14939
- hideElement(this.recordButton);
14938
+ html_hideElement(this.recordButton);
14940
14939
  html_showElement(this.previewButton);
14941
14940
  html_enableElement(this.previewButton);
14942
14941
  }
14943
14942
  }
14944
14943
  onFirstFrameSent() {
14945
- hideElement(this.recordButton);
14946
- hideElement(this.recordAgainButton);
14944
+ html_hideElement(this.recordButton);
14945
+ html_hideElement(this.recordAgainButton);
14947
14946
  if (this.pauseButton) {
14948
14947
  html_showElement(this.pauseButton);
14949
14948
  html_enableElement(this.pauseButton);
@@ -14961,8 +14960,8 @@ var __webpack_exports__ = {};
14961
14960
  }
14962
14961
  }
14963
14962
  onResuming() {
14964
- hideElement(this.resumeButton);
14965
- hideElement(this.recordButton);
14963
+ html_hideElement(this.resumeButton);
14964
+ html_hideElement(this.recordButton);
14966
14965
  if (this.pauseButton) {
14967
14966
  html_enableElement(this.pauseButton);
14968
14967
  html_showElement(this.pauseButton);
@@ -14971,8 +14970,8 @@ var __webpack_exports__ = {};
14971
14970
  onStopping() {
14972
14971
  html_disableElement(this.previewButton);
14973
14972
  html_disableElement(this.recordButton);
14974
- hideElement(this.pauseButton);
14975
- hideElement(this.resumeButton);
14973
+ html_hideElement(this.pauseButton);
14974
+ html_hideElement(this.resumeButton);
14976
14975
  }
14977
14976
  onCountdown() {
14978
14977
  html_disableElement(this.recordButton);
@@ -14997,12 +14996,12 @@ var __webpack_exports__ = {};
14997
14996
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
14998
14997
  }
14999
14998
  onHidden() {
15000
- hideElement(this.recordButton);
15001
- hideElement(this.previewButton);
15002
- hideElement(this.recordAgainButton);
15003
- hideElement(this.resumeButton);
15004
- hideElement(this.audioOnRadioPair);
15005
- hideElement(this.audioOffRadioPair);
14999
+ html_hideElement(this.recordButton);
15000
+ html_hideElement(this.previewButton);
15001
+ html_hideElement(this.recordAgainButton);
15002
+ html_hideElement(this.resumeButton);
15003
+ html_hideElement(this.audioOnRadioPair);
15004
+ html_hideElement(this.audioOffRadioPair);
15006
15005
  }
15007
15006
  onEnablingAudio() {
15008
15007
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -15095,7 +15094,7 @@ var __webpack_exports__ = {};
15095
15094
  });
15096
15095
  this.on("CONNECTED", ()=>{
15097
15096
  if (this.options.loadUserMediaOnRecord) {
15098
- if (isShown(this.recordButton)) html_enableElement(this.recordButton);
15097
+ if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
15099
15098
  }
15100
15099
  });
15101
15100
  this.on("DISCONNECTED", ()=>{
@@ -15143,7 +15142,7 @@ var __webpack_exports__ = {};
15143
15142
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
15144
15143
  this.container.appendChild(this.buttonsElement);
15145
15144
  }
15146
- hideElement(this.buttonsElement);
15145
+ html_hideElement(this.buttonsElement);
15147
15146
  this.buildButtons();
15148
15147
  if (!this.built) this.initEvents();
15149
15148
  this.built = true;
@@ -15159,16 +15158,16 @@ var __webpack_exports__ = {};
15159
15158
  }
15160
15159
  hide() {
15161
15160
  let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
15162
- hideElement(this.buttonsElement);
15161
+ html_hideElement(this.buttonsElement);
15163
15162
  if (deep) {
15164
- hideElement(this.recordButton);
15165
- hideElement(this.pauseButton);
15166
- hideElement(this.resumeButton);
15167
- hideElement(this.previewButton);
15168
- hideElement(this.recordAgainButton);
15169
- hideElement(this.submitButton);
15170
- hideElement(this.audioOnRadioPair);
15171
- hideElement(this.audioOffRadioPair);
15163
+ html_hideElement(this.recordButton);
15164
+ html_hideElement(this.pauseButton);
15165
+ html_hideElement(this.resumeButton);
15166
+ html_hideElement(this.previewButton);
15167
+ html_hideElement(this.recordAgainButton);
15168
+ html_hideElement(this.submitButton);
15169
+ html_hideElement(this.audioOnRadioPair);
15170
+ html_hideElement(this.audioOffRadioPair);
15172
15171
  }
15173
15172
  }
15174
15173
  show() {
@@ -15974,10 +15973,10 @@ var __webpack_exports__ = {};
15974
15973
  canvas_to_buffer_modern_r.atob = void 0;
15975
15974
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
15976
15975
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
15977
- function isPromise(anything) {
15978
- return anything && "undefined" != typeof Promise && anything instanceof Promise;
15976
+ function isPromise_isPromise(anything) {
15977
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
15979
15978
  }
15980
- const util_isPromise = isPromise;
15979
+ const isPromise = isPromise_isPromise;
15981
15980
  class audio_sample_modern_t {
15982
15981
  constructor(r){
15983
15982
  this.float32Array = void 0, this.float32Array = r;
@@ -16334,7 +16333,7 @@ var __webpack_exports__ = {};
16334
16333
  } catch (exc) {
16335
16334
  this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
16336
16335
  }
16337
- if (util_isPromise(p)) p.then(()=>{
16336
+ if (isPromise(p)) p.then(()=>{
16338
16337
  if (!this.playingPromiseReached) {
16339
16338
  this.options.logger.debug("UserMedia: play promise successful. Playing now.");
16340
16339
  this.playingPromiseReached = true;
package/dist/esm/index.js CHANGED
@@ -4243,7 +4243,7 @@ class Form extends util_Despot {
4243
4243
  }
4244
4244
  const wrappers_form = Form;
4245
4245
  var package_namespaceObject = {
4246
- i8: "10.3.3"
4246
+ i8: "10.3.5"
4247
4247
  };
4248
4248
  function findOriginalExc(exc) {
4249
4249
  if (exc instanceof Error && "response" in exc) {
@@ -4417,25 +4417,25 @@ function enableElement(element) {
4417
4417
  else element.classList.remove("disabled");
4418
4418
  }
4419
4419
  const html_enableElement = enableElement;
4420
- function hideElement_hideElement(element) {
4420
+ function hideElement(element) {
4421
4421
  if (!element) return;
4422
4422
  hidden_0(element, true);
4423
4423
  }
4424
- const hideElement = hideElement_hideElement;
4424
+ const html_hideElement = hideElement;
4425
4425
  function showElement(element) {
4426
4426
  if (!element) return;
4427
4427
  hidden_0(element, false);
4428
4428
  }
4429
4429
  const html_showElement = showElement;
4430
- function isShown_isShown(element) {
4430
+ function isShown(element) {
4431
4431
  if (!element) return false;
4432
4432
  return !hidden_0(element);
4433
4433
  }
4434
- const isShown = isShown_isShown;
4434
+ const html_isShown = isShown;
4435
4435
  function adjustButton(buttonElement, show, type, disabled) {
4436
4436
  if (disabled) html_disableElement(buttonElement);
4437
4437
  if (type) buttonElement.type = type;
4438
- if (!show) hideElement(buttonElement);
4438
+ if (!show) html_hideElement(buttonElement);
4439
4439
  return buttonElement;
4440
4440
  }
4441
4441
  const html_adjustButton = adjustButton;
@@ -4546,17 +4546,17 @@ class Buttons extends util_Despot {
4546
4546
  }
4547
4547
  }
4548
4548
  onFormReady(params) {
4549
- if (!isShown(this.recordAgainButton)) {
4549
+ if (!html_isShown(this.recordAgainButton)) {
4550
4550
  if (!params?.paused) html_showElement(this.recordButton);
4551
4551
  }
4552
4552
  if (!params?.paused) {
4553
4553
  html_disableElement(this.previewButton);
4554
- hideElement(this.previewButton);
4554
+ html_hideElement(this.previewButton);
4555
4555
  }
4556
4556
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
4557
4557
  }
4558
4558
  onGoingBack() {
4559
- hideElement(this.recordAgainButton);
4559
+ html_hideElement(this.recordAgainButton);
4560
4560
  html_showElement(this.recordButton);
4561
4561
  html_showElement(this.submitButton);
4562
4562
  }
@@ -4568,12 +4568,12 @@ class Buttons extends util_Despot {
4568
4568
  html_showElement(this.buttonsElement);
4569
4569
  html_showElement(this.audioOnRadioPair);
4570
4570
  html_showElement(this.audioOffRadioPair);
4571
- if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
4572
- else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
4571
+ if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
4572
+ else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
4573
4573
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
4574
4574
  if (!params.recordWhenReady) {
4575
- if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
4576
- if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
4575
+ if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
4576
+ if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
4577
4577
  }
4578
4578
  }
4579
4579
  onResetting() {
@@ -4581,8 +4581,8 @@ class Buttons extends util_Despot {
4581
4581
  this.reset();
4582
4582
  }
4583
4583
  onPreview() {
4584
- hideElement(this.recordButton);
4585
- hideElement(this.previewButton);
4584
+ html_hideElement(this.recordButton);
4585
+ html_hideElement(this.previewButton);
4586
4586
  html_disableElement(this.audioOnRadioPair);
4587
4587
  html_disableElement(this.audioOffRadioPair);
4588
4588
  html_showElement(this.recordAgainButton);
@@ -4594,17 +4594,17 @@ class Buttons extends util_Despot {
4594
4594
  }
4595
4595
  adjustButtonsForPause() {
4596
4596
  if (!this.isCountingDown()) {
4597
- if (this.pauseButton) hideElement(this.pauseButton);
4597
+ if (this.pauseButton) html_hideElement(this.pauseButton);
4598
4598
  html_showElement(this.resumeButton);
4599
4599
  html_enableElement(this.resumeButton);
4600
- hideElement(this.recordButton);
4600
+ html_hideElement(this.recordButton);
4601
4601
  html_showElement(this.previewButton);
4602
4602
  html_enableElement(this.previewButton);
4603
4603
  }
4604
4604
  }
4605
4605
  onFirstFrameSent() {
4606
- hideElement(this.recordButton);
4607
- hideElement(this.recordAgainButton);
4606
+ html_hideElement(this.recordButton);
4607
+ html_hideElement(this.recordAgainButton);
4608
4608
  if (this.pauseButton) {
4609
4609
  html_showElement(this.pauseButton);
4610
4610
  html_enableElement(this.pauseButton);
@@ -4622,8 +4622,8 @@ class Buttons extends util_Despot {
4622
4622
  }
4623
4623
  }
4624
4624
  onResuming() {
4625
- hideElement(this.resumeButton);
4626
- hideElement(this.recordButton);
4625
+ html_hideElement(this.resumeButton);
4626
+ html_hideElement(this.recordButton);
4627
4627
  if (this.pauseButton) {
4628
4628
  html_enableElement(this.pauseButton);
4629
4629
  html_showElement(this.pauseButton);
@@ -4632,8 +4632,8 @@ class Buttons extends util_Despot {
4632
4632
  onStopping() {
4633
4633
  html_disableElement(this.previewButton);
4634
4634
  html_disableElement(this.recordButton);
4635
- hideElement(this.pauseButton);
4636
- hideElement(this.resumeButton);
4635
+ html_hideElement(this.pauseButton);
4636
+ html_hideElement(this.resumeButton);
4637
4637
  }
4638
4638
  onCountdown() {
4639
4639
  html_disableElement(this.recordButton);
@@ -4658,12 +4658,12 @@ class Buttons extends util_Despot {
4658
4658
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
4659
4659
  }
4660
4660
  onHidden() {
4661
- hideElement(this.recordButton);
4662
- hideElement(this.previewButton);
4663
- hideElement(this.recordAgainButton);
4664
- hideElement(this.resumeButton);
4665
- hideElement(this.audioOnRadioPair);
4666
- hideElement(this.audioOffRadioPair);
4661
+ html_hideElement(this.recordButton);
4662
+ html_hideElement(this.previewButton);
4663
+ html_hideElement(this.recordAgainButton);
4664
+ html_hideElement(this.resumeButton);
4665
+ html_hideElement(this.audioOnRadioPair);
4666
+ html_hideElement(this.audioOffRadioPair);
4667
4667
  }
4668
4668
  onEnablingAudio() {
4669
4669
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -4756,7 +4756,7 @@ class Buttons extends util_Despot {
4756
4756
  });
4757
4757
  this.on("CONNECTED", ()=>{
4758
4758
  if (this.options.loadUserMediaOnRecord) {
4759
- if (isShown(this.recordButton)) html_enableElement(this.recordButton);
4759
+ if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
4760
4760
  }
4761
4761
  });
4762
4762
  this.on("DISCONNECTED", ()=>{
@@ -4801,7 +4801,7 @@ class Buttons extends util_Despot {
4801
4801
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
4802
4802
  this.container.appendChild(this.buttonsElement);
4803
4803
  }
4804
- hideElement(this.buttonsElement);
4804
+ html_hideElement(this.buttonsElement);
4805
4805
  this.buildButtons();
4806
4806
  if (!this.built) this.initEvents();
4807
4807
  this.built = true;
@@ -4816,16 +4816,16 @@ class Buttons extends util_Despot {
4816
4816
  }
4817
4817
  }
4818
4818
  hide(deep = false) {
4819
- hideElement(this.buttonsElement);
4819
+ html_hideElement(this.buttonsElement);
4820
4820
  if (deep) {
4821
- hideElement(this.recordButton);
4822
- hideElement(this.pauseButton);
4823
- hideElement(this.resumeButton);
4824
- hideElement(this.previewButton);
4825
- hideElement(this.recordAgainButton);
4826
- hideElement(this.submitButton);
4827
- hideElement(this.audioOnRadioPair);
4828
- hideElement(this.audioOffRadioPair);
4821
+ html_hideElement(this.recordButton);
4822
+ html_hideElement(this.pauseButton);
4823
+ html_hideElement(this.resumeButton);
4824
+ html_hideElement(this.previewButton);
4825
+ html_hideElement(this.recordAgainButton);
4826
+ html_hideElement(this.submitButton);
4827
+ html_hideElement(this.audioOnRadioPair);
4828
+ html_hideElement(this.audioOffRadioPair);
4829
4829
  }
4830
4830
  }
4831
4831
  show() {
@@ -5475,10 +5475,10 @@ class Notifier extends util_Despot {
5475
5475
  }
5476
5476
  }
5477
5477
  const notifier = Notifier;
5478
- function isPromise(anything) {
5479
- return anything && "undefined" != typeof Promise && anything instanceof Promise;
5478
+ function isPromise_isPromise(anything) {
5479
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
5480
5480
  }
5481
- const util_isPromise = isPromise;
5481
+ const isPromise = isPromise_isPromise;
5482
5482
  const NodeEnvType = {
5483
5483
  DEVELOPMENT: "development",
5484
5484
  PRODUCTION: "production"
@@ -5811,7 +5811,7 @@ class UserMedia extends util_Despot {
5811
5811
  } catch (exc) {
5812
5812
  this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
5813
5813
  }
5814
- if (util_isPromise(p)) p.then(()=>{
5814
+ if (isPromise(p)) p.then(()=>{
5815
5815
  if (!this.playingPromiseReached) {
5816
5816
  this.options.logger.debug("UserMedia: play promise successful. Playing now.");
5817
5817
  this.playingPromiseReached = true;
@@ -1,2 +1,2 @@
1
- declare function isPromise(anything: any): any;
1
+ declare function isPromise(anything: any): boolean;
2
2
  export default isPromise;
package/dist/umd/index.js CHANGED
@@ -6706,8 +6706,7 @@
6706
6706
  for (const def of this._defaults)request[def.fn](...def.args);
6707
6707
  }
6708
6708
  }
6709
- for (const fn of defaults)Agent.prototype[fn] = function() {
6710
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
6709
+ for (const fn of defaults)Agent.prototype[fn] = function(...args) {
6711
6710
  this._defaults.push({
6712
6711
  fn,
6713
6712
  args
@@ -10623,7 +10622,7 @@
10623
10622
  return to;
10624
10623
  };
10625
10624
  function serializeError(value, options = {}) {
10626
- const { maxDepth = Number.POSITIVE_INFINITY, useToJSON = true } = options;
10625
+ const { maxDepth = 1 / 0, useToJSON = true } = options;
10627
10626
  if ('object' == typeof value && null !== value) return destroyCircular({
10628
10627
  from: value,
10629
10628
  seen: [],
@@ -10637,7 +10636,7 @@
10637
10636
  return value;
10638
10637
  }
10639
10638
  function deserializeError(value, options = {}) {
10640
- const { maxDepth = Number.POSITIVE_INFINITY } = options;
10639
+ const { maxDepth = 1 / 0 } = options;
10641
10640
  if (value instanceof Error) return value;
10642
10641
  if (isMinimumViableSerializedError(value)) return destroyCircular({
10643
10642
  from: value,
@@ -14523,7 +14522,7 @@
14523
14522
  }
14524
14523
  const wrappers_form = Form;
14525
14524
  var package_namespaceObject = {
14526
- i8: "10.3.3"
14525
+ i8: "10.3.5"
14527
14526
  };
14528
14527
  function findOriginalExc(exc) {
14529
14528
  if (exc instanceof Error && "response" in exc) {
@@ -14701,25 +14700,25 @@
14701
14700
  else element.classList.remove("disabled");
14702
14701
  }
14703
14702
  const html_enableElement = enableElement;
14704
- function hideElement_hideElement(element) {
14703
+ function hideElement(element) {
14705
14704
  if (!element) return;
14706
14705
  hidden_default()(element, true);
14707
14706
  }
14708
- const hideElement = hideElement_hideElement;
14707
+ const html_hideElement = hideElement;
14709
14708
  function showElement(element) {
14710
14709
  if (!element) return;
14711
14710
  hidden_default()(element, false);
14712
14711
  }
14713
14712
  const html_showElement = showElement;
14714
- function isShown_isShown(element) {
14713
+ function isShown(element) {
14715
14714
  if (!element) return false;
14716
14715
  return !hidden_default()(element);
14717
14716
  }
14718
- const isShown = isShown_isShown;
14717
+ const html_isShown = isShown;
14719
14718
  function adjustButton(buttonElement, show, type, disabled) {
14720
14719
  if (disabled) html_disableElement(buttonElement);
14721
14720
  if (type) buttonElement.type = type;
14722
- if (!show) hideElement(buttonElement);
14721
+ if (!show) html_hideElement(buttonElement);
14723
14722
  return buttonElement;
14724
14723
  }
14725
14724
  const html_adjustButton = adjustButton;
@@ -14830,17 +14829,17 @@
14830
14829
  }
14831
14830
  }
14832
14831
  onFormReady(params) {
14833
- if (!isShown(this.recordAgainButton)) {
14832
+ if (!html_isShown(this.recordAgainButton)) {
14834
14833
  if (!params?.paused) html_showElement(this.recordButton);
14835
14834
  }
14836
14835
  if (!params?.paused) {
14837
14836
  html_disableElement(this.previewButton);
14838
- hideElement(this.previewButton);
14837
+ html_hideElement(this.previewButton);
14839
14838
  }
14840
14839
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14841
14840
  }
14842
14841
  onGoingBack() {
14843
- hideElement(this.recordAgainButton);
14842
+ html_hideElement(this.recordAgainButton);
14844
14843
  html_showElement(this.recordButton);
14845
14844
  html_showElement(this.submitButton);
14846
14845
  }
@@ -14852,12 +14851,12 @@
14852
14851
  html_showElement(this.buttonsElement);
14853
14852
  html_showElement(this.audioOnRadioPair);
14854
14853
  html_showElement(this.audioOffRadioPair);
14855
- if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14856
- else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14854
+ if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14855
+ else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14857
14856
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
14858
14857
  if (!params.recordWhenReady) {
14859
- if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14860
- if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14858
+ if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14859
+ if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14861
14860
  }
14862
14861
  }
14863
14862
  onResetting() {
@@ -14865,8 +14864,8 @@
14865
14864
  this.reset();
14866
14865
  }
14867
14866
  onPreview() {
14868
- hideElement(this.recordButton);
14869
- hideElement(this.previewButton);
14867
+ html_hideElement(this.recordButton);
14868
+ html_hideElement(this.previewButton);
14870
14869
  html_disableElement(this.audioOnRadioPair);
14871
14870
  html_disableElement(this.audioOffRadioPair);
14872
14871
  html_showElement(this.recordAgainButton);
@@ -14878,17 +14877,17 @@
14878
14877
  }
14879
14878
  adjustButtonsForPause() {
14880
14879
  if (!this.isCountingDown()) {
14881
- if (this.pauseButton) hideElement(this.pauseButton);
14880
+ if (this.pauseButton) html_hideElement(this.pauseButton);
14882
14881
  html_showElement(this.resumeButton);
14883
14882
  html_enableElement(this.resumeButton);
14884
- hideElement(this.recordButton);
14883
+ html_hideElement(this.recordButton);
14885
14884
  html_showElement(this.previewButton);
14886
14885
  html_enableElement(this.previewButton);
14887
14886
  }
14888
14887
  }
14889
14888
  onFirstFrameSent() {
14890
- hideElement(this.recordButton);
14891
- hideElement(this.recordAgainButton);
14889
+ html_hideElement(this.recordButton);
14890
+ html_hideElement(this.recordAgainButton);
14892
14891
  if (this.pauseButton) {
14893
14892
  html_showElement(this.pauseButton);
14894
14893
  html_enableElement(this.pauseButton);
@@ -14906,8 +14905,8 @@
14906
14905
  }
14907
14906
  }
14908
14907
  onResuming() {
14909
- hideElement(this.resumeButton);
14910
- hideElement(this.recordButton);
14908
+ html_hideElement(this.resumeButton);
14909
+ html_hideElement(this.recordButton);
14911
14910
  if (this.pauseButton) {
14912
14911
  html_enableElement(this.pauseButton);
14913
14912
  html_showElement(this.pauseButton);
@@ -14916,8 +14915,8 @@
14916
14915
  onStopping() {
14917
14916
  html_disableElement(this.previewButton);
14918
14917
  html_disableElement(this.recordButton);
14919
- hideElement(this.pauseButton);
14920
- hideElement(this.resumeButton);
14918
+ html_hideElement(this.pauseButton);
14919
+ html_hideElement(this.resumeButton);
14921
14920
  }
14922
14921
  onCountdown() {
14923
14922
  html_disableElement(this.recordButton);
@@ -14942,12 +14941,12 @@
14942
14941
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
14943
14942
  }
14944
14943
  onHidden() {
14945
- hideElement(this.recordButton);
14946
- hideElement(this.previewButton);
14947
- hideElement(this.recordAgainButton);
14948
- hideElement(this.resumeButton);
14949
- hideElement(this.audioOnRadioPair);
14950
- hideElement(this.audioOffRadioPair);
14944
+ html_hideElement(this.recordButton);
14945
+ html_hideElement(this.previewButton);
14946
+ html_hideElement(this.recordAgainButton);
14947
+ html_hideElement(this.resumeButton);
14948
+ html_hideElement(this.audioOnRadioPair);
14949
+ html_hideElement(this.audioOffRadioPair);
14951
14950
  }
14952
14951
  onEnablingAudio() {
14953
14952
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -15040,7 +15039,7 @@
15040
15039
  });
15041
15040
  this.on("CONNECTED", ()=>{
15042
15041
  if (this.options.loadUserMediaOnRecord) {
15043
- if (isShown(this.recordButton)) html_enableElement(this.recordButton);
15042
+ if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
15044
15043
  }
15045
15044
  });
15046
15045
  this.on("DISCONNECTED", ()=>{
@@ -15085,7 +15084,7 @@
15085
15084
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
15086
15085
  this.container.appendChild(this.buttonsElement);
15087
15086
  }
15088
- hideElement(this.buttonsElement);
15087
+ html_hideElement(this.buttonsElement);
15089
15088
  this.buildButtons();
15090
15089
  if (!this.built) this.initEvents();
15091
15090
  this.built = true;
@@ -15100,16 +15099,16 @@
15100
15099
  }
15101
15100
  }
15102
15101
  hide(deep = false) {
15103
- hideElement(this.buttonsElement);
15102
+ html_hideElement(this.buttonsElement);
15104
15103
  if (deep) {
15105
- hideElement(this.recordButton);
15106
- hideElement(this.pauseButton);
15107
- hideElement(this.resumeButton);
15108
- hideElement(this.previewButton);
15109
- hideElement(this.recordAgainButton);
15110
- hideElement(this.submitButton);
15111
- hideElement(this.audioOnRadioPair);
15112
- hideElement(this.audioOffRadioPair);
15104
+ html_hideElement(this.recordButton);
15105
+ html_hideElement(this.pauseButton);
15106
+ html_hideElement(this.resumeButton);
15107
+ html_hideElement(this.previewButton);
15108
+ html_hideElement(this.recordAgainButton);
15109
+ html_hideElement(this.submitButton);
15110
+ html_hideElement(this.audioOnRadioPair);
15111
+ html_hideElement(this.audioOffRadioPair);
15113
15112
  }
15114
15113
  }
15115
15114
  show() {
@@ -15822,10 +15821,10 @@
15822
15821
  canvas_to_buffer_modern_r.atob = void 0;
15823
15822
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
15824
15823
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
15825
- function isPromise(anything) {
15826
- return anything && "undefined" != typeof Promise && anything instanceof Promise;
15824
+ function isPromise_isPromise(anything) {
15825
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
15827
15826
  }
15828
- const util_isPromise = isPromise;
15827
+ const isPromise = isPromise_isPromise;
15829
15828
  class audio_sample_modern_t {
15830
15829
  constructor(r){
15831
15830
  this.float32Array = void 0, this.float32Array = r;
@@ -16169,7 +16168,7 @@
16169
16168
  } catch (exc) {
16170
16169
  this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
16171
16170
  }
16172
- if (util_isPromise(p)) p.then(()=>{
16171
+ if (isPromise(p)) p.then(()=>{
16173
16172
  if (!this.playingPromiseReached) {
16174
16173
  this.options.logger.debug("UserMedia: play promise successful. Playing now.");
16175
16174
  this.playingPromiseReached = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.3.3",
3
+ "version": "10.3.5",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -58,7 +58,7 @@
58
58
  "prettier": "./prettier.config.cjs",
59
59
  "dependencies": {
60
60
  "animitter": "3.0.0",
61
- "audio-sample": "4.1.0",
61
+ "audio-sample": "5.0.0",
62
62
  "canvas-to-buffer": "4.1.2",
63
63
  "contains": "0.1.1",
64
64
  "deepmerge": "4.3.1",
@@ -69,22 +69,22 @@
69
69
  "is-power-of-two": "1.0.0",
70
70
  "nanoevents": "9.1.0",
71
71
  "serialize-error": "12.0.0",
72
- "superagent": "10.2.1",
72
+ "superagent": "10.2.3",
73
73
  "ua-parser-js": "2.0.4",
74
74
  "websocket-stream": "5.5.2"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@chromatic-com/storybook": "4.0.1",
78
78
  "@eslint/config-inspector": "1.1.0",
79
- "@eslint/js": "9.30.1",
80
- "@rsbuild/plugin-node-polyfill": "1.3.0",
81
- "@rsbuild/plugin-stylus": "1.1.1",
82
- "@rsdoctor/rspack-plugin": "1.1.7",
83
- "@rslib/core": "0.10.4",
84
- "@storybook/addon-a11y": "9.0.15",
85
- "@storybook/addon-docs": "9.0.15",
86
- "@storybook/addon-links": "9.0.15",
87
- "@storybook/html": "9.0.15",
79
+ "@eslint/js": "9.32.0",
80
+ "@rsbuild/plugin-node-polyfill": "1.3.2",
81
+ "@rsbuild/plugin-stylus": "1.1.2",
82
+ "@rsdoctor/rspack-plugin": "1.1.10",
83
+ "@rslib/core": "0.11.0",
84
+ "@storybook/addon-a11y": "9.0.18",
85
+ "@storybook/addon-docs": "9.0.18",
86
+ "@storybook/addon-links": "9.0.18",
87
+ "@storybook/html": "9.0.18",
88
88
  "@tsconfig/node22": "22.0.2",
89
89
  "@tsconfig/strictest": "2.0.5",
90
90
  "@types/defined": "1.0.2",
@@ -93,32 +93,32 @@
93
93
  "@types/ua-parser-js": "0.7.39",
94
94
  "@vitest/eslint-plugin": "1.3.4",
95
95
  "audit-ci": "7.1.0",
96
- "chromatic": "13.1.0",
96
+ "chromatic": "13.1.2",
97
97
  "cross-env": "7.0.3",
98
- "eslint": "9.30.1",
98
+ "eslint": "9.32.0",
99
99
  "eslint-import-resolver-typescript": "4.4.4",
100
100
  "eslint-plugin-de-morgan": "1.3.0",
101
101
  "eslint-plugin-depend": "1.2.0",
102
102
  "eslint-plugin-import-x": "4.16.1",
103
- "eslint-plugin-package-json": "0.43.0",
103
+ "eslint-plugin-package-json": "0.45.1",
104
104
  "eslint-plugin-promise": "7.2.1",
105
105
  "eslint-plugin-regexp": "2.9.0",
106
106
  "eslint-plugin-security": "3.0.1",
107
- "eslint-plugin-storybook": "9.0.15",
107
+ "eslint-plugin-storybook": "9.0.18",
108
108
  "globals": "16.3.0",
109
109
  "jsdom": "26.1.0",
110
- "msw": "2.10.2",
110
+ "msw": "2.10.4",
111
111
  "msw-storybook-addon": "2.0.5",
112
112
  "prettier": "3.6.2",
113
113
  "prettier-plugin-curly": "0.3.2",
114
- "prettier-plugin-packagejson": "2.5.17",
114
+ "prettier-plugin-packagejson": "2.5.19",
115
115
  "prettier-plugin-sh": "0.18.0",
116
- "release-it": "19.0.3",
117
- "storybook": "9.0.15",
116
+ "release-it": "19.0.4",
117
+ "storybook": "9.0.18",
118
118
  "storybook-html-rsbuild": "2.0.2",
119
119
  "type-fest": "4.41.0",
120
120
  "typescript": "5.8.3",
121
- "typescript-eslint": "8.35.1",
121
+ "typescript-eslint": "8.38.0",
122
122
  "vitest": "3.2.4"
123
123
  },
124
124
  "engines": {