videomail-client 11.5.0 → 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.
@@ -4385,6 +4385,11 @@ var __webpack_modules__ = {
4385
4385
  var implementation = __webpack_require__("./node_modules/function-bind/implementation.js");
4386
4386
  module.exports = Function.prototype.bind || implementation;
4387
4387
  },
4388
+ "./node_modules/generator-function/index.js": function(module) {
4389
+ "use strict";
4390
+ const cached = (function*() {}).constructor;
4391
+ module.exports = ()=>cached;
4392
+ },
4388
4393
  "./node_modules/get-intrinsic/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
4389
4394
  "use strict";
4390
4395
  var undefined;
@@ -5192,13 +5197,7 @@ var __webpack_modules__ = {
5192
5197
  var getProto = __webpack_require__("./node_modules/get-proto/index.js");
5193
5198
  var toStr = callBound('Object.prototype.toString');
5194
5199
  var fnToStr = callBound('Function.prototype.toString');
5195
- var getGeneratorFunc = function() {
5196
- if (!hasToStringTag) return false;
5197
- try {
5198
- return Function('return function*() {}')();
5199
- } catch (e) {}
5200
- };
5201
- var GeneratorFunction;
5200
+ var getGeneratorFunction = __webpack_require__("./node_modules/generator-function/index.js");
5202
5201
  module.exports = function(fn) {
5203
5202
  if ('function' != typeof fn) return false;
5204
5203
  if (isFnRegex(fnToStr(fn))) return true;
@@ -5207,11 +5206,8 @@ var __webpack_modules__ = {
5207
5206
  return '[object GeneratorFunction]' === str;
5208
5207
  }
5209
5208
  if (!getProto) return false;
5210
- if (void 0 === GeneratorFunction) {
5211
- var generatorFunc = getGeneratorFunc();
5212
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
5213
- }
5214
- return getProto(fn) === GeneratorFunction;
5209
+ var GeneratorFunction = getGeneratorFunction();
5210
+ return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
5215
5211
  };
5216
5212
  },
5217
5213
  "./node_modules/is-power-of-two/index.js": function(module) {
@@ -6004,15 +6000,17 @@ var __webpack_modules__ = {
6004
6000
  parseArrays: true,
6005
6001
  plainObjects: false,
6006
6002
  strictDepth: false,
6007
- strictNullHandling: false
6003
+ strictNullHandling: false,
6004
+ throwOnLimitExceeded: false
6008
6005
  };
6009
6006
  var interpretNumericEntities = function(str) {
6010
6007
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
6011
6008
  return String.fromCharCode(parseInt(numberStr, 10));
6012
6009
  });
6013
6010
  };
6014
- var parseArrayValue = function(val, options) {
6011
+ var parseArrayValue = function(val, options, currentArrayLength) {
6015
6012
  if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) return val.split(',');
6013
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6016
6014
  return val;
6017
6015
  };
6018
6016
  var isoSentinel = 'utf8=%26%2310003%3B';
