@bigbinary/neeto-playwright-commons 1.26.29 → 1.26.31

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/index.cjs.js CHANGED
@@ -3715,7 +3715,7 @@ function requireUtils$4 () {
3715
3715
  var hexTable = (function () {
3716
3716
  var array = [];
3717
3717
  for (var i = 0; i < 256; ++i) {
3718
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
3718
+ array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
3719
3719
  }
3720
3720
 
3721
3721
  return array;
@@ -3731,7 +3731,7 @@ function requireUtils$4 () {
3731
3731
 
3732
3732
  for (var j = 0; j < obj.length; ++j) {
3733
3733
  if (typeof obj[j] !== 'undefined') {
3734
- compacted.push(obj[j]);
3734
+ compacted[compacted.length] = obj[j];
3735
3735
  }
3736
3736
  }
3737
3737
 
@@ -3759,7 +3759,11 @@ function requireUtils$4 () {
3759
3759
 
3760
3760
  if (typeof source !== 'object' && typeof source !== 'function') {
3761
3761
  if (isArray(target)) {
3762
- target.push(source);
3762
+ var nextIndex = target.length;
3763
+ if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
3764
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
3765
+ }
3766
+ target[nextIndex] = source;
3763
3767
  } else if (target && typeof target === 'object') {
3764
3768
  if (isOverflow(target)) {
3765
3769
  // Add at next numeric index for overflow objects
@@ -3792,7 +3796,11 @@ function requireUtils$4 () {
3792
3796
  }
3793
3797
  return markOverflow(result, getMaxIndex(source) + 1);
3794
3798
  }
3795
- return [target].concat(source);
3799
+ var combined = [target].concat(source);
3800
+ if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
3801
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
3802
+ }
3803
+ return combined;
3796
3804
  }
3797
3805
 
3798
3806
  var mergeTarget = target;
@@ -3807,7 +3815,7 @@ function requireUtils$4 () {
3807
3815
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
3808
3816
  target[i] = merge(targetItem, item, options);
3809
3817
  } else {
3810
- target.push(item);
3818
+ target[target.length] = item;
3811
3819
  }
3812
3820
  } else {
3813
3821
  target[i] = item;
@@ -3824,6 +3832,17 @@ function requireUtils$4 () {
3824
3832
  } else {
3825
3833
  acc[key] = value;
3826
3834
  }
3835
+
3836
+ if (isOverflow(source) && !isOverflow(acc)) {
3837
+ markOverflow(acc, getMaxIndex(source));
3838
+ }
3839
+ if (isOverflow(acc)) {
3840
+ var keyNum = parseInt(key, 10);
3841
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
3842
+ setMaxIndex(acc, keyNum);
3843
+ }
3844
+ }
3845
+
3827
3846
  return acc;
3828
3847
  }, mergeTarget);
3829
3848
  };
@@ -3940,8 +3959,8 @@ function requireUtils$4 () {
3940
3959
  var key = keys[j];
3941
3960
  var val = obj[key];
3942
3961
  if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
3943
- queue.push({ obj: obj, prop: key });
3944
- refs.push(val);
3962
+ queue[queue.length] = { obj: obj, prop: key };
3963
+ refs[refs.length] = val;
3945
3964
  }
3946
3965
  }
3947
3966
  }
