@lwrjs/client-modules 0.10.4 → 0.10.6
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.
|
@@ -1449,7 +1449,7 @@ const {
|
|
|
1449
1449
|
} = PromiseCtor$LWS.prototype;
|
|
1450
1450
|
const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
|
|
1451
1451
|
const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
|
|
1452
|
-
/*! version: 0.19.
|
|
1452
|
+
/*! version: 0.19.15 */
|
|
1453
1453
|
|
|
1454
1454
|
/*!
|
|
1455
1455
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2113,7 +2113,7 @@ const {
|
|
|
2113
2113
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
|
|
2114
2114
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
|
|
2115
2115
|
ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
2116
|
-
/*! version: 0.19.
|
|
2116
|
+
/*! version: 0.19.15 */
|
|
2117
2117
|
|
|
2118
2118
|
/*!
|
|
2119
2119
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2172,7 +2172,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
2172
2172
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
2173
2173
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS$1(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
2174
2174
|
}
|
|
2175
|
-
/*! version: 0.19.
|
|
2175
|
+
/*! version: 0.19.15 */
|
|
2176
2176
|
|
|
2177
2177
|
/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
|
|
2178
2178
|
|
|
@@ -3824,6 +3824,7 @@ const policyOptions = {
|
|
|
3824
3824
|
};
|
|
3825
3825
|
// Temporarily surround in try-catch until migration to AMD run.
|
|
3826
3826
|
try {
|
|
3827
|
+
// istanbul ignore next: this creates a special policy described here https://developer.mozilla.org/en-US/docs/Web/API/TrustedTypePolicyFactory/createPolicy
|
|
3827
3828
|
createPolicy('default', {
|
|
3828
3829
|
createHTML(dirty) {
|
|
3829
3830
|
// Treat null & undefined separately
|
|
@@ -3857,7 +3858,7 @@ try {
|
|
|
3857
3858
|
// swallow
|
|
3858
3859
|
}
|
|
3859
3860
|
const trusted = createPolicy('trusted', policyOptions);
|
|
3860
|
-
/*! version: 0.19.
|
|
3861
|
+
/*! version: 0.19.15 */
|
|
3861
3862
|
|
|
3862
3863
|
/*!
|
|
3863
3864
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -4106,7 +4107,7 @@ function blobSanitizer$LWS(sandboxKey$LWS) {
|
|
|
4106
4107
|
}
|
|
4107
4108
|
return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
|
|
4108
4109
|
}
|
|
4109
|
-
/*! version: 0.19.
|
|
4110
|
+
/*! version: 0.19.15 */
|
|
4110
4111
|
|
|
4111
4112
|
/*!
|
|
4112
4113
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -4149,6 +4150,7 @@ async function getSourceText$LWS(resourceURL$LWS, targetElement$LWS) {
|
|
|
4149
4150
|
}
|
|
4150
4151
|
function abortInFlightRequest$LWS(element$LWS) {
|
|
4151
4152
|
const abortController$LWS = inflightRequests$LWS.get(element$LWS);
|
|
4153
|
+
// istanbul ignore if: currently unreachable via tests (this path can be invoked, however it will cause the tests to time out)
|
|
4152
4154
|
if (abortController$LWS) {
|
|
4153
4155
|
ReflectApply$LWS$1(AbortControllerProtoAbort$LWS, abortController$LWS, []);
|
|
4154
4156
|
}
|
|
@@ -4168,6 +4170,7 @@ const scriptURLsCache$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
|
|
|
4168
4170
|
const htmlTemplate$LWS = ReflectApply$LWS$1(DocumentProtoCreateElement$LWS$1, document, ['template']);
|
|
4169
4171
|
const policyOptions$LWS = {
|
|
4170
4172
|
createHTML(dirty$LWS, lwsKey$LWS, contentType$LWS) {
|
|
4173
|
+
// istanbul ignore if: currently unreachable via tests, may indicate a dead code path
|
|
4171
4174
|
if (dirty$LWS === null || dirty$LWS === undefined) {
|
|
4172
4175
|
return '';
|
|
4173
4176
|
}
|
|
@@ -4302,7 +4305,7 @@ function encloseSrcSetter$LWS(targetElement$LWS) {
|
|
|
4302
4305
|
ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
|
|
4303
4306
|
};
|
|
4304
4307
|
}
|
|
4305
|
-
/*! version: 0.19.
|
|
4308
|
+
/*! version: 0.19.15 */
|
|
4306
4309
|
|
|
4307
4310
|
/*!
|
|
4308
4311
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -4433,6 +4436,7 @@ class VirtualRegistry$LWS {
|
|
|
4433
4436
|
// an "Illegal invocation" exception.
|
|
4434
4437
|
try {
|
|
4435
4438
|
ReflectApply$LWS$1(ElementProtoTagNameGetter$LWS, this, []);
|
|
4439
|
+
// istanbul ignore next: this is a safety precaution, not reachable via any normal execution
|
|
4436
4440
|
return instance$LWS;
|
|
4437
4441
|
} catch (_unused$LWS) {
|
|
4438
4442
|
return ReflectConstruct$LWS(originalHTMLElementCtor$LWS, [], newTarget$LWS);
|
|
@@ -4646,10 +4650,12 @@ function getDefinitionForConstructor$LWS(LocalCtor$LWS) {
|
|
|
4646
4650
|
throw new TypeErrorCtor$LWS$1('Invalid custom element constructor.');
|
|
4647
4651
|
}
|
|
4648
4652
|
let definition$LWS = definitionCache$LWS.get(LocalCtor$LWS);
|
|
4653
|
+
// istanbul ignore else: getDefinitionForConstructor is only called after a this._definedCtors.has(LocalCtor) check, which would throw if LocalCtor already existed. this._definedCtors & definitionCache are updated at the same time.
|
|
4649
4654
|
if (definition$LWS === undefined) {
|
|
4650
4655
|
definition$LWS = createDefinitionRecord$LWS(LocalCtor$LWS);
|
|
4651
4656
|
definitionCache$LWS.set(LocalCtor$LWS, definition$LWS);
|
|
4652
4657
|
}
|
|
4658
|
+
// istanbul ignore next: this is a safety precaution, not reachable via any normal execution
|
|
4653
4659
|
return definition$LWS;
|
|
4654
4660
|
}
|
|
4655
4661
|
function getGlobalCustomElementRegistry$LWS(document$LWS, originalHTMLElementCtor$LWS) {
|
|
@@ -4676,7 +4682,7 @@ function getNodeRegistry$LWS(document$LWS, node$LWS) {
|
|
|
4676
4682
|
return undefined;
|
|
4677
4683
|
}
|
|
4678
4684
|
const registries$LWS = sandboxRegistryCache$LWS.get(document$LWS);
|
|
4679
|
-
return registries$LWS ? registries$LWS.get(key$LWS) : undefined;
|
|
4685
|
+
return registries$LWS ? registries$LWS.get(key$LWS) : /* istanbul ignore next: currently unreachable via tests */undefined;
|
|
4680
4686
|
}
|
|
4681
4687
|
function getObservedAttributesList$LWS(baseDefinition$LWS, sourceDefinition$LWS) {
|
|
4682
4688
|
// Natively, the attributes observed by the original definition are going to
|
|
@@ -4899,7 +4905,8 @@ function getSandboxCustomElementRegistry$LWS(document$LWS, key$LWS) {
|
|
|
4899
4905
|
registries$LWS.set(key$LWS, registry$LWS);
|
|
4900
4906
|
return registry$LWS;
|
|
4901
4907
|
}
|
|
4902
|
-
function patchGlobalObject$LWS(globalObject$LWS,
|
|
4908
|
+
function patchGlobalObject$LWS(globalObject$LWS, /* istanbul ignore next: function is never called without a document */
|
|
4909
|
+
document$LWS = globalObject$LWS.document) {
|
|
4903
4910
|
const {
|
|
4904
4911
|
HTMLElement: HTMLElementCtor$LWS
|
|
4905
4912
|
} = globalObject$LWS;
|
|
@@ -5454,7 +5461,7 @@ function initDistortionCookieStoreOnChange$LWS({
|
|
|
5454
5461
|
CookieStore: CookieStore$LWS
|
|
5455
5462
|
}
|
|
5456
5463
|
}) {
|
|
5457
|
-
return createEventDistortionFactory$LWS(CookieStore$LWS == null ? void 0 : CookieStore$LWS.prototype, CookieStore$LWS, 'change');
|
|
5464
|
+
return createEventDistortionFactory$LWS( /* istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator */CookieStore$LWS == null ? void 0 : CookieStore$LWS.prototype, CookieStore$LWS, 'change');
|
|
5458
5465
|
}
|
|
5459
5466
|
|
|
5460
5467
|
/* istanbul ignore next: only available in secure context */
|
|
@@ -6739,6 +6746,10 @@ function initDistortionEventComposedPath$LWS({
|
|
|
6739
6746
|
return distortionEntry$LWS;
|
|
6740
6747
|
};
|
|
6741
6748
|
}
|
|
6749
|
+
|
|
6750
|
+
// Chromium 109 removed Event.prototype.path
|
|
6751
|
+
// https://chromestatus.com/feature/5726124632965120
|
|
6752
|
+
// istanbul ignore next: currently unreachable via tests
|
|
6742
6753
|
function path$LWS() {
|
|
6743
6754
|
return createDistortedComposedPath$LWS(this);
|
|
6744
6755
|
}
|
|
@@ -6748,13 +6759,13 @@ function initDistortionEventPathGetter$LWS({
|
|
|
6748
6759
|
}
|
|
6749
6760
|
}) {
|
|
6750
6761
|
const originalPathGetter$LWS = ObjectLookupOwnGetter$LWS$1(Event$LWS.prototype, 'path');
|
|
6751
|
-
// Chromium 109 removed Event.prototype.path:
|
|
6752
|
-
// https://chromestatus.com/feature/5726124632965120
|
|
6753
6762
|
// istanbul ignore else: currently unreachable via tests
|
|
6754
6763
|
if (typeof originalPathGetter$LWS !== 'function') {
|
|
6755
6764
|
return noop$LWS$1;
|
|
6756
6765
|
}
|
|
6766
|
+
// istanbul ignore next: currently unreachable via tests
|
|
6757
6767
|
const distortionEntry$LWS = [originalPathGetter$LWS, path$LWS];
|
|
6768
|
+
// istanbul ignore next: currently unreachable via tests
|
|
6758
6769
|
return function distortionEventPathGetter$LWS() {
|
|
6759
6770
|
return distortionEntry$LWS;
|
|
6760
6771
|
};
|
|
@@ -7035,7 +7046,7 @@ function initDistortionIFrameElementContentDocumentGetter$LWS({
|
|
|
7035
7046
|
const originalContentDocumentGetter$LWS = ObjectLookupOwnGetter$LWS$1(HTMLIFrameElement$LWS.prototype, 'contentDocument');
|
|
7036
7047
|
const distortionEntry$LWS = [originalContentDocumentGetter$LWS, function get$LWS() {
|
|
7037
7048
|
// The contentDocument proxy object of a kept alive sandbox iframe is revoked.
|
|
7038
|
-
return isRevokedProxy$LWS(this) ? null : ReflectApply$LWS$1(originalContentDocumentGetter$LWS, this, []);
|
|
7049
|
+
return isRevokedProxy$LWS(this) ? /* istanbul ignore next: currently unreachable via tests */null : ReflectApply$LWS$1(originalContentDocumentGetter$LWS, this, []);
|
|
7039
7050
|
}];
|
|
7040
7051
|
return function distortionIFrameElementContentDocument$LWS() {
|
|
7041
7052
|
return distortionEntry$LWS;
|
|
@@ -7049,7 +7060,7 @@ function initDistortionIFrameElementContentWindowGetter$LWS({
|
|
|
7049
7060
|
const originalContentWindowGetter$LWS = ObjectLookupOwnGetter$LWS$1(HTMLIFrameElement$LWS.prototype, 'contentWindow');
|
|
7050
7061
|
const distortionEntry$LWS = [originalContentWindowGetter$LWS, function get$LWS() {
|
|
7051
7062
|
// The contentWindow proxy object of a kept alive sandbox iframe is revoked.
|
|
7052
|
-
return isRevokedProxy$LWS(this) ? null : ReflectApply$LWS$1(originalContentWindowGetter$LWS, this, []);
|
|
7063
|
+
return isRevokedProxy$LWS(this) ? /* istanbul ignore next: currently unreachable via tests */null : ReflectApply$LWS$1(originalContentWindowGetter$LWS, this, []);
|
|
7053
7064
|
}];
|
|
7054
7065
|
return function distortionIFrameElementContentWindow$LWS() {
|
|
7055
7066
|
return distortionEntry$LWS;
|
|
@@ -7358,12 +7369,15 @@ function initDistortionHTMLScriptElementTextSetter$LWS({
|
|
|
7358
7369
|
sandboxEvaluator: sandboxEvaluator$LWS
|
|
7359
7370
|
}) {
|
|
7360
7371
|
return [originalTextSetter$LWS, function text$LWS(value$LWS) {
|
|
7372
|
+
// istanbul ignore else: this will never NOT be instanceof HTMLScriptElement
|
|
7361
7373
|
if (this instanceof HTMLScriptElement$LWS) {
|
|
7362
7374
|
const scriptWasNotEvaluatedInScriptPropertySetter$LWS = scriptPropertySetters$LWS(this, 'text', trusted.createScript(value$LWS), originalTextGetter$LWS, originalTextSetter$LWS, distortions$LWS, sandboxEvaluator$LWS, trusted.createScript(SCRIPT_HOOK_SOURCE_TEXT$LWS));
|
|
7375
|
+
// istanbul ignore else
|
|
7363
7376
|
if (scriptWasNotEvaluatedInScriptPropertySetter$LWS) {
|
|
7364
7377
|
return;
|
|
7365
7378
|
}
|
|
7366
7379
|
}
|
|
7380
|
+
// istanbul ignore next: currently unreachable via tests (see above)
|
|
7367
7381
|
ReflectApply$LWS$1(originalTextSetter$LWS, this, [value$LWS]);
|
|
7368
7382
|
}];
|
|
7369
7383
|
};
|
|
@@ -7591,7 +7605,6 @@ function initDistortionNodeValueSetter$LWS({
|
|
|
7591
7605
|
// istanbul ignore else: needs default platform behavior test
|
|
7592
7606
|
if (this instanceof Attr$LWS) {
|
|
7593
7607
|
const ownerEl$LWS = ReflectApply$LWS$1(AttrProtoOwnerElementGetter$LWS, this, []);
|
|
7594
|
-
// istanbul ignore if: needs default platform behavior test
|
|
7595
7608
|
if (ownerEl$LWS === null) {
|
|
7596
7609
|
ReflectApply$LWS$1(originalNodeValueSetter$LWS, this, [value$LWS]);
|
|
7597
7610
|
return;
|
|
@@ -7600,7 +7613,7 @@ function initDistortionNodeValueSetter$LWS({
|
|
|
7600
7613
|
const attrNamespace$LWS = ReflectApply$LWS$1(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
7601
7614
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
7602
7615
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS);
|
|
7603
|
-
// istanbul ignore
|
|
7616
|
+
// istanbul ignore next: needs default platform behavior test
|
|
7604
7617
|
if (distortion$LWS) {
|
|
7605
7618
|
ReflectApply$LWS$1(distortion$LWS, ownerEl$LWS, [value$LWS]);
|
|
7606
7619
|
return;
|
|
@@ -7743,7 +7756,6 @@ function initDistortionNodeTextContentSetter$LWS({
|
|
|
7743
7756
|
// istanbul ignore else: needs default platform behavior test
|
|
7744
7757
|
if (this instanceof Attr$LWS) {
|
|
7745
7758
|
const ownerEl$LWS = ReflectApply$LWS$1(AttrProtoOwnerElementGetter$LWS, this, []);
|
|
7746
|
-
// istanbul ignore if: needs default platform behavior test
|
|
7747
7759
|
if (ownerEl$LWS === null) {
|
|
7748
7760
|
ReflectApply$LWS$1(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
|
|
7749
7761
|
return;
|
|
@@ -7752,7 +7764,7 @@ function initDistortionNodeTextContentSetter$LWS({
|
|
|
7752
7764
|
const attrNamespace$LWS = ReflectApply$LWS$1(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
7753
7765
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
7754
7766
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS);
|
|
7755
|
-
// istanbul ignore
|
|
7767
|
+
// istanbul ignore next: needs default platform behavior test
|
|
7756
7768
|
if (distortion$LWS) {
|
|
7757
7769
|
ReflectApply$LWS$1(distortion$LWS, ownerEl$LWS, [valueAsString$LWS]);
|
|
7758
7770
|
return;
|
|
@@ -8580,10 +8592,12 @@ function initDistortionSVGScriptElementHrefGetter$LWS({
|
|
|
8580
8592
|
const originalHrefGetter$LWS = ObjectLookupOwnGetter$LWS$1(SVGScriptElement$LWS.prototype, 'href');
|
|
8581
8593
|
const distortionEntry$LWS = [originalHrefGetter$LWS, function href$LWS() {
|
|
8582
8594
|
const url$LWS = getScriptURL$LWS(this);
|
|
8595
|
+
// istanbul ignore else: needs default platform behavior test
|
|
8583
8596
|
if (typeof url$LWS === 'string') {
|
|
8584
8597
|
ReflectApply$LWS$1(originalSetAttribute$LWS, script$LWS, ['href', trusted.createScriptURL(url$LWS)]);
|
|
8585
8598
|
return ReflectApply$LWS$1(originalHrefGetter$LWS, script$LWS, []);
|
|
8586
8599
|
}
|
|
8600
|
+
// istanbul ignore next: needs default platform behavior test
|
|
8587
8601
|
return ReflectApply$LWS$1(originalHrefGetter$LWS, this, []);
|
|
8588
8602
|
}];
|
|
8589
8603
|
return function distortionSVGScriptElementHrefGetter$LWS() {
|
|
@@ -9119,18 +9133,8 @@ function initDistortionWindowPostMessage$LWS({
|
|
|
9119
9133
|
if (isObject$LWS$1(message$LWS)) {
|
|
9120
9134
|
// Calling `window.postMessage(message, target, transfer)`
|
|
9121
9135
|
// is equivalent to `window.postMessage(message, { targetOrigin, transfer })`.
|
|
9122
|
-
const providedOptions$LWS = length$LWS > 1 ? args$LWS[1] : undefined;
|
|
9136
|
+
const providedOptions$LWS = length$LWS > 1 ? args$LWS[1] : /* istanbul ignore next: currently unreachable via tests */undefined;
|
|
9123
9137
|
if (isObjectLike$LWS(providedOptions$LWS)) {
|
|
9124
|
-
const {
|
|
9125
|
-
transfer: transfer$LWS
|
|
9126
|
-
} = providedOptions$LWS;
|
|
9127
|
-
args$LWS[1] = {
|
|
9128
|
-
// The postMessage function accepts inherited
|
|
9129
|
-
// options property values.
|
|
9130
|
-
__proto__: providedOptions$LWS,
|
|
9131
|
-
// Shadow any inherited value.
|
|
9132
|
-
transfer: transfer$LWS
|
|
9133
|
-
};
|
|
9134
9138
|
// Structured clone all arguments so that `transfer`
|
|
9135
9139
|
// is referenced correctly within `message`.
|
|
9136
9140
|
args$LWS = partialStructuredClone$LWS(args$LWS);
|
|
@@ -9492,7 +9496,7 @@ initDistortionElementAfter$LWS, initDistortionElementAppend$LWS, initDistortionE
|
|
|
9492
9496
|
// initDistortionNodeAppendChild,
|
|
9493
9497
|
initDistortionNodeInsertBefore$LWS]);
|
|
9494
9498
|
const externalKeyedDistortionFactoryInitializers$LWS = internalKeyedDistortionFactoryInitializers$LWS;
|
|
9495
|
-
const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', '
|
|
9499
|
+
const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', 'mozCancelFullScreen', 'mozFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'onfullscreenchange', 'onfullscreenerror', 'onmozfullscreenchange', 'onmozfullscreenerror', 'onrejectionhandled', 'onunhandledrejection', 'releaseCapture', 'releaseEvents', 'webkitFullScreenKeyboardInputAllowed', 'write', 'writeln'];
|
|
9496
9500
|
const ElementBlockedProperties$LWS = ['mozRequestFullScreen', 'onfullscreenchange', 'onfullscreenerror', 'requestFullscreen', 'webkitRequestFullScreen', 'webkitRequestFullscreen'];
|
|
9497
9501
|
const EventBlockedProperties$LWS = ['originalTarget', 'explicitOriginalTarget'];
|
|
9498
9502
|
const HTMLElementBlockedAttributes$LWS = ['nonce'];
|
|
@@ -9508,9 +9512,9 @@ const HTMLScriptElementBlockedProperties$LWS = ['nonce'];
|
|
|
9508
9512
|
const SVGElementBlockedAttributes$LWS = ['nonce'];
|
|
9509
9513
|
const SVGElementBlockedProperties$LWS = ['nonce'];
|
|
9510
9514
|
const UIEventBlockedProperties$LWS = ['rangeParent'];
|
|
9511
|
-
const WindowBlockedProperties$LWS = ['find'
|
|
9515
|
+
const WindowBlockedProperties$LWS = ['find'];
|
|
9512
9516
|
const XSLTProcessorBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
|
|
9513
|
-
/*! version: 0.19.
|
|
9517
|
+
/*! version: 0.19.15 */
|
|
9514
9518
|
|
|
9515
9519
|
/*!
|
|
9516
9520
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -15295,11 +15299,13 @@ function evaluateFunction$LWS(key$LWS, fn$LWS, scope$LWS = EMPTY_OBJECT$LWS, sou
|
|
|
15295
15299
|
})(...argValues$LWS);
|
|
15296
15300
|
}
|
|
15297
15301
|
const sandboxDependencies$LWS = toSafeMap$LWS$1(new MapCtor$LWS$1());
|
|
15302
|
+
const lprDepNames$LWS = toSafeSet$LWS(new SetCtor$LWS$1(['lightning/platformResourceLoader', 'lightning:platformResourceLoader', 'lightningmobileruntime/platformResourceLoader', 'lightningmobileruntime:platformResourceLoader']));
|
|
15303
|
+
// istanbul ignore next: currently unreachable via tests, platformResourceLoader testing is exclusively done in AMD format mode
|
|
15298
15304
|
function wrapDependency$LWS(dep$LWS, depName$LWS, key$LWS) {
|
|
15299
15305
|
if (depName$LWS === 'lwc' || depName$LWS === '@lwc/engine-dom' || depName$LWS === '@lwc:engine-dom') {
|
|
15300
15306
|
return wrapLWC$LWS(dep$LWS, key$LWS);
|
|
15301
15307
|
}
|
|
15302
|
-
if (
|
|
15308
|
+
if (lprDepNames$LWS.has(depName$LWS)) {
|
|
15303
15309
|
return wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS);
|
|
15304
15310
|
}
|
|
15305
15311
|
return dep$LWS;
|
|
@@ -15382,7 +15388,7 @@ function wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS) {
|
|
|
15382
15388
|
depRegistry$LWS.set(dep$LWS, secureDep$LWS);
|
|
15383
15389
|
return secureDep$LWS;
|
|
15384
15390
|
}
|
|
15385
|
-
/*! version: 0.19.
|
|
15391
|
+
/*! version: 0.19.15 */
|
|
15386
15392
|
|
|
15387
15393
|
const loaderDefine = globalThis.LWR.define;
|
|
15388
15394
|
|
|
@@ -1449,7 +1449,7 @@ const {
|
|
|
1449
1449
|
} = PromiseCtor$LWS.prototype;
|
|
1450
1450
|
const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
|
|
1451
1451
|
const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
|
|
1452
|
-
/*! version: 0.19.
|
|
1452
|
+
/*! version: 0.19.15 */
|
|
1453
1453
|
|
|
1454
1454
|
/*!
|
|
1455
1455
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2113,7 +2113,7 @@ const {
|
|
|
2113
2113
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
|
|
2114
2114
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
|
|
2115
2115
|
ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
2116
|
-
/*! version: 0.19.
|
|
2116
|
+
/*! version: 0.19.15 */
|
|
2117
2117
|
|
|
2118
2118
|
/*!
|
|
2119
2119
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2172,7 +2172,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
2172
2172
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
2173
2173
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS$1(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
2174
2174
|
}
|
|
2175
|
-
/*! version: 0.19.
|
|
2175
|
+
/*! version: 0.19.15 */
|
|
2176
2176
|
|
|
2177
2177
|
/*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
|
|
2178
2178
|
|
|
@@ -3824,6 +3824,7 @@ const policyOptions = {
|
|
|
3824
3824
|
};
|
|
3825
3825
|
// Temporarily surround in try-catch until migration to AMD run.
|
|
3826
3826
|
try {
|
|
3827
|
+
// istanbul ignore next: this creates a special policy described here https://developer.mozilla.org/en-US/docs/Web/API/TrustedTypePolicyFactory/createPolicy
|
|
3827
3828
|
createPolicy('default', {
|
|
3828
3829
|
createHTML(dirty) {
|
|
3829
3830
|
// Treat null & undefined separately
|
|
@@ -3857,7 +3858,7 @@ try {
|
|
|
3857
3858
|
// swallow
|
|
3858
3859
|
}
|
|
3859
3860
|
const trusted = createPolicy('trusted', policyOptions);
|
|
3860
|
-
/*! version: 0.19.
|
|
3861
|
+
/*! version: 0.19.15 */
|
|
3861
3862
|
|
|
3862
3863
|
/*!
|
|
3863
3864
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -4106,7 +4107,7 @@ function blobSanitizer$LWS(sandboxKey$LWS) {
|
|
|
4106
4107
|
}
|
|
4107
4108
|
return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
|
|
4108
4109
|
}
|
|
4109
|
-
/*! version: 0.19.
|
|
4110
|
+
/*! version: 0.19.15 */
|
|
4110
4111
|
|
|
4111
4112
|
/*!
|
|
4112
4113
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -4149,6 +4150,7 @@ async function getSourceText$LWS(resourceURL$LWS, targetElement$LWS) {
|
|
|
4149
4150
|
}
|
|
4150
4151
|
function abortInFlightRequest$LWS(element$LWS) {
|
|
4151
4152
|
const abortController$LWS = inflightRequests$LWS.get(element$LWS);
|
|
4153
|
+
// istanbul ignore if: currently unreachable via tests (this path can be invoked, however it will cause the tests to time out)
|
|
4152
4154
|
if (abortController$LWS) {
|
|
4153
4155
|
ReflectApply$LWS$1(AbortControllerProtoAbort$LWS, abortController$LWS, []);
|
|
4154
4156
|
}
|
|
@@ -4168,6 +4170,7 @@ const scriptURLsCache$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
|
|
|
4168
4170
|
const htmlTemplate$LWS = ReflectApply$LWS$1(DocumentProtoCreateElement$LWS$1, document, ['template']);
|
|
4169
4171
|
const policyOptions$LWS = {
|
|
4170
4172
|
createHTML(dirty$LWS, lwsKey$LWS, contentType$LWS) {
|
|
4173
|
+
// istanbul ignore if: currently unreachable via tests, may indicate a dead code path
|
|
4171
4174
|
if (dirty$LWS === null || dirty$LWS === undefined) {
|
|
4172
4175
|
return '';
|
|
4173
4176
|
}
|
|
@@ -4302,7 +4305,7 @@ function encloseSrcSetter$LWS(targetElement$LWS) {
|
|
|
4302
4305
|
ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
|
|
4303
4306
|
};
|
|
4304
4307
|
}
|
|
4305
|
-
/*! version: 0.19.
|
|
4308
|
+
/*! version: 0.19.15 */
|
|
4306
4309
|
|
|
4307
4310
|
/*!
|
|
4308
4311
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -4433,6 +4436,7 @@ class VirtualRegistry$LWS {
|
|
|
4433
4436
|
// an "Illegal invocation" exception.
|
|
4434
4437
|
try {
|
|
4435
4438
|
ReflectApply$LWS$1(ElementProtoTagNameGetter$LWS, this, []);
|
|
4439
|
+
// istanbul ignore next: this is a safety precaution, not reachable via any normal execution
|
|
4436
4440
|
return instance$LWS;
|
|
4437
4441
|
} catch (_unused$LWS) {
|
|
4438
4442
|
return ReflectConstruct$LWS(originalHTMLElementCtor$LWS, [], newTarget$LWS);
|
|
@@ -4646,10 +4650,12 @@ function getDefinitionForConstructor$LWS(LocalCtor$LWS) {
|
|
|
4646
4650
|
throw new TypeErrorCtor$LWS$1('Invalid custom element constructor.');
|
|
4647
4651
|
}
|
|
4648
4652
|
let definition$LWS = definitionCache$LWS.get(LocalCtor$LWS);
|
|
4653
|
+
// istanbul ignore else: getDefinitionForConstructor is only called after a this._definedCtors.has(LocalCtor) check, which would throw if LocalCtor already existed. this._definedCtors & definitionCache are updated at the same time.
|
|
4649
4654
|
if (definition$LWS === undefined) {
|
|
4650
4655
|
definition$LWS = createDefinitionRecord$LWS(LocalCtor$LWS);
|
|
4651
4656
|
definitionCache$LWS.set(LocalCtor$LWS, definition$LWS);
|
|
4652
4657
|
}
|
|
4658
|
+
// istanbul ignore next: this is a safety precaution, not reachable via any normal execution
|
|
4653
4659
|
return definition$LWS;
|
|
4654
4660
|
}
|
|
4655
4661
|
function getGlobalCustomElementRegistry$LWS(document$LWS, originalHTMLElementCtor$LWS) {
|
|
@@ -4676,7 +4682,7 @@ function getNodeRegistry$LWS(document$LWS, node$LWS) {
|
|
|
4676
4682
|
return undefined;
|
|
4677
4683
|
}
|
|
4678
4684
|
const registries$LWS = sandboxRegistryCache$LWS.get(document$LWS);
|
|
4679
|
-
return registries$LWS ? registries$LWS.get(key$LWS) : undefined;
|
|
4685
|
+
return registries$LWS ? registries$LWS.get(key$LWS) : /* istanbul ignore next: currently unreachable via tests */undefined;
|
|
4680
4686
|
}
|
|
4681
4687
|
function getObservedAttributesList$LWS(baseDefinition$LWS, sourceDefinition$LWS) {
|
|
4682
4688
|
// Natively, the attributes observed by the original definition are going to
|
|
@@ -4899,7 +4905,8 @@ function getSandboxCustomElementRegistry$LWS(document$LWS, key$LWS) {
|
|
|
4899
4905
|
registries$LWS.set(key$LWS, registry$LWS);
|
|
4900
4906
|
return registry$LWS;
|
|
4901
4907
|
}
|
|
4902
|
-
function patchGlobalObject$LWS(globalObject$LWS,
|
|
4908
|
+
function patchGlobalObject$LWS(globalObject$LWS, /* istanbul ignore next: function is never called without a document */
|
|
4909
|
+
document$LWS = globalObject$LWS.document) {
|
|
4903
4910
|
const {
|
|
4904
4911
|
HTMLElement: HTMLElementCtor$LWS
|
|
4905
4912
|
} = globalObject$LWS;
|
|
@@ -5454,7 +5461,7 @@ function initDistortionCookieStoreOnChange$LWS({
|
|
|
5454
5461
|
CookieStore: CookieStore$LWS
|
|
5455
5462
|
}
|
|
5456
5463
|
}) {
|
|
5457
|
-
return createEventDistortionFactory$LWS(CookieStore$LWS == null ? void 0 : CookieStore$LWS.prototype, CookieStore$LWS, 'change');
|
|
5464
|
+
return createEventDistortionFactory$LWS( /* istanbul ignore next: optional chaining and nullish coalescing results in an expansion that contains an unreachable "void 0" branch for every occurrence of the operator */CookieStore$LWS == null ? void 0 : CookieStore$LWS.prototype, CookieStore$LWS, 'change');
|
|
5458
5465
|
}
|
|
5459
5466
|
|
|
5460
5467
|
/* istanbul ignore next: only available in secure context */
|
|
@@ -6739,6 +6746,10 @@ function initDistortionEventComposedPath$LWS({
|
|
|
6739
6746
|
return distortionEntry$LWS;
|
|
6740
6747
|
};
|
|
6741
6748
|
}
|
|
6749
|
+
|
|
6750
|
+
// Chromium 109 removed Event.prototype.path
|
|
6751
|
+
// https://chromestatus.com/feature/5726124632965120
|
|
6752
|
+
// istanbul ignore next: currently unreachable via tests
|
|
6742
6753
|
function path$LWS() {
|
|
6743
6754
|
return createDistortedComposedPath$LWS(this);
|
|
6744
6755
|
}
|
|
@@ -6748,13 +6759,13 @@ function initDistortionEventPathGetter$LWS({
|
|
|
6748
6759
|
}
|
|
6749
6760
|
}) {
|
|
6750
6761
|
const originalPathGetter$LWS = ObjectLookupOwnGetter$LWS$1(Event$LWS.prototype, 'path');
|
|
6751
|
-
// Chromium 109 removed Event.prototype.path:
|
|
6752
|
-
// https://chromestatus.com/feature/5726124632965120
|
|
6753
6762
|
// istanbul ignore else: currently unreachable via tests
|
|
6754
6763
|
if (typeof originalPathGetter$LWS !== 'function') {
|
|
6755
6764
|
return noop$LWS$1;
|
|
6756
6765
|
}
|
|
6766
|
+
// istanbul ignore next: currently unreachable via tests
|
|
6757
6767
|
const distortionEntry$LWS = [originalPathGetter$LWS, path$LWS];
|
|
6768
|
+
// istanbul ignore next: currently unreachable via tests
|
|
6758
6769
|
return function distortionEventPathGetter$LWS() {
|
|
6759
6770
|
return distortionEntry$LWS;
|
|
6760
6771
|
};
|
|
@@ -7035,7 +7046,7 @@ function initDistortionIFrameElementContentDocumentGetter$LWS({
|
|
|
7035
7046
|
const originalContentDocumentGetter$LWS = ObjectLookupOwnGetter$LWS$1(HTMLIFrameElement$LWS.prototype, 'contentDocument');
|
|
7036
7047
|
const distortionEntry$LWS = [originalContentDocumentGetter$LWS, function get$LWS() {
|
|
7037
7048
|
// The contentDocument proxy object of a kept alive sandbox iframe is revoked.
|
|
7038
|
-
return isRevokedProxy$LWS(this) ? null : ReflectApply$LWS$1(originalContentDocumentGetter$LWS, this, []);
|
|
7049
|
+
return isRevokedProxy$LWS(this) ? /* istanbul ignore next: currently unreachable via tests */null : ReflectApply$LWS$1(originalContentDocumentGetter$LWS, this, []);
|
|
7039
7050
|
}];
|
|
7040
7051
|
return function distortionIFrameElementContentDocument$LWS() {
|
|
7041
7052
|
return distortionEntry$LWS;
|
|
@@ -7049,7 +7060,7 @@ function initDistortionIFrameElementContentWindowGetter$LWS({
|
|
|
7049
7060
|
const originalContentWindowGetter$LWS = ObjectLookupOwnGetter$LWS$1(HTMLIFrameElement$LWS.prototype, 'contentWindow');
|
|
7050
7061
|
const distortionEntry$LWS = [originalContentWindowGetter$LWS, function get$LWS() {
|
|
7051
7062
|
// The contentWindow proxy object of a kept alive sandbox iframe is revoked.
|
|
7052
|
-
return isRevokedProxy$LWS(this) ? null : ReflectApply$LWS$1(originalContentWindowGetter$LWS, this, []);
|
|
7063
|
+
return isRevokedProxy$LWS(this) ? /* istanbul ignore next: currently unreachable via tests */null : ReflectApply$LWS$1(originalContentWindowGetter$LWS, this, []);
|
|
7053
7064
|
}];
|
|
7054
7065
|
return function distortionIFrameElementContentWindow$LWS() {
|
|
7055
7066
|
return distortionEntry$LWS;
|
|
@@ -7358,12 +7369,15 @@ function initDistortionHTMLScriptElementTextSetter$LWS({
|
|
|
7358
7369
|
sandboxEvaluator: sandboxEvaluator$LWS
|
|
7359
7370
|
}) {
|
|
7360
7371
|
return [originalTextSetter$LWS, function text$LWS(value$LWS) {
|
|
7372
|
+
// istanbul ignore else: this will never NOT be instanceof HTMLScriptElement
|
|
7361
7373
|
if (this instanceof HTMLScriptElement$LWS) {
|
|
7362
7374
|
const scriptWasNotEvaluatedInScriptPropertySetter$LWS = scriptPropertySetters$LWS(this, 'text', trusted.createScript(value$LWS), originalTextGetter$LWS, originalTextSetter$LWS, distortions$LWS, sandboxEvaluator$LWS, trusted.createScript(SCRIPT_HOOK_SOURCE_TEXT$LWS));
|
|
7375
|
+
// istanbul ignore else
|
|
7363
7376
|
if (scriptWasNotEvaluatedInScriptPropertySetter$LWS) {
|
|
7364
7377
|
return;
|
|
7365
7378
|
}
|
|
7366
7379
|
}
|
|
7380
|
+
// istanbul ignore next: currently unreachable via tests (see above)
|
|
7367
7381
|
ReflectApply$LWS$1(originalTextSetter$LWS, this, [value$LWS]);
|
|
7368
7382
|
}];
|
|
7369
7383
|
};
|
|
@@ -7591,7 +7605,6 @@ function initDistortionNodeValueSetter$LWS({
|
|
|
7591
7605
|
// istanbul ignore else: needs default platform behavior test
|
|
7592
7606
|
if (this instanceof Attr$LWS) {
|
|
7593
7607
|
const ownerEl$LWS = ReflectApply$LWS$1(AttrProtoOwnerElementGetter$LWS, this, []);
|
|
7594
|
-
// istanbul ignore if: needs default platform behavior test
|
|
7595
7608
|
if (ownerEl$LWS === null) {
|
|
7596
7609
|
ReflectApply$LWS$1(originalNodeValueSetter$LWS, this, [value$LWS]);
|
|
7597
7610
|
return;
|
|
@@ -7600,7 +7613,7 @@ function initDistortionNodeValueSetter$LWS({
|
|
|
7600
7613
|
const attrNamespace$LWS = ReflectApply$LWS$1(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
7601
7614
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
7602
7615
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS);
|
|
7603
|
-
// istanbul ignore
|
|
7616
|
+
// istanbul ignore next: needs default platform behavior test
|
|
7604
7617
|
if (distortion$LWS) {
|
|
7605
7618
|
ReflectApply$LWS$1(distortion$LWS, ownerEl$LWS, [value$LWS]);
|
|
7606
7619
|
return;
|
|
@@ -7743,7 +7756,6 @@ function initDistortionNodeTextContentSetter$LWS({
|
|
|
7743
7756
|
// istanbul ignore else: needs default platform behavior test
|
|
7744
7757
|
if (this instanceof Attr$LWS) {
|
|
7745
7758
|
const ownerEl$LWS = ReflectApply$LWS$1(AttrProtoOwnerElementGetter$LWS, this, []);
|
|
7746
|
-
// istanbul ignore if: needs default platform behavior test
|
|
7747
7759
|
if (ownerEl$LWS === null) {
|
|
7748
7760
|
ReflectApply$LWS$1(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
|
|
7749
7761
|
return;
|
|
@@ -7752,7 +7764,7 @@ function initDistortionNodeTextContentSetter$LWS({
|
|
|
7752
7764
|
const attrNamespace$LWS = ReflectApply$LWS$1(AttrProtoNamespaceURIGetter$LWS, this, []);
|
|
7753
7765
|
const normalizedNamespace$LWS = normalizeNamespace$LWS(attrNamespace$LWS);
|
|
7754
7766
|
const distortion$LWS = getAttributeDistortion$LWS(record$LWS, ownerEl$LWS, attrName$LWS, normalizedNamespace$LWS);
|
|
7755
|
-
// istanbul ignore
|
|
7767
|
+
// istanbul ignore next: needs default platform behavior test
|
|
7756
7768
|
if (distortion$LWS) {
|
|
7757
7769
|
ReflectApply$LWS$1(distortion$LWS, ownerEl$LWS, [valueAsString$LWS]);
|
|
7758
7770
|
return;
|
|
@@ -8580,10 +8592,12 @@ function initDistortionSVGScriptElementHrefGetter$LWS({
|
|
|
8580
8592
|
const originalHrefGetter$LWS = ObjectLookupOwnGetter$LWS$1(SVGScriptElement$LWS.prototype, 'href');
|
|
8581
8593
|
const distortionEntry$LWS = [originalHrefGetter$LWS, function href$LWS() {
|
|
8582
8594
|
const url$LWS = getScriptURL$LWS(this);
|
|
8595
|
+
// istanbul ignore else: needs default platform behavior test
|
|
8583
8596
|
if (typeof url$LWS === 'string') {
|
|
8584
8597
|
ReflectApply$LWS$1(originalSetAttribute$LWS, script$LWS, ['href', trusted.createScriptURL(url$LWS)]);
|
|
8585
8598
|
return ReflectApply$LWS$1(originalHrefGetter$LWS, script$LWS, []);
|
|
8586
8599
|
}
|
|
8600
|
+
// istanbul ignore next: needs default platform behavior test
|
|
8587
8601
|
return ReflectApply$LWS$1(originalHrefGetter$LWS, this, []);
|
|
8588
8602
|
}];
|
|
8589
8603
|
return function distortionSVGScriptElementHrefGetter$LWS() {
|
|
@@ -9119,18 +9133,8 @@ function initDistortionWindowPostMessage$LWS({
|
|
|
9119
9133
|
if (isObject$LWS$1(message$LWS)) {
|
|
9120
9134
|
// Calling `window.postMessage(message, target, transfer)`
|
|
9121
9135
|
// is equivalent to `window.postMessage(message, { targetOrigin, transfer })`.
|
|
9122
|
-
const providedOptions$LWS = length$LWS > 1 ? args$LWS[1] : undefined;
|
|
9136
|
+
const providedOptions$LWS = length$LWS > 1 ? args$LWS[1] : /* istanbul ignore next: currently unreachable via tests */undefined;
|
|
9123
9137
|
if (isObjectLike$LWS(providedOptions$LWS)) {
|
|
9124
|
-
const {
|
|
9125
|
-
transfer: transfer$LWS
|
|
9126
|
-
} = providedOptions$LWS;
|
|
9127
|
-
args$LWS[1] = {
|
|
9128
|
-
// The postMessage function accepts inherited
|
|
9129
|
-
// options property values.
|
|
9130
|
-
__proto__: providedOptions$LWS,
|
|
9131
|
-
// Shadow any inherited value.
|
|
9132
|
-
transfer: transfer$LWS
|
|
9133
|
-
};
|
|
9134
9138
|
// Structured clone all arguments so that `transfer`
|
|
9135
9139
|
// is referenced correctly within `message`.
|
|
9136
9140
|
args$LWS = partialStructuredClone$LWS(args$LWS);
|
|
@@ -9492,7 +9496,7 @@ initDistortionElementAfter$LWS, initDistortionElementAppend$LWS, initDistortionE
|
|
|
9492
9496
|
// initDistortionNodeAppendChild,
|
|
9493
9497
|
initDistortionNodeInsertBefore$LWS]);
|
|
9494
9498
|
const externalKeyedDistortionFactoryInitializers$LWS = internalKeyedDistortionFactoryInitializers$LWS;
|
|
9495
|
-
const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', '
|
|
9499
|
+
const DocumentBlockedProperties$LWS = ['createProcessingInstruction', 'exitFullscreen', 'fullscreen', 'fullscreenElement', 'fullscreenEnabled', 'mozCancelFullScreen', 'mozFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'onfullscreenchange', 'onfullscreenerror', 'onmozfullscreenchange', 'onmozfullscreenerror', 'onrejectionhandled', 'onunhandledrejection', 'releaseCapture', 'releaseEvents', 'webkitFullScreenKeyboardInputAllowed', 'write', 'writeln'];
|
|
9496
9500
|
const ElementBlockedProperties$LWS = ['mozRequestFullScreen', 'onfullscreenchange', 'onfullscreenerror', 'requestFullscreen', 'webkitRequestFullScreen', 'webkitRequestFullscreen'];
|
|
9497
9501
|
const EventBlockedProperties$LWS = ['originalTarget', 'explicitOriginalTarget'];
|
|
9498
9502
|
const HTMLElementBlockedAttributes$LWS = ['nonce'];
|
|
@@ -9508,9 +9512,9 @@ const HTMLScriptElementBlockedProperties$LWS = ['nonce'];
|
|
|
9508
9512
|
const SVGElementBlockedAttributes$LWS = ['nonce'];
|
|
9509
9513
|
const SVGElementBlockedProperties$LWS = ['nonce'];
|
|
9510
9514
|
const UIEventBlockedProperties$LWS = ['rangeParent'];
|
|
9511
|
-
const WindowBlockedProperties$LWS = ['find'
|
|
9515
|
+
const WindowBlockedProperties$LWS = ['find'];
|
|
9512
9516
|
const XSLTProcessorBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
|
|
9513
|
-
/*! version: 0.19.
|
|
9517
|
+
/*! version: 0.19.15 */
|
|
9514
9518
|
|
|
9515
9519
|
/*!
|
|
9516
9520
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -15325,11 +15329,13 @@ function evaluateFunction$LWS(key$LWS, fn$LWS, scope$LWS = EMPTY_OBJECT$LWS, sou
|
|
|
15325
15329
|
})(...argValues$LWS);
|
|
15326
15330
|
}
|
|
15327
15331
|
const sandboxDependencies$LWS = toSafeMap$LWS$1(new MapCtor$LWS$1());
|
|
15332
|
+
const lprDepNames$LWS = toSafeSet$LWS(new SetCtor$LWS$1(['lightning/platformResourceLoader', 'lightning:platformResourceLoader', 'lightningmobileruntime/platformResourceLoader', 'lightningmobileruntime:platformResourceLoader']));
|
|
15333
|
+
// istanbul ignore next: currently unreachable via tests, platformResourceLoader testing is exclusively done in AMD format mode
|
|
15328
15334
|
function wrapDependency$LWS(dep$LWS, depName$LWS, key$LWS) {
|
|
15329
15335
|
if (depName$LWS === 'lwc' || depName$LWS === '@lwc/engine-dom' || depName$LWS === '@lwc:engine-dom') {
|
|
15330
15336
|
return wrapLWC$LWS(dep$LWS, key$LWS);
|
|
15331
15337
|
}
|
|
15332
|
-
if (
|
|
15338
|
+
if (lprDepNames$LWS.has(depName$LWS)) {
|
|
15333
15339
|
return wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS);
|
|
15334
15340
|
}
|
|
15335
15341
|
return dep$LWS;
|
|
@@ -15412,7 +15418,7 @@ function wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS) {
|
|
|
15412
15418
|
depRegistry$LWS.set(dep$LWS, secureDep$LWS);
|
|
15413
15419
|
return secureDep$LWS;
|
|
15414
15420
|
}
|
|
15415
|
-
/*! version: 0.19.
|
|
15421
|
+
/*! version: 0.19.15 */
|
|
15416
15422
|
|
|
15417
15423
|
export { CORE_SANDBOX_KEY$LWS as CORE_SANDBOX_KEY, createRootWindowSandboxRecord$LWS as createRootWindowSandboxRecord, evaluateFunction$LWS as evaluateFunction, evaluateInCoreSandbox$LWS as evaluateInCoreSandbox, evaluateInSandbox$LWS as evaluateInSandbox, trusted, wrapDependency$LWS as wrapDependency };
|
|
15418
15424
|
//# sourceMappingURL=lockerSandbox.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.10.
|
|
7
|
+
"version": "0.10.6",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"build:platform": "node scripts/strip-for-core.js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@locker/sandbox": "0.19.
|
|
37
|
-
"@lwrjs/shared-utils": "0.10.
|
|
36
|
+
"@locker/sandbox": "0.19.15",
|
|
37
|
+
"@lwrjs/shared-utils": "0.10.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@lwrjs/types": "0.10.
|
|
40
|
+
"@lwrjs/types": "0.10.6",
|
|
41
41
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
42
42
|
"@rollup/plugin-sucrase": "^5.0.1",
|
|
43
43
|
"@rollup/plugin-terser": "^0.4.3",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"volta": {
|
|
70
70
|
"extends": "../../../package.json"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "42f3a600fb905d294fe68de47c280df14ee361e4"
|
|
73
73
|
}
|