videomail-client 14.1.1 → 15.0.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.
@@ -1,5 +1,5 @@
1
1
  var __webpack_modules__ = {
2
- 6846 (module, __webpack_exports__, __webpack_require__) {
2
+ 2791 (module, __webpack_exports__, __webpack_require__) {
3
3
  "use strict";
4
4
  var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__(5068);
5
5
  var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
@@ -6009,8 +6009,19 @@ var __webpack_modules__ = {
6009
6009
  return String.fromCharCode(parseInt(numberStr, 10));
6010
6010
  });
6011
6011
  };
6012
- var parseArrayValue = function(val, options, currentArrayLength) {
6013
- if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) return val.split(',');
6012
+ var parseArrayValue = function(val, options, currentArrayLength, isFlatArrayValue) {
6013
+ if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) {
6014
+ if (isFlatArrayValue && options.throwOnLimitExceeded) {
6015
+ var commaCount = 0;
6016
+ var commaIndex = val.indexOf(',');
6017
+ while(commaIndex > -1){
6018
+ commaCount += 1;
6019
+ if (commaCount >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6020
+ commaIndex = val.indexOf(',', commaIndex + 1);
6021
+ }
6022
+ }
6023
+ return val.split(',');
6024
+ }
6014
6025
  if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6015
6026
  return val;
6016
6027
  };
@@ -6047,7 +6058,7 @@ var __webpack_modules__ = {
6047
6058
  val = options.strictNullHandling ? null : '';
6048
6059
  } else {
6049
6060
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
6050
- if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
6061
+ if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0, -1 === part.indexOf('[]=')), function(encodedVal) {
6051
6062
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
6052
6063
  });
6053
6064
  }
@@ -6055,13 +6066,10 @@ var __webpack_modules__ = {
6055
6066
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6056
6067
  val
6057
6068
  ] : val;
6058
- if (options.comma && isArray(val) && val.length > options.arrayLimit) {
6059
- if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6060
- val = utils.combine([], val, options.arrayLimit, options.plainObjects);
6061
- }
6069
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) val = utils.combine([], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
6062
6070
  if (null !== key) {
6063
6071
  var existing = has.call(obj, key);
6064
- if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
6072
+ if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
6065
6073
  else if (!existing || 'last' === options.duplicates) obj[key] = val;
6066
6074
  }
6067
6075
  }