@@ -3983,7 +4002,7 @@ function requireUtils$4 () {
3983
4002
  if (isArray(val)) {
3984
4003
  var mapped = [];
3985
4004
  for (var i = 0; i < val.length; i += 1) {
3986
- mapped.push(fn(val[i]));
4005
+ mapped[mapped.length] = fn(val[i]);
3987
4006
  }
3988
4007
  return mapped;
3989
4008
  }
@@ -4000,6 +4019,7 @@ function requireUtils$4 () {
4000
4019
  isBuffer: isBuffer,
4001
4020
  isOverflow: isOverflow,
4002
4021
  isRegExp: isRegExp,
4022
+ markOverflow: markOverflow,
4003
4023
  maybeMap: maybeMap,
4004
4024
  merge: merge
4005
4025
  };
@@ -4440,7 +4460,7 @@ function requireParse$4 () {
4440
4460
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
4441
4461
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
4442
4462
 
4443
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
4463
+ var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
4444
4464
  var parts = cleanStr.split(
4445
4465
  options.delimiter,
4446
4466
  options.throwOnLimitExceeded ? limit + 1 : limit
@@ -4507,6 +4527,13 @@ function requireParse$4 () {
4507
4527
  val = isArray(val) ? [val] : val;
4508
4528
  }
4509
4529
 
4530
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
4531
+ if (options.throwOnLimitExceeded) {
4532
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
4533
+ }
4534
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
4535
+ }
4536
+
4510
4537
  if (key !== null) {
4511
4538
  var existing = has.call(obj, key);
4512
4539
  if (existing && options.duplicates === 'combine') {
@@ -4557,17 +4584,21 @@ function requireParse$4 () {
4557
4584
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
4558
4585
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
4559
4586
  var index = parseInt(decodedRoot, 10);
4560
- if (!options.parseArrays && decodedRoot === '') {
4561
- obj = { 0: leaf };
4562
- } else if (
4563
- !isNaN(index)
4587
+ var isValidArrayIndex = !isNaN(index)
4564
4588
  && root !== decodedRoot
4565
4589
  && String(index) === decodedRoot
4566
4590
  && index >= 0
4567
- && (options.parseArrays && index <= options.arrayLimit)
4568
- ) {
4591
+ && options.parseArrays;
4592
+ if (!options.parseArrays && decodedRoot === '') {
4593
+ obj = { 0: leaf };
4594
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
4569
4595
  obj = [];
4570
4596
  obj[index] = leaf;
4597
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
4598
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
4599
+ } else if (isValidArrayIndex) {
4600
+ obj[index] = leaf;
4601
+ utils.markOverflow(obj, index);
4571
4602
  } else if (decodedRoot !== '__proto__') {
4572
4603
  obj[decodedRoot] = leaf;
4573
4604
  }
@@ -4607,7 +4638,7 @@ function requireParse$4 () {
4607
4638
  }
4608
4639
  }
4609
4640
 
4610
- keys.push(parent);
4641
+ keys[keys.length] = parent;
4611
4642
  }
4612
4643
 
4613
4644
  var i = 0;
@@ -4621,7 +4652,7 @@ function requireParse$4 () {
4621
4652
  }
4622
4653
  }
4623
4654
 
4624
- keys.push(segment[1]);
4655
+ keys[keys.length] = segment[1];
4625
4656
  }
4626
4657
 
4627
4658
  if (segment) {
@@ -4629,7 +4660,7 @@ function requireParse$4 () {
4629
4660
  throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
4630
4661
  }
4631
4662
 
4632
- keys.push('[' + key.slice(segment.index) + ']');
4663
+ keys[keys.length] = '[' + key.slice(segment.index) + ']';
4633
4664
  }
4634
4665
 
4635
4666
  return keys;
@@ -119252,15 +119283,15 @@ class AuditLogsPage {
119252
119283
  this.verifyAuditLogEntry = async ({}) => { };
119253
119284
  this.currentDate = dayjs().tz("Asia/Kolkata").format("MMM D, YYYY");
119254
119285
  this.messageBuilders = {
119255
- [ACTIONS.inviteUsers]: (data) => `${this.admin} has invited ${data.emails.join(", ").toLowerCase()} to Neeto${this.product}`,
119256
- [ACTIONS.updatedUser]: (data) => `${this.admin} updated ${data.emails[1].toLowerCase()}'s email: from ${data.emails[0].toLowerCase()} to ${data.emails[1]} on Neeto${this.product}`,
119257
- [ACTIONS.removedUser]: (data) => `${this.admin} updated ${data.emails[0].toLowerCase()}'s active: from true to false on Neeto${this.product}`,
119258
- [ACTIONS.createdRole]: (data) => `${this.admin} created ${data.roleName} role on Neeto${this.product}`,
119259
- [ACTIONS.addedPermission]: (data) => `${this.admin} added ${data.permissions.join(", ").toLowerCase()} permission to ${data.roleName} role on Neeto${this.product}`,
119260
- [ACTIONS.removedPermission]: (data) => `${this.admin} removed ${data.permissions.join(", ")} permissions from ${data.roleName} role on Neeto${this.product}`,
119261
- [ACTIONS.updatedRole]: (data) => `${this.admin} updated ${data.roleName} role on Neeto${this.product}`,
119262
- [ACTIONS.deletedRole]: (data) => `${this.admin} deleted ${data.roleName} role on Neeto${this.product}`,
119263
- [ACTIONS.updatedName]: (data) => `${this.admin} updated their first name: from ${data.name} to ${this.admin.split(" ")[0]} on Neeto${this.product}`,
119286
+ [ACTIONS.inviteUsers]: (data) => `${this.admin} added ${data.emails.join(", ").toLowerCase()} to Neeto${this.product}.`,
119287
+ [ACTIONS.updatedUser]: (data) => `${this.admin} changed ${data.emails[1].toLowerCase()}'s email from ${data.emails[0].toLowerCase()} to ${data.emails[1]} on Neeto${this.product}.`,
119288
+ [ACTIONS.removedUser]: (data) => `${this.admin} changed ${data.emails[0].toLowerCase()}'s active from true to false on Neeto${this.product}.`,
119289
+ [ACTIONS.createdRole]: (data) => `${this.admin} created ${data.roleName} role on Neeto${this.product}.`,
119290
+ [ACTIONS.addedPermission]: (data) => `${this.admin} added ${data.permissions.join(", ").toLowerCase()} permission to ${data.roleName} role on Neeto${this.product}.`,
119291
+ [ACTIONS.removedPermission]: (data) => `${this.admin} removed ${data.permissions.join(", ")} permissions from ${data.roleName} role on Neeto${this.product}.`,
119292
+ [ACTIONS.updatedRole]: (data) => `${this.admin} updated ${data.roleName} role on Neeto${this.product}.`,
119293
+ [ACTIONS.deletedRole]: (data) => `${this.admin} deleted ${data.roleName} role on Neeto${this.product}.`,
119294
+ [ACTIONS.updatedName]: (data) => `${this.admin} updated their first name: from ${data.name} to ${this.admin.split(" ")[0]} on Neeto${this.product}.`,
119264
119295
  };
119265
119296
  }
119266
119297
  }