videomail-client 13.1.3 → 13.3.0

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.
package/dist/umd/index.js CHANGED
@@ -5,16 +5,16 @@
5
5
  else root["VideomailClient"] = factory();
6
6
  })(globalThis, ()=>(()=>{
7
7
  var __webpack_modules__ = {
8
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
8
+ "./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
9
9
  "use strict";
10
10
  __webpack_require__.d(__webpack_exports__, {
11
11
  A: ()=>__WEBPACK_DEFAULT_EXPORT__
12
12
  });
13
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
14
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
15
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
16
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
17
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
13
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
14
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
15
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
16
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
17
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
18
18
  ___CSS_LOADER_EXPORT___.push([
19
19
  module1.id,
20
20
  `@keyframes blink {
@@ -10205,7 +10205,7 @@
10205
10205
  "?aa23": function() {},
10206
10206
  "?9936": function() {},
10207
10207
  "?5f55": function() {},
10208
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module1) {
10208
+ "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module1) {
10209
10209
  "use strict";
10210
10210
  module1.exports = function(cssWithMappingToString) {
10211
10211
  var list = [];
@@ -10259,13 +10259,13 @@
10259
10259
  return list;
10260
10260
  };
10261
10261
  },
10262
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module1) {
10262
+ "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module1) {
10263
10263
  "use strict";
10264
10264
  module1.exports = function(i) {
10265
10265
  return i[1];
10266
10266
  };
10267
10267
  },
10268
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module1) {
10268
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module1) {
10269
10269
  "use strict";
10270
10270
  var stylesInDOM = [];
10271
10271
  function getIndexByIdentifier(identifier) {
@@ -10344,7 +10344,7 @@
10344
10344
  };
10345
10345
  };
10346
10346
  },
10347
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module1) {
10347
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module1) {
10348
10348
  "use strict";
10349
10349
  var memo = {};
10350
10350
  function getTarget(target) {
@@ -10366,7 +10366,7 @@
10366
10366
  }
10367
10367
  module1.exports = insertBySelector;
10368
10368
  },
10369
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module1) {
10369
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module1) {
10370
10370
  "use strict";
10371
10371
  function insertStyleElement(options) {
10372
10372
  var element = document.createElement("style");
@@ -10376,7 +10376,7 @@
10376
10376
  }
10377
10377
  module1.exports = insertStyleElement;
10378
10378
  },
10379
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module1, __unused_webpack_exports, __webpack_require__) {
10379
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module1, __unused_webpack_exports, __webpack_require__) {
10380
10380
  "use strict";
10381
10381
  function setAttributesWithoutAttributes(styleElement) {
10382
10382
  var nonce = __webpack_require__.nc;
@@ -10384,7 +10384,7 @@
10384
10384
  }
10385
10385
  module1.exports = setAttributesWithoutAttributes;
10386
10386
  },
10387
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module1) {
10387
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module1) {
10388
10388
  "use strict";
10389
10389
  function apply(styleElement, options, obj) {
10390
10390
  var css = "";
@@ -10421,7 +10421,7 @@
10421
10421
  }
10422
10422
  module1.exports = domAPI;
10423
10423
  },
10424
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module1) {
10424
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module1) {
10425
10425
  "use strict";
10426
10426
  function styleTagTransform(css, styleElement) {
10427
10427
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
@@ -10670,7 +10670,7 @@
10670
10670
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10671
10671
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10672
10672
  var package_namespaceObject = {
10673
- rE: "13.1.3"
10673
+ rE: "13.3.0"
10674
10674
  };
10675
10675
  var defined = __webpack_require__("./node_modules/defined/index.js");
10676
10676
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -13947,13 +13947,13 @@
13947
13947
  return inspect(anything);
13948
13948
  }
13949
13949
  const util_pretty = pretty;
13950
- class HTTPVideomailError_HTTPVideomailError extends Error {
13950
+ class HTTPVideomailError extends Error {
13951
13951
  code;
13952
13952
  status;
13953
13953
  explanation;
13954
13954
  }
13955
- const HTTPVideomailError = HTTPVideomailError_HTTPVideomailError;
13956
- class VideomailError extends HTTPVideomailError {
13955
+ const error_HTTPVideomailError = HTTPVideomailError;
13956
+ class VideomailError extends error_HTTPVideomailError {
13957
13957
  title = "Error from videomail-client npm package";
13958
13958
  location = window.location.href;
13959
13959
  logLines;
@@ -14601,7 +14601,7 @@
14601
14601
  if ("error" in body) {
14602
14602
  const message = body.error.message;
14603
14603
  const cause = body.error.cause;
14604
- const error = new HTTPVideomailError(message, {
14604
+ const error = new error_HTTPVideomailError(message, {
14605
14605
  cause
14606
14606
  });
14607
14607
  if (body.error.name) error.name = body.error.name;
@@ -14710,6 +14710,7 @@
14710
14710
  async post(videomail) {
14711
14711
  const newVideomail = this.applyDefaultValues(videomail);
14712
14712
  newVideomail[constants.VERSION_LABEL] = package_namespaceObject.rE;
14713
+ newVideomail.recordLocation = window.location.href;
14713
14714
  try {
14714
14715
  let res;
14715
14716
  if (this.options.callbacks.adjustFormDataBeforePosting) {
@@ -14930,7 +14931,7 @@
14930
14931
  return "test" === process.env.ENVIRON;
14931
14932
  }
14932
14933
  const util_isTest = isTest;
14933
- function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
14934
+ function mergeWithDefaultOptions(options = {}) {
14934
14935
  const newOptions = cjs_default()(src_options, options, {
14935
14936
  arrayMerge (_destination, source) {
14936
14937
  return source;
@@ -14941,20 +14942,20 @@
14941
14942
  if (util_isTest()) newOptions.verbose = false;
14942
14943
  return newOptions;
14943
14944
  }
14944
- const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
14945
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
14945
+ const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
14946
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
14946
14947
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
14947
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
14948
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
14948
14949
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
14949
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
14950
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
14950
14951
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
14951
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
14952
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
14952
14953
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
14953
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
14954
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
14954
14955
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
14955
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
14956
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
14956
14957
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
14957
- var main = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
14958
+ var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
14958
14959
  var main_options = {};
14959
14960
  main_options.styleTagTransform = styleTagTransform_default();
14960
14961
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -14975,7 +14976,7 @@
14975
14976
  return limitedHeight;
14976
14977
  }
14977
14978
  const dimensions_limitHeight = limitHeight;
14978
- function getOuterWidth_getOuterWidth(element) {
14979
+ function getOuterWidth(element) {
14979
14980
  let rect = element.getBoundingClientRect();
14980
14981
  let outerWidth = rect.right - rect.left;
14981
14982
  if (outerWidth < 1) {
@@ -14984,10 +14985,10 @@
14984
14985
  }
14985
14986
  return outerWidth;
14986
14987
  }
14987
- const getOuterWidth = getOuterWidth_getOuterWidth;
14988
+ const dimensions_getOuterWidth = getOuterWidth;
14988
14989
  function limitWidth(element, options, width) {
14989
14990
  let limitedWidth;
14990
- const outerWidth = getOuterWidth(element);
14991
+ const outerWidth = dimensions_getOuterWidth(element);
14991
14992
  limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
14992
14993
  if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw error_createError({
14993
14994
  message: "Limited width cannot be less than 1!",
@@ -15420,12 +15421,12 @@
15420
15421
  }
15421
15422
  }
15422
15423
  const buttons = Buttons;
15423
- function isHidden_isHidden(element) {
15424
+ function isHidden(element) {
15424
15425
  if (!element) return true;
15425
15426
  const display = element.style.getPropertyValue("display");
15426
15427
  return display.includes("none");
15427
15428
  }
15428
- const isHidden = isHidden_isHidden;
15429
+ const html_isHidden = isHidden;
15429
15430
  class Countdown {
15430
15431
  visuals;
15431
15432
  options;
@@ -16025,7 +16026,7 @@
16025
16026
  }
16026
16027
  isVisible() {
16027
16028
  if (!this.built) return false;
16028
- return this.notifyElement && !isHidden(this.notifyElement);
16029
+ return this.notifyElement && !html_isHidden(this.notifyElement);
16029
16030
  }
16030
16031
  isBuilt() {
16031
16032
  return this.built;
@@ -16142,7 +16143,7 @@
16142
16143
  return minHeight;
16143
16144
  }
16144
16145
  const dimensions_figureMinHeight = figureMinHeight;
16145
- function getRatio_getRatio(options, videoHeight, videoWidth) {
16146
+ function getRatio(options, videoHeight, videoWidth) {
16146
16147
  let ratio = 1;
16147
16148
  const hasVideoDimensions = videoHeight && videoWidth;
16148
16149
  const desiredHeight = options.video.height;
@@ -16152,7 +16153,7 @@
16152
16153
  else if (hasVideoDimensions) ratio = videoHeight / videoWidth;
16153
16154
  return ratio;
16154
16155
  }
16155
- const getRatio = getRatio_getRatio;
16156
+ const dimensions_getRatio = getRatio;
16156
16157
  function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16157
16158
  let width = videoWidth;
16158
16159
  if (width < 1) throw error_createError({
@@ -16160,7 +16161,7 @@
16160
16161
  options
16161
16162
  });
16162
16163
  if (responsive && element) width = dimensions_limitWidth(element, options, width);
16163
- const chosenRatio = ratio ?? getRatio(options, void 0, videoWidth);
16164
+ const chosenRatio = ratio ?? dimensions_getRatio(options, void 0, videoWidth);
16164
16165
  const height = Math.round(width * chosenRatio);
16165
16166
  if (Number.isInteger(height) && height < 1) throw error_createError({
16166
16167
  message: "Just calculated a height less than 1 which is wrong.",
@@ -16176,7 +16177,7 @@
16176
16177
  message: `Height ${height} cannot be smaller than 1 when calculating width.`,
16177
16178
  options
16178
16179
  });
16179
- const chosenRatio = ratio ?? getRatio(options, videoHeight);
16180
+ const chosenRatio = ratio ?? dimensions_getRatio(options, videoHeight);
16180
16181
  const calculatedWidth = Math.round(height / chosenRatio);
16181
16182
  if (calculatedWidth < 1) throw error_createError({
16182
16183
  message: "Calculated width cannot be smaller than 1!",
@@ -16202,7 +16203,7 @@
16202
16203
  function getAudioContextClass() {
16203
16204
  return window.AudioContext;
16204
16205
  }
16205
- class AudioRecorder_AudioRecorder {
16206
+ class AudioRecorder {
16206
16207
  scriptProcessor;
16207
16208
  audioInput;
16208
16209
  vcAudioContext;
@@ -16282,7 +16283,7 @@
16282
16283
  return -1;
16283
16284
  }
16284
16285
  }
16285
- const AudioRecorder = AudioRecorder_AudioRecorder;
16286
+ const media_AudioRecorder = AudioRecorder;
16286
16287
  function getFirstVideoTrack(localMediaStream) {
16287
16288
  const videoTracks = localMediaStream.getVideoTracks();
16288
16289
  let videoTrack;
@@ -16382,7 +16383,7 @@
16382
16383
  this.onPlayReached = false;
16383
16384
  this.onLoadedMetaDataReached = false;
16384
16385
  this.playingPromiseReached = false;
16385
- if (isAudioEnabled(this.options)) this.audioRecorder ??= new AudioRecorder(this, this.options);
16386
+ if (isAudioEnabled(this.options)) this.audioRecorder ??= new media_AudioRecorder(this, this.options);
16386
16387
  const unloadAllEventListeners = ()=>{
16387
16388
  this.options.logger.debug("UserMedia: unloadAllEventListeners()");
16388
16389
  this.unloadRemainingEventListeners();
@@ -17086,7 +17087,7 @@
17086
17087
  return this.visuals.isNotifying();
17087
17088
  }
17088
17089
  isHidden() {
17089
- return !this.recorderElement || isHidden(this.recorderElement);
17090
+ return !this.recorderElement || html_isHidden(this.recorderElement);
17090
17091
  }
17091
17092
  writeCommand(command, args, cb) {
17092
17093
  if (this.connected) {
@@ -17502,7 +17503,7 @@
17502
17503
  const userMediaVideoHeight = this.userMedia.getVideoHeight();
17503
17504
  if (!userMediaVideoWidth || userMediaVideoWidth < 1) ratio = this.visuals.getRatio();
17504
17505
  else if (userMediaVideoHeight) ratio = userMediaVideoHeight / userMediaVideoWidth;
17505
- } else ratio = getRatio(this.options);
17506
+ } else ratio = dimensions_getRatio(this.options);
17506
17507
  return ratio;
17507
17508
  }
17508
17509
  calculateWidth(responsive) {
@@ -17777,7 +17778,7 @@
17777
17778
  }
17778
17779
  isShown() {
17779
17780
  if (!this.replayElement) return false;
17780
- return !isHidden(this.replayElement) && !this.visuals.isHidden();
17781
+ return !html_isHidden(this.replayElement) && !this.visuals.isHidden();
17781
17782
  }
17782
17783
  getVisuals() {
17783
17784
  return this.visuals;
@@ -17988,7 +17989,7 @@
17988
17989
  }
17989
17990
  isHidden() {
17990
17991
  if (!this.built) return true;
17991
- return isHidden(this.visualsElement);
17992
+ return html_isHidden(this.visualsElement);
17992
17993
  }
17993
17994
  showVisuals() {
17994
17995
  html_showElement(this.visualsElement);
@@ -18128,7 +18129,7 @@
18128
18129
  }
18129
18130
  getFormElement() {
18130
18131
  let formElement;
18131
- if (this.containerElement && "FORM" === this.containerElement.tagName) formElement = this.containerElement;
18132
+ if (this.containerElement?.tagName === "FORM") formElement = this.containerElement;
18132
18133
  else if (this.options.selectors.formId) {
18133
18134
  formElement = document.querySelector(`#${this.options.selectors.formId}`);
18134
18135
  if (formElement && "FORM" !== formElement.tagName) throw new Error(`HTML element with ID ${this.options.selectors.formId} is not a form.`);
@@ -18383,11 +18384,12 @@
18383
18384
  const name = invalidInput.getAttribute("name");
18384
18385
  const validity = util_getValidity(invalidInput);
18385
18386
  valid = false;
18386
- if (name) {
18387
+ if (name) if (validity?.valueMissing) whyInvalid = `Please fill out field "${name}" ⚠️`;
18388
+ else {
18389
+ whyInvalid = `Input "${name}" seems wrong 🤔`;
18387
18390
  invalidData = {
18388
18391
  [name]: invalidInput.getAttribute("value")
18389
18392
  };
18390
- whyInvalid = validity?.valueMissing ? `Please fill out field "${name}" ⚠️` : `Input "${name}" seems wrong 🤔`;
18391
18393
  }
18392
18394
  } else if (!this.areVisualsHidden() && !visualsValid) {
18393
18395
  if (this.buttonsAreReady() || this.isRecording() || this.isPaused() || this.isCountingDown()) {
@@ -18554,7 +18556,7 @@
18554
18556
  static ENC_TYPE_APP_JSON = constants["public"].ENC_TYPE_APP_JSON;
18555
18557
  static ENC_TYPE_FORM = constants["public"].ENC_TYPE_FORM;
18556
18558
  constructor(options = {}){
18557
- super("VideomailClient", mergeWithDefaultOptions(options));
18559
+ super("VideomailClient", options_mergeWithDefaultOptions(options));
18558
18560
  this.validateOptions();
18559
18561
  util_Despot.removeAllListeners();
18560
18562
  this.container = new wrappers_container(this.options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.1.3",
3
+ "version": "13.3.0",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -74,53 +74,53 @@
74
74
  "websocket-stream": "5.5.2"
75
75
  },
76
76
  "devDependencies": {
77
- "@chromatic-com/storybook": "4.1.1",
77
+ "@chromatic-com/storybook": "4.1.2",
78
78
  "@eslint/config-inspector": "1.3.0",
79
- "@eslint/js": "9.38.0",
79
+ "@eslint/js": "9.39.1",
80
80
  "@rsbuild/plugin-node-polyfill": "1.4.2",
81
81
  "@rsbuild/plugin-stylus": "1.2.0",
82
- "@rsdoctor/rspack-plugin": "1.3.4",
83
- "@rslib/core": "0.16.1",
84
- "@storybook/addon-a11y": "9.1.12",
85
- "@storybook/addon-docs": "9.1.12",
86
- "@storybook/addon-links": "9.1.12",
87
- "@storybook/html": "9.1.12",
82
+ "@rsdoctor/rspack-plugin": "1.3.7",
83
+ "@rslib/core": "0.17.0",
84
+ "@storybook/addon-a11y": "9.1.16",
85
+ "@storybook/addon-docs": "9.1.16",
86
+ "@storybook/addon-links": "9.1.16",
87
+ "@storybook/html": "9.1.16",
88
88
  "@tsconfig/node22": "22.0.2",
89
- "@tsconfig/strictest": "2.0.6",
89
+ "@tsconfig/strictest": "2.0.7",
90
90
  "@types/defined": "1.0.2",
91
91
  "@types/node": "22.18.6",
92
92
  "@types/superagent": "8.1.9",
93
93
  "@types/ua-parser-js": "0.7.39",
94
- "@vitest/eslint-plugin": "1.3.25",
94
+ "@vitest/eslint-plugin": "1.4.0",
95
95
  "audit-ci": "7.1.0",
96
- "chromatic": "13.3.0",
96
+ "chromatic": "13.3.3",
97
97
  "cross-env": "10.1.0",
98
- "eslint": "9.38.0",
98
+ "eslint": "9.39.1",
99
99
  "eslint-import-resolver-typescript": "4.4.4",
100
100
  "eslint-plugin-de-morgan": "2.0.0",
101
101
  "eslint-plugin-depend": "1.3.1",
102
102
  "eslint-plugin-import-x": "4.16.1",
103
- "eslint-plugin-package-json": "0.59.0",
103
+ "eslint-plugin-package-json": "0.62.0",
104
104
  "eslint-plugin-promise": "7.2.1",
105
105
  "eslint-plugin-regexp": "2.10.0",
106
106
  "eslint-plugin-security": "3.0.1",
107
107
  "eslint-plugin-simple-import-sort": "12.1.1",
108
- "eslint-plugin-storybook": "9.1.12",
108
+ "eslint-plugin-storybook": "9.1.16",
109
109
  "globals": "16.4.0",
110
- "jsdom": "27.0.1",
111
- "msw": "2.11.5",
110
+ "jsdom": "27.1.0",
111
+ "msw": "2.11.6",
112
112
  "msw-storybook-addon": "2.0.6",
113
113
  "prettier": "3.6.2",
114
114
  "prettier-plugin-curly": "0.4.0",
115
115
  "prettier-plugin-packagejson": "2.5.19",
116
116
  "prettier-plugin-sh": "0.18.0",
117
117
  "release-it": "19.0.5",
118
- "storybook": "9.1.12",
119
- "storybook-html-rsbuild": "2.1.1",
120
- "type-fest": "5.1.0",
118
+ "storybook": "9.1.16",
119
+ "storybook-html-rsbuild": "2.1.4",
120
+ "type-fest": "5.2.0",
121
121
  "typescript": "5.9.3",
122
122
  "typescript-eslint": "8.41.0",
123
- "vitest": "4.0.3"
123
+ "vitest": "4.0.6"
124
124
  },
125
125
  "engines": {
126
126
  "node": "^22.20.0",