videomail-client 13.8.7 → 13.8.9

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.
@@ -6000,6 +6000,7 @@ var __webpack_modules__ = {
6000
6000
  parseArrays: true,
6001
6001
  plainObjects: false,
6002
6002
  strictDepth: false,
6003
+ strictMerge: true,
6003
6004
  strictNullHandling: false,
6004
6005
  throwOnLimitExceeded: false
6005
6006
  };
@@ -6054,9 +6055,13 @@ var __webpack_modules__ = {
6054
6055
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6055
6056
  val
6056
6057
  ] : 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
+ }
6057
6062
  if (null !== key) {
6058
6063
  var existing = has.call(obj, key);
6059
- if (existing && 'combine' === options.duplicates) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
6064
+ if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
6060
6065
  else if (!existing || 'last' === options.duplicates) obj[key] = val;
6061
6066
  }
6062
6067
  }
@@ -6080,10 +6085,15 @@ var __webpack_modules__ = {
6080
6085
  var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
6081
6086
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
6082
6087
  var index = parseInt(decodedRoot, 10);
6088
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
6083
6089
  if (options.parseArrays || '' !== decodedRoot) {
6084
- if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
6090
+ if (isValidArrayIndex && index < options.arrayLimit) {
6085
6091
  obj = [];
6086
6092
  obj[index] = leaf;
6093
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6094
+ else if (isValidArrayIndex) {
6095
+ obj[index] = leaf;
6096
+ utils.markOverflow(obj, index);
6087
6097
  } else if ('__proto__' !== decodedRoot) obj[decodedRoot] = leaf;
6088
6098
  } else obj = {
6089
6099
  0: leaf
@@ -6112,7 +6122,7 @@ var __webpack_modules__ = {
6112
6122
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
6113
6123
  if (!options.allowPrototypes) return;
6114
6124
  }
6115
- keys.push(parent);
6125
+ keys[keys.length] = parent;
6116
6126
  }
6117
6127
  var i = 0;
6118
6128
  while(null !== (segment = child.exec(key)) && i < options.depth){
@@ -6121,11 +6131,11 @@ var __webpack_modules__ = {
6121
6131
  if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
6122
6132
  if (!options.allowPrototypes) return;
6123
6133
  }
6124
- keys.push(segment[1]);
6134
+ keys[keys.length] = segment[1];
6125
6135
  }
6126
6136
  if (segment) {
6127
6137
  if (true === options.strictDepth) throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
6128
- keys.push('[' + key.slice(segment.index) + ']');
6138
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
6129
6139
  }
6130
6140
  return keys;
6131
6141
  };
@@ -6166,6 +6176,7 @@ var __webpack_modules__ = {
6166
6176
  parseArrays: false !== opts.parseArrays,
6167
6177
  plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
6168
6178
  strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
6179
+ strictMerge: 'boolean' == typeof opts.strictMerge ? !!opts.strictMerge : defaults.strictMerge,
6169
6180
  strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
6170
6181
  throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
6171
6182
  };
@@ -6402,7 +6413,7 @@ var __webpack_modules__ = {
6402
6413
  };
6403
6414
  var hexTable = function() {
6404
6415
  var array = [];
6405
- for(var i = 0; i < 256; ++i)array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
6416
+ for(var i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
6406
6417
  return array;
6407
6418
  }();
6408
6419
  var compactQueue = function(queue) {
@@ -6411,7 +6422,7 @@ var __webpack_modules__ = {
6411
6422
  var obj = item.obj[item.prop];
6412
6423
  if (isArray(obj)) {
6413
6424
  var compacted = [];
6414
- for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted.push(obj[j]);
6425
+ for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted[compacted.length] = obj[j];
6415
6426
  item.obj[item.prop] = compacted;
6416
6427
  }
6417
6428
  }
@@ -6426,8 +6437,11 @@ var __webpack_modules__ = {
6426
6437
  var merge = function merge(target, source, options) {
6427
6438
  if (!source) return target;
6428
6439
  if ('object' != typeof source && 'function' != typeof source) {
6429
- if (isArray(target)) target.push(source);
6430
- else if (!target || 'object' != typeof target) return [
6440
+ if (isArray(target)) {
6441
+ var nextIndex = target.length;
6442
+ if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
6443
+ target[nextIndex] = source;
6444
+ } else if (!target || 'object' != typeof target) return [
6431
6445
  target,
6432
6446
  source
6433
6447
  ];
@@ -6435,7 +6449,11 @@ var __webpack_modules__ = {
6435
6449
  var newIndex = getMaxIndex(target) + 1;
6436
6450
  target[newIndex] = source;
6437
6451
  setMaxIndex(target, newIndex);
6438
- } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
6452
+ } else if (options && options.strictMerge) return [
6453
+ target,
6454
+ source
6455
+ ];
6456
+ else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
6439
6457
  return target;
6440
6458
  }
6441
6459
  if (!target || 'object' != typeof target) {
@@ -6453,9 +6471,11 @@ var __webpack_modules__ = {
6453
6471
  }
6454
6472
  return markOverflow(result, getMaxIndex(source) + 1);
6455
6473
  }
6456
- return [
6474
+ var combined = [
6457
6475
  target
6458
6476
  ].concat(source);
6477
+ if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
6478
+ return combined;
6459
6479
  }
6460
6480
  var mergeTarget = target;
6461
6481
  if (isArray(target) && !isArray(source)) mergeTarget = arrayToObject(target, options);
@@ -6464,7 +6484,7 @@ var __webpack_modules__ = {
6464
6484
  if (has.call(target, i)) {
6465
6485
  var targetItem = target[i];
6466
6486
  if (targetItem && 'object' == typeof targetItem && item && 'object' == typeof item) target[i] = merge(targetItem, item, options);
6467
- else target.push(item);
6487
+ else target[target.length] = item;
6468
6488
  } else target[i] = item;
6469
6489
  });
6470
6490
  return target;
@@ -6473,6 +6493,11 @@ var __webpack_modules__ = {
6473
6493
  var value = source[key];
6474
6494
  if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
6475
6495
  else acc[key] = value;
6496
+ if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
6497
+ if (isOverflow(acc)) {
6498
+ var keyNum = parseInt(key, 10);
6499
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) setMaxIndex(acc, keyNum);
6500
+ }
6476
6501
  return acc;
6477
6502
  }, mergeTarget);
6478
6503
  };
@@ -6548,11 +6573,11 @@ var __webpack_modules__ = {
6548
6573
  var key = keys[j];
6549
6574
  var val = obj[key];
6550
6575
  if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
6551
- queue.push({
6576
+ queue[queue.length] = {
6552
6577
  obj: obj,
6553
6578
  prop: key
6554
- });
6555
- refs.push(val);
6579
+ };
6580
+ refs[refs.length] = val;
6556
6581
  }
6557
6582
  }
