New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@locker/shared-dom

Package Overview
Dependencies
Maintainers
8
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/shared-dom - npm Package Compare versions

Comparing version 0.18.21 to 0.18.22

19

dist/index.cjs.d.ts

@@ -31,8 +31,3 @@ /// <reference types="cacheable-request" />

code: string;
transforms: CompilationTransforms;
};
interface CompilationTransforms {
location: boolean;
windowTop: boolean;
}
interface CookieStore extends EventTarget {

@@ -87,5 +82,5 @@ prototype: {

declare const IS_WEBKIT_BROWSER: boolean;
declare const CustomElementRegistryProtoDefine: (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions | undefined) => void;
declare const CustomElementRegistryProtoGet: (name: string) => CustomElementConstructor | undefined;
declare const CustomElementRegistryProtoWhenDefined: (name: string) => Promise<CustomElementConstructor>;
declare const CustomElementRegistryProtoDefine: ((name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions | undefined) => void) | undefined;
declare const CustomElementRegistryProtoGet: ((name: string) => CustomElementConstructor | undefined) | undefined;
declare const CustomElementRegistryProtoWhenDefined: ((name: string) => Promise<CustomElementConstructor>) | undefined;
declare const rootDocument: Document;

@@ -187,2 +182,3 @@ // Used by '@locker/near-membrane/dom'.

declare const EventTargetProtoAddEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void, EventTargetProtoDispatchEvent: (event: Event) => boolean, EventTargetProtoRemoveEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
declare const HTMLAnchorElementProtoHostnameGetter: import("@locker/shared").Getter;
declare const HTMLAnchorElementProtoHrefGetter: any, HTMLAnchorElementProtoHrefSetter: any;

@@ -248,3 +244,3 @@ declare const HTMLAnchorElementProtoPathnameGetter: import("@locker/shared").Getter;

declare function generateContextAssignmentCodeFromContextNames(names: string[]): string;
declare function getContextNamesFromCompilationTransforms(transforms: CompilationTransforms): string[];
declare function getContextNames(extraContextNames?: string[]): string[];
declare function transformSourceText(sourceText: string): string;

@@ -255,4 +251,3 @@ declare const StorageProtoKey: (index: number) => string | null, StorageProtoGetItem: (key: string) => string | null, StorageProtoRemoveItem: (key: string) => void, StorageProtoSetItem: (key: string, value: string) => void;

declare const rootWindow: Window & typeof globalThis;
declare const rootWindowLocation: Location, rootWindowTop: Window | null;
declare const WindowClearInterval: ((id: number | undefined) => void) & typeof clearInterval, WindowDecodeURIComponent: typeof decodeURIComponent, WindowEncodeURIComponent: typeof encodeURIComponent, WindowFetch: ((input: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>) & typeof fetch, WindowSetInterval: ((handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number) & typeof setInterval, topWindow: Window | null;
declare const WindowClearInterval: ((id: number | undefined) => void) & typeof clearInterval, WindowDecodeURIComponent: typeof decodeURIComponent, WindowEncodeURIComponent: typeof encodeURIComponent, WindowFetch: ((input: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>) & typeof fetch, rootWindowLocation: Location, WindowSetInterval: ((handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number) & typeof setInterval, rootWindowTop: Window | null;
declare const WindowQueueMicrotask: ((callback: VoidFunction) => void) & typeof queueMicrotask;

@@ -290,2 +285,2 @@ declare const WindowDocumentGetter: import("@locker/shared").Getter;

declare const XhrProtoWithCredentialsSetter: import("@locker/shared").Setter;
export { AbortControllerCtor, AbortControllerProto, AbortControllerProtoAbort, AbortControllerProtoSignalGetter, AttrProtoNameGetter, AttrProtoNamespaceURIGetter, AttrProtoOwnerElementGetter, AttrProtoValueGetter, AttrProtoValueSetter, normalizeNamespacedAttributeName, rootValidator, getValidator, BlobCtor, BlobProtoSlice, BlobProtoSizeGetter, BlobProtoTypeGetter, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME, IS_CHROMIUM_BROWSER, IS_OLD_CHROMIUM_BROWSER, IS_WEBKIT_BROWSER, CustomElementRegistryProtoDefine, CustomElementRegistryProtoGet, CustomElementRegistryProtoWhenDefined, rootDocument, DocumentProtoClose, DocumentProtoOpen, DocumentProtoCreateComment, DocumentProtoCreateElement, DocumentProtoCreateElementNS, DocumentProtoGetElementById, DocumentProtoBodyGetter, DocumentProtoCookieGetter, DocumentProtoCookieSetter, DocumentProtoDefaultViewGetter, DocumentProtoDocumentElementGetter, DocumentProtoHeadGetter, DocumentProtoImplementationGetter, DocumentFragmentProtoGetElementById, DOMExceptionCtor, DATA_CLONE_ERROR_CODE, DOMExceptionProtoCodeGetter, DOMImplementationProtoCreateDocument, DOMTokenListProtoValueGetter, ElementAriaAttributesToPropertyName, ElementProtoRemove, ElementProtoClosest, ElementProtoGetAttribute, ElementProtoGetAttributeNode, ElementProtoGetAttributeNodeNS, ElementProtoHasAttribute, ElementProtoQuerySelector, ElementProtoQuerySelectorAll, ElementProtoRemoveAttribute, ElementProtoRemoveAttributeNode, ElementProtoRemoveAttributeNS, ElementProtoSetAttribute, ElementProtoSetAttributeNS, ElementProtoToggleAttribute, ElementProtoInnerHTMLGetter, ElementProtoInnerHTMLSetter, ElementProtoNamespaceURIGetter, ElementProtoOuterHTMLGetter, ElementProtoTagNameGetter, EventCtor, ErrorEventCtor, EventProtoStopPropagation, EventProtoCurrentTargetGetter, EventTargetProtoAddEventListener, EventTargetProtoDispatchEvent, EventTargetProtoRemoveEventListener, HTMLAnchorElementProtoHrefGetter, HTMLAnchorElementProtoHrefSetter, HTMLAnchorElementProtoPathnameGetter, HTMLAnchorElementProtoProtocolGetter, HTMLElementProto, HTMLElementProtoStyleGetter, HTMLElementGlobalAttributesToPropertyName, HTMLIFrameElementProtoContentWindowGetter, HTMLIFrameElementProtoSrcSetter, HTMLScriptElementCtor, HTMLScriptElementProto, HTMLScriptElementProtoSrcGetter, HTMLScriptElementProtoSrcSetter, HTMLTemplateElementProtoContentGetter, NAMESPACE_DEFAULT, NAMESPACE_SVG, NAMESPACE_XHTML, NAMESPACE_XLINK, NodeProtoAppendChild, NodeProtoCloneNode, NodeProtoIsEqualNode, NodeProtoChildNodesGetter, NodeProtoFirstChildGetter, NodeProtoIsConnectedGetter, NodeProtoLastChildGetter, NodeProtoNodeNameGetter, NodeProtoOwnerDocumentGetter, NodeProtoTextContentGetter, NodeProtoTextContentSetter, RangeProtoCreateContextualFragment, RequestProtoURLGetter, ResponseCtor, ResponseProtoOkGetter, ResponseProtoStatus, ResponseProtoStatusText, ResponseProtoText, SCRIPT_HOOK_SOURCE_TEXT, defineScriptAccessorProperty, defineScriptEvaluatorProperty, deleteOriginalTextContent, deleteResolvedScriptURL, deleteScriptEvaluatorProperty, getOriginalScriptTextContent, getResolvedScriptURL, getScriptSrcEvaluatorHookURL, isScriptEvaluated, isScriptURLEvaluatorHookDefined, isTextContentEvaluatorHookDefined, setOriginalScriptTextContent, setResolvedScriptURL, trackScriptAsEvaluated, compileSourceText, generateContextAssignmentCodeFromContextNames, getContextNamesFromCompilationTransforms, transformSourceText, StorageProtoKey, StorageProtoGetItem, StorageProtoRemoveItem, StorageProtoSetItem, SVGScriptElementProtoHrefGetter, SVGScriptElementProtoHrefSetter, AttributeNameToResolvedURLRegistry, CompilationResult, CompilationTransforms, CookieStore, GlobalObject, SandboxEvaluator, SandboxRecord, ScriptElement, ScriptEvaluatorPropertyCallback, WindowCookieStore, URLCreateObjectURL, URLRevokeObjectURL, rootWindow, rootWindowLocation, rootWindowTop, WindowClearInterval, WindowDecodeURIComponent, WindowEncodeURIComponent, WindowFetch, WindowSetInterval, topWindow, WindowQueueMicrotask, WindowDocumentGetter, WindowFrameElementGetter, WindowLengthGetter, WindowLocationGetter, initWindowOpenChildWindow, isWindow, normalizeWindowOpenArguments, XhrCtor, XhrProtoAbort, XhrProtoOpen, XhrProtoSend, XhrProtoResponseTextGetter, XhrProtoStatusGetter, XhrProtoWithCredentialsSetter };
export { AbortControllerCtor, AbortControllerProto, AbortControllerProtoAbort, AbortControllerProtoSignalGetter, AttrProtoNameGetter, AttrProtoNamespaceURIGetter, AttrProtoOwnerElementGetter, AttrProtoValueGetter, AttrProtoValueSetter, normalizeNamespacedAttributeName, rootValidator, getValidator, BlobCtor, BlobProtoSlice, BlobProtoSizeGetter, BlobProtoTypeGetter, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME, IS_CHROMIUM_BROWSER, IS_OLD_CHROMIUM_BROWSER, IS_WEBKIT_BROWSER, CustomElementRegistryProtoDefine, CustomElementRegistryProtoGet, CustomElementRegistryProtoWhenDefined, rootDocument, DocumentProtoClose, DocumentProtoOpen, DocumentProtoCreateComment, DocumentProtoCreateElement, DocumentProtoCreateElementNS, DocumentProtoGetElementById, DocumentProtoBodyGetter, DocumentProtoCookieGetter, DocumentProtoCookieSetter, DocumentProtoDefaultViewGetter, DocumentProtoDocumentElementGetter, DocumentProtoHeadGetter, DocumentProtoImplementationGetter, DocumentFragmentProtoGetElementById, DOMExceptionCtor, DATA_CLONE_ERROR_CODE, DOMExceptionProtoCodeGetter, DOMImplementationProtoCreateDocument, DOMTokenListProtoValueGetter, ElementAriaAttributesToPropertyName, ElementProtoRemove, ElementProtoClosest, ElementProtoGetAttribute, ElementProtoGetAttributeNode, ElementProtoGetAttributeNodeNS, ElementProtoHasAttribute, ElementProtoQuerySelector, ElementProtoQuerySelectorAll, ElementProtoRemoveAttribute, ElementProtoRemoveAttributeNode, ElementProtoRemoveAttributeNS, ElementProtoSetAttribute, ElementProtoSetAttributeNS, ElementProtoToggleAttribute, ElementProtoInnerHTMLGetter, ElementProtoInnerHTMLSetter, ElementProtoNamespaceURIGetter, ElementProtoOuterHTMLGetter, ElementProtoTagNameGetter, EventCtor, ErrorEventCtor, EventProtoStopPropagation, EventProtoCurrentTargetGetter, EventTargetProtoAddEventListener, EventTargetProtoDispatchEvent, EventTargetProtoRemoveEventListener, HTMLAnchorElementProtoHostnameGetter, HTMLAnchorElementProtoHrefGetter, HTMLAnchorElementProtoHrefSetter, HTMLAnchorElementProtoPathnameGetter, HTMLAnchorElementProtoProtocolGetter, HTMLElementProto, HTMLElementProtoStyleGetter, HTMLElementGlobalAttributesToPropertyName, HTMLIFrameElementProtoContentWindowGetter, HTMLIFrameElementProtoSrcSetter, HTMLScriptElementCtor, HTMLScriptElementProto, HTMLScriptElementProtoSrcGetter, HTMLScriptElementProtoSrcSetter, HTMLTemplateElementProtoContentGetter, NAMESPACE_DEFAULT, NAMESPACE_SVG, NAMESPACE_XHTML, NAMESPACE_XLINK, NodeProtoAppendChild, NodeProtoCloneNode, NodeProtoIsEqualNode, NodeProtoChildNodesGetter, NodeProtoFirstChildGetter, NodeProtoIsConnectedGetter, NodeProtoLastChildGetter, NodeProtoNodeNameGetter, NodeProtoOwnerDocumentGetter, NodeProtoTextContentGetter, NodeProtoTextContentSetter, RangeProtoCreateContextualFragment, RequestProtoURLGetter, ResponseCtor, ResponseProtoOkGetter, ResponseProtoStatus, ResponseProtoStatusText, ResponseProtoText, SCRIPT_HOOK_SOURCE_TEXT, defineScriptAccessorProperty, defineScriptEvaluatorProperty, deleteOriginalTextContent, deleteResolvedScriptURL, deleteScriptEvaluatorProperty, getOriginalScriptTextContent, getResolvedScriptURL, getScriptSrcEvaluatorHookURL, isScriptEvaluated, isScriptURLEvaluatorHookDefined, isTextContentEvaluatorHookDefined, setOriginalScriptTextContent, setResolvedScriptURL, trackScriptAsEvaluated, compileSourceText, generateContextAssignmentCodeFromContextNames, getContextNames, transformSourceText, StorageProtoKey, StorageProtoGetItem, StorageProtoRemoveItem, StorageProtoSetItem, SVGScriptElementProtoHrefGetter, SVGScriptElementProtoHrefSetter, AttributeNameToResolvedURLRegistry, CompilationResult, CookieStore, GlobalObject, SandboxEvaluator, SandboxRecord, ScriptElement, ScriptEvaluatorPropertyCallback, WindowCookieStore, URLCreateObjectURL, URLRevokeObjectURL, rootWindow, WindowClearInterval, WindowDecodeURIComponent, WindowEncodeURIComponent, WindowFetch, rootWindowLocation, WindowSetInterval, rootWindowTop, WindowQueueMicrotask, WindowDocumentGetter, WindowFrameElementGetter, WindowLengthGetter, WindowLocationGetter, initWindowOpenChildWindow, isWindow, normalizeWindowOpenArguments, XhrCtor, XhrProtoAbort, XhrProtoOpen, XhrProtoSend, XhrProtoResponseTextGetter, XhrProtoStatusGetter, XhrProtoWithCredentialsSetter };

@@ -170,6 +170,2 @@ /*!

const rootWindow$LWS = window;
const {
location: rootWindowLocation$LWS,
top: rootWindowTop$LWS
} = rootWindow$LWS;
// These properties are part of the WindowOrGlobalScope mixin and not on

@@ -186,4 +182,5 @@ // Window.prototype.

fetch: WindowFetch$LWS,
location: rootWindowLocation$LWS,
setInterval: WindowSetInterval$LWS,
top: topWindow$LWS
top: rootWindowTop$LWS
} = rootWindow$LWS;

@@ -434,6 +431,6 @@ const WindowQueueMicrotask$LWS = (() => {

}]) !== undefined : shared$LWS.ReflectApply(shared$LWS.RegExpProtoTest, webKitUserAgentRegExp$LWS, [getUserAgent$LWS()]));
const CustomElementRegistryProto$LWS = rootWindow$LWS == null ? void 0 : (_rootWindow$CustomEle$LWS = rootWindow$LWS.CustomElementRegistry) == null ? void 0 : _rootWindow$CustomEle$LWS.prototype;
const CustomElementRegistryProtoDefine$LWS = CustomElementRegistryProto$LWS == null ? void 0 : CustomElementRegistryProto$LWS.define;
const CustomElementRegistryProtoGet$LWS = CustomElementRegistryProto$LWS == null ? void 0 : CustomElementRegistryProto$LWS.get;
const CustomElementRegistryProtoWhenDefined$LWS = CustomElementRegistryProto$LWS == null ? void 0 : CustomElementRegistryProto$LWS.whenDefined;
const CustomElementRegistryProto$LWS = (_rootWindow$CustomEle$LWS = rootWindow$LWS.CustomElementRegistry) == null ? void 0 : _rootWindow$CustomEle$LWS.prototype;
const CustomElementRegistryProtoDefine$LWS = CustomElementRegistryProto$LWS ? shared$LWS.getUnmaskedFunction(CustomElementRegistryProto$LWS.define) : undefined;
const CustomElementRegistryProtoGet$LWS = CustomElementRegistryProto$LWS ? shared$LWS.getUnmaskedFunction(CustomElementRegistryProto$LWS.get) : undefined;
const CustomElementRegistryProtoWhenDefined$LWS = CustomElementRegistryProto$LWS ? shared$LWS.getUnmaskedFunction(CustomElementRegistryProto$LWS.whenDefined) : undefined;
const {

@@ -471,8 +468,15 @@ getElementById: DocumentFragmentProtoGetElementById$LWS

const {
prototype: HTMLAnchorElementProto$LWS
} = HTMLAnchorElement;
const HTMLAnchorElementProtoHostnameGetter$LWS = shared$LWS.ObjectLookupOwnGetter(HTMLAnchorElementProto$LWS, 'hostname');
const {
get: HTMLAnchorElementProtoHrefGetter$LWS,
set: HTMLAnchorElementProtoHrefSetter$LWS
} = shared$LWS.ReflectGetOwnPropertyDescriptor(HTMLAnchorElement.prototype, 'href');
const HTMLAnchorElementProtoPathnameGetter$LWS = shared$LWS.ObjectLookupOwnGetter(HTMLAnchorElement.prototype, 'pathname');
const HTMLAnchorElementProtoProtocolGetter$LWS = shared$LWS.ObjectLookupOwnGetter(HTMLAnchorElement.prototype, 'protocol');
const HTMLElementProto$LWS = HTMLElement.prototype;
} = shared$LWS.ReflectGetOwnPropertyDescriptor(HTMLAnchorElementProto$LWS, 'href');
const HTMLAnchorElementProtoPathnameGetter$LWS = shared$LWS.ObjectLookupOwnGetter(HTMLAnchorElementProto$LWS, 'pathname');
const HTMLAnchorElementProtoProtocolGetter$LWS = shared$LWS.ObjectLookupOwnGetter(HTMLAnchorElementProto$LWS, 'protocol');
const HTMLElement$LWS = shared$LWS.getUnmaskedFunction(rootWindow$LWS.HTMLElement);
const {
prototype: HTMLElementProto$LWS
} = HTMLElement$LWS;
// Used by '@locker/near-membrane-dom'.

@@ -620,6 +624,24 @@ const HTMLElementProtoStyleGetter$LWS = shared$LWS.ObjectLookupOwnGetter(HTMLElementProto$LWS, 'style');

const webpackGlobalDocumentPattern$LWS = `${documentPattern$LWS}|global.document`;
// While fully qualified member expression access can be unambiguously detected,
// ie. window.location or window.top, bare-word references to location and top
// cannot. This means that code containing the fully qualified member expressions
// can have all occurrences replaced by transforms and given special names controlled
// by LWS in Aura. This process will also result in the program knowing that it
// applied a given transform, which it can then use to populate a context names
// list to be used in the declaration assignment code injected into wrapped Aura
// component code. Because the unqualified member expressions cannot be unambiguously
// detected, there is no way for the program to know that, eg. location.search was
// used in the Aura component code and subsequently transformed, which means it
// cannot be relied upon to when populating a context names list to be used in
// the declaration assignment code. As a result, location and top must be universally
// and explicitly included in the context object, and universally and explicitly
// included in the context names list.
const defaultContextNames$LWS = [shared$LWS.UNCOMPILED_LOCATION_NAME, shared$LWS.UNCOMPILED_TOP_NAME, '$A', '$Lightning', 'location', 'Sfdc', 'sforce', 'top'];
const freeVarNames$LWS = ['$A', '$Lightning', 'Sfdc', 'sforce'];
// Prototype method access of `freeVarNames` is safe at runtime initialize.
const propsToFreeVarsRegExp$LWS = new shared$LWS.RegExpCtor(`[$\\w]+\\.(${freeVarNames$LWS.map(shared$LWS.toRegExpEscapedIdentifierName).join('|')})`, 'g');
const locationReferencesRegExp$LWS = createPropertyReferenceRegExp$LWS(`${documentPattern$LWS}|${windowPattern$LWS}`, 'location');
const locationReferencesWithWebpackRegExp$LWS = createPropertyReferenceRegExp$LWS(`${webpackGlobalDocumentPattern$LWS}|${webpackGlobalPattern$LWS}`, 'location');
const sandboxEvalContextNameRegExp$LWS = new shared$LWS.RegExpCtor(`(?:^|\\W)${shared$LWS.escapeRegExp(shared$LWS.SANDBOX_EVAL_CONTEXT_NAME)}(?:\\W|$)`);
const webpackRequireNameRegExp$LWS = new shared$LWS.RegExpCtor(`\\b${shared$LWS.escapeRegExp(shared$LWS.WEBPACK_REQUIRE_NAME)}\\b`);
const sandboxEvalContextNameRegExp$LWS = new shared$LWS.RegExpCtor(`(?:^|\\W)${shared$LWS.toRegExpEscapedString(shared$LWS.SANDBOX_EVAL_CONTEXT_NAME)}(?:\\W|$)`);
const webpackRequireNameRegExp$LWS = new shared$LWS.RegExpCtor(shared$LWS.toRegExpEscapedIdentifierName(shared$LWS.WEBPACK_REQUIRE_NAME));
const windowTopReferencesRegExp$LWS = createPropertyReferenceRegExp$LWS(windowPattern$LWS, 'top');

@@ -635,6 +657,2 @@ const windowTopReferencesWithWebpackRegExp$LWS = createPropertyReferenceRegExp$LWS(webpackGlobalPattern$LWS, 'top');

function compileSourceText$LWS(sourceText$LWS) {
const transforms$LWS = {
location: false,
windowTop: false
};
// To avoid conflicts with anyone else using `SANDBOX_EVAL_CONTEXT_NAME`,

@@ -645,4 +663,3 @@ // we sniff the source text to see if it is present, and in that case we

return {
code: sourceText$LWS,
transforms: transforms$LWS
code: sourceText$LWS
};

@@ -664,58 +681,32 @@ }

// string replacement.
sourceText$LWS = shared$LWS.ReflectApply(shared$LWS.StringProtoReplace, sourceText$LWS, [locationRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => {
transforms$LWS.location = true;
return assignmentOperator$LWS ? `${shared$LWS.UNCOMPILED_LOCATION_NAME}.href${assignmentOperator$LWS}` : shared$LWS.UNCOMPILED_LOCATION_NAME;
}]);
sourceText$LWS = shared$LWS.ReflectApply(shared$LWS.StringProtoReplace, sourceText$LWS, [locationRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => assignmentOperator$LWS ? `${shared$LWS.UNCOMPILED_LOCATION_NAME}.href${assignmentOperator$LWS}` : shared$LWS.UNCOMPILED_LOCATION_NAME]);
// In non-compiled source text `window.top` is null when evaluated in a
// sandbox. We perform a naive transformation to replace references of
// `window.top` to use our internal sandbox helpers.
sourceText$LWS = shared$LWS.ReflectApply(shared$LWS.StringProtoReplace, sourceText$LWS, [topRegExp$LWS, () => {
transforms$LWS.windowTop = true;
return shared$LWS.UNCOMPILED_TOP_NAME;
}]);
sourceText$LWS = shared$LWS.ReflectApply(shared$LWS.StringProtoReplace, sourceText$LWS, [topRegExp$LWS, () => shared$LWS.UNCOMPILED_TOP_NAME]);
// Replace window dot property access of free variables with their bare forms,
// e.g. `window.$A` replaced with `$A`.
sourceText$LWS = shared$LWS.ReflectApply(shared$LWS.StringProtoReplace, sourceText$LWS, [propsToFreeVarsRegExp$LWS, (_match$LWS, name$LWS) => name$LWS]);
return {
code: sourceText$LWS,
transforms: transforms$LWS
code: sourceText$LWS
};
}
function generateContextAssignmentCodeFromContextNames$LWS(names$LWS) {
// While fully qualified member expression access can be unambiguously detected,
// ie. window.location or window.top, bare-word references to location and top
// cannot. This means that code containing the fully qualified member expressions
// can have all occurrences replaced by transforms and given special names controlled
// by LWS in Aura. This process will also result in the program knowing that it
// applied a given transform, which it can then use to populate a context names
// list to be used in the declaration assignment code injected into wrapped Aura
// component code. Because the unqualified member expressions cannot be unambiguously
// detected, there is no way for the program to know that, eg. location.search was
// used in the Aura component code and subsequently transformed, which means it
// cannot be relied upon to when populating a context names list to be used in
// the declaration assignment code. As a result, location and top must be universally
// and explicitly included in the context object, and universally and explicitly
// included in the context names list.
//
names$LWS[names$LWS.length] = 'location';
names$LWS[names$LWS.length] = 'top';
return `const {${shared$LWS.ReflectApply(shared$LWS.ArrayProtoToString, names$LWS, [])}}=${shared$LWS.SANDBOX_EVAL_CONTEXT_NAME}`;
}
function getContextNamesFromCompilationTransforms$LWS(transforms$LWS) {
const names$LWS = shared$LWS.toSafeArray([]);
if (transforms$LWS.location) {
names$LWS[names$LWS.length] = shared$LWS.UNCOMPILED_LOCATION_NAME;
function getContextNames$LWS(extraContextNames$LWS = []) {
const contextNames$LWS = shared$LWS.shallowCloneArray(defaultContextNames$LWS);
if (extraContextNames$LWS.length) {
shared$LWS.ReflectApply(shared$LWS.ArrayProtoPush, contextNames$LWS, extraContextNames$LWS);
}
if (transforms$LWS.windowTop) {
names$LWS[names$LWS.length] = shared$LWS.UNCOMPILED_TOP_NAME;
}
return names$LWS;
return contextNames$LWS;
}
function transformSourceText$LWS(sourceText$LWS) {
if (shared$LWS.ReflectApply(shared$LWS.RegExpProtoTest, sandboxEvalContextNameRegExp$LWS, [sourceText$LWS])) {
return sourceText$LWS;
}
const {
code: code$LWS,
transforms: transforms$LWS
code: code$LWS
} = compileSourceText$LWS(sourceText$LWS);
const contextNames$LWS = getContextNamesFromCompilationTransforms$LWS(transforms$LWS);
if (!contextNames$LWS.length) {
return code$LWS;
}
const prefix$LWS = `${generateContextAssignmentCodeFromContextNames$LWS(contextNames$LWS)};`;
const prefix$LWS = `${generateContextAssignmentCodeFromContextNames$LWS(getContextNames$LWS())};`;
const pragmaIndex$LWS = shared$LWS.indexOfPragma(code$LWS, 'use strict');

@@ -824,2 +815,3 @@ if (pragmaIndex$LWS === -1) {

exports.EventTargetProtoRemoveEventListener = EventTargetProtoRemoveEventListener$LWS;
exports.HTMLAnchorElementProtoHostnameGetter = HTMLAnchorElementProtoHostnameGetter$LWS;
exports.HTMLAnchorElementProtoHrefGetter = HTMLAnchorElementProtoHrefGetter$LWS;

@@ -897,3 +889,3 @@ exports.HTMLAnchorElementProtoHrefSetter = HTMLAnchorElementProtoHrefSetter$LWS;

exports.generateContextAssignmentCodeFromContextNames = generateContextAssignmentCodeFromContextNames$LWS;
exports.getContextNamesFromCompilationTransforms = getContextNamesFromCompilationTransforms$LWS;
exports.getContextNames = getContextNames$LWS;
exports.getOriginalScriptTextContent = getOriginalScriptTextContent$LWS;

@@ -917,5 +909,4 @@ exports.getResolvedScriptURL = getResolvedScriptURL$LWS;

exports.setResolvedScriptURL = setResolvedScriptURL$LWS;
exports.topWindow = topWindow$LWS;
exports.trackScriptAsEvaluated = trackScriptAsEvaluated$LWS;
exports.transformSourceText = transformSourceText$LWS;
/*! version: 0.18.21 */
/*! version: 0.18.22 */

@@ -31,8 +31,3 @@ /// <reference types="cacheable-request" />

code: string;
transforms: CompilationTransforms;
};
interface CompilationTransforms {
location: boolean;
windowTop: boolean;
}
interface CookieStore extends EventTarget {

@@ -87,5 +82,5 @@ prototype: {

declare const IS_WEBKIT_BROWSER: boolean;
declare const CustomElementRegistryProtoDefine: (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions | undefined) => void;
declare const CustomElementRegistryProtoGet: (name: string) => CustomElementConstructor | undefined;
declare const CustomElementRegistryProtoWhenDefined: (name: string) => Promise<CustomElementConstructor>;
declare const CustomElementRegistryProtoDefine: ((name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions | undefined) => void) | undefined;
declare const CustomElementRegistryProtoGet: ((name: string) => CustomElementConstructor | undefined) | undefined;
declare const CustomElementRegistryProtoWhenDefined: ((name: string) => Promise<CustomElementConstructor>) | undefined;
declare const rootDocument: Document;

@@ -187,2 +182,3 @@ // Used by '@locker/near-membrane/dom'.

declare const EventTargetProtoAddEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void, EventTargetProtoDispatchEvent: (event: Event) => boolean, EventTargetProtoRemoveEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
declare const HTMLAnchorElementProtoHostnameGetter: import("@locker/shared").Getter;
declare const HTMLAnchorElementProtoHrefGetter: any, HTMLAnchorElementProtoHrefSetter: any;

@@ -248,3 +244,3 @@ declare const HTMLAnchorElementProtoPathnameGetter: import("@locker/shared").Getter;

declare function generateContextAssignmentCodeFromContextNames(names: string[]): string;
declare function getContextNamesFromCompilationTransforms(transforms: CompilationTransforms): string[];
declare function getContextNames(extraContextNames?: string[]): string[];
declare function transformSourceText(sourceText: string): string;

@@ -255,4 +251,3 @@ declare const StorageProtoKey: (index: number) => string | null, StorageProtoGetItem: (key: string) => string | null, StorageProtoRemoveItem: (key: string) => void, StorageProtoSetItem: (key: string, value: string) => void;

declare const rootWindow: Window & typeof globalThis;
declare const rootWindowLocation: Location, rootWindowTop: Window | null;
declare const WindowClearInterval: ((id: number | undefined) => void) & typeof clearInterval, WindowDecodeURIComponent: typeof decodeURIComponent, WindowEncodeURIComponent: typeof encodeURIComponent, WindowFetch: ((input: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>) & typeof fetch, WindowSetInterval: ((handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number) & typeof setInterval, topWindow: Window | null;
declare const WindowClearInterval: ((id: number | undefined) => void) & typeof clearInterval, WindowDecodeURIComponent: typeof decodeURIComponent, WindowEncodeURIComponent: typeof encodeURIComponent, WindowFetch: ((input: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>) & typeof fetch, rootWindowLocation: Location, WindowSetInterval: ((handler: TimerHandler, timeout?: number | undefined, ...arguments: any[]) => number) & typeof setInterval, rootWindowTop: Window | null;
declare const WindowQueueMicrotask: ((callback: VoidFunction) => void) & typeof queueMicrotask;

@@ -290,2 +285,2 @@ declare const WindowDocumentGetter: import("@locker/shared").Getter;

declare const XhrProtoWithCredentialsSetter: import("@locker/shared").Setter;
export { AbortControllerCtor, AbortControllerProto, AbortControllerProtoAbort, AbortControllerProtoSignalGetter, AttrProtoNameGetter, AttrProtoNamespaceURIGetter, AttrProtoOwnerElementGetter, AttrProtoValueGetter, AttrProtoValueSetter, normalizeNamespacedAttributeName, rootValidator, getValidator, BlobCtor, BlobProtoSlice, BlobProtoSizeGetter, BlobProtoTypeGetter, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME, IS_CHROMIUM_BROWSER, IS_OLD_CHROMIUM_BROWSER, IS_WEBKIT_BROWSER, CustomElementRegistryProtoDefine, CustomElementRegistryProtoGet, CustomElementRegistryProtoWhenDefined, rootDocument, DocumentProtoClose, DocumentProtoOpen, DocumentProtoCreateComment, DocumentProtoCreateElement, DocumentProtoCreateElementNS, DocumentProtoGetElementById, DocumentProtoBodyGetter, DocumentProtoCookieGetter, DocumentProtoCookieSetter, DocumentProtoDefaultViewGetter, DocumentProtoDocumentElementGetter, DocumentProtoHeadGetter, DocumentProtoImplementationGetter, DocumentFragmentProtoGetElementById, DOMExceptionCtor, DATA_CLONE_ERROR_CODE, DOMExceptionProtoCodeGetter, DOMImplementationProtoCreateDocument, DOMTokenListProtoValueGetter, ElementAriaAttributesToPropertyName, ElementProtoRemove, ElementProtoClosest, ElementProtoGetAttribute, ElementProtoGetAttributeNode, ElementProtoGetAttributeNodeNS, ElementProtoHasAttribute, ElementProtoQuerySelector, ElementProtoQuerySelectorAll, ElementProtoRemoveAttribute, ElementProtoRemoveAttributeNode, ElementProtoRemoveAttributeNS, ElementProtoSetAttribute, ElementProtoSetAttributeNS, ElementProtoToggleAttribute, ElementProtoInnerHTMLGetter, ElementProtoInnerHTMLSetter, ElementProtoNamespaceURIGetter, ElementProtoOuterHTMLGetter, ElementProtoTagNameGetter, EventCtor, ErrorEventCtor, EventProtoStopPropagation, EventProtoCurrentTargetGetter, EventTargetProtoAddEventListener, EventTargetProtoDispatchEvent, EventTargetProtoRemoveEventListener, HTMLAnchorElementProtoHrefGetter, HTMLAnchorElementProtoHrefSetter, HTMLAnchorElementProtoPathnameGetter, HTMLAnchorElementProtoProtocolGetter, HTMLElementProto, HTMLElementProtoStyleGetter, HTMLElementGlobalAttributesToPropertyName, HTMLIFrameElementProtoContentWindowGetter, HTMLIFrameElementProtoSrcSetter, HTMLScriptElementCtor, HTMLScriptElementProto, HTMLScriptElementProtoSrcGetter, HTMLScriptElementProtoSrcSetter, HTMLTemplateElementProtoContentGetter, NAMESPACE_DEFAULT, NAMESPACE_SVG, NAMESPACE_XHTML, NAMESPACE_XLINK, NodeProtoAppendChild, NodeProtoCloneNode, NodeProtoIsEqualNode, NodeProtoChildNodesGetter, NodeProtoFirstChildGetter, NodeProtoIsConnectedGetter, NodeProtoLastChildGetter, NodeProtoNodeNameGetter, NodeProtoOwnerDocumentGetter, NodeProtoTextContentGetter, NodeProtoTextContentSetter, RangeProtoCreateContextualFragment, RequestProtoURLGetter, ResponseCtor, ResponseProtoOkGetter, ResponseProtoStatus, ResponseProtoStatusText, ResponseProtoText, SCRIPT_HOOK_SOURCE_TEXT, defineScriptAccessorProperty, defineScriptEvaluatorProperty, deleteOriginalTextContent, deleteResolvedScriptURL, deleteScriptEvaluatorProperty, getOriginalScriptTextContent, getResolvedScriptURL, getScriptSrcEvaluatorHookURL, isScriptEvaluated, isScriptURLEvaluatorHookDefined, isTextContentEvaluatorHookDefined, setOriginalScriptTextContent, setResolvedScriptURL, trackScriptAsEvaluated, compileSourceText, generateContextAssignmentCodeFromContextNames, getContextNamesFromCompilationTransforms, transformSourceText, StorageProtoKey, StorageProtoGetItem, StorageProtoRemoveItem, StorageProtoSetItem, SVGScriptElementProtoHrefGetter, SVGScriptElementProtoHrefSetter, AttributeNameToResolvedURLRegistry, CompilationResult, CompilationTransforms, CookieStore, GlobalObject, SandboxEvaluator, SandboxRecord, ScriptElement, ScriptEvaluatorPropertyCallback, WindowCookieStore, URLCreateObjectURL, URLRevokeObjectURL, rootWindow, rootWindowLocation, rootWindowTop, WindowClearInterval, WindowDecodeURIComponent, WindowEncodeURIComponent, WindowFetch, WindowSetInterval, topWindow, WindowQueueMicrotask, WindowDocumentGetter, WindowFrameElementGetter, WindowLengthGetter, WindowLocationGetter, initWindowOpenChildWindow, isWindow, normalizeWindowOpenArguments, XhrCtor, XhrProtoAbort, XhrProtoOpen, XhrProtoSend, XhrProtoResponseTextGetter, XhrProtoStatusGetter, XhrProtoWithCredentialsSetter };
export { AbortControllerCtor, AbortControllerProto, AbortControllerProtoAbort, AbortControllerProtoSignalGetter, AttrProtoNameGetter, AttrProtoNamespaceURIGetter, AttrProtoOwnerElementGetter, AttrProtoValueGetter, AttrProtoValueSetter, normalizeNamespacedAttributeName, rootValidator, getValidator, BlobCtor, BlobProtoSlice, BlobProtoSizeGetter, BlobProtoTypeGetter, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME, IS_CHROMIUM_BROWSER, IS_OLD_CHROMIUM_BROWSER, IS_WEBKIT_BROWSER, CustomElementRegistryProtoDefine, CustomElementRegistryProtoGet, CustomElementRegistryProtoWhenDefined, rootDocument, DocumentProtoClose, DocumentProtoOpen, DocumentProtoCreateComment, DocumentProtoCreateElement, DocumentProtoCreateElementNS, DocumentProtoGetElementById, DocumentProtoBodyGetter, DocumentProtoCookieGetter, DocumentProtoCookieSetter, DocumentProtoDefaultViewGetter, DocumentProtoDocumentElementGetter, DocumentProtoHeadGetter, DocumentProtoImplementationGetter, DocumentFragmentProtoGetElementById, DOMExceptionCtor, DATA_CLONE_ERROR_CODE, DOMExceptionProtoCodeGetter, DOMImplementationProtoCreateDocument, DOMTokenListProtoValueGetter, ElementAriaAttributesToPropertyName, ElementProtoRemove, ElementProtoClosest, ElementProtoGetAttribute, ElementProtoGetAttributeNode, ElementProtoGetAttributeNodeNS, ElementProtoHasAttribute, ElementProtoQuerySelector, ElementProtoQuerySelectorAll, ElementProtoRemoveAttribute, ElementProtoRemoveAttributeNode, ElementProtoRemoveAttributeNS, ElementProtoSetAttribute, ElementProtoSetAttributeNS, ElementProtoToggleAttribute, ElementProtoInnerHTMLGetter, ElementProtoInnerHTMLSetter, ElementProtoNamespaceURIGetter, ElementProtoOuterHTMLGetter, ElementProtoTagNameGetter, EventCtor, ErrorEventCtor, EventProtoStopPropagation, EventProtoCurrentTargetGetter, EventTargetProtoAddEventListener, EventTargetProtoDispatchEvent, EventTargetProtoRemoveEventListener, HTMLAnchorElementProtoHostnameGetter, HTMLAnchorElementProtoHrefGetter, HTMLAnchorElementProtoHrefSetter, HTMLAnchorElementProtoPathnameGetter, HTMLAnchorElementProtoProtocolGetter, HTMLElementProto, HTMLElementProtoStyleGetter, HTMLElementGlobalAttributesToPropertyName, HTMLIFrameElementProtoContentWindowGetter, HTMLIFrameElementProtoSrcSetter, HTMLScriptElementCtor, HTMLScriptElementProto, HTMLScriptElementProtoSrcGetter, HTMLScriptElementProtoSrcSetter, HTMLTemplateElementProtoContentGetter, NAMESPACE_DEFAULT, NAMESPACE_SVG, NAMESPACE_XHTML, NAMESPACE_XLINK, NodeProtoAppendChild, NodeProtoCloneNode, NodeProtoIsEqualNode, NodeProtoChildNodesGetter, NodeProtoFirstChildGetter, NodeProtoIsConnectedGetter, NodeProtoLastChildGetter, NodeProtoNodeNameGetter, NodeProtoOwnerDocumentGetter, NodeProtoTextContentGetter, NodeProtoTextContentSetter, RangeProtoCreateContextualFragment, RequestProtoURLGetter, ResponseCtor, ResponseProtoOkGetter, ResponseProtoStatus, ResponseProtoStatusText, ResponseProtoText, SCRIPT_HOOK_SOURCE_TEXT, defineScriptAccessorProperty, defineScriptEvaluatorProperty, deleteOriginalTextContent, deleteResolvedScriptURL, deleteScriptEvaluatorProperty, getOriginalScriptTextContent, getResolvedScriptURL, getScriptSrcEvaluatorHookURL, isScriptEvaluated, isScriptURLEvaluatorHookDefined, isTextContentEvaluatorHookDefined, setOriginalScriptTextContent, setResolvedScriptURL, trackScriptAsEvaluated, compileSourceText, generateContextAssignmentCodeFromContextNames, getContextNames, transformSourceText, StorageProtoKey, StorageProtoGetItem, StorageProtoRemoveItem, StorageProtoSetItem, SVGScriptElementProtoHrefGetter, SVGScriptElementProtoHrefSetter, AttributeNameToResolvedURLRegistry, CompilationResult, CookieStore, GlobalObject, SandboxEvaluator, SandboxRecord, ScriptElement, ScriptEvaluatorPropertyCallback, WindowCookieStore, URLCreateObjectURL, URLRevokeObjectURL, rootWindow, WindowClearInterval, WindowDecodeURIComponent, WindowEncodeURIComponent, WindowFetch, rootWindowLocation, WindowSetInterval, rootWindowTop, WindowQueueMicrotask, WindowDocumentGetter, WindowFrameElementGetter, WindowLengthGetter, WindowLocationGetter, initWindowOpenChildWindow, isWindow, normalizeWindowOpenArguments, XhrCtor, XhrProtoAbort, XhrProtoOpen, XhrProtoSend, XhrProtoResponseTextGetter, XhrProtoStatusGetter, XhrProtoWithCredentialsSetter };

@@ -5,3 +5,3 @@ /*!

var _rootWindow$CustomEle$LWS;
import { ObjectLookupOwnGetter as ObjectLookupOwnGetter$LWS, ReflectGetOwnPropertyDescriptor as ReflectGetOwnPropertyDescriptor$LWS, ReflectApply as ReflectApply$LWS, StringProtoEndsWith as StringProtoEndsWith$LWS, StringProtoStartsWith as StringProtoStartsWith$LWS, PromiseResolve as PromiseResolve$LWS, PromiseProtoThen as PromiseProtoThen$LWS, PromiseProtoCatch as PromiseProtoCatch$LWS, ObjectHasOwn as ObjectHasOwn$LWS, shallowCloneArray as shallowCloneArray$LWS, StringProtoToLowerCase as StringProtoToLowerCase$LWS, RegExpProtoTest as RegExpProtoTest$LWS, StringProtoReplace as StringProtoReplace$LWS, toSafeWeakMap as toSafeWeakMap$LWS, WeakMapCtor as WeakMapCtor$LWS, ArrayIsArray as ArrayIsArray$LWS, ArrayProtoFind as ArrayProtoFind$LWS, LOCKER_SERVICE_KEY_LOWERED as LOCKER_SERVICE_KEY_LOWERED$LWS, ObjectLookupOwnSetter as ObjectLookupOwnSetter$LWS, toSafeWeakSet as toSafeWeakSet$LWS, WeakSetCtor as WeakSetCtor$LWS, ReflectDefineProperty as ReflectDefineProperty$LWS, FunctionProtoBind as FunctionProtoBind$LWS, UNCOMPILED_LOCATION_NAME as UNCOMPILED_LOCATION_NAME$LWS, UNCOMPILED_TOP_NAME as UNCOMPILED_TOP_NAME$LWS, LockerSecurityError as LockerSecurityError$LWS, ReflectDeleteProperty as ReflectDeleteProperty$LWS, RegExpCtor as RegExpCtor$LWS, escapeRegExp as escapeRegExp$LWS, SANDBOX_EVAL_CONTEXT_NAME as SANDBOX_EVAL_CONTEXT_NAME$LWS, WEBPACK_REQUIRE_NAME as WEBPACK_REQUIRE_NAME$LWS, ArrayProtoToString as ArrayProtoToString$LWS, toSafeArray as toSafeArray$LWS, indexOfPragma as indexOfPragma$LWS, StringProtoSlice as StringProtoSlice$LWS } from '@locker/shared';
import { ObjectLookupOwnGetter as ObjectLookupOwnGetter$LWS, ReflectGetOwnPropertyDescriptor as ReflectGetOwnPropertyDescriptor$LWS, ReflectApply as ReflectApply$LWS, StringProtoEndsWith as StringProtoEndsWith$LWS, StringProtoStartsWith as StringProtoStartsWith$LWS, PromiseResolve as PromiseResolve$LWS, PromiseProtoThen as PromiseProtoThen$LWS, PromiseProtoCatch as PromiseProtoCatch$LWS, ObjectHasOwn as ObjectHasOwn$LWS, shallowCloneArray as shallowCloneArray$LWS, StringProtoToLowerCase as StringProtoToLowerCase$LWS, RegExpProtoTest as RegExpProtoTest$LWS, StringProtoReplace as StringProtoReplace$LWS, toSafeWeakMap as toSafeWeakMap$LWS, WeakMapCtor as WeakMapCtor$LWS, ArrayIsArray as ArrayIsArray$LWS, ArrayProtoFind as ArrayProtoFind$LWS, LOCKER_SERVICE_KEY_LOWERED as LOCKER_SERVICE_KEY_LOWERED$LWS, getUnmaskedFunction as getUnmaskedFunction$LWS, ObjectLookupOwnSetter as ObjectLookupOwnSetter$LWS, toSafeWeakSet as toSafeWeakSet$LWS, WeakSetCtor as WeakSetCtor$LWS, ReflectDefineProperty as ReflectDefineProperty$LWS, FunctionProtoBind as FunctionProtoBind$LWS, UNCOMPILED_LOCATION_NAME as UNCOMPILED_LOCATION_NAME$LWS, UNCOMPILED_TOP_NAME as UNCOMPILED_TOP_NAME$LWS, LockerSecurityError as LockerSecurityError$LWS, ReflectDeleteProperty as ReflectDeleteProperty$LWS, RegExpCtor as RegExpCtor$LWS, toRegExpEscapedIdentifierName as toRegExpEscapedIdentifierName$LWS, toRegExpEscapedString as toRegExpEscapedString$LWS, SANDBOX_EVAL_CONTEXT_NAME as SANDBOX_EVAL_CONTEXT_NAME$LWS, WEBPACK_REQUIRE_NAME as WEBPACK_REQUIRE_NAME$LWS, ArrayProtoToString as ArrayProtoToString$LWS, ArrayProtoPush as ArrayProtoPush$LWS, indexOfPragma as indexOfPragma$LWS, StringProtoSlice as StringProtoSlice$LWS } from '@locker/shared';
const AbortControllerCtor$LWS = AbortController;

@@ -166,6 +166,2 @@ const {

const rootWindow$LWS = window;
const {
location: rootWindowLocation$LWS,
top: rootWindowTop$LWS
} = rootWindow$LWS;
// These properties are part of the WindowOrGlobalScope mixin and not on

@@ -182,4 +178,5 @@ // Window.prototype.

fetch: WindowFetch$LWS,
location: rootWindowLocation$LWS,
setInterval: WindowSetInterval$LWS,
top: topWindow$LWS
top: rootWindowTop$LWS
} = rootWindow$LWS;

@@ -430,6 +427,6 @@ const WindowQueueMicrotask$LWS = (() => {

}]) !== undefined : ReflectApply$LWS(RegExpProtoTest$LWS, webKitUserAgentRegExp$LWS, [getUserAgent$LWS()]));
const CustomElementRegistryProto$LWS = rootWindow$LWS == null ? void 0 : (_rootWindow$CustomEle$LWS = rootWindow$LWS.CustomElementRegistry) == null ? void 0 : _rootWindow$CustomEle$LWS.prototype;
const CustomElementRegistryProtoDefine$LWS = CustomElementRegistryProto$LWS == null ? void 0 : CustomElementRegistryProto$LWS.define;
const CustomElementRegistryProtoGet$LWS = CustomElementRegistryProto$LWS == null ? void 0 : CustomElementRegistryProto$LWS.get;
const CustomElementRegistryProtoWhenDefined$LWS = CustomElementRegistryProto$LWS == null ? void 0 : CustomElementRegistryProto$LWS.whenDefined;
const CustomElementRegistryProto$LWS = (_rootWindow$CustomEle$LWS = rootWindow$LWS.CustomElementRegistry) == null ? void 0 : _rootWindow$CustomEle$LWS.prototype;
const CustomElementRegistryProtoDefine$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.define) : undefined;
const CustomElementRegistryProtoGet$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.get) : undefined;
const CustomElementRegistryProtoWhenDefined$LWS = CustomElementRegistryProto$LWS ? getUnmaskedFunction$LWS(CustomElementRegistryProto$LWS.whenDefined) : undefined;
const {

@@ -467,8 +464,15 @@ getElementById: DocumentFragmentProtoGetElementById$LWS

const {
prototype: HTMLAnchorElementProto$LWS
} = HTMLAnchorElement;
const HTMLAnchorElementProtoHostnameGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLAnchorElementProto$LWS, 'hostname');
const {
get: HTMLAnchorElementProtoHrefGetter$LWS,
set: HTMLAnchorElementProtoHrefSetter$LWS
} = ReflectGetOwnPropertyDescriptor$LWS(HTMLAnchorElement.prototype, 'href');
const HTMLAnchorElementProtoPathnameGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLAnchorElement.prototype, 'pathname');
const HTMLAnchorElementProtoProtocolGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLAnchorElement.prototype, 'protocol');
const HTMLElementProto$LWS = HTMLElement.prototype;
} = ReflectGetOwnPropertyDescriptor$LWS(HTMLAnchorElementProto$LWS, 'href');
const HTMLAnchorElementProtoPathnameGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLAnchorElementProto$LWS, 'pathname');
const HTMLAnchorElementProtoProtocolGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLAnchorElementProto$LWS, 'protocol');
const HTMLElement$LWS = getUnmaskedFunction$LWS(rootWindow$LWS.HTMLElement);
const {
prototype: HTMLElementProto$LWS
} = HTMLElement$LWS;
// Used by '@locker/near-membrane-dom'.

@@ -616,6 +620,24 @@ const HTMLElementProtoStyleGetter$LWS = ObjectLookupOwnGetter$LWS(HTMLElementProto$LWS, 'style');

const webpackGlobalDocumentPattern$LWS = `${documentPattern$LWS}|global.document`;
// While fully qualified member expression access can be unambiguously detected,
// ie. window.location or window.top, bare-word references to location and top
// cannot. This means that code containing the fully qualified member expressions
// can have all occurrences replaced by transforms and given special names controlled
// by LWS in Aura. This process will also result in the program knowing that it
// applied a given transform, which it can then use to populate a context names
// list to be used in the declaration assignment code injected into wrapped Aura
// component code. Because the unqualified member expressions cannot be unambiguously
// detected, there is no way for the program to know that, eg. location.search was
// used in the Aura component code and subsequently transformed, which means it
// cannot be relied upon to when populating a context names list to be used in
// the declaration assignment code. As a result, location and top must be universally
// and explicitly included in the context object, and universally and explicitly
// included in the context names list.
const defaultContextNames$LWS = [UNCOMPILED_LOCATION_NAME$LWS, UNCOMPILED_TOP_NAME$LWS, '$A', '$Lightning', 'location', 'Sfdc', 'sforce', 'top'];
const freeVarNames$LWS = ['$A', '$Lightning', 'Sfdc', 'sforce'];
// Prototype method access of `freeVarNames` is safe at runtime initialize.
const propsToFreeVarsRegExp$LWS = new RegExpCtor$LWS(`[$\\w]+\\.(${freeVarNames$LWS.map(toRegExpEscapedIdentifierName$LWS).join('|')})`, 'g');
const locationReferencesRegExp$LWS = createPropertyReferenceRegExp$LWS(`${documentPattern$LWS}|${windowPattern$LWS}`, 'location');
const locationReferencesWithWebpackRegExp$LWS = createPropertyReferenceRegExp$LWS(`${webpackGlobalDocumentPattern$LWS}|${webpackGlobalPattern$LWS}`, 'location');
const sandboxEvalContextNameRegExp$LWS = new RegExpCtor$LWS(`(?:^|\\W)${escapeRegExp$LWS(SANDBOX_EVAL_CONTEXT_NAME$LWS)}(?:\\W|$)`);
const webpackRequireNameRegExp$LWS = new RegExpCtor$LWS(`\\b${escapeRegExp$LWS(WEBPACK_REQUIRE_NAME$LWS)}\\b`);
const sandboxEvalContextNameRegExp$LWS = new RegExpCtor$LWS(`(?:^|\\W)${toRegExpEscapedString$LWS(SANDBOX_EVAL_CONTEXT_NAME$LWS)}(?:\\W|$)`);
const webpackRequireNameRegExp$LWS = new RegExpCtor$LWS(toRegExpEscapedIdentifierName$LWS(WEBPACK_REQUIRE_NAME$LWS));
const windowTopReferencesRegExp$LWS = createPropertyReferenceRegExp$LWS(windowPattern$LWS, 'top');

@@ -631,6 +653,2 @@ const windowTopReferencesWithWebpackRegExp$LWS = createPropertyReferenceRegExp$LWS(webpackGlobalPattern$LWS, 'top');

function compileSourceText$LWS(sourceText$LWS) {
const transforms$LWS = {
location: false,
windowTop: false
};
// To avoid conflicts with anyone else using `SANDBOX_EVAL_CONTEXT_NAME`,

@@ -641,4 +659,3 @@ // we sniff the source text to see if it is present, and in that case we

return {
code: sourceText$LWS,
transforms: transforms$LWS
code: sourceText$LWS
};

@@ -660,58 +677,32 @@ }

// string replacement.
sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [locationRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => {
transforms$LWS.location = true;
return assignmentOperator$LWS ? `${UNCOMPILED_LOCATION_NAME$LWS}.href${assignmentOperator$LWS}` : UNCOMPILED_LOCATION_NAME$LWS;
}]);
sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [locationRegExp$LWS, (_match$LWS, assignmentOperator$LWS) => assignmentOperator$LWS ? `${UNCOMPILED_LOCATION_NAME$LWS}.href${assignmentOperator$LWS}` : UNCOMPILED_LOCATION_NAME$LWS]);
// In non-compiled source text `window.top` is null when evaluated in a
// sandbox. We perform a naive transformation to replace references of
// `window.top` to use our internal sandbox helpers.
sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [topRegExp$LWS, () => {
transforms$LWS.windowTop = true;
return UNCOMPILED_TOP_NAME$LWS;
}]);
sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [topRegExp$LWS, () => UNCOMPILED_TOP_NAME$LWS]);
// Replace window dot property access of free variables with their bare forms,
// e.g. `window.$A` replaced with `$A`.
sourceText$LWS = ReflectApply$LWS(StringProtoReplace$LWS, sourceText$LWS, [propsToFreeVarsRegExp$LWS, (_match$LWS, name$LWS) => name$LWS]);
return {
code: sourceText$LWS,
transforms: transforms$LWS
code: sourceText$LWS
};
}
function generateContextAssignmentCodeFromContextNames$LWS(names$LWS) {
// While fully qualified member expression access can be unambiguously detected,
// ie. window.location or window.top, bare-word references to location and top
// cannot. This means that code containing the fully qualified member expressions
// can have all occurrences replaced by transforms and given special names controlled
// by LWS in Aura. This process will also result in the program knowing that it
// applied a given transform, which it can then use to populate a context names
// list to be used in the declaration assignment code injected into wrapped Aura
// component code. Because the unqualified member expressions cannot be unambiguously
// detected, there is no way for the program to know that, eg. location.search was
// used in the Aura component code and subsequently transformed, which means it
// cannot be relied upon to when populating a context names list to be used in
// the declaration assignment code. As a result, location and top must be universally
// and explicitly included in the context object, and universally and explicitly
// included in the context names list.
//
names$LWS[names$LWS.length] = 'location';
names$LWS[names$LWS.length] = 'top';
return `const {${ReflectApply$LWS(ArrayProtoToString$LWS, names$LWS, [])}}=${SANDBOX_EVAL_CONTEXT_NAME$LWS}`;
}
function getContextNamesFromCompilationTransforms$LWS(transforms$LWS) {
const names$LWS = toSafeArray$LWS([]);
if (transforms$LWS.location) {
names$LWS[names$LWS.length] = UNCOMPILED_LOCATION_NAME$LWS;
function getContextNames$LWS(extraContextNames$LWS = []) {
const contextNames$LWS = shallowCloneArray$LWS(defaultContextNames$LWS);
if (extraContextNames$LWS.length) {
ReflectApply$LWS(ArrayProtoPush$LWS, contextNames$LWS, extraContextNames$LWS);
}
if (transforms$LWS.windowTop) {
names$LWS[names$LWS.length] = UNCOMPILED_TOP_NAME$LWS;
}
return names$LWS;
return contextNames$LWS;
}
function transformSourceText$LWS(sourceText$LWS) {
if (ReflectApply$LWS(RegExpProtoTest$LWS, sandboxEvalContextNameRegExp$LWS, [sourceText$LWS])) {
return sourceText$LWS;
}
const {
code: code$LWS,
transforms: transforms$LWS
code: code$LWS
} = compileSourceText$LWS(sourceText$LWS);
const contextNames$LWS = getContextNamesFromCompilationTransforms$LWS(transforms$LWS);
if (!contextNames$LWS.length) {
return code$LWS;
}
const prefix$LWS = `${generateContextAssignmentCodeFromContextNames$LWS(contextNames$LWS)};`;
const prefix$LWS = `${generateContextAssignmentCodeFromContextNames$LWS(getContextNames$LWS())};`;
const pragmaIndex$LWS = indexOfPragma$LWS(code$LWS, 'use strict');

@@ -757,3 +748,3 @@ if (pragmaIndex$LWS === -1) {

const XhrProtoWithCredentialsSetter$LWS = ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
export { AbortControllerCtor$LWS as AbortControllerCtor, AbortControllerProto$LWS as AbortControllerProto, AbortControllerProtoAbort$LWS as AbortControllerProtoAbort, AbortControllerProtoSignalGetter$LWS as AbortControllerProtoSignalGetter, AttrProtoNameGetter$LWS as AttrProtoNameGetter, AttrProtoNamespaceURIGetter$LWS as AttrProtoNamespaceURIGetter, AttrProtoOwnerElementGetter$LWS as AttrProtoOwnerElementGetter, AttrProtoValueGetter$LWS as AttrProtoValueGetter, AttrProtoValueSetter$LWS as AttrProtoValueSetter, BlobCtor$LWS as BlobCtor, BlobProtoSizeGetter$LWS as BlobProtoSizeGetter, BlobProtoSlice$LWS as BlobProtoSlice, BlobProtoTypeGetter$LWS as BlobProtoTypeGetter, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME$LWS as CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME, CustomElementRegistryProtoDefine$LWS as CustomElementRegistryProtoDefine, CustomElementRegistryProtoGet$LWS as CustomElementRegistryProtoGet, CustomElementRegistryProtoWhenDefined$LWS as CustomElementRegistryProtoWhenDefined, DATA_CLONE_ERROR_CODE$LWS as DATA_CLONE_ERROR_CODE, DOMExceptionCtor$LWS as DOMExceptionCtor, DOMExceptionProtoCodeGetter$LWS as DOMExceptionProtoCodeGetter, DOMImplementationProtoCreateDocument$LWS as DOMImplementationProtoCreateDocument, DOMTokenListProtoValueGetter$LWS as DOMTokenListProtoValueGetter, DocumentFragmentProtoGetElementById$LWS as DocumentFragmentProtoGetElementById, DocumentProtoBodyGetter$LWS as DocumentProtoBodyGetter, DocumentProtoClose$LWS as DocumentProtoClose, DocumentProtoCookieGetter$LWS as DocumentProtoCookieGetter, DocumentProtoCookieSetter$LWS as DocumentProtoCookieSetter, DocumentProtoCreateComment$LWS as DocumentProtoCreateComment, DocumentProtoCreateElement$LWS as DocumentProtoCreateElement, DocumentProtoCreateElementNS$LWS as DocumentProtoCreateElementNS, DocumentProtoDefaultViewGetter$LWS as DocumentProtoDefaultViewGetter, DocumentProtoDocumentElementGetter$LWS as DocumentProtoDocumentElementGetter, DocumentProtoGetElementById$LWS as DocumentProtoGetElementById, DocumentProtoHeadGetter$LWS as DocumentProtoHeadGetter, DocumentProtoImplementationGetter$LWS as DocumentProtoImplementationGetter, DocumentProtoOpen$LWS as DocumentProtoOpen, ElementAriaAttributesToPropertyName$LWS as ElementAriaAttributesToPropertyName, ElementProtoClosest$LWS as ElementProtoClosest, ElementProtoGetAttribute$LWS as ElementProtoGetAttribute, ElementProtoGetAttributeNode$LWS as ElementProtoGetAttributeNode, ElementProtoGetAttributeNodeNS$LWS as ElementProtoGetAttributeNodeNS, ElementProtoHasAttribute$LWS as ElementProtoHasAttribute, ElementProtoInnerHTMLGetter$LWS as ElementProtoInnerHTMLGetter, ElementProtoInnerHTMLSetter$LWS as ElementProtoInnerHTMLSetter, ElementProtoNamespaceURIGetter$LWS as ElementProtoNamespaceURIGetter, ElementProtoOuterHTMLGetter$LWS as ElementProtoOuterHTMLGetter, ElementProtoQuerySelector$LWS as ElementProtoQuerySelector, ElementProtoQuerySelectorAll$LWS as ElementProtoQuerySelectorAll, ElementProtoRemove$LWS as ElementProtoRemove, ElementProtoRemoveAttribute$LWS as ElementProtoRemoveAttribute, ElementProtoRemoveAttributeNS$LWS as ElementProtoRemoveAttributeNS, ElementProtoRemoveAttributeNode$LWS as ElementProtoRemoveAttributeNode, ElementProtoSetAttribute$LWS as ElementProtoSetAttribute, ElementProtoSetAttributeNS$LWS as ElementProtoSetAttributeNS, ElementProtoTagNameGetter$LWS as ElementProtoTagNameGetter, ElementProtoToggleAttribute$LWS as ElementProtoToggleAttribute, ErrorEventCtor$LWS as ErrorEventCtor, EventCtor$LWS as EventCtor, EventProtoCurrentTargetGetter$LWS as EventProtoCurrentTargetGetter, EventProtoStopPropagation$LWS as EventProtoStopPropagation, EventTargetProtoAddEventListener$LWS as EventTargetProtoAddEventListener, EventTargetProtoDispatchEvent$LWS as EventTargetProtoDispatchEvent, EventTargetProtoRemoveEventListener$LWS as EventTargetProtoRemoveEventListener, HTMLAnchorElementProtoHrefGetter$LWS as HTMLAnchorElementProtoHrefGetter, HTMLAnchorElementProtoHrefSetter$LWS as HTMLAnchorElementProtoHrefSetter, HTMLAnchorElementProtoPathnameGetter$LWS as HTMLAnchorElementProtoPathnameGetter, HTMLAnchorElementProtoProtocolGetter$LWS as HTMLAnchorElementProtoProtocolGetter, HTMLElementGlobalAttributesToPropertyName$LWS as HTMLElementGlobalAttributesToPropertyName, HTMLElementProto$LWS as HTMLElementProto, HTMLElementProtoStyleGetter$LWS as HTMLElementProtoStyleGetter, HTMLIFrameElementProtoContentWindowGetter$LWS as HTMLIFrameElementProtoContentWindowGetter, HTMLIFrameElementProtoSrcSetter$LWS as HTMLIFrameElementProtoSrcSetter, HTMLScriptElementCtor$LWS as HTMLScriptElementCtor, HTMLScriptElementProto$LWS as HTMLScriptElementProto, HTMLScriptElementProtoSrcGetter$LWS as HTMLScriptElementProtoSrcGetter, HTMLScriptElementProtoSrcSetter$LWS as HTMLScriptElementProtoSrcSetter, HTMLTemplateElementProtoContentGetter$LWS as HTMLTemplateElementProtoContentGetter, IS_CHROMIUM_BROWSER$LWS as IS_CHROMIUM_BROWSER, IS_OLD_CHROMIUM_BROWSER$LWS as IS_OLD_CHROMIUM_BROWSER, IS_WEBKIT_BROWSER$LWS as IS_WEBKIT_BROWSER, NAMESPACE_DEFAULT$LWS as NAMESPACE_DEFAULT, NAMESPACE_SVG$LWS as NAMESPACE_SVG, NAMESPACE_XHTML$LWS as NAMESPACE_XHTML, NAMESPACE_XLINK$LWS as NAMESPACE_XLINK, NodeProtoAppendChild$LWS as NodeProtoAppendChild, NodeProtoChildNodesGetter$LWS as NodeProtoChildNodesGetter, NodeProtoCloneNode$LWS as NodeProtoCloneNode, NodeProtoFirstChildGetter$LWS as NodeProtoFirstChildGetter, NodeProtoIsConnectedGetter$LWS as NodeProtoIsConnectedGetter, NodeProtoIsEqualNode$LWS as NodeProtoIsEqualNode, NodeProtoLastChildGetter$LWS as NodeProtoLastChildGetter, NodeProtoNodeNameGetter$LWS as NodeProtoNodeNameGetter, NodeProtoOwnerDocumentGetter$LWS as NodeProtoOwnerDocumentGetter, NodeProtoTextContentGetter$LWS as NodeProtoTextContentGetter, NodeProtoTextContentSetter$LWS as NodeProtoTextContentSetter, RangeProtoCreateContextualFragment$LWS as RangeProtoCreateContextualFragment, RequestProtoURLGetter$LWS as RequestProtoURLGetter, ResponseCtor$LWS as ResponseCtor, ResponseProtoOkGetter$LWS as ResponseProtoOkGetter, ResponseProtoStatus$LWS as ResponseProtoStatus, ResponseProtoStatusText$LWS as ResponseProtoStatusText, ResponseProtoText$LWS as ResponseProtoText, SCRIPT_HOOK_SOURCE_TEXT$LWS as SCRIPT_HOOK_SOURCE_TEXT, SVGScriptElementProtoHrefGetter$LWS as SVGScriptElementProtoHrefGetter, SVGScriptElementProtoHrefSetter$LWS as SVGScriptElementProtoHrefSetter, StorageProtoGetItem$LWS as StorageProtoGetItem, StorageProtoKey$LWS as StorageProtoKey, StorageProtoRemoveItem$LWS as StorageProtoRemoveItem, StorageProtoSetItem$LWS as StorageProtoSetItem, URLCreateObjectURL$LWS as URLCreateObjectURL, URLRevokeObjectURL$LWS as URLRevokeObjectURL, WindowClearInterval$LWS as WindowClearInterval, WindowDecodeURIComponent$LWS as WindowDecodeURIComponent, WindowDocumentGetter$LWS as WindowDocumentGetter, WindowEncodeURIComponent$LWS as WindowEncodeURIComponent, WindowFetch$LWS as WindowFetch, WindowFrameElementGetter$LWS as WindowFrameElementGetter, WindowLengthGetter$LWS as WindowLengthGetter, WindowLocationGetter$LWS as WindowLocationGetter, WindowQueueMicrotask$LWS as WindowQueueMicrotask, WindowSetInterval$LWS as WindowSetInterval, XhrCtor$LWS as XhrCtor, XhrProtoAbort$LWS as XhrProtoAbort, XhrProtoOpen$LWS as XhrProtoOpen, XhrProtoResponseTextGetter$LWS as XhrProtoResponseTextGetter, XhrProtoSend$LWS as XhrProtoSend, XhrProtoStatusGetter$LWS as XhrProtoStatusGetter, XhrProtoWithCredentialsSetter$LWS as XhrProtoWithCredentialsSetter, compileSourceText$LWS as compileSourceText, defineScriptAccessorProperty$LWS as defineScriptAccessorProperty, defineScriptEvaluatorProperty$LWS as defineScriptEvaluatorProperty, deleteOriginalTextContent$LWS as deleteOriginalTextContent, deleteResolvedScriptURL$LWS as deleteResolvedScriptURL, deleteScriptEvaluatorProperty$LWS as deleteScriptEvaluatorProperty, generateContextAssignmentCodeFromContextNames$LWS as generateContextAssignmentCodeFromContextNames, getContextNamesFromCompilationTransforms$LWS as getContextNamesFromCompilationTransforms, getOriginalScriptTextContent$LWS as getOriginalScriptTextContent, getResolvedScriptURL$LWS as getResolvedScriptURL, getScriptSrcEvaluatorHookURL$LWS as getScriptSrcEvaluatorHookURL, getValidator$LWS as getValidator, initWindowOpenChildWindow$LWS as initWindowOpenChildWindow, isScriptEvaluated$LWS as isScriptEvaluated, isScriptURLEvaluatorHookDefined$LWS as isScriptURLEvaluatorHookDefined, isTextContentEvaluatorHookDefined$LWS as isTextContentEvaluatorHookDefined, isWindow$LWS as isWindow, normalizeNamespacedAttributeName$LWS as normalizeNamespacedAttributeName, normalizeWindowOpenArguments$LWS as normalizeWindowOpenArguments, rootDocument$LWS as rootDocument, rootValidator$LWS as rootValidator, rootWindow$LWS as rootWindow, rootWindowLocation$LWS as rootWindowLocation, rootWindowTop$LWS as rootWindowTop, setOriginalScriptTextContent$LWS as setOriginalScriptTextContent, setResolvedScriptURL$LWS as setResolvedScriptURL, topWindow$LWS as topWindow, trackScriptAsEvaluated$LWS as trackScriptAsEvaluated, transformSourceText$LWS as transformSourceText };
/*! version: 0.18.21 */
export { AbortControllerCtor$LWS as AbortControllerCtor, AbortControllerProto$LWS as AbortControllerProto, AbortControllerProtoAbort$LWS as AbortControllerProtoAbort, AbortControllerProtoSignalGetter$LWS as AbortControllerProtoSignalGetter, AttrProtoNameGetter$LWS as AttrProtoNameGetter, AttrProtoNamespaceURIGetter$LWS as AttrProtoNamespaceURIGetter, AttrProtoOwnerElementGetter$LWS as AttrProtoOwnerElementGetter, AttrProtoValueGetter$LWS as AttrProtoValueGetter, AttrProtoValueSetter$LWS as AttrProtoValueSetter, BlobCtor$LWS as BlobCtor, BlobProtoSizeGetter$LWS as BlobProtoSizeGetter, BlobProtoSlice$LWS as BlobProtoSlice, BlobProtoTypeGetter$LWS as BlobProtoTypeGetter, CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME$LWS as CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME, CustomElementRegistryProtoDefine$LWS as CustomElementRegistryProtoDefine, CustomElementRegistryProtoGet$LWS as CustomElementRegistryProtoGet, CustomElementRegistryProtoWhenDefined$LWS as CustomElementRegistryProtoWhenDefined, DATA_CLONE_ERROR_CODE$LWS as DATA_CLONE_ERROR_CODE, DOMExceptionCtor$LWS as DOMExceptionCtor, DOMExceptionProtoCodeGetter$LWS as DOMExceptionProtoCodeGetter, DOMImplementationProtoCreateDocument$LWS as DOMImplementationProtoCreateDocument, DOMTokenListProtoValueGetter$LWS as DOMTokenListProtoValueGetter, DocumentFragmentProtoGetElementById$LWS as DocumentFragmentProtoGetElementById, DocumentProtoBodyGetter$LWS as DocumentProtoBodyGetter, DocumentProtoClose$LWS as DocumentProtoClose, DocumentProtoCookieGetter$LWS as DocumentProtoCookieGetter, DocumentProtoCookieSetter$LWS as DocumentProtoCookieSetter, DocumentProtoCreateComment$LWS as DocumentProtoCreateComment, DocumentProtoCreateElement$LWS as DocumentProtoCreateElement, DocumentProtoCreateElementNS$LWS as DocumentProtoCreateElementNS, DocumentProtoDefaultViewGetter$LWS as DocumentProtoDefaultViewGetter, DocumentProtoDocumentElementGetter$LWS as DocumentProtoDocumentElementGetter, DocumentProtoGetElementById$LWS as DocumentProtoGetElementById, DocumentProtoHeadGetter$LWS as DocumentProtoHeadGetter, DocumentProtoImplementationGetter$LWS as DocumentProtoImplementationGetter, DocumentProtoOpen$LWS as DocumentProtoOpen, ElementAriaAttributesToPropertyName$LWS as ElementAriaAttributesToPropertyName, ElementProtoClosest$LWS as ElementProtoClosest, ElementProtoGetAttribute$LWS as ElementProtoGetAttribute, ElementProtoGetAttributeNode$LWS as ElementProtoGetAttributeNode, ElementProtoGetAttributeNodeNS$LWS as ElementProtoGetAttributeNodeNS, ElementProtoHasAttribute$LWS as ElementProtoHasAttribute, ElementProtoInnerHTMLGetter$LWS as ElementProtoInnerHTMLGetter, ElementProtoInnerHTMLSetter$LWS as ElementProtoInnerHTMLSetter, ElementProtoNamespaceURIGetter$LWS as ElementProtoNamespaceURIGetter, ElementProtoOuterHTMLGetter$LWS as ElementProtoOuterHTMLGetter, ElementProtoQuerySelector$LWS as ElementProtoQuerySelector, ElementProtoQuerySelectorAll$LWS as ElementProtoQuerySelectorAll, ElementProtoRemove$LWS as ElementProtoRemove, ElementProtoRemoveAttribute$LWS as ElementProtoRemoveAttribute, ElementProtoRemoveAttributeNS$LWS as ElementProtoRemoveAttributeNS, ElementProtoRemoveAttributeNode$LWS as ElementProtoRemoveAttributeNode, ElementProtoSetAttribute$LWS as ElementProtoSetAttribute, ElementProtoSetAttributeNS$LWS as ElementProtoSetAttributeNS, ElementProtoTagNameGetter$LWS as ElementProtoTagNameGetter, ElementProtoToggleAttribute$LWS as ElementProtoToggleAttribute, ErrorEventCtor$LWS as ErrorEventCtor, EventCtor$LWS as EventCtor, EventProtoCurrentTargetGetter$LWS as EventProtoCurrentTargetGetter, EventProtoStopPropagation$LWS as EventProtoStopPropagation, EventTargetProtoAddEventListener$LWS as EventTargetProtoAddEventListener, EventTargetProtoDispatchEvent$LWS as EventTargetProtoDispatchEvent, EventTargetProtoRemoveEventListener$LWS as EventTargetProtoRemoveEventListener, HTMLAnchorElementProtoHostnameGetter$LWS as HTMLAnchorElementProtoHostnameGetter, HTMLAnchorElementProtoHrefGetter$LWS as HTMLAnchorElementProtoHrefGetter, HTMLAnchorElementProtoHrefSetter$LWS as HTMLAnchorElementProtoHrefSetter, HTMLAnchorElementProtoPathnameGetter$LWS as HTMLAnchorElementProtoPathnameGetter, HTMLAnchorElementProtoProtocolGetter$LWS as HTMLAnchorElementProtoProtocolGetter, HTMLElementGlobalAttributesToPropertyName$LWS as HTMLElementGlobalAttributesToPropertyName, HTMLElementProto$LWS as HTMLElementProto, HTMLElementProtoStyleGetter$LWS as HTMLElementProtoStyleGetter, HTMLIFrameElementProtoContentWindowGetter$LWS as HTMLIFrameElementProtoContentWindowGetter, HTMLIFrameElementProtoSrcSetter$LWS as HTMLIFrameElementProtoSrcSetter, HTMLScriptElementCtor$LWS as HTMLScriptElementCtor, HTMLScriptElementProto$LWS as HTMLScriptElementProto, HTMLScriptElementProtoSrcGetter$LWS as HTMLScriptElementProtoSrcGetter, HTMLScriptElementProtoSrcSetter$LWS as HTMLScriptElementProtoSrcSetter, HTMLTemplateElementProtoContentGetter$LWS as HTMLTemplateElementProtoContentGetter, IS_CHROMIUM_BROWSER$LWS as IS_CHROMIUM_BROWSER, IS_OLD_CHROMIUM_BROWSER$LWS as IS_OLD_CHROMIUM_BROWSER, IS_WEBKIT_BROWSER$LWS as IS_WEBKIT_BROWSER, NAMESPACE_DEFAULT$LWS as NAMESPACE_DEFAULT, NAMESPACE_SVG$LWS as NAMESPACE_SVG, NAMESPACE_XHTML$LWS as NAMESPACE_XHTML, NAMESPACE_XLINK$LWS as NAMESPACE_XLINK, NodeProtoAppendChild$LWS as NodeProtoAppendChild, NodeProtoChildNodesGetter$LWS as NodeProtoChildNodesGetter, NodeProtoCloneNode$LWS as NodeProtoCloneNode, NodeProtoFirstChildGetter$LWS as NodeProtoFirstChildGetter, NodeProtoIsConnectedGetter$LWS as NodeProtoIsConnectedGetter, NodeProtoIsEqualNode$LWS as NodeProtoIsEqualNode, NodeProtoLastChildGetter$LWS as NodeProtoLastChildGetter, NodeProtoNodeNameGetter$LWS as NodeProtoNodeNameGetter, NodeProtoOwnerDocumentGetter$LWS as NodeProtoOwnerDocumentGetter, NodeProtoTextContentGetter$LWS as NodeProtoTextContentGetter, NodeProtoTextContentSetter$LWS as NodeProtoTextContentSetter, RangeProtoCreateContextualFragment$LWS as RangeProtoCreateContextualFragment, RequestProtoURLGetter$LWS as RequestProtoURLGetter, ResponseCtor$LWS as ResponseCtor, ResponseProtoOkGetter$LWS as ResponseProtoOkGetter, ResponseProtoStatus$LWS as ResponseProtoStatus, ResponseProtoStatusText$LWS as ResponseProtoStatusText, ResponseProtoText$LWS as ResponseProtoText, SCRIPT_HOOK_SOURCE_TEXT$LWS as SCRIPT_HOOK_SOURCE_TEXT, SVGScriptElementProtoHrefGetter$LWS as SVGScriptElementProtoHrefGetter, SVGScriptElementProtoHrefSetter$LWS as SVGScriptElementProtoHrefSetter, StorageProtoGetItem$LWS as StorageProtoGetItem, StorageProtoKey$LWS as StorageProtoKey, StorageProtoRemoveItem$LWS as StorageProtoRemoveItem, StorageProtoSetItem$LWS as StorageProtoSetItem, URLCreateObjectURL$LWS as URLCreateObjectURL, URLRevokeObjectURL$LWS as URLRevokeObjectURL, WindowClearInterval$LWS as WindowClearInterval, WindowDecodeURIComponent$LWS as WindowDecodeURIComponent, WindowDocumentGetter$LWS as WindowDocumentGetter, WindowEncodeURIComponent$LWS as WindowEncodeURIComponent, WindowFetch$LWS as WindowFetch, WindowFrameElementGetter$LWS as WindowFrameElementGetter, WindowLengthGetter$LWS as WindowLengthGetter, WindowLocationGetter$LWS as WindowLocationGetter, WindowQueueMicrotask$LWS as WindowQueueMicrotask, WindowSetInterval$LWS as WindowSetInterval, XhrCtor$LWS as XhrCtor, XhrProtoAbort$LWS as XhrProtoAbort, XhrProtoOpen$LWS as XhrProtoOpen, XhrProtoResponseTextGetter$LWS as XhrProtoResponseTextGetter, XhrProtoSend$LWS as XhrProtoSend, XhrProtoStatusGetter$LWS as XhrProtoStatusGetter, XhrProtoWithCredentialsSetter$LWS as XhrProtoWithCredentialsSetter, compileSourceText$LWS as compileSourceText, defineScriptAccessorProperty$LWS as defineScriptAccessorProperty, defineScriptEvaluatorProperty$LWS as defineScriptEvaluatorProperty, deleteOriginalTextContent$LWS as deleteOriginalTextContent, deleteResolvedScriptURL$LWS as deleteResolvedScriptURL, deleteScriptEvaluatorProperty$LWS as deleteScriptEvaluatorProperty, generateContextAssignmentCodeFromContextNames$LWS as generateContextAssignmentCodeFromContextNames, getContextNames$LWS as getContextNames, getOriginalScriptTextContent$LWS as getOriginalScriptTextContent, getResolvedScriptURL$LWS as getResolvedScriptURL, getScriptSrcEvaluatorHookURL$LWS as getScriptSrcEvaluatorHookURL, getValidator$LWS as getValidator, initWindowOpenChildWindow$LWS as initWindowOpenChildWindow, isScriptEvaluated$LWS as isScriptEvaluated, isScriptURLEvaluatorHookDefined$LWS as isScriptURLEvaluatorHookDefined, isTextContentEvaluatorHookDefined$LWS as isTextContentEvaluatorHookDefined, isWindow$LWS as isWindow, normalizeNamespacedAttributeName$LWS as normalizeNamespacedAttributeName, normalizeWindowOpenArguments$LWS as normalizeWindowOpenArguments, rootDocument$LWS as rootDocument, rootValidator$LWS as rootValidator, rootWindow$LWS as rootWindow, rootWindowLocation$LWS as rootWindowLocation, rootWindowTop$LWS as rootWindowTop, setOriginalScriptTextContent$LWS as setOriginalScriptTextContent, setResolvedScriptURL$LWS as setResolvedScriptURL, trackScriptAsEvaluated$LWS as trackScriptAsEvaluated, transformSourceText$LWS as transformSourceText };
/*! version: 0.18.22 */
{
"name": "@locker/shared-dom",
"version": "0.18.21",
"version": "0.18.22",
"license": "SEE LICENSE IN LICENSE.txt",

@@ -19,3 +19,3 @@ "author": "Salesforce UI Security Team",

"dependencies": {
"@locker/shared": "0.18.21"
"@locker/shared": "0.18.22"
},

@@ -22,0 +22,0 @@ "files": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc