@locker/cli 0.28.8 → 0.28.10
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/dist/index.cjs.js +1 -1
- package/dist/index.mjs.js +1 -1
- package/dist/lws-sandbox.js +145 -69
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
package/dist/index.mjs.js
CHANGED
package/dist/lws-sandbox.js
CHANGED
|
@@ -58,6 +58,14 @@
|
|
|
58
58
|
function ObjectLookupOwnGetter$LWS$1(object$LWS, key$LWS) {
|
|
59
59
|
return object$LWS === null || object$LWS === undefined || !ObjectHasOwn$LWS$1(object$LWS, key$LWS) ? undefined : ReflectApply$LWS$1(ObjectProtoLookupGetter$LWS$1, object$LWS, [key$LWS]);
|
|
60
60
|
}
|
|
61
|
+
// Like ObjectLookupOwnGetter but without the own-property guard, so it resolves
|
|
62
|
+
// a getter defined anywhere on the prototype chain (__lookupGetter__ walks up).
|
|
63
|
+
// Use this when an accessor may live on a base interface's prototype rather than
|
|
64
|
+
// on `object` itself, e.g. an accessor the platform relocates between interface
|
|
65
|
+
// prototypes across browser versions.
|
|
66
|
+
function ObjectLookupGetter$LWS(object$LWS, key$LWS) {
|
|
67
|
+
return object$LWS === null || object$LWS === undefined ? undefined : ReflectApply$LWS$1(ObjectProtoLookupGetter$LWS$1, object$LWS, [key$LWS]);
|
|
68
|
+
}
|
|
61
69
|
function ObjectLookupOwnSetter$LWS(object$LWS, key$LWS) {
|
|
62
70
|
return object$LWS === null || object$LWS === undefined || !ObjectHasOwn$LWS$1(object$LWS, key$LWS) ? undefined : ReflectApply$LWS$1(ObjectProtoLookupSetter$LWS$1, object$LWS, [key$LWS]);
|
|
63
71
|
}
|
|
@@ -1369,7 +1377,7 @@
|
|
|
1369
1377
|
// reads identically to what isGaterEnabledFeature stores (register and
|
|
1370
1378
|
// deregister also accept the short form via fullName above). Frozen so a
|
|
1371
1379
|
// consumer cannot mutate the shared array.
|
|
1372
|
-
Object.freeze([`${FEATURE_NAME_PREFIX$LWS}changesSince.260`, `${FEATURE_NAME_PREFIX$LWS}changesSince.262`, `${FEATURE_NAME_PREFIX$LWS}changesSince.264`, `${FEATURE_NAME_PREFIX$LWS}htmlAnchorElementHrefValidation`, `${FEATURE_NAME_PREFIX$LWS}enableSandboxedSameOriginIframe`, `${FEATURE_NAME_PREFIX$LWS}iframeSrcSameOriginPreflightCheck`, `${FEATURE_NAME_PREFIX$LWS}xmlEntityAttackPrologScan`, `${FEATURE_NAME_PREFIX$LWS}blockWindowOpenSameOriginSameContext`]);
|
|
1380
|
+
Object.freeze([`${FEATURE_NAME_PREFIX$LWS}changesSince.260`, `${FEATURE_NAME_PREFIX$LWS}changesSince.262`, `${FEATURE_NAME_PREFIX$LWS}changesSince.264`, `${FEATURE_NAME_PREFIX$LWS}htmlAnchorElementHrefValidation`, `${FEATURE_NAME_PREFIX$LWS}enableSandboxedSameOriginIframe`, `${FEATURE_NAME_PREFIX$LWS}iframeSrcSameOriginPreflightCheck`, `${FEATURE_NAME_PREFIX$LWS}xmlEntityAttackPrologScan`, `${FEATURE_NAME_PREFIX$LWS}blockWindowOpenSameOriginSameContext`, `${FEATURE_NAME_PREFIX$LWS}walkRangeProtoChainForMethods`]);
|
|
1373
1381
|
function registerGaterEnabledFeatures$LWS(lockerGaterEnabledFeatures$LWS) {
|
|
1374
1382
|
if (ArrayIsArray$LWS$1(lockerGaterEnabledFeatures$LWS)) {
|
|
1375
1383
|
lockerGaterEnabledFeatures$LWS.forEach(feature$LWS => gaterEnabledFeatures$LWS.add(fullName$LWS(feature$LWS)));
|
|
@@ -1539,7 +1547,7 @@
|
|
|
1539
1547
|
const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
|
|
1540
1548
|
const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
|
|
1541
1549
|
toSafeSet$LWS(new SetCtor$LWS$1());
|
|
1542
|
-
/*! version: 0.28.
|
|
1550
|
+
/*! version: 0.28.10 */
|
|
1543
1551
|
|
|
1544
1552
|
/*!
|
|
1545
1553
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2655,7 +2663,7 @@
|
|
|
2655
2663
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
|
|
2656
2664
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
|
|
2657
2665
|
ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
2658
|
-
/*! version: 0.28.
|
|
2666
|
+
/*! version: 0.28.10 */
|
|
2659
2667
|
|
|
2660
2668
|
/*!
|
|
2661
2669
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2823,7 +2831,7 @@
|
|
|
2823
2831
|
}
|
|
2824
2832
|
return sanitized$LWS;
|
|
2825
2833
|
}
|
|
2826
|
-
/*! version: 0.28.
|
|
2834
|
+
/*! version: 0.28.10 */
|
|
2827
2835
|
|
|
2828
2836
|
/*!
|
|
2829
2837
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -2899,7 +2907,7 @@
|
|
|
2899
2907
|
// swallow
|
|
2900
2908
|
}
|
|
2901
2909
|
const trusted = createPolicy('trusted', policyOptions);
|
|
2902
|
-
/*! version: 0.28.
|
|
2910
|
+
/*! version: 0.28.10 */
|
|
2903
2911
|
|
|
2904
2912
|
/*!
|
|
2905
2913
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -3208,7 +3216,7 @@
|
|
|
3208
3216
|
}
|
|
3209
3217
|
return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
|
|
3210
3218
|
}
|
|
3211
|
-
/*! version: 0.28.
|
|
3219
|
+
/*! version: 0.28.10 */
|
|
3212
3220
|
|
|
3213
3221
|
/*!
|
|
3214
3222
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -3417,7 +3425,7 @@
|
|
|
3417
3425
|
ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
|
|
3418
3426
|
};
|
|
3419
3427
|
}
|
|
3420
|
-
/*! version: 0.28.
|
|
3428
|
+
/*! version: 0.28.10 */
|
|
3421
3429
|
|
|
3422
3430
|
/*!
|
|
3423
3431
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -10322,19 +10330,32 @@
|
|
|
10322
10330
|
function initDistortionRangeCloneContents$LWS({
|
|
10323
10331
|
globalObject: {
|
|
10324
10332
|
AbstractRange: AbstractRange$LWS,
|
|
10325
|
-
Range:
|
|
10326
|
-
prototype: {
|
|
10327
|
-
cloneContents: originalCloneContents$LWS
|
|
10328
|
-
}
|
|
10329
|
-
}
|
|
10333
|
+
Range: Range$LWS
|
|
10330
10334
|
}
|
|
10331
10335
|
}) {
|
|
10336
|
+
// endContainer/startContainer have migrated across the Range interface
|
|
10337
|
+
// hierarchy over time:
|
|
10338
|
+
// Chrome <= 89: defined on Range.prototype
|
|
10339
|
+
// Chrome 90-151: defined on AbstractRange.prototype
|
|
10340
|
+
// Chrome >= 152: defined on NodeRange.prototype (a new interface
|
|
10341
|
+
// inserted as Range -> NodeRange -> AbstractRange)
|
|
10342
|
+
// walkRangeProtoChainForMethods (default on) walks up from the realm's own
|
|
10343
|
+
// Range.prototype so the accessors resolve wherever the platform currently
|
|
10344
|
+
// defines them; disabling it restores the legacy own-property lookup on
|
|
10345
|
+
// AbstractRange.prototype (broken on Chrome >= 152).
|
|
10346
|
+
const walkRangeProtoChain$LWS = isGaterEnabledFeature$LWS('walkRangeProtoChainForMethods');
|
|
10347
|
+
const {
|
|
10348
|
+
prototype: RangeProto$LWS
|
|
10349
|
+
} = Range$LWS;
|
|
10350
|
+
const {
|
|
10351
|
+
cloneContents: originalCloneContents$LWS
|
|
10352
|
+
} = RangeProto$LWS;
|
|
10332
10353
|
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
10333
10354
|
const {
|
|
10334
10355
|
prototype: AbstractRangeProto$LWS
|
|
10335
|
-
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range;
|
|
10336
|
-
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10337
|
-
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10356
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
10357
|
+
const originalEndContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'endContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10358
|
+
const originalStartContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'startContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10338
10359
|
const distortionEntry$LWS = [originalCloneContents$LWS, function cloneContents$LWS(...args$LWS) {
|
|
10339
10360
|
if (isGaterEnabledFeature$LWS('changesSince.262')) {
|
|
10340
10361
|
const containers$LWS = [ReflectApply$LWS$1(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS$1(originalStartContainerGetter$LWS, this, [])];
|
|
@@ -10359,19 +10380,32 @@
|
|
|
10359
10380
|
function initDistortionRangeCloneRange$LWS({
|
|
10360
10381
|
globalObject: {
|
|
10361
10382
|
AbstractRange: AbstractRange$LWS,
|
|
10362
|
-
Range:
|
|
10363
|
-
prototype: {
|
|
10364
|
-
cloneRange: originalCloneRange$LWS
|
|
10365
|
-
}
|
|
10366
|
-
}
|
|
10383
|
+
Range: Range$LWS
|
|
10367
10384
|
}
|
|
10368
10385
|
}) {
|
|
10386
|
+
// endContainer/startContainer have migrated across the Range interface
|
|
10387
|
+
// hierarchy over time:
|
|
10388
|
+
// Chrome <= 89: defined on Range.prototype
|
|
10389
|
+
// Chrome 90-151: defined on AbstractRange.prototype
|
|
10390
|
+
// Chrome >= 152: defined on NodeRange.prototype (a new interface
|
|
10391
|
+
// inserted as Range -> NodeRange -> AbstractRange)
|
|
10392
|
+
// walkRangeProtoChainForMethods (default on) walks up from the realm's own
|
|
10393
|
+
// Range.prototype so the accessors resolve wherever the platform currently
|
|
10394
|
+
// defines them; disabling it restores the legacy own-property lookup on
|
|
10395
|
+
// AbstractRange.prototype (broken on Chrome >= 152).
|
|
10396
|
+
const walkRangeProtoChain$LWS = isGaterEnabledFeature$LWS('walkRangeProtoChainForMethods');
|
|
10397
|
+
const {
|
|
10398
|
+
prototype: RangeProto$LWS
|
|
10399
|
+
} = Range$LWS;
|
|
10400
|
+
const {
|
|
10401
|
+
cloneRange: originalCloneRange$LWS
|
|
10402
|
+
} = RangeProto$LWS;
|
|
10369
10403
|
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
10370
10404
|
const {
|
|
10371
10405
|
prototype: AbstractRangeProto$LWS
|
|
10372
|
-
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range;
|
|
10373
|
-
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10374
|
-
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10406
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
10407
|
+
const originalEndContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'endContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10408
|
+
const originalStartContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'startContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10375
10409
|
const distortionEntry$LWS = [originalCloneRange$LWS, function cloneRange$LWS(...args$LWS) {
|
|
10376
10410
|
if (isGaterEnabledFeature$LWS('changesSince.262')) {
|
|
10377
10411
|
const containers$LWS = [ReflectApply$LWS$1(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS$1(originalStartContainerGetter$LWS, this, [])];
|
|
@@ -10433,24 +10467,32 @@
|
|
|
10433
10467
|
function initDistortionRangeDeleteContents$LWS({
|
|
10434
10468
|
globalObject: {
|
|
10435
10469
|
AbstractRange: AbstractRange$LWS,
|
|
10436
|
-
Range:
|
|
10437
|
-
prototype: {
|
|
10438
|
-
deleteContents: originalDeleteContents$LWS
|
|
10439
|
-
}
|
|
10440
|
-
}
|
|
10470
|
+
Range: Range$LWS
|
|
10441
10471
|
}
|
|
10442
10472
|
}) {
|
|
10443
|
-
//
|
|
10444
|
-
//
|
|
10445
|
-
//
|
|
10446
|
-
//
|
|
10447
|
-
//
|
|
10473
|
+
// endContainer/startContainer have migrated across the Range interface
|
|
10474
|
+
// hierarchy over time:
|
|
10475
|
+
// Chrome <= 89: defined on Range.prototype
|
|
10476
|
+
// Chrome 90-151: defined on AbstractRange.prototype
|
|
10477
|
+
// Chrome >= 152: defined on NodeRange.prototype (a new interface
|
|
10478
|
+
// inserted as Range -> NodeRange -> AbstractRange)
|
|
10479
|
+
// walkRangeProtoChainForMethods (default on) walks up from the realm's own
|
|
10480
|
+
// Range.prototype so the accessors resolve wherever the platform currently
|
|
10481
|
+
// defines them; disabling it restores the legacy own-property lookup on
|
|
10482
|
+
// AbstractRange.prototype (broken on Chrome >= 152).
|
|
10483
|
+
const walkRangeProtoChain$LWS = isGaterEnabledFeature$LWS('walkRangeProtoChainForMethods');
|
|
10484
|
+
const {
|
|
10485
|
+
prototype: RangeProto$LWS
|
|
10486
|
+
} = Range$LWS;
|
|
10487
|
+
const {
|
|
10488
|
+
deleteContents: originalDeleteContents$LWS
|
|
10489
|
+
} = RangeProto$LWS;
|
|
10448
10490
|
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
10449
10491
|
const {
|
|
10450
10492
|
prototype: AbstractRangeProto$LWS
|
|
10451
|
-
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range;
|
|
10452
|
-
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10453
|
-
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10493
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
10494
|
+
const originalEndContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'endContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10495
|
+
const originalStartContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'startContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10454
10496
|
const distortionEntry$LWS = [originalDeleteContents$LWS, function deleteContents$LWS(...args$LWS) {
|
|
10455
10497
|
const containers$LWS = [ReflectApply$LWS$1(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS$1(originalStartContainerGetter$LWS, this, [])];
|
|
10456
10498
|
for (let i$LWS = 0, {
|
|
@@ -10473,24 +10515,32 @@
|
|
|
10473
10515
|
function initDistortionRangeExtractContents$LWS({
|
|
10474
10516
|
globalObject: {
|
|
10475
10517
|
AbstractRange: AbstractRange$LWS,
|
|
10476
|
-
Range:
|
|
10477
|
-
prototype: {
|
|
10478
|
-
extractContents: originalExtractContents$LWS
|
|
10479
|
-
}
|
|
10480
|
-
}
|
|
10518
|
+
Range: Range$LWS
|
|
10481
10519
|
}
|
|
10482
10520
|
}) {
|
|
10483
|
-
//
|
|
10484
|
-
//
|
|
10485
|
-
//
|
|
10486
|
-
//
|
|
10487
|
-
//
|
|
10521
|
+
// endContainer/startContainer have migrated across the Range interface
|
|
10522
|
+
// hierarchy over time:
|
|
10523
|
+
// Chrome <= 89: defined on Range.prototype
|
|
10524
|
+
// Chrome 90-151: defined on AbstractRange.prototype
|
|
10525
|
+
// Chrome >= 152: defined on NodeRange.prototype (a new interface
|
|
10526
|
+
// inserted as Range -> NodeRange -> AbstractRange)
|
|
10527
|
+
// walkRangeProtoChainForMethods (default on) walks up from the realm's own
|
|
10528
|
+
// Range.prototype so the accessors resolve wherever the platform currently
|
|
10529
|
+
// defines them; disabling it restores the legacy own-property lookup on
|
|
10530
|
+
// AbstractRange.prototype (broken on Chrome >= 152).
|
|
10531
|
+
const walkRangeProtoChain$LWS = isGaterEnabledFeature$LWS('walkRangeProtoChainForMethods');
|
|
10532
|
+
const {
|
|
10533
|
+
prototype: RangeProto$LWS
|
|
10534
|
+
} = Range$LWS;
|
|
10535
|
+
const {
|
|
10536
|
+
extractContents: originalExtractContents$LWS
|
|
10537
|
+
} = RangeProto$LWS;
|
|
10488
10538
|
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
10489
10539
|
const {
|
|
10490
10540
|
prototype: AbstractRangeProto$LWS
|
|
10491
|
-
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range;
|
|
10492
|
-
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10493
|
-
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10541
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
10542
|
+
const originalEndContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'endContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10543
|
+
const originalStartContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'startContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10494
10544
|
const distortionEntry$LWS = [originalExtractContents$LWS, function extractContents$LWS(...args$LWS) {
|
|
10495
10545
|
const containers$LWS = [ReflectApply$LWS$1(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS$1(originalStartContainerGetter$LWS, this, [])];
|
|
10496
10546
|
for (let i$LWS = 0, {
|
|
@@ -10513,19 +10563,32 @@
|
|
|
10513
10563
|
function initDistortionRangeGetBoundingClientRect$LWS({
|
|
10514
10564
|
globalObject: {
|
|
10515
10565
|
AbstractRange: AbstractRange$LWS,
|
|
10516
|
-
Range:
|
|
10517
|
-
prototype: {
|
|
10518
|
-
getBoundingClientRect: originalGetBoundingClientRect$LWS
|
|
10519
|
-
}
|
|
10520
|
-
}
|
|
10566
|
+
Range: Range$LWS
|
|
10521
10567
|
}
|
|
10522
10568
|
}) {
|
|
10569
|
+
// endContainer/startContainer have migrated across the Range interface
|
|
10570
|
+
// hierarchy over time:
|
|
10571
|
+
// Chrome <= 89: defined on Range.prototype
|
|
10572
|
+
// Chrome 90-151: defined on AbstractRange.prototype
|
|
10573
|
+
// Chrome >= 152: defined on NodeRange.prototype (a new interface
|
|
10574
|
+
// inserted as Range -> NodeRange -> AbstractRange)
|
|
10575
|
+
// walkRangeProtoChainForMethods (default on) walks up from the realm's own
|
|
10576
|
+
// Range.prototype so the accessors resolve wherever the platform currently
|
|
10577
|
+
// defines them; disabling it restores the legacy own-property lookup on
|
|
10578
|
+
// AbstractRange.prototype (broken on Chrome >= 152).
|
|
10579
|
+
const walkRangeProtoChain$LWS = isGaterEnabledFeature$LWS('walkRangeProtoChainForMethods');
|
|
10580
|
+
const {
|
|
10581
|
+
prototype: RangeProto$LWS
|
|
10582
|
+
} = Range$LWS;
|
|
10583
|
+
const {
|
|
10584
|
+
getBoundingClientRect: originalGetBoundingClientRect$LWS
|
|
10585
|
+
} = RangeProto$LWS;
|
|
10523
10586
|
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
10524
10587
|
const {
|
|
10525
10588
|
prototype: AbstractRangeProto$LWS
|
|
10526
|
-
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range;
|
|
10527
|
-
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10528
|
-
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10589
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
10590
|
+
const originalEndContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'endContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10591
|
+
const originalStartContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'startContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10529
10592
|
const distortionEntry$LWS = [originalGetBoundingClientRect$LWS, function getBoundingClientRect$LWS(...args$LWS) {
|
|
10530
10593
|
if (isGaterEnabledFeature$LWS('changesSince.262')) {
|
|
10531
10594
|
const containers$LWS = [ReflectApply$LWS$1(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS$1(originalStartContainerGetter$LWS, this, [])];
|
|
@@ -10629,19 +10692,32 @@
|
|
|
10629
10692
|
function initDistortionRangeToString$LWS({
|
|
10630
10693
|
globalObject: {
|
|
10631
10694
|
AbstractRange: AbstractRange$LWS,
|
|
10632
|
-
Range:
|
|
10633
|
-
prototype: {
|
|
10634
|
-
toString: originalRangeToString$LWS
|
|
10635
|
-
}
|
|
10636
|
-
}
|
|
10695
|
+
Range: Range$LWS
|
|
10637
10696
|
}
|
|
10638
10697
|
}) {
|
|
10698
|
+
// endContainer/startContainer have migrated across the Range interface
|
|
10699
|
+
// hierarchy over time:
|
|
10700
|
+
// Chrome <= 89: defined on Range.prototype
|
|
10701
|
+
// Chrome 90-151: defined on AbstractRange.prototype
|
|
10702
|
+
// Chrome >= 152: defined on NodeRange.prototype (a new interface
|
|
10703
|
+
// inserted as Range -> NodeRange -> AbstractRange)
|
|
10704
|
+
// walkRangeProtoChainForMethods (default on) walks up from the realm's own
|
|
10705
|
+
// Range.prototype so the accessors resolve wherever the platform currently
|
|
10706
|
+
// defines them; disabling it restores the legacy own-property lookup on
|
|
10707
|
+
// AbstractRange.prototype (broken on Chrome >= 152).
|
|
10708
|
+
const walkRangeProtoChain$LWS = isGaterEnabledFeature$LWS('walkRangeProtoChainForMethods');
|
|
10709
|
+
const {
|
|
10710
|
+
prototype: RangeProto$LWS
|
|
10711
|
+
} = Range$LWS;
|
|
10712
|
+
const {
|
|
10713
|
+
toString: originalRangeToString$LWS
|
|
10714
|
+
} = RangeProto$LWS;
|
|
10639
10715
|
// istanbul ignore next: the null path and right side of the expression for this code is not reachable in the version of chrome used to measure coverage.
|
|
10640
10716
|
const {
|
|
10641
10717
|
prototype: AbstractRangeProto$LWS
|
|
10642
|
-
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range;
|
|
10643
|
-
const originalEndContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10644
|
-
const originalStartContainerGetter$LWS = ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10718
|
+
} = AbstractRange$LWS != null ? AbstractRange$LWS : Range$LWS;
|
|
10719
|
+
const originalEndContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'endContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'endContainer');
|
|
10720
|
+
const originalStartContainerGetter$LWS = walkRangeProtoChain$LWS ? ObjectLookupGetter$LWS(RangeProto$LWS, 'startContainer') : ObjectLookupOwnGetter$LWS$1(AbstractRangeProto$LWS, 'startContainer');
|
|
10645
10721
|
const distortionEntry$LWS = [originalRangeToString$LWS, function toString$LWS(...args$LWS) {
|
|
10646
10722
|
if (isGaterEnabledFeature$LWS('changesSince.262')) {
|
|
10647
10723
|
const containers$LWS = [ReflectApply$LWS$1(originalEndContainerGetter$LWS, this, []), ReflectApply$LWS$1(originalStartContainerGetter$LWS, this, [])];
|
|
@@ -12821,7 +12897,7 @@
|
|
|
12821
12897
|
const UIEventProtoBlockedProperties$LWS = ['rangeParent'];
|
|
12822
12898
|
const WindowBlockedProperties$LWS = ['find', 'requestFileSystem', 'webkitRequestFileSystem'];
|
|
12823
12899
|
const XSLTProcessorProtoBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
|
|
12824
|
-
/*! version: 0.28.
|
|
12900
|
+
/*! version: 0.28.10 */
|
|
12825
12901
|
|
|
12826
12902
|
/*!
|
|
12827
12903
|
* Copyright (C) 2021 salesforce.com, inc.
|
|
@@ -12830,7 +12906,7 @@
|
|
|
12830
12906
|
function getPdpSchema$LWS() {
|
|
12831
12907
|
return pdpSchema$LWS;
|
|
12832
12908
|
}
|
|
12833
|
-
/*! version: 0.28.
|
|
12909
|
+
/*! version: 0.28.10 */
|
|
12834
12910
|
|
|
12835
12911
|
/*!
|
|
12836
12912
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -18222,7 +18298,7 @@
|
|
|
18222
18298
|
// tools from mistaking the regexp or the replacement string for an
|
|
18223
18299
|
// actual source mapping URL.
|
|
18224
18300
|
/\/\/# sandbox(?=MappingURL=.*?\s*$)/, '//# source']);
|
|
18225
|
-
sourceText$LWS = `\n//# LWS Version = "0.28.
|
|
18301
|
+
sourceText$LWS = `\n//# LWS Version = "0.28.10"\n${sourceText$LWS}`;
|
|
18226
18302
|
return sourceType$LWS === 1 /* SourceType.Module */ && indexOfPragma$LWS(sourceText$LWS, 'use strict') === -1 ?
|
|
18227
18303
|
// Append "'use strict'" to the extracted function body so it is
|
|
18228
18304
|
// evaluated in strict mode.
|
|
@@ -18902,7 +18978,7 @@
|
|
|
18902
18978
|
}
|
|
18903
18979
|
toSafeMap$LWS$1(new MapCtor$LWS$1());
|
|
18904
18980
|
toSafeSet$LWS(new SetCtor$LWS$1(['lightning/platformResourceLoader', 'lightning:platformResourceLoader', 'lightningmobileruntime/platformResourceLoader', 'lightningmobileruntime:platformResourceLoader']));
|
|
18905
|
-
/*! version: 0.28.
|
|
18981
|
+
/*! version: 0.28.10 */
|
|
18906
18982
|
|
|
18907
18983
|
// Expose evaluateInSandbox on the window global so the browser harness page
|
|
18908
18984
|
// (eval.html / component.html) can invoke it against source delivered by the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locker/cli",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.10",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"author": "Salesforce UI Security Team",
|
|
6
6
|
"description": "Lightning Web Security CLI",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/parser": "7.28.0",
|
|
30
|
-
"@locker/rollup-plugin": "0.28.
|
|
31
|
-
"@locker/sandbox": "0.28.
|
|
32
|
-
"@locker/shared": "0.28.
|
|
30
|
+
"@locker/rollup-plugin": "0.28.10",
|
|
31
|
+
"@locker/sandbox": "0.28.10",
|
|
32
|
+
"@locker/shared": "0.28.10",
|
|
33
33
|
"@lwc/engine-dom": "8.21.1",
|
|
34
34
|
"@lwc/rollup-plugin": "8.21.1",
|
|
35
35
|
"@rollup/plugin-commonjs": "21.1.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"rollup-plugin-ts": "3.4.5",
|
|
44
44
|
"yargs": "17.7.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ef1441ff6cd49da0350bb68bda90da454d3368c9"
|
|
47
47
|
}
|