6558
6583
  }
@@ -6582,7 +6607,7 @@ var __webpack_modules__ = {
6582
6607
  var maybeMap = function(val, fn) {
6583
6608
  if (isArray(val)) {
6584
6609
  var mapped = [];
6585
- for(var i = 0; i < val.length; i += 1)mapped.push(fn(val[i]));
6610
+ for(var i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
6586
6611
  return mapped;
6587
6612
  }
6588
6613
  return fn(val);
@@ -6597,6 +6622,7 @@ var __webpack_modules__ = {
6597
6622
  isBuffer: isBuffer,
6598
6623
  isOverflow: isOverflow,
6599
6624
  isRegExp: isRegExp,
6625
+ markOverflow: markOverflow,
6600
6626
  maybeMap: maybeMap,
6601
6627
  merge: merge
6602
6628
  };
@@ -10826,7 +10852,7 @@ var __webpack_exports__ = {};
10826
10852
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10827
10853
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10828
10854
  var package_namespaceObject = {
10829
- rE: "13.8.7"
10855
+ rE: "13.8.9"
10830
10856
  };
10831
10857
  function isAudioEnabled(options) {
10832
10858
  return Boolean(options.audio.enabled);
@@ -9,7 +9,7 @@ export type { FullVideomailErrorData, VideomailErrorData } from "./types/error";
9
9
  export type { VideomailEvents } from "./types/events";
10
10
  export type * from "./types/events/params";
11
11
  export type { VideomailClientOptions } from "./types/options";
12
- export type { Reaction, ReactionKey, ReactionLabel, Reactions } from "./types/reaction";
12
+ export type { ReactionPretty, ReactionsPretty } from "./types/reaction";
13
13
  export type { RecordingStats } from "./types/RecordingStats";
14
14
  export type { PartialVideomail, Videomail } from "./types/Videomail";
15
15
  export type { VideoTypeType } from "./types/VideoType";
package/dist/esm/index.js CHANGED
@@ -3619,7 +3619,7 @@ const constants = {
3619
3619
  }
3620
3620
  };
3621
3621
  var package_namespaceObject = {
3622
- rE: "13.8.7"
3622
+ rE: "13.8.9"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -2,8 +2,9 @@ import { PartialDeep } from "type-fest";
2
2
  import { BrowserStats } from "./BrowserStats";
3
3
  import { DeliveryRecord } from "./Delivery";
4
4
  import { EmailAddress, EmailAddresses } from "./EmailAddress";
5
- import { Reactions } from "./reaction";
5
+ import { ReactionsPretty } from "./reaction";
6
6
  import { RecordingStats } from "./RecordingStats";
7
+ import { UserKey } from "./user";
7
8
  import VideoFormat from "./VideoFormat";
8
9
  export interface Videomail {
9
10
  subject?: string;
@@ -34,7 +35,7 @@ export interface Videomail {
34
35
  recordLocation?: string | undefined;
35
36
  parentKey?: string | undefined;
36
37
  parentSnapshots?: Videomail[] | undefined;
37
- reactions?: Reactions | undefined;
38
+ reactionsPretty?: ReactionsPretty | undefined;
38
39
  replyAllUrl?: string;
39
40
  replyUrl: string;
40
41
  shareUrl?: string;
@@ -47,7 +48,7 @@ export interface Videomail {
47
48
  whitelistKey: string;
48
49
  siteName?: string | undefined;
49
50
  url: string;
50
- userKey?: string;
51
+ userKey?: UserKey | undefined;
51
52
  versions: {
52
53
  videomailNinjaFormPlugin?: string;
53
54
  videomailClient: string;
@@ -1,27 +1,2 @@
1
- import { UserKey } from "./user";
2
- export declare const Reaction: {
3
- readonly LOVE: {
4
- readonly key: "love";
5
- readonly label: "Love";
6
- };
7
- readonly APPLAUSE: {
8
- readonly key: "applause";
9
- readonly label: "Applause";
10
- };
11
- readonly FOLDED_HANDS: {
12
- readonly key: "foldedHands";
13
- readonly label: "Pray / Beg";
14
- };
15
- readonly GRINNING_SWEAT: {
16
- readonly key: "grinningSweat";
17
- readonly label: "Smile / Grinning Sweat";
18
- };
19
- readonly ANGER: {
20
- readonly key: "anger";
21
- readonly label: "Angry";
22
- };
23
- };
24
- export type Reaction = (typeof Reaction)[keyof typeof Reaction];
25
- export type ReactionKey = Reaction["key"];
26
- export type ReactionLabel = Reaction["label"];
27
- export type Reactions = Partial<Record<ReactionKey, UserKey[]>>;
1
+ export type ReactionPretty = number | string[];
2
+ export type ReactionsPretty = Record<string, ReactionPretty[]>;
@@ -106,12 +106,8 @@ declare class Form extends Despot {
106
106
  recordLocation?: string | undefined | undefined;
107
107
  parentKey?: string | undefined | undefined;
108
108
  parentSnapshots?: Videomail[] | undefined | undefined;
109
- reactions?: {
110
- love?: string[];
111
- applause?: string[];
112
- foldedHands?: string[];
113
- grinningSweat?: string[];
114
- anger?: string[];
109
+ reactionsPretty?: {
110
+ [x: string]: import("..").ReactionPretty[] | undefined;
115
111
  } | undefined;
116
112
  replyAllUrl?: string;
117
113
  replyUrl?: string;
@@ -125,7 +121,7 @@ declare class Form extends Despot {
125
121
  whitelistKey?: string;
126
122
  siteName?: string | undefined | undefined;
127
123
  url?: string;
128
- userKey?: string;
124
+ userKey?: string | undefined;
129
125
  versions?: {
130
126
  videomailNinjaFormPlugin?: string;
131
127
  videomailClient?: string;
@@ -256,12 +252,8 @@ declare class Form extends Despot {
256
252
  recordLocation?: string | undefined | undefined;
257
253
  parentKey?: string | undefined | undefined;
258
254
  parentSnapshots?: Videomail[] | undefined | undefined;
259
- reactions?: {
260
- love?: string[];
261
- applause?: string[];
262
- foldedHands?: string[];
263
- grinningSweat?: string[];
264
- anger?: string[];
255
+ reactionsPretty?: {
256
+ [x: string]: import("..").ReactionPretty[] | undefined;
265
257
  } | undefined;
266
258
  replyAllUrl?: string;
267
259
  replyUrl?: string;
@@ -275,7 +267,7 @@ declare class Form extends Despot {
275
267
  whitelistKey?: string;
276
268
  siteName?: string | undefined | undefined;
277
269
  url?: string;
278
- userKey?: string;
270
+ userKey?: string | undefined;
279
271
  versions?: {
280
272
  videomailNinjaFormPlugin?: string;
281
273
  videomailClient?: string;
package/dist/umd/index.js CHANGED
@@ -6006,6 +6006,7 @@
6006
6006
  parseArrays: true,
6007
6007
  plainObjects: false,
6008
6008
  strictDepth: false,
6009
+ strictMerge: true,
6009
6010
  strictNullHandling: false,
6010
6011
  throwOnLimitExceeded: false
6011
6012
  };
@@ -6060,9 +6061,13 @@
6060
6061
  if (part.indexOf('[]=') > -1) val = isArray(val) ? [
6061
6062
  val
6062
6063
  ] : 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
+ }
6063
6068
  if (null !== key) {
6064
6069
  var existing = has.call(obj, key);
6065
- if (existing && 'combine' === options.duplicates) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
6070
+ if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
6066
6071
  else if (!existing || 'last' === options.duplicates) obj[key] = val;
6067
6072
  }
6068
6073
  }
@@ -6086,10 +6091,15 @@
6086
6091
  var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
6087
6092
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
6088
6093
  var index = parseInt(decodedRoot, 10);
6094
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
6089
6095
  if (options.parseArrays || '' !== decodedRoot) {
6090
- if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
6096
+ if (isValidArrayIndex && index < options.arrayLimit) {
6091
6097
  obj = [];
6092
6098
  obj[index] = leaf;
6099
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
6100
+ else if (isValidArrayIndex) {
6101
+ obj[index] = leaf;
6102
+ utils.markOverflow(obj, index);
6093
6103
  } else if ('__proto__' !== decodedRoot) obj[decodedRoot] = leaf;
6094
6104
  } else obj = {
6095
6105
  0: leaf
@@ -6118,7 +6128,7 @@
6118
6128
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
6119
6129
  if (!options.allowPrototypes) return;
6120
6130
  }
6121
- keys.push(parent);
6131
+ keys[keys.length] = parent;
6122
6132
  }
6123
6133
  var i = 0;
6124
6134
  while(null !== (segment = child.exec(key)) && i < options.depth){
@@ -6127,11 +6137,11 @@
6127
6137
  if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
6128
6138
  if (!options.allowPrototypes) return;
6129
6139
  }
6130
- keys.push(segment[1]);
6140
+ keys[keys.length] = segment[1];
6131
6141
  }
6132
6142
  if (segment) {
6133
6143
  if (true === options.strictDepth) throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
6134
- keys.push('[' + key.slice(segment.index) + ']');
6144
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
6135
6145
  }
6136
6146
  return keys;
6137
6147
  };
@@ -6172,6 +6182,7 @@
6172
6182
  parseArrays: false !== opts.parseArrays,
6173
6183
  plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
6174
6184
  strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
6185
+ strictMerge: 'boolean' == typeof opts.strictMerge ? !!opts.strictMerge : defaults.strictMerge,
6175
6186
  strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
6176
6187
  throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
6177
6188
  };
@@ -6408,7 +6419,7 @@
6408
6419
  };
6409
6420
  var hexTable = function() {
6410
6421
  var array = [];
6411
- for(var i = 0; i < 256; ++i)array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
6422
+ for(var i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
6412
6423
  return array;
6413
6424
  }();
6414
6425
  var compactQueue = function(queue) {
@@ -6417,7 +6428,7 @@
6417
6428
  var obj = item.obj[item.prop];
6418
6429
  if (isArray(obj)) {
6419
6430
  var compacted = [];
6420
- for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted.push(obj[j]);
6431
+ for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted[compacted.length] = obj[j];
6421
6432
  item.obj[item.prop] = compacted;
6422
6433
  }
6423
6434
  }
@@ -6432,8 +6443,11 @@
6432
6443
  var merge = function merge(target, source, options) {
6433
6444
  if (!source) return target;
6434
6445
  if ('object' != typeof source && 'function' != typeof source) {
6435
- if (isArray(target)) target.push(source);
6436
- else if (!target || 'object' != typeof target) return [
6446
+ if (isArray(target)) {
6447
+ var nextIndex = target.length;
6448
+ if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
6449
+ target[nextIndex] = source;
6450
+ } else if (!target || 'object' != typeof target) return [
6437
6451
  target,
6438
6452
  source
6439
6453
  ];
@@ -6441,7 +6455,11 @@
6441
6455
  var newIndex = getMaxIndex(target) + 1;
6442
6456
  target[newIndex] = source;
6443
6457
  setMaxIndex(target, newIndex);
6444
- } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
6458
+ } else if (options && options.strictMerge) return [
6459
+ target,
6460
+ source
6461
+ ];
6462
+ else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
6445
6463
  return target;
6446
6464
  }
6447
6465
  if (!target || 'object' != typeof target) {
@@ -6459,9 +6477,11 @@
6459
6477
  }
6460
6478
  return markOverflow(result, getMaxIndex(source) + 1);
6461
6479
  }
6462
- return [
6480
+ var combined = [
6463
6481
  target
6464
6482
  ].concat(source);
6483
+ if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
6484
+ return combined;
6465
6485
  }
6466
6486
  var mergeTarget = target;
6467
6487
  if (isArray(target) && !isArray(source)) mergeTarget = arrayToObject(target, options);
@@ -6470,7 +6490,7 @@
6470
6490
  if (has.call(target, i)) {
6471
6491
  var targetItem = target[i];
6472
6492
  if (targetItem && 'object' == typeof targetItem && item && 'object' == typeof item) target[i] = merge(targetItem, item, options);
6473
- else target.push(item);
6493
+ else target[target.length] = item;
6474
6494
  } else target[i] = item;
6475
6495
  });
6476
6496
  return target;
@@ -6479,6 +6499,11 @@
6479
6499
  var value = source[key];
6480
6500
  if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
6481
6501
  else acc[key] = value;
6502
+ if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
6503
+ if (isOverflow(acc)) {
6504
+ var keyNum = parseInt(key, 10);
6505
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) setMaxIndex(acc, keyNum);
6506
+ }
6482
6507
  return acc;
6483
6508
  }, mergeTarget);
6484
6509
  };
@@ -6554,11 +6579,11 @@
6554
6579
  var key = keys[j];
6555
6580
  var val = obj[key];
6556
6581
  if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
6557
- queue.push({
6582
+ queue[queue.length] = {
6558
6583
  obj: obj,
6559
6584
  prop: key
6560
- });
6561
- refs.push(val);
6585
+ };
6586
+ refs[refs.length] = val;
6562
6587
  }
6563
6588
  }
6564
6589
  }
