videomail-client 11.4.13 → 11.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -13,15 +13,15 @@ import websocket_stream from "websocket-stream";
13
13
  import audio_sample from "audio-sample";
14
14
  import is_power_of_two from "is-power-of-two";
15
15
  var __webpack_modules__ = {
16
- "./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(module, __webpack_exports__, __webpack_require__) {
16
+ "./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(module, __webpack_exports__, __webpack_require__) {
17
17
  __webpack_require__.d(__webpack_exports__, {
18
18
  A: ()=>__WEBPACK_DEFAULT_EXPORT__
19
19
  });
20
- 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");
21
- 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__);
22
- 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");
23
- 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__);
24
- 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());
20
+ 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");
21
+ 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__);
22
+ 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");
23
+ 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__);
24
+ 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());
25
25
  ___CSS_LOADER_EXPORT___.push([
26
26
  module.id,
27
27
  `@keyframes blink {
@@ -1561,6 +1561,10 @@ var __webpack_modules__ = {
1561
1561
  var implementation = __webpack_require__("./node_modules/function-bind/implementation.js");
1562
1562
  module.exports = Function.prototype.bind || implementation;
1563
1563
  },
1564
+ "./node_modules/generator-function/index.js": function(module) {
1565
+ const cached = (function*() {}).constructor;
1566
+ module.exports = ()=>cached;
1567
+ },
1564
1568
  "./node_modules/get-intrinsic/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
1565
1569
  var undefined;
1566
1570
  var $Object = __webpack_require__("./node_modules/es-object-atoms/index.js");
@@ -2313,13 +2317,7 @@ var __webpack_modules__ = {
2313
2317
  var getProto = __webpack_require__("./node_modules/get-proto/index.js");
2314
2318
  var toStr = callBound('Object.prototype.toString');
2315
2319
  var fnToStr = callBound('Function.prototype.toString');
2316
- var getGeneratorFunc = function() {
2317
- if (!hasToStringTag) return false;
2318
- try {
2319
- return Function('return function*() {}')();
2320
- } catch (e) {}
2321
- };
2322
- var GeneratorFunction;
2320
+ var getGeneratorFunction = __webpack_require__("./node_modules/generator-function/index.js");
2323
2321
  module.exports = function(fn) {
2324
2322
  if ('function' != typeof fn) return false;
2325
2323
  if (isFnRegex(fnToStr(fn))) return true;
@@ -2328,11 +2326,8 @@ var __webpack_modules__ = {
2328
2326
  return '[object GeneratorFunction]' === str;
2329
2327
  }
2330
2328
  if (!getProto) return false;
2331
- if (void 0 === GeneratorFunction) {
2332
- var generatorFunc = getGeneratorFunc();
2333
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
2334
- }
2335
- return getProto(fn) === GeneratorFunction;
2329
+ var GeneratorFunction = getGeneratorFunction();
2330
+ return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
2336
2331
  };
2337
2332
  },
2338
2333
  "./node_modules/is-regex/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
@@ -3325,7 +3320,7 @@ var __webpack_modules__ = {
3325
3320
  return tryTypedArrays(value);
3326
3321
  };
3327
3322
  },
3328
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
3323
+ "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
3329
3324
  module.exports = function(cssWithMappingToString) {
3330
3325
  var list = [];
3331
3326
  list.toString = function() {
@@ -3378,12 +3373,12 @@ var __webpack_modules__ = {
3378
3373
  return list;
3379
3374
  };
3380
3375
  },
3381
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
3376
+ "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
3382
3377
  module.exports = function(i) {
3383
3378
  return i[1];
3384
3379
  };
3385
3380
  },
3386
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
3381
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
3387
3382
  var stylesInDOM = [];
3388
3383
  function getIndexByIdentifier(identifier) {
3389
3384
  var result = -1;
@@ -3461,7 +3456,7 @@ var __webpack_modules__ = {
3461
3456
  };
3462
3457
  };
3463
3458
  },
3464
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
3459
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
3465
3460
  var memo = {};
3466
3461
  function getTarget(target) {
3467
3462
  if (void 0 === memo[target]) {
@@ -3482,7 +3477,7 @@ var __webpack_modules__ = {
3482
3477
  }
3483
3478
  module.exports = insertBySelector;
3484
3479
  },
3485
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
3480
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
3486
3481
  function insertStyleElement(options) {
3487
3482
  var element = document.createElement("style");
3488
3483
  options.setAttributes(element, options.attributes);
@@ -3491,14 +3486,14 @@ var __webpack_modules__ = {
3491
3486
  }
3492
3487
  module.exports = insertStyleElement;
3493
3488
  },
3494
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
3489
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
3495
3490
  function setAttributesWithoutAttributes(styleElement) {
3496
3491
  var nonce = __webpack_require__.nc;
3497
3492
  if (nonce) styleElement.setAttribute("nonce", nonce);
3498
3493
  }
3499
3494
  module.exports = setAttributesWithoutAttributes;
3500
3495
  },
3501
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
3496
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
3502
3497
  function apply(styleElement, options, obj) {
3503
3498
  var css = "";
3504
3499
  if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
@@ -3534,7 +3529,7 @@ var __webpack_modules__ = {
3534
3529
  }
3535
3530
  module.exports = domAPI;
3536
3531
  },
3537
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
3532
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
3538
3533
  function styleTagTransform(css, styleElement) {
3539
3534
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
3540
3535
  else {
@@ -3607,7 +3602,7 @@ const constants = {
3607
3602
  }
3608
3603
  };
3609
3604
  var package_namespaceObject = {
3610
- rE: "11.4.13"
3605
+ rE: "11.5.1"
3611
3606
  };
3612
3607
  const VideoType = {
3613
3608
  WebM: "webm",
@@ -3785,7 +3780,7 @@ class VideomailError extends HTTPVideomailError {
3785
3780
  screen.width,
3786
3781
  screen.height,
3787
3782
  screen.colorDepth
3788
- ].join("\xd7");
3783
+ ].join("×");
3789
3784
  if (screen.orientation) this.orientation = screen.orientation.type;
3790
3785
  this.err = errData?.err;
3791
3786
  const stackTarget = errData?.cause ?? errData?.err;
@@ -4604,19 +4599,19 @@ function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
4604
4599
  return newOptions;
4605
4600
  }
4606
4601
  const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
4607
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
4602
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
4608
4603
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
4609
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
4604
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
4610
4605
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
4611
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
4606
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
4612
4607
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
4613
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
4608
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
4614
4609
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
4615
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
4610
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
4616
4611
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
4617
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
4612
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
4618
4613
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
4619
- 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");
4614
+ var main = __webpack_require__("./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");
4620
4615
  var main_options = {};
4621
4616
  main_options.styleTagTransform = styleTagTransform_default();
4622
4617
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -5171,7 +5166,7 @@ class FacingMode extends util_Despot {
5171
5166
  else {
5172
5167
  this.facingModeElement = document.createElement("button");
5173
5168
  this.facingModeElement.classList.add("facingMode");
5174
- this.facingModeElement.innerHTML = "\u293E";
5169
+ this.facingModeElement.innerHTML = "";
5175
5170
  this.facingModeElement.onclick = (e)=>{
5176
5171
  e?.preventDefault();
5177
5172
  try {
@@ -5518,17 +5513,17 @@ class Notifier extends util_Despot {
5518
5513
  this.options.logger.debug("Limit reached");
5519
5514
  lead += `${this.options.text.limitReached}.<br/>`;
5520
5515
  }
5521
- lead += `${this.options.text.sending} \u{2026}`;
5516
+ lead += `${this.options.text.sending} …`;
5522
5517
  this.notify(lead, void 0, {
5523
5518
  stillWait: true,
5524
5519
  entertain: this.options.notifier.entertain
5525
5520
  });
5526
5521
  }
5527
5522
  onConnecting() {
5528
- this.notify("Connecting \u2026");
5523
+ this.notify("Connecting ");
5529
5524
  }
5530
5525
  onLoadingUserMedia() {
5531
- this.notify("Loading webcam \u2026");
5526
+ this.notify("Loading webcam ");
5532
5527
  }
5533
5528
  onProgress(frameProgress, sampleProgress) {
5534
5529
  let overallProgress;
@@ -5540,7 +5535,7 @@ class Notifier extends util_Despot {
5540
5535
  }
5541
5536
  onBeginVideoEncoding() {
5542
5537
  this.visuals.beginWaiting();
5543
- const lead = `${this.options.text.encoding} \u{2026}`;
5538
+ const lead = `${this.options.text.encoding} …`;
5544
5539
  this.notify(lead, void 0, {
5545
5540
  stillWait: true,
5546
5541
  entertain: this.options.notifier.entertain
@@ -5572,7 +5567,7 @@ class Notifier extends util_Despot {
5572
5567
  this.onBeginVideoEncoding();
5573
5568
  });
5574
5569
  this.on("UNLOADING", ()=>{
5575
- this.notify("Unloading \u2026");
5570
+ this.notify("Unloading ");
5576
5571
  });
5577
5572
  this.on("DISCONNECTED", ()=>{
5578
5573
  this.notify("Disconnected");
@@ -5893,7 +5888,7 @@ const MEDIA_EVENTS = [
5893
5888
  "volumechange"
5894
5889
  ];
5895
5890
  const mediaEvents = MEDIA_EVENTS;
5896
- const EVENT_ASCII = "|\u2014O\u2014|";
5891
+ const EVENT_ASCII = "|—O—|";
5897
5892
  class UserMedia extends util_Despot {
5898
5893
  recorder;
5899
5894
  rawVisualUserMedia;
@@ -6183,7 +6178,7 @@ class UserMedia extends util_Despot {
6183
6178
  }
6184
6179
  const visuals_userMedia = UserMedia;
6185
6180
  var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
6186
- const PIPE_SYMBOL = "\xb0\xba\xa4\xf8,\xb8\xb8,\xf8\xa4\xba\xb0`\xb0\xba\xa4\xf8,\xb8,\xf8\xa4\xb0\xba\xa4\xf8,\xb8\xb8,\xf8\xa4\xba\xb0`\xb0\xba\xa4\xf8,\xb8 ";
6181
+ const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
6187
6182
  class Recorder extends util_Despot {
6188
6183
  visuals;
6189
6184
  replay;
@@ -6685,7 +6680,7 @@ class Recorder extends util_Despot {
6685
6680
  }, 0);
6686
6681
  }
6687
6682
  } else {
6688
- this.options.logger.debug(`Reconnecting for the command ${command} \u{2026}`);
6683
+ this.options.logger.debug(`Reconnecting for the command ${command} …`);
6689
6684
  this.initSocket(()=>{
6690
6685
  this.writeCommand(command, args);
6691
6686
  cb?.();
@@ -7965,7 +7960,7 @@ class Container extends util_Despot {
7965
7960
  const name = invalidInput.getAttribute("name");
7966
7961
  valid = false;
7967
7962
  if (name) {
7968
- whyInvalid = `Input "${name}" seems wrong \u{1F914}`;
7963
+ whyInvalid = `Input "${name}" seems wrong 🤔`;
7969
7964
  invalidData = {
7970
7965
  [name]: invalidInput.getAttribute("value")
7971
7966
  };
@@ -7973,7 +7968,7 @@ class Container extends util_Despot {
7973
7968
  } else if (!this.areVisualsHidden() && !visualsValid) {
7974
7969
  if (this.buttonsAreReady() || this.isRecording() || this.isPaused() || this.isCountingDown()) {
7975
7970
  valid = false;
7976
- whyInvalid = "Don't forget to record a video \uD83D\uDE09";
7971
+ whyInvalid = "Don't forget to record a video 😉";
7977
7972
  invalidData = {
7978
7973
  key: void 0
7979
7974
  };