@bigbinary/neeto-playwright-commons 1.26.28 → 1.26.30
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 +57 -18
- package/index.cjs.js.map +1 -1
- package/index.js +57 -18
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -3694,7 +3694,7 @@ function requireUtils$4 () {
|
|
|
3694
3694
|
var hexTable = (function () {
|
|
3695
3695
|
var array = [];
|
|
3696
3696
|
for (var i = 0; i < 256; ++i) {
|
|
3697
|
-
array.
|
|
3697
|
+
array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
|
|
3698
3698
|
}
|
|
3699
3699
|
|
|
3700
3700
|
return array;
|
|
@@ -3710,7 +3710,7 @@ function requireUtils$4 () {
|
|
|
3710
3710
|
|
|
3711
3711
|
for (var j = 0; j < obj.length; ++j) {
|
|
3712
3712
|
if (typeof obj[j] !== 'undefined') {
|
|
3713
|
-
compacted.
|
|
3713
|
+
compacted[compacted.length] = obj[j];
|
|
3714
3714
|
}
|
|
3715
3715
|
}
|
|
3716
3716
|
|
|
@@ -3738,7 +3738,11 @@ function requireUtils$4 () {
|
|
|
3738
3738
|
|
|
3739
3739
|
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
3740
3740
|
if (isArray(target)) {
|
|
3741
|
-
target.
|
|
3741
|
+
var nextIndex = target.length;
|
|
3742
|
+
if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
|
|
3743
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
3744
|
+
}
|
|
3745
|
+
target[nextIndex] = source;
|
|
3742
3746
|
} else if (target && typeof target === 'object') {
|
|
3743
3747
|
if (isOverflow(target)) {
|
|
3744
3748
|
// Add at next numeric index for overflow objects
|
|
@@ -3771,7 +3775,11 @@ function requireUtils$4 () {
|
|
|
3771
3775
|
}
|
|
3772
3776
|
return markOverflow(result, getMaxIndex(source) + 1);
|
|
3773
3777
|
}
|
|
3774
|
-
|
|
3778
|
+
var combined = [target].concat(source);
|
|
3779
|
+
if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
|
|
3780
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
3781
|
+
}
|
|
3782
|
+
return combined;
|
|
3775
3783
|
}
|
|
3776
3784
|
|
|
3777
3785
|
var mergeTarget = target;
|
|
@@ -3786,7 +3794,7 @@ function requireUtils$4 () {
|
|
|
3786
3794
|
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
3787
3795
|
target[i] = merge(targetItem, item, options);
|
|
3788
3796
|
} else {
|
|
3789
|
-
target.
|
|
3797
|
+
target[target.length] = item;
|
|
3790
3798
|
}
|
|
3791
3799
|
} else {
|
|
3792
3800
|
target[i] = item;
|
|
@@ -3803,6 +3811,17 @@ function requireUtils$4 () {
|
|
|
3803
3811
|
} else {
|
|
3804
3812
|
acc[key] = value;
|
|
3805
3813
|
}
|
|
3814
|
+
|
|
3815
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
3816
|
+
markOverflow(acc, getMaxIndex(source));
|
|
3817
|
+
}
|
|
3818
|
+
if (isOverflow(acc)) {
|
|
3819
|
+
var keyNum = parseInt(key, 10);
|
|
3820
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
3821
|
+
setMaxIndex(acc, keyNum);
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3806
3825
|
return acc;
|
|
3807
3826
|
}, mergeTarget);
|
|
3808
3827
|
};
|
|
@@ -3919,8 +3938,8 @@ function requireUtils$4 () {
|
|
|
3919
3938
|
var key = keys[j];
|
|
3920
3939
|
var val = obj[key];
|
|
3921
3940
|
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
3922
|
-
queue.
|
|
3923
|
-
refs.
|
|
3941
|
+
queue[queue.length] = { obj: obj, prop: key };
|
|
3942
|
+
refs[refs.length] = val;
|
|
3924
3943
|
}
|
|
3925
3944
|
}
|
|
3926
3945
|
}
|
|
@@ -3962,7 +3981,7 @@ function requireUtils$4 () {
|
|
|
3962
3981
|
if (isArray(val)) {
|
|
3963
3982
|
var mapped = [];
|
|
3964
3983
|
for (var i = 0; i < val.length; i += 1) {
|
|
3965
|
-
mapped.
|
|
3984
|
+
mapped[mapped.length] = fn(val[i]);
|
|
3966
3985
|
}
|
|
3967
3986
|
return mapped;
|
|
3968
3987
|
}
|
|
@@ -3979,6 +3998,7 @@ function requireUtils$4 () {
|
|
|
3979
3998
|
isBuffer: isBuffer,
|
|
3980
3999
|
isOverflow: isOverflow,
|
|
3981
4000
|
isRegExp: isRegExp,
|
|
4001
|
+
markOverflow: markOverflow,
|
|
3982
4002
|
maybeMap: maybeMap,
|
|
3983
4003
|
merge: merge
|
|
3984
4004
|
};
|
|
@@ -4419,7 +4439,7 @@ function requireParse$4 () {
|
|
|
4419
4439
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
4420
4440
|
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
4421
4441
|
|
|
4422
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
4442
|
+
var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
|
|
4423
4443
|
var parts = cleanStr.split(
|
|
4424
4444
|
options.delimiter,
|
|
4425
4445
|
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
@@ -4486,6 +4506,13 @@ function requireParse$4 () {
|
|
|
4486
4506
|
val = isArray(val) ? [val] : val;
|
|
4487
4507
|
}
|
|
4488
4508
|
|
|
4509
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
4510
|
+
if (options.throwOnLimitExceeded) {
|
|
4511
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4512
|
+
}
|
|
4513
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4489
4516
|
if (key !== null) {
|
|
4490
4517
|
var existing = has.call(obj, key);
|
|
4491
4518
|
if (existing && options.duplicates === 'combine') {
|
|
@@ -4536,17 +4563,21 @@ function requireParse$4 () {
|
|
|
4536
4563
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
4537
4564
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
4538
4565
|
var index = parseInt(decodedRoot, 10);
|
|
4539
|
-
|
|
4540
|
-
obj = { 0: leaf };
|
|
4541
|
-
} else if (
|
|
4542
|
-
!isNaN(index)
|
|
4566
|
+
var isValidArrayIndex = !isNaN(index)
|
|
4543
4567
|
&& root !== decodedRoot
|
|
4544
4568
|
&& String(index) === decodedRoot
|
|
4545
4569
|
&& index >= 0
|
|
4546
|
-
&&
|
|
4547
|
-
) {
|
|
4570
|
+
&& options.parseArrays;
|
|
4571
|
+
if (!options.parseArrays && decodedRoot === '') {
|
|
4572
|
+
obj = { 0: leaf };
|
|
4573
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
4548
4574
|
obj = [];
|
|
4549
4575
|
obj[index] = leaf;
|
|
4576
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
4577
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
4578
|
+
} else if (isValidArrayIndex) {
|
|
4579
|
+
obj[index] = leaf;
|
|
4580
|
+
utils.markOverflow(obj, index);
|
|
4550
4581
|
} else if (decodedRoot !== '__proto__') {
|
|
4551
4582
|
obj[decodedRoot] = leaf;
|
|
4552
4583
|
}
|
|
@@ -4586,7 +4617,7 @@ function requireParse$4 () {
|
|
|
4586
4617
|
}
|
|
4587
4618
|
}
|
|
4588
4619
|
|
|
4589
|
-
keys.
|
|
4620
|
+
keys[keys.length] = parent;
|
|
4590
4621
|
}
|
|
4591
4622
|
|
|
4592
4623
|
var i = 0;
|
|
@@ -4600,7 +4631,7 @@ function requireParse$4 () {
|
|
|
4600
4631
|
}
|
|
4601
4632
|
}
|
|
4602
4633
|
|
|
4603
|
-
keys.
|
|
4634
|
+
keys[keys.length] = segment[1];
|
|
4604
4635
|
}
|
|
4605
4636
|
|
|
4606
4637
|
if (segment) {
|
|
@@ -4608,7 +4639,7 @@ function requireParse$4 () {
|
|
|
4608
4639
|
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
4609
4640
|
}
|
|
4610
4641
|
|
|
4611
|
-
keys.
|
|
4642
|
+
keys[keys.length] = '[' + key.slice(segment.index) + ']';
|
|
4612
4643
|
}
|
|
4613
4644
|
|
|
4614
4645
|
return keys;
|
|
@@ -125111,13 +125142,18 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
125111
125142
|
projects: useCustomProjects
|
|
125112
125143
|
? projectOverrides
|
|
125113
125144
|
: (() => {
|
|
125145
|
+
const setupLaunchOptions = getProjectLaunchOptions(PROJECT_NAMES.setup);
|
|
125114
125146
|
const webkitLaunchOptions = getProjectLaunchOptions(PROJECT_NAMES.webkit);
|
|
125115
125147
|
const lighthouseAuditsLaunchOptions = getProjectLaunchOptions(PROJECT_NAMES.lighthouseAudits);
|
|
125148
|
+
const cleanupCredentialsLaunchOptions = getProjectLaunchOptions(PROJECT_NAMES.cleanupCredentials);
|
|
125116
125149
|
return [
|
|
125117
125150
|
{
|
|
125118
125151
|
name: PROJECT_NAMES.setup,
|
|
125119
125152
|
testMatch: "global.setup.ts",
|
|
125120
125153
|
teardown: PROJECT_NAMES.cleanupCredentials,
|
|
125154
|
+
...(setupLaunchOptions && {
|
|
125155
|
+
use: { launchOptions: setupLaunchOptions },
|
|
125156
|
+
}),
|
|
125121
125157
|
},
|
|
125122
125158
|
{
|
|
125123
125159
|
name: PROJECT_NAMES.chromium,
|
|
@@ -125156,6 +125192,9 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
125156
125192
|
{
|
|
125157
125193
|
name: PROJECT_NAMES.cleanupCredentials,
|
|
125158
125194
|
testMatch: "global.teardown.ts",
|
|
125195
|
+
...(cleanupCredentialsLaunchOptions && {
|
|
125196
|
+
use: { launchOptions: cleanupCredentialsLaunchOptions },
|
|
125197
|
+
}),
|
|
125159
125198
|
},
|
|
125160
125199
|
...projectOverrides,
|
|
125161
125200
|
];
|