@@ -6077,7 +6085,7 @@ var __webpack_modules__ = {
6077
6085
  for(var i = chain.length - 1; i >= 0; --i){
6078
6086
  var obj;
6079
6087
  var root = chain[i];
6080
- if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
6088
+ if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
6081
6089
  else {
6082
6090
  obj = options.plainObjects ? {
6083
6091
  __proto__: null
@@ -6415,6 +6423,7 @@ var __webpack_modules__ = {
6415
6423
  "use strict";
6416
6424
  var formats = __webpack_require__(4765);
6417
6425
  var getSideChannel = __webpack_require__(920);
6426
+ var defineProperty = __webpack_require__(655);
6418
6427
  var has = Object.prototype.hasOwnProperty;
6419
6428
  var isArray = Array.isArray;
6420
6429
  var overflowChannel = getSideChannel();
@@ -6454,12 +6463,24 @@ var __webpack_modules__ = {
6454
6463
  for(var i = 0; i < source.length; ++i)if (void 0 !== source[i]) obj[i] = source[i];
6455
6464
  return obj;
6456
6465
  };
6466
+ var setProperty = function(obj, key, value) {
6467
+ if ('__proto__' === key && defineProperty) defineProperty(obj, key, {
6468
+ configurable: true,
6469
+ enumerable: true,
6470
+ value: value,
6471
+ writable: true
6472
+ });
6473
+ else obj[key] = value;
6474
+ };
6457
6475
  var merge = function merge(target, source, options) {
6458
6476
  if (!source) return target;
6459
6477
  if ('object' != typeof source && 'function' != typeof source) {
6460
6478
  if (isArray(target)) {
6461
6479
  var nextIndex = target.length;
6462
- if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
6480
+ if (options && 'number' == typeof options.arrayLimit && nextIndex >= options.arrayLimit) {
6481
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6482
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
6483
+ }
6463
6484
  target[nextIndex] = source;
6464
6485
  } else if (!target || 'object' != typeof target) return [
6465
6486
  target,
@@ -6494,7 +6515,10 @@ var __webpack_modules__ = {
6494
6515
  var combined = [
6495
6516
  target
6496
6517
  ].concat(source);
6497
- if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
6518
+ if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) {
6519
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6520
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
6521
+ }
6498
6522
  return combined;
6499
6523
  }
6500
6524
  var mergeTarget = target;
@@ -6507,12 +6531,15 @@ var __webpack_modules__ = {
6507
6531
  else target[target.length] = item;
6508
6532
  } else target[i] = item;
6509
6533
  });
6534
+ if (options && 'number' == typeof options.arrayLimit && target.length > options.arrayLimit) {
6535
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6536
+ return markOverflow(arrayToObject(target, options), target.length - 1);
6537
+ }
6510
6538
  return target;
6511
6539
  }
6512
6540
  return Object.keys(source).reduce(function(acc, key) {
6513
6541
  var value = source[key];
6514
- if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
6515
- else acc[key] = value;
6542
+ has.call(acc, key) ? setProperty(acc, key, merge(acc[key], value, options)) : setProperty(acc, key, value);
6516
6543
  if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
6517
6544
  if (isOverflow(acc)) {
6518
6545
  var keyNum = parseInt(key, 10);
@@ -6523,7 +6550,7 @@ var __webpack_modules__ = {
6523
6550
  };
6524
6551
  var assign = function(target, source) {
6525
6552
  return Object.keys(source).reduce(function(acc, key) {
6526
- acc[key] = source[key];
6553
+ setProperty(acc, key, source[key]);
6527
6554
  return acc;
6528
6555
  }, target);
6529
6556
  };
@@ -6548,6 +6575,13 @@ var __webpack_modules__ = {
6548
6575
  var out = '';
6549
6576
  for(var j = 0; j < string.length; j += limit){
6550
6577
  var segment = string.length >= limit ? string.slice(j, j + limit) : string;
6578
+ if (j + limit < string.length) {
6579
+ var last = segment.charCodeAt(segment.length - 1);
6580
+ if (last >= 0xD800 && last <= 0xDBFF) {
6581
+ segment = segment.slice(0, -1);
6582
+ j -= 1;
6583
+ }
6584
+ }
6551
6585
  var arr = [];
6552
6586
  for(var i = 0; i < segment.length; ++i){
6553
6587
  var c = segment.charCodeAt(i);
@@ -6584,7 +6618,7 @@ var __webpack_modules__ = {
6584
6618
  prop: 'o'
6585
6619
  }
6586
6620
  ];
6587
- var refs = [];
6621
+ var refs = getSideChannel();
6588
6622
  for(var i = 0; i < queue.length; ++i){
6589
6623
  var item = queue[i];
6590
6624
  var obj = item.obj[item.prop];
@@ -6592,12 +6626,12 @@ var __webpack_modules__ = {
6592
6626
  for(var j = 0; j < keys.length; ++j){
6593
6627
  var key = keys[j];
6594
6628
  var val = obj[key];
6595
- if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
6629
+ if ('object' == typeof val && null !== val && !refs.has(val)) {
6596
6630
  queue[queue.length] = {
6597
6631
  obj: obj,
6598
6632
  prop: key
6599
6633
  };
6600
- refs[refs.length] = val;
6634
+ refs.set(val, true);
6601
6635
  }
6602
6636
  }
6603
6637
  }
@@ -6611,17 +6645,21 @@ var __webpack_modules__ = {
6611
6645
  if (!obj || 'object' != typeof obj) return false;
6612
6646
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
6613
6647
  };
6614
- var combine = function(a, b, arrayLimit, plainObjects) {
6648
+ var combine = function(a, b, arrayLimit, plainObjects, throwOnLimitExceeded) {
6615
6649
  if (isOverflow(a)) {
6650
+ if (throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + arrayLimit + ' element' + (1 === arrayLimit ? '' : 's') + ' allowed in an array.');
6616
6651
  var newIndex = getMaxIndex(a) + 1;
6617
6652
  a[newIndex] = b;
6618
6653
  setMaxIndex(a, newIndex);
6619
6654
  return a;
6620
6655
  }
6621
6656
  var result = [].concat(a, b);
6622
- if (result.length > arrayLimit) return markOverflow(arrayToObject(result, {
6623
- plainObjects: plainObjects
6624
- }), result.length - 1);
6657
+ if (result.length > arrayLimit) {
6658
+ if (throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + arrayLimit + ' element' + (1 === arrayLimit ? '' : 's') + ' allowed in an array.');
6659
+ return markOverflow(arrayToObject(result, {
6660
+ plainObjects: plainObjects
6661
+ }), result.length - 1);
6662
+ }
6625
6663
  return result;
6626
6664
  };
6627
6665
  var maybeMap = function(val, fn) {
@@ -6902,7 +6940,10 @@ var __webpack_modules__ = {
6902
6940
  var $channelData;
6903
6941
  var channel = {
6904
6942
  assert: function(key) {
6905
- if (!channel.has(key)) throw new $TypeError('Side channel does not contain ' + inspect(key));
6943
+ if (!channel.has(key)) {
6944
+ var keyDesc = key && Object(key) === key ? 'the given object key' : inspect(key);
6945
+ throw new $TypeError('Side channel does not contain ' + keyDesc);
6946
+ }
6906
6947
  },
6907
6948
  delete: function(key) {
6908
6949
  return !!$channelData && $channelData['delete'](key);
@@ -10259,7 +10300,7 @@ var __webpack_modules__ = {
10259
10300
  cache['$' + typedArray] = bound;
10260
10301
  }
10261
10302
  });
10262
- var tryTypedArrays = function(value) {
10303
+ function tryTypedArrays(value) {
10263
10304
  var found = false;
10264
10305
  forEach(cache, function(getter, typedArray) {
10265
10306
  if (!found) try {
@@ -10267,8 +10308,8 @@ var __webpack_modules__ = {
10267
10308
  } catch (e) {}
10268
10309
  });
10269
10310
  return found;
10270
- };
10271
- var trySlices = function(value) {
10311
+ }
10312
+ function trySlices(value) {
10272
10313
  var found = false;
10273
10314
  forEach(cache, function(getter, name) {
10274
10315
  if (!found) try {
@@ -10277,12 +10318,15 @@ var __webpack_modules__ = {
10277
10318
  } catch (e) {}
10278
10319
  });
10279
10320
  return found;
10280
- };
10321
+ }
10322
+ function isTATag(tag) {
10323
+ return $indexOf(typedArrays, tag) > -1;
10324
+ }
10281
10325
  module.exports = function(value) {
10282
10326
  if (!value || 'object' != typeof value) return false;
10283
10327
  if (!hasToStringTag) {
10284
10328
  var tag = $slice($toString(value), 8, -1);
10285
- if ($indexOf(typedArrays, tag) > -1) return tag;
10329
+ if (isTATag(tag)) return tag;
10286
10330
  if ('Object' !== tag) return false;
10287
10331
  return trySlices(value);
10288
10332
  }
@@ -10876,7 +10920,7 @@ var __webpack_exports__ = {};
10876
10920
  var client = __webpack_require__(5734);
10877
10921
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10878
10922
  var package_namespaceObject = {
10879
- rE: "14.1.1"
10923
+ rE: "15.0.1"
10880
10924
  };
10881
10925
  function isAudioEnabled(options) {
10882
10926
  return Boolean(options.audio.enabled);
@@ -15430,7 +15474,7 @@ var __webpack_exports__ = {};
15430
15474
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
15431
15475
  var styleTagTransform = __webpack_require__(2045);
15432
15476
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
15433
- var main = __webpack_require__(6846);
15477
+ var main = __webpack_require__(2791);
15434
15478
  var main_options = {};
15435
15479
  main_options.styleTagTransform = styleTagTransform_default();
15436
15480
  main_options.setAttributes = setAttributesWithoutAttributes_default();
package/dist/esm/index.js CHANGED
@@ -68,7 +68,7 @@ __webpack_require__.m = __webpack_modules__;
68
68
  __webpack_require__.nc = void 0;
69
69
  })();
70
70
  __webpack_require__.add({
71
- 6846 (module, __webpack_exports__, __webpack_require__) {
71
+ 2791 (module, __webpack_exports__, __webpack_require__) {
72
72
  var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__(5068);
73
73
  var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
74
74
  var _node_modules_rsbuild_core_compiled_css_loader_api_js__rspack_import_1 = __webpack_require__(37);
@@ -3344,7 +3344,7 @@ __webpack_require__.add({
3344
3344
  cache['$' + typedArray] = bound;
3345
3345
  }
3346
3346
  });
3347
- var tryTypedArrays = function(value) {
3347
+ function tryTypedArrays(value) {
3348
3348
  var found = false;
3349
3349
  forEach(cache, function(getter, typedArray) {
3350
3350
  if (!found) try {
@@ -3352,8 +3352,8 @@ __webpack_require__.add({
3352
3352
  } catch (e) {}
3353
3353
  });
3354
3354
  return found;
3355
- };
3356
- var trySlices = function(value) {
3355
+ }
3356
+ function trySlices(value) {
3357
3357
  var found = false;
3358
3358
  forEach(cache, function(getter, name) {
3359
3359
  if (!found) try {
@@ -3362,12 +3362,15 @@ __webpack_require__.add({
3362
3362
  } catch (e) {}
3363
3363
  });
3364
3364
  return found;
3365
- };
3365
+ }
3366
+ function isTATag(tag) {
3367
+ return $indexOf(typedArrays, tag) > -1;
3368
+ }
3366
3369
  module.exports = function(value) {
3367
3370
  if (!value || 'object' != typeof value) return false;
3368
3371
  if (!hasToStringTag) {
3369
3372
  var tag = $slice($toString(value), 8, -1);
3370
- if ($indexOf(typedArrays, tag) > -1) return tag;
3373
+ if (isTATag(tag)) return tag;
3371
3374
  if ('Object' !== tag) return false;
3372
3375
  return trySlices(value);
3373
3376
  }
@@ -3617,7 +3620,7 @@ const constants = {
3617
3620
  }
3618
3621
  };
3619
3622
  var package_namespaceObject = {
3620
- rE: "14.1.1"
3623
+ rE: "15.0.1"
3621
3624
  };
3622
3625
  function isAudioEnabled(options) {
3623
3626
  return Boolean(options.audio.enabled);
@@ -4703,7 +4706,7 @@ const insertStyleElement = __webpack_require__("6384");
4703
4706
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
4704
4707
  const styleTagTransform = __webpack_require__("2045");
4705
4708
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
4706
- const main_0 = __webpack_require__("6846");
4709
+ const main_0 = __webpack_require__("2791");
4707
4710
  var main_options = {};
4708
4711
  main_options.styleTagTransform = styleTagTransform_default();
4709
4712
  main_options.setAttributes = setAttributesWithoutAttributes_default();
package/dist/umd/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  else root["VideomailClient"] = factory();
6
6
  })(globalThis, ()=>(()=>{
7
7
  var __webpack_modules__ = {
8
- 6846 (module1, __webpack_exports__, __webpack_require__) {
8
+ 2791 (module1, __webpack_exports__, __webpack_require__) {
9
9
  "use strict";
10
10
  var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0 = __webpack_require__(5068);
11
11
  var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0_default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__rspack_import_0);
@@ -6015,8 +6015,19 @@
6015
6015
  return String.fromCharCode(parseInt(numberStr, 10));
6016
6016
  });
6017
6017
  };
6018
- var parseArrayValue = function(val, options, currentArrayLength) {
6019
- if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) return val.split(',');
6018
+ var parseArrayValue = function(val, options, currentArrayLength, isFlatArrayValue) {
6019
+ if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) {
6020
+ if (isFlatArrayValue && options.throwOnLimitExceeded) {
6021
+ var commaCount = 0;
6022
+ var commaIndex = val.indexOf(',');
6023
+ while(commaIndex > -1){
6024
+ commaCount += 1;
6025
+ if (commaCount >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6026
+ commaIndex = val.indexOf(',', commaIndex + 1);
6027
+ }
6028
+ }
6029
+ return val.split(',');
6030
+ }
6020
6031
  if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6021
6032
  return val;
6022
6033
  };
@@ -6053,7 +6064,7 @@
6053
6064
  val = options.strictNullHandling ? null : '';
6054
6065
  } else {
6055
6066
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
6056
- if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
6067
+ if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0, -1 === part.indexOf('[]=')), function(encodedVal) {
6057
6068
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
6058
6069
  });
6059
6070
  }
@@ -6061,13 +6072,10 @@
6061
6072
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6062
6073
  val
6063
6074
  ] : val;
6064
- if (options.comma && isArray(val) && val.length > options.arrayLimit) {
6065
- if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6066
- val = utils.combine([], val, options.arrayLimit, options.plainObjects);
6067
- }
6075
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) val = utils.combine([], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
6068
6076
  if (null !== key) {
6069
6077
  var existing = has.call(obj, key);
6070
- if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
6078
+ if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
6071
6079
  else if (!existing || 'last' === options.duplicates) obj[key] = val;
6072
6080
  }
6073
6081
  }
@@ -6083,7 +6091,7 @@
6083
6091
  for(var i = chain.length - 1; i >= 0; --i){
6084
6092
  var obj;
6085
6093
  var root = chain[i];
6086
- if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
6094
+ if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
6087
6095
  else {
6088
6096
  obj = options.plainObjects ? {
6089
6097
  __proto__: null
@@ -6421,6 +6429,7 @@
6421
6429
  "use strict";
6422
6430
  var formats = __webpack_require__(4765);
6423
6431
  var getSideChannel = __webpack_require__(920);
6432
+ var defineProperty = __webpack_require__(655);
6424
6433
  var has = Object.prototype.hasOwnProperty;
6425
6434
  var isArray = Array.isArray;
6426
6435
  var overflowChannel = getSideChannel();
@@ -6460,12 +6469,24 @@
6460
6469
  for(var i = 0; i < source.length; ++i)if (void 0 !== source[i]) obj[i] = source[i];
6461
6470
  return obj;
6462
6471
  };
6472
+ var setProperty = function(obj, key, value) {
6473
+ if ('__proto__' === key && defineProperty) defineProperty(obj, key, {
6474
+ configurable: true,
6475
+ enumerable: true,
6476
+ value: value,
6477
+ writable: true
6478
+ });
6479
+ else obj[key] = value;
6480
+ };
6463
6481
  var merge = function merge(target, source, options) {
6464
6482
  if (!source) return target;
6465
6483
  if ('object' != typeof source && 'function' != typeof source) {
6466
6484
  if (isArray(target)) {
6467
6485
  var nextIndex = target.length;
6468
- if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
6486
+ if (options && 'number' == typeof options.arrayLimit && nextIndex >= options.arrayLimit) {
6487
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6488
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
6489
+ }
6469
6490
  target[nextIndex] = source;
6470
6491
  } else if (!target || 'object' != typeof target) return [
6471
6492
  target,
@@ -6500,7 +6521,10 @@
6500
6521
  var combined = [
6501
6522
  target
6502
6523
  ].concat(source);
6503
- if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
6524
+ if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) {
6525
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6526
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
6527
+ }
6504
6528
  return combined;
6505
6529
  }
6506
6530
  var mergeTarget = target;
@@ -6513,12 +6537,15 @@
6513
6537
  else target[target.length] = item;
6514
6538
  } else target[i] = item;
6515
6539
  });
6540
+ if (options && 'number' == typeof options.arrayLimit && target.length > options.arrayLimit) {
6541
+ if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6542
+ return markOverflow(arrayToObject(target, options), target.length - 1);
6543
+ }
6516
6544
  return target;
6517
6545
  }
6518
6546
  return Object.keys(source).reduce(function(acc, key) {
6519
6547
  var value = source[key];
6520
- if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
6521
- else acc[key] = value;
6548
+ has.call(acc, key) ? setProperty(acc, key, merge(acc[key], value, options)) : setProperty(acc, key, value);
6522
6549
  if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
6523
6550
  if (isOverflow(acc)) {
6524
6551
  var keyNum = parseInt(key, 10);
@@ -6529,7 +6556,7 @@
6529
6556
  };
6530
6557
  var assign = function(target, source) {
6531
6558
  return Object.keys(source).reduce(function(acc, key) {
6532
- acc[key] = source[key];
6559
+ setProperty(acc, key, source[key]);
6533
6560
  return acc;
6534
6561
  }, target);
6535
6562
  };
@@ -6554,6 +6581,13 @@
6554
6581
  var out = '';
6555
6582
  for(var j = 0; j < string.length; j += limit){
6556
6583
  var segment = string.length >= limit ? string.slice(j, j + limit) : string;
6584
+ if (j + limit < string.length) {
6585
+ var last = segment.charCodeAt(segment.length - 1);
6586
+ if (last >= 0xD800 && last <= 0xDBFF) {
6587
+ segment = segment.slice(0, -1);
6588
+ j -= 1;
6589
+ }
6590
+ }
6557
6591
  var arr = [];
6558
6592
  for(var i = 0; i < segment.length; ++i){
6559
6593
  var c = segment.charCodeAt(i);
@@ -6590,7 +6624,7 @@
6590
6624
  prop: 'o'
6591
6625
  }
6592
6626
  ];
6593
- var refs = [];
6627
+ var refs = getSideChannel();
6594
6628
  for(var i = 0; i < queue.length; ++i){
6595
6629
  var item = queue[i];
6596
6630
  var obj = item.obj[item.prop];
@@ -6598,12 +6632,12 @@
6598
6632
  for(var j = 0; j < keys.length; ++j){
6599
6633
  var key = keys[j];
6600
6634
  var val = obj[key];
6601
- if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
6635
+ if ('object' == typeof val && null !== val && !refs.has(val)) {
6602
6636
  queue[queue.length] = {
6603
6637
  obj: obj,
6604
6638
  prop: key
6605
6639
  };
6606
- refs[refs.length] = val;
6640
+ refs.set(val, true);
6607
6641
  }
6608
6642
  }
6609
6643
  }
@@ -6617,17 +6651,21 @@
6617
6651
  if (!obj || 'object' != typeof obj) return false;
6618
6652
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
6619
6653
  };
6620
- var combine = function(a, b, arrayLimit, plainObjects) {
6654
+ var combine = function(a, b, arrayLimit, plainObjects, throwOnLimitExceeded) {
6621
6655
  if (isOverflow(a)) {
6656
+ if (throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + arrayLimit + ' element' + (1 === arrayLimit ? '' : 's') + ' allowed in an array.');
6622
6657
  var newIndex = getMaxIndex(a) + 1;
6623
6658
  a[newIndex] = b;
6624
6659
  setMaxIndex(a, newIndex);
6625
6660
  return a;
6626
6661
  }
6627
6662
  var result = [].concat(a, b);
6628
- if (result.length > arrayLimit) return markOverflow(arrayToObject(result, {
6629
- plainObjects: plainObjects
6630
- }), result.length - 1);
6663
+ if (result.length > arrayLimit) {
6664
+ if (throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + arrayLimit + ' element' + (1 === arrayLimit ? '' : 's') + ' allowed in an array.');
6665
+ return markOverflow(arrayToObject(result, {
6666
+ plainObjects: plainObjects
6667
+ }), result.length - 1);
6668
+ }
6631
6669
  return result;
6632
6670
  };
6633
6671
  var maybeMap = function(val, fn) {
@@ -6908,7 +6946,10 @@
6908
6946
  var $channelData;
6909
6947
  var channel = {
6910
6948
  assert: function(key) {
6911
- if (!channel.has(key)) throw new $TypeError('Side channel does not contain ' + inspect(key));
6949
+ if (!channel.has(key)) {
6950
+ var keyDesc = key && Object(key) === key ? 'the given object key' : inspect(key);
6951
+ throw new $TypeError('Side channel does not contain ' + keyDesc);
6952
+ }
6912
6953
  },
6913
6954
  delete: function(key) {
6914
6955
  return !!$channelData && $channelData['delete'](key);
@@ -10265,7 +10306,7 @@
10265
10306
  cache['$' + typedArray] = bound;
10266
10307
  }
10267
10308
  });
10268
- var tryTypedArrays = function(value) {
10309
+ function tryTypedArrays(value) {
10269
10310
  var found = false;
10270
10311
  forEach(cache, function(getter, typedArray) {
10271
10312
  if (!found) try {
@@ -10273,8 +10314,8 @@
10273
10314
  } catch (e) {}
10274
10315
  });
10275
10316
  return found;
10276
- };
10277
- var trySlices = function(value) {
10317
+ }
10318
+ function trySlices(value) {
10278
10319
  var found = false;
10279
10320
  forEach(cache, function(getter, name) {
10280
10321
  if (!found) try {
@@ -10283,12 +10324,15 @@
10283
10324
  } catch (e) {}
10284
10325
  });
10285
10326
  return found;
10286
- };
10327
+ }
10328
+ function isTATag(tag) {
10329
+ return $indexOf(typedArrays, tag) > -1;
10330
+ }
10287
10331
  module1.exports = function(value) {
10288
10332
  if (!value || 'object' != typeof value) return false;
10289
10333
  if (!hasToStringTag) {
10290
10334
  var tag = $slice($toString(value), 8, -1);
10291
- if ($indexOf(typedArrays, tag) > -1) return tag;
10335
+ if (isTATag(tag)) return tag;
10292
10336
  if ('Object' !== tag) return false;
10293
10337
  return trySlices(value);
10294
10338
  }
@@ -10882,7 +10926,7 @@
10882
10926
  var client = __webpack_require__(5734);
10883
10927
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10884
10928
  var package_namespaceObject = {
10885
- rE: "14.1.1"
10929
+ rE: "15.0.1"
10886
10930
  };
10887
10931
  function isAudioEnabled(options) {
10888
10932
  return Boolean(options.audio.enabled);
@@ -15293,7 +15337,7 @@
15293
15337
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
15294
15338
  var styleTagTransform = __webpack_require__(2045);
15295
15339
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
15296
- var main = __webpack_require__(6846);
15340
+ var main = __webpack_require__(2791);
15297
15341
  var main_options = {};
15298
15342
  main_options.styleTagTransform = styleTagTransform_default();
15299
15343
  main_options.setAttributes = setAttributesWithoutAttributes_default();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "14.1.1",
3
+ "version": "15.0.1",
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",
@@ -82,14 +82,14 @@
82
82
  "@rsbuild/plugin-stylus": "2.0.1",
83
83
  "@rsdoctor/rspack-plugin": "1.6.0",
84
84
  "@rslib/core": "0.23.2",
85
- "@storybook/addon-a11y": "10.5.0",
86
- "@storybook/addon-docs": "10.5.0",
87
- "@storybook/addon-links": "10.5.0",
88
- "@storybook/html": "10.5.0",
89
- "@tsconfig/node24": "24.0.4",
85
+ "@storybook/addon-a11y": "10.5.2",
86
+ "@storybook/addon-docs": "10.5.2",
87
+ "@storybook/addon-links": "10.5.2",
88
+ "@storybook/html": "10.5.2",
89
+ "@tsconfig/node26": "26.0.0",
90
90
  "@tsconfig/strictest": "2.0.8",
91
91
  "@types/defined": "1.0.2",
92
- "@types/node": "24.13.3",
92
+ "@types/node": "26.1.1",
93
93
  "@types/superagent": "8.1.11",
94
94
  "@types/ua-parser-js": "0.7.39",
95
95
  "@vitest/eslint-plugin": "1.6.23",
@@ -103,7 +103,7 @@
103
103
  "eslint-plugin-import-x": "4.17.1",
104
104
  "eslint-plugin-package-json": "1.6.0",
105
105
  "eslint-plugin-regexp": "3.1.1",
106
- "eslint-plugin-simple-import-sort": "13.0.0",
106
+ "eslint-plugin-simple-import-sort": "14.0.0",
107
107
  "globals": "17.7.0",
108
108
  "jsdom": "29.1.1",
109
109
  "msw": "2.15.0",
@@ -114,7 +114,7 @@
114
114
  "prettier-plugin-packagejson": "3.0.2",
115
115
  "prettier-plugin-sh": "0.19.0",
116
116
  "release-it": "20.2.1",
117
- "storybook": "10.5.0",
117
+ "storybook": "10.5.2",
118
118
  "storybook-html-rsbuild": "3.3.4",
119
119
  "type-fest": "5.8.0",
120
120
  "typescript": "6.0.3",
@@ -122,7 +122,7 @@
122
122
  "vitest": "4.1.10"
123
123
  },
124
124
  "engines": {
125
- "node": "^24.18.0",
125
+ "node": "^26.5.0",
126
126
  "npm": ">=11.16.0"
127
127
  },
128
128
  "msw": {