@@ -6024,7 +6022,8 @@ var __webpack_modules__ = {
6024
6022
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
6025
6023
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
6026
6024
  var limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit;
6027
- var parts = cleanStr.split(options.delimiter, limit);
6025
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
6026
+ if (options.throwOnLimitExceeded && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6028
6027
  var skipIndex = -1;
6029
6028
  var i;
6030
6029
  var charset = options.charset;
@@ -6040,17 +6039,18 @@ var __webpack_modules__ = {
6040
6039
  var part = parts[i];
6041
6040
  var bracketEqualsPos = part.indexOf(']=');
6042
6041
  var pos = -1 === bracketEqualsPos ? part.indexOf('=') : bracketEqualsPos + 1;
6043
- var key, val;
6042
+ var key;
6043
+ var val;
6044
6044
  if (-1 === pos) {
6045
6045
  key = options.decoder(part, defaults.decoder, charset, 'key');
6046
6046
  val = options.strictNullHandling ? null : '';
6047
6047
  } else {
6048
6048
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
6049
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function(encodedVal) {
6049
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
6050
6050
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
6051
6051
  });
6052
6052
  }
6053
- if (val && options.interpretNumericEntities && 'iso-8859-1' === charset) val = interpretNumericEntities(val);
6053
+ if (val && options.interpretNumericEntities && 'iso-8859-1' === charset) val = interpretNumericEntities(String(val));
6054
6054
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6055
6055
  val
6056
6056
  ] : val;
@@ -6061,13 +6061,20 @@ var __webpack_modules__ = {
6061
6061
  return obj;
6062
6062
  };
6063
6063
  var parseObject = function(chain, val, options, valuesParsed) {
6064
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
6064
+ var currentArrayLength = 0;
6065
+ if (chain.length > 0 && '[]' === chain[chain.length - 1]) {
6066
+ var parentKey = chain.slice(0, -1).join('');
6067
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
6068
+ }
6069
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
6065
6070
  for(var i = chain.length - 1; i >= 0; --i){
6066
6071
  var obj;
6067
6072
  var root = chain[i];
6068
- if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : [].concat(leaf);
6073
+ if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf);
6069
6074
  else {
6070
- obj = options.plainObjects ? Object.create(null) : {};
6075
+ obj = options.plainObjects ? {
6076
+ __proto__: null
6077
+ } : {};
6071
6078
  var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
6072
6079
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
6073
6080
  var index = parseInt(decodedRoot, 10);
@@ -6118,6 +6125,7 @@ var __webpack_modules__ = {
6118
6125
  if (void 0 !== opts.decodeDotInKeys && 'boolean' != typeof opts.decodeDotInKeys) throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
6119
6126
  if (null !== opts.decoder && void 0 !== opts.decoder && 'function' != typeof opts.decoder) throw new TypeError('Decoder has to be a function.');
6120
6127
  if (void 0 !== opts.charset && 'utf-8' !== opts.charset && 'iso-8859-1' !== opts.charset) throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
6128
+ if (void 0 !== opts.throwOnLimitExceeded && 'boolean' != typeof opts.throwOnLimitExceeded) throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
6121
6129
  var charset = void 0 === opts.charset ? defaults.charset : opts.charset;
6122
6130
  var duplicates = void 0 === opts.duplicates ? defaults.duplicates : opts.duplicates;
6123
6131
  if ('combine' !== duplicates && 'first' !== duplicates && 'last' !== duplicates) throw new TypeError('The duplicates option must be either combine, first, or last');
@@ -6142,14 +6150,19 @@ var __webpack_modules__ = {
6142
6150
  parseArrays: false !== opts.parseArrays,
6143
6151
  plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
6144
6152
  strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
6145
- strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling
6153
+ strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
6154
+ throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
6146
6155
  };
6147
6156
  };
6148
6157
  module.exports = function(str, opts) {
6149
6158
  var options = normalizeParseOptions(opts);
6150
- if ('' === str || null == str) return options.plainObjects ? Object.create(null) : {};
6159
+ if ('' === str || null == str) return options.plainObjects ? {
6160
+ __proto__: null
6161
+ } : {};
6151
6162
  var tempObj = 'string' == typeof str ? parseValues(str, options) : str;
6152
- var obj = options.plainObjects ? Object.create(null) : {};
6163
+ var obj = options.plainObjects ? {
6164
+ __proto__: null
6165
+ } : {};
6153
6166
  var keys = Object.keys(tempObj);
6154
6167
  for(var i = 0; i < keys.length; ++i){
6155
6168
  var key = keys[i];
@@ -6194,11 +6207,13 @@ var __webpack_modules__ = {
6194
6207
  arrayFormat: 'indices',
6195
6208
  charset: 'utf-8',
6196
6209
  charsetSentinel: false,
6210
+ commaRoundTrip: false,
6197
6211
  delimiter: '&',
6198
6212
  encode: true,
6199
6213
  encodeDotInKeys: false,
6200
6214
  encoder: utils.encode,
6201
6215
  encodeValuesOnly: false,
6216
+ filter: void 0,
6202
6217
  format: defaultFormat,
6203
6218
  formatter: formats.formatters[defaultFormat],
6204
6219
  indices: false,
@@ -6260,14 +6275,14 @@ var __webpack_modules__ = {
6260
6275
  var keys = Object.keys(obj);
6261
6276
  objKeys = sort ? keys.sort(sort) : keys;
6262
6277
  }
6263
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
6278
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
6264
6279
  var adjustedPrefix = commaRoundTrip && isArray(obj) && 1 === obj.length ? encodedPrefix + '[]' : encodedPrefix;
6265
6280
  if (allowEmptyArrays && isArray(obj) && 0 === obj.length) return adjustedPrefix + '[]';
6266
6281
  for(var j = 0; j < objKeys.length; ++j){
6267
6282
  var key = objKeys[j];
6268
- var value = 'object' == typeof key && void 0 !== key.value ? key.value : obj[key];
6283
+ var value = 'object' == typeof key && key && void 0 !== key.value ? key.value : obj[key];
6269
6284
  if (!skipNulls || null !== value) {
6270
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
6285
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
6271
6286
  var keyPrefix = isArray(obj) ? 'function' == typeof generateArrayPrefix ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
6272
6287
  sideChannel.set(object, step);
6273
6288
  var valueSideChannel = getSideChannel();
@@ -6303,7 +6318,7 @@ var __webpack_modules__ = {
6303
6318
  arrayFormat: arrayFormat,
6304
6319
  charset: charset,
6305
6320
  charsetSentinel: 'boolean' == typeof opts.charsetSentinel ? opts.charsetSentinel : defaults.charsetSentinel,
6306
- commaRoundTrip: opts.commaRoundTrip,
6321
+ commaRoundTrip: !!opts.commaRoundTrip,
6307
6322
  delimiter: void 0 === opts.delimiter ? defaults.delimiter : opts.delimiter,
6308
6323
  encode: 'boolean' == typeof opts.encode ? opts.encode : defaults.encode,
6309
6324
  encodeDotInKeys: 'boolean' == typeof opts.encodeDotInKeys ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
@@ -6339,7 +6354,8 @@ var __webpack_modules__ = {
6339
6354
  var sideChannel = getSideChannel();
6340
6355
  for(var i = 0; i < objKeys.length; ++i){
6341
6356
  var key = objKeys[i];
6342
- if (!options.skipNulls || null !== obj[key]) pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
6357
+ var value = obj[key];
6358
+ if (!options.skipNulls || null !== value) pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
6343
6359
  }
6344
6360
  var joined = keys.join(options.delimiter);
6345
6361
  var prefix = true === options.addQueryPrefix ? '?' : '';
@@ -6370,13 +6386,15 @@ var __webpack_modules__ = {
6370
6386
  }
6371
6387
  };
6372
6388
  var arrayToObject = function(source, options) {
6373
- var obj = options && options.plainObjects ? Object.create(null) : {};
6389
+ var obj = options && options.plainObjects ? {
6390
+ __proto__: null
6391
+ } : {};
6374
6392
  for(var i = 0; i < source.length; ++i)if (void 0 !== source[i]) obj[i] = source[i];
6375
6393
  return obj;
6376
6394
  };
6377
6395
  var merge = function merge(target, source, options) {
6378
6396
  if (!source) return target;
6379
- if ('object' != typeof source) {
6397
+ if ('object' != typeof source && 'function' != typeof source) {
6380
6398
  if (isArray(target)) target.push(source);
6381
6399
  else if (!target || 'object' != typeof target) return [
6382
6400
  target,
@@ -6413,7 +6431,7 @@ var __webpack_modules__ = {
6413
6431
  return acc;
6414
6432
  }, target);
6415
6433
  };
6416
- var decode = function(str, decoder, charset) {
6434
+ var decode = function(str, defaultDecoder, charset) {
6417
6435
  var strWithoutPlus = str.replace(/\+/g, ' ');
6418
6436
  if ('iso-8859-1' === charset) return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
6419
6437
  try {
@@ -10642,7 +10660,7 @@ var __webpack_exports__ = {};
10642
10660
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10643
10661
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10644
10662
  var package_namespaceObject = {
10645
- rE: "11.5.0"
10663
+ rE: "11.5.1"
10646
10664
  };
10647
10665
  var defined = __webpack_require__("./node_modules/defined/index.js");
10648
10666
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
package/dist/esm/index.js CHANGED
@@ -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__) {
@@ -3607,7 +3602,7 @@ const constants = {
3607
3602
  }
3608
3603
  };
3609
3604
  var package_namespaceObject = {
3610
- rE: "11.5.0"
3605
+ rE: "11.5.1"
3611
3606
  };
3612
3607
  const VideoType = {
3613
3608
  WebM: "webm",
package/dist/umd/index.js CHANGED
@@ -4391,6 +4391,11 @@
4391
4391
  var implementation = __webpack_require__("./node_modules/function-bind/implementation.js");
4392
4392
  module1.exports = Function.prototype.bind || implementation;
4393
4393
  },
4394
+ "./node_modules/generator-function/index.js": function(module1) {
4395
+ "use strict";
4396
+ const cached = (function*() {}).constructor;
4397
+ module1.exports = ()=>cached;
4398
+ },
4394
4399
  "./node_modules/get-intrinsic/index.js": function(module1, __unused_webpack_exports, __webpack_require__) {
4395
4400
  "use strict";
4396
4401
  var undefined;
@@ -5198,13 +5203,7 @@
5198
5203
  var getProto = __webpack_require__("./node_modules/get-proto/index.js");
5199
5204
  var toStr = callBound('Object.prototype.toString');
5200
5205
  var fnToStr = callBound('Function.prototype.toString');
5201
- var getGeneratorFunc = function() {
5202
- if (!hasToStringTag) return false;
5203
- try {
5204
- return Function('return function*() {}')();
5205
- } catch (e) {}
5206
- };
5207
- var GeneratorFunction;
5206
+ var getGeneratorFunction = __webpack_require__("./node_modules/generator-function/index.js");
5208
5207
  module1.exports = function(fn) {
5209
5208
  if ('function' != typeof fn) return false;
5210
5209
  if (isFnRegex(fnToStr(fn))) return true;
@@ -5213,11 +5212,8 @@
5213
5212
  return '[object GeneratorFunction]' === str;
5214
5213
  }
5215
5214
  if (!getProto) return false;
5216
- if (void 0 === GeneratorFunction) {
5217
- var generatorFunc = getGeneratorFunc();
5218
- GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
5219
- }
5220
- return getProto(fn) === GeneratorFunction;
5215
+ var GeneratorFunction = getGeneratorFunction();
5216
+ return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
5221
5217
  };
5222
5218
  },
5223
5219
  "./node_modules/is-power-of-two/index.js": function(module1) {
@@ -6010,15 +6006,17 @@
6010
6006
  parseArrays: true,
6011
6007
  plainObjects: false,
6012
6008
  strictDepth: false,
6013
- strictNullHandling: false
6009
+ strictNullHandling: false,
6010
+ throwOnLimitExceeded: false
6014
6011
  };
6015
6012
  var interpretNumericEntities = function(str) {
6016
6013
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
6017
6014
  return String.fromCharCode(parseInt(numberStr, 10));
6018
6015
  });
6019
6016
  };
6020
- var parseArrayValue = function(val, options) {
6017
+ var parseArrayValue = function(val, options, currentArrayLength) {
6021
6018
  if (val && 'string' == typeof val && options.comma && val.indexOf(',') > -1) return val.split(',');
6019
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6022
6020
  return val;
6023
6021
  };
6024
6022
  var isoSentinel = 'utf8=%26%2310003%3B';
@@ -6030,7 +6028,8 @@
6030
6028
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
6031
6029
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
6032
6030
  var limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit;
6033
- var parts = cleanStr.split(options.delimiter, limit);
6031
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
6032
+ if (options.throwOnLimitExceeded && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6034
6033
  var skipIndex = -1;
6035
6034
  var i;
6036
6035
  var charset = options.charset;
@@ -6046,17 +6045,18 @@
6046
6045
  var part = parts[i];
6047
6046
  var bracketEqualsPos = part.indexOf(']=');
6048
6047
  var pos = -1 === bracketEqualsPos ? part.indexOf('=') : bracketEqualsPos + 1;
6049
- var key, val;
6048
+ var key;
6049
+ var val;
6050
6050
  if (-1 === pos) {
6051
6051
  key = options.decoder(part, defaults.decoder, charset, 'key');
6052
6052
  val = options.strictNullHandling ? null : '';
6053
6053
  } else {
6054
6054
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
6055
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function(encodedVal) {
6055
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
6056
6056
  return options.decoder(encodedVal, defaults.decoder, charset, 'value');
6057
6057
  });
6058
6058
  }
6059
- if (val && options.interpretNumericEntities && 'iso-8859-1' === charset) val = interpretNumericEntities(val);
6059
+ if (val && options.interpretNumericEntities && 'iso-8859-1' === charset) val = interpretNumericEntities(String(val));
6060
6060
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6061
6061
  val
6062
6062
  ] : val;
@@ -6067,13 +6067,20 @@
6067
6067
  return obj;
6068
6068
  };
6069
6069
  var parseObject = function(chain, val, options, valuesParsed) {
6070
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
6070
+ var currentArrayLength = 0;
6071
+ if (chain.length > 0 && '[]' === chain[chain.length - 1]) {
6072
+ var parentKey = chain.slice(0, -1).join('');
6073
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
6074
+ }
6075
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
6071
6076
  for(var i = chain.length - 1; i >= 0; --i){
6072
6077
  var obj;
6073
6078
  var root = chain[i];
6074
- if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : [].concat(leaf);
6079
+ if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf);
6075
6080
  else {
6076
- obj = options.plainObjects ? Object.create(null) : {};
6081
+ obj = options.plainObjects ? {
6082
+ __proto__: null
6083
+ } : {};
6077
6084
  var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
6078
6085
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
6079
6086
  var index = parseInt(decodedRoot, 10);
@@ -6124,6 +6131,7 @@
6124
6131
  if (void 0 !== opts.decodeDotInKeys && 'boolean' != typeof opts.decodeDotInKeys) throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
6125
6132
  if (null !== opts.decoder && void 0 !== opts.decoder && 'function' != typeof opts.decoder) throw new TypeError('Decoder has to be a function.');
6126
6133
  if (void 0 !== opts.charset && 'utf-8' !== opts.charset && 'iso-8859-1' !== opts.charset) throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
6134
+ if (void 0 !== opts.throwOnLimitExceeded && 'boolean' != typeof opts.throwOnLimitExceeded) throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
6127
6135
  var charset = void 0 === opts.charset ? defaults.charset : opts.charset;
6128
6136
  var duplicates = void 0 === opts.duplicates ? defaults.duplicates : opts.duplicates;
6129
6137
  if ('combine' !== duplicates && 'first' !== duplicates && 'last' !== duplicates) throw new TypeError('The duplicates option must be either combine, first, or last');
@@ -6148,14 +6156,19 @@
6148
6156
  parseArrays: false !== opts.parseArrays,
6149
6157
  plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
6150
6158
  strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
6151
- strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling
6159
+ strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
6160
+ throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
6152
6161
  };
6153
6162
  };
6154
6163
  module1.exports = function(str, opts) {
6155
6164
  var options = normalizeParseOptions(opts);
6156
- if ('' === str || null == str) return options.plainObjects ? Object.create(null) : {};
6165
+ if ('' === str || null == str) return options.plainObjects ? {
6166
+ __proto__: null
6167
+ } : {};
6157
6168
  var tempObj = 'string' == typeof str ? parseValues(str, options) : str;
6158
- var obj = options.plainObjects ? Object.create(null) : {};
6169
+ var obj = options.plainObjects ? {
6170
+ __proto__: null
6171
+ } : {};
6159
6172
  var keys = Object.keys(tempObj);
6160
6173
  for(var i = 0; i < keys.length; ++i){
6161
6174
  var key = keys[i];
@@ -6200,11 +6213,13 @@
6200
6213
  arrayFormat: 'indices',
6201
6214
  charset: 'utf-8',
6202
6215
  charsetSentinel: false,
6216
+ commaRoundTrip: false,
6203
6217
  delimiter: '&',
6204
6218
  encode: true,
6205
6219
  encodeDotInKeys: false,
6206
6220
  encoder: utils.encode,
6207
6221
  encodeValuesOnly: false,
6222
+ filter: void 0,
6208
6223
  format: defaultFormat,
6209
6224
  formatter: formats.formatters[defaultFormat],
6210
6225
  indices: false,
@@ -6266,14 +6281,14 @@
6266
6281
  var keys = Object.keys(obj);
6267
6282
  objKeys = sort ? keys.sort(sort) : keys;
6268
6283
  }
6269
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
6284
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
6270
6285
  var adjustedPrefix = commaRoundTrip && isArray(obj) && 1 === obj.length ? encodedPrefix + '[]' : encodedPrefix;
6271
6286
  if (allowEmptyArrays && isArray(obj) && 0 === obj.length) return adjustedPrefix + '[]';
6272
6287
  for(var j = 0; j < objKeys.length; ++j){
6273
6288
  var key = objKeys[j];
6274
- var value = 'object' == typeof key && void 0 !== key.value ? key.value : obj[key];
6289
+ var value = 'object' == typeof key && key && void 0 !== key.value ? key.value : obj[key];
6275
6290
  if (!skipNulls || null !== value) {
6276
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
6291
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
6277
6292
  var keyPrefix = isArray(obj) ? 'function' == typeof generateArrayPrefix ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
6278
6293
  sideChannel.set(object, step);
6279
6294
  var valueSideChannel = getSideChannel();
@@ -6309,7 +6324,7 @@
6309
6324
  arrayFormat: arrayFormat,
6310
6325
  charset: charset,
6311
6326
  charsetSentinel: 'boolean' == typeof opts.charsetSentinel ? opts.charsetSentinel : defaults.charsetSentinel,
6312
- commaRoundTrip: opts.commaRoundTrip,
6327
+ commaRoundTrip: !!opts.commaRoundTrip,
6313
6328
  delimiter: void 0 === opts.delimiter ? defaults.delimiter : opts.delimiter,
6314
6329
  encode: 'boolean' == typeof opts.encode ? opts.encode : defaults.encode,
6315
6330
  encodeDotInKeys: 'boolean' == typeof opts.encodeDotInKeys ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
@@ -6345,7 +6360,8 @@
6345
6360
  var sideChannel = getSideChannel();
6346
6361
  for(var i = 0; i < objKeys.length; ++i){
6347
6362
  var key = objKeys[i];
6348
- if (!options.skipNulls || null !== obj[key]) pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
6363
+ var value = obj[key];
6364
+ if (!options.skipNulls || null !== value) pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
6349
6365
  }
6350
6366
  var joined = keys.join(options.delimiter);
6351
6367
  var prefix = true === options.addQueryPrefix ? '?' : '';
@@ -6376,13 +6392,15 @@
6376
6392
  }
6377
6393
  };
6378
6394
  var arrayToObject = function(source, options) {
6379
- var obj = options && options.plainObjects ? Object.create(null) : {};
6395
+ var obj = options && options.plainObjects ? {
6396
+ __proto__: null
6397
+ } : {};
6380
6398
  for(var i = 0; i < source.length; ++i)if (void 0 !== source[i]) obj[i] = source[i];
6381
6399
  return obj;
6382
6400
  };
6383
6401
  var merge = function merge(target, source, options) {
6384
6402
  if (!source) return target;
6385
- if ('object' != typeof source) {
6403
+ if ('object' != typeof source && 'function' != typeof source) {
6386
6404
  if (isArray(target)) target.push(source);
6387
6405
  else if (!target || 'object' != typeof target) return [
6388
6406
  target,
@@ -6419,7 +6437,7 @@
6419
6437
  return acc;
6420
6438
  }, target);
6421
6439
  };
6422
- var decode = function(str, decoder, charset) {
6440
+ var decode = function(str, defaultDecoder, charset) {
6423
6441
  var strWithoutPlus = str.replace(/\+/g, ' ');
6424
6442
  if ('iso-8859-1' === charset) return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
6425
6443
  try {
@@ -10648,7 +10666,7 @@
10648
10666
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10649
10667
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10650
10668
  var package_namespaceObject = {
10651
- rE: "11.5.0"
10669
+ rE: "11.5.1"
10652
10670
  };
10653
10671
  var defined = __webpack_require__("./node_modules/defined/index.js");
10654
10672
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "11.5.0",
3
+ "version": "11.5.1",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -48,7 +48,7 @@
48
48
  "lint": "eslint --color .",
49
49
  "lint:fix": "eslint --color --fix .",
50
50
  "lint:inspect": "eslint --inspect-config",
51
- "prettier": "prettier --check ./etc ./src ./.storybook ./*.ts",
51
+ "prettier": "prettier --check ./etc ./src ./.storybook ./*.ts ./*.js",
52
52
  "prettier:fix": "prettier --write ./etc ./src ./.storybook ./*.ts",
53
53
  "release": "release-it --only-version --config ./etc/release-it.ts",
54
54
  "storybook": "cross-env BROWSER=chromium storybook dev -p 8443 --https --ssl-cert ./etc/ssl-certs/localhost.crt --ssl-key ./etc/ssl-certs/localhost.key",
@@ -81,10 +81,10 @@
81
81
  "@rsbuild/plugin-stylus": "1.2.0",
82
82
  "@rsdoctor/rspack-plugin": "1.3.3",
83
83
  "@rslib/core": "0.15.1",
84
- "@storybook/addon-a11y": "9.1.9",
85
- "@storybook/addon-docs": "9.1.9",
86
- "@storybook/addon-links": "9.1.9",
87
- "@storybook/html": "9.1.9",
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",
88
88
  "@tsconfig/node22": "22.0.2",
89
89
  "@tsconfig/strictest": "2.0.6",
90
90
  "@types/defined": "1.0.2",
@@ -100,22 +100,22 @@
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.56.4",
103
+ "eslint-plugin-package-json": "0.57.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.9",
108
+ "eslint-plugin-storybook": "9.1.12",
109
109
  "globals": "16.4.0",
110
110
  "jsdom": "27.0.0",
111
- "msw": "2.11.3",
112
- "msw-storybook-addon": "2.0.5",
111
+ "msw": "2.11.5",
112
+ "msw-storybook-addon": "2.0.6",
113
113
  "prettier": "3.6.2",
114
114
  "prettier-plugin-curly": "0.3.2",
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.9",
118
+ "storybook": "9.1.12",
119
119
  "storybook-html-rsbuild": "2.1.1",
120
120
  "type-fest": "5.1.0",
121
121
  "typescript": "5.9.3",