@@ -6588,7 +6613,7 @@
6588
6613
  var maybeMap = function(val, fn) {
6589
6614
  if (isArray(val)) {
6590
6615
  var mapped = [];
6591
- for(var i = 0; i < val.length; i += 1)mapped.push(fn(val[i]));
6616
+ for(var i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
6592
6617
  return mapped;
6593
6618
  }
6594
6619
  return fn(val);
@@ -6603,6 +6628,7 @@
6603
6628
  isBuffer: isBuffer,
6604
6629
  isOverflow: isOverflow,
6605
6630
  isRegExp: isRegExp,
6631
+ markOverflow: markOverflow,
6606
6632
  maybeMap: maybeMap,
6607
6633
  merge: merge
6608
6634
  };
@@ -10832,7 +10858,7 @@
10832
10858
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10833
10859
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10834
10860
  var package_namespaceObject = {
10835
- rE: "13.8.7"
10861
+ rE: "13.8.9"
10836
10862
  };
10837
10863
  function isAudioEnabled(options) {
10838
10864
  return Boolean(options.audio.enabled);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.8.7",
3
+ "version": "13.8.9",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -108,7 +108,7 @@
108
108
  "eslint-plugin-security": "4.0.0",
109
109
  "eslint-plugin-simple-import-sort": "12.1.1",
110
110
  "globals": "17.4.0",
111
- "jsdom": "28.1.0",
111
+ "jsdom": "27.0.1",
112
112
  "msw": "2.12.14",
113
113
  "msw-storybook-addon": "2.0.6",
114
114
  "prettier": "3.8.1",