Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@locker/shared

Package Overview
Dependencies
Maintainers
8
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/shared - npm Package Compare versions

Comparing version 0.15.16 to 0.15.17

types/Namespace.d.ts

192

dist/index.cjs.js

@@ -33,3 +33,2 @@ /*!

shift: ArrayProtoShift$LWS,
some: ArrayProtoSome$LWS,
sort: ArrayProtoSort$LWS,

@@ -50,9 +49,13 @@ unshift: ArrayProtoUnshift$LWS

const result$LWS = ReflectApply$LWS(ArrayProtoSlice$LWS, array$LWS, [0]);
const {
for (let i$LWS = 0, {
length: length$LWS
} = args$LWS;
} = args$LWS; i$LWS < length$LWS; i$LWS += 1) {
const value$LWS = args$LWS[i$LWS];
for (let i$LWS = 0; i$LWS < length$LWS; i$LWS += 1) {
const value$LWS = args$LWS[i$LWS];
ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, ArrayIsArray$LWS(value$LWS) ? value$LWS : [value$LWS]);
if (ArrayIsArray$LWS(value$LWS)) {
ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, value$LWS);
} else {
result$LWS[result$LWS.length] = value$LWS;
}
}

@@ -91,6 +94,2 @@

function ArraySome$LWS(array$LWS, iteratee$LWS) {
return ReflectApply$LWS(ArrayProtoSome$LWS, array$LWS, [iteratee$LWS]);
}
function ArraySort$LWS(array$LWS) {

@@ -198,3 +197,5 @@ return ReflectApply$LWS(ArrayProtoSort$LWS, array$LWS, []);

return false;
} : function isBigIntObject$LWS(_value$LWS) {
} :
/* istanbul ignore next: not reachable via tests */
function isBigIntObject$LWS(_value$LWS) {
return false;

@@ -237,4 +238,5 @@ };

1}`.includes(LOCKER_IDENTIFIER_MARKER$LWS);
const QUOTE_CHAR_DOUBLE$LWS = '"';
const QUOTE_CHAR_SINGLE$LWS = "'";
const CHAR_ELLIPSIS$LWS = '\u2026';
const CHAR_QUOTE_DOUBLE$LWS = '"';
const CHAR_QUOTE_SINGLE$LWS = "'";
const SANDBOX_EVAL_CONTEXT_NAME$LWS = '$lockerEvalContext$';

@@ -376,7 +378,5 @@ const SANDBOX_EVAL_HELPERS_NAME$LWS = '$lockerEvalHelpers$';

const {
charCodeAt: StringProtoCharCodeAt$LWS,
endsWith: StringProtoEndsWith$LWS,
includes: StringProtoIncludes$LWS,
match: StringProtoMatch$LWS,
replace: StringProtoReplace$LWS,
slice: StringProtoSlice$LWS,
split: StringProtoSplit$LWS,

@@ -390,5 +390,10 @@ startsWith: StringProtoStartsWith$LWS,

__proto__: null,
[QUOTE_CHAR_DOUBLE$LWS]: /\\?"/g,
[QUOTE_CHAR_SINGLE$LWS]: /\\?'/g
[CHAR_QUOTE_DOUBLE$LWS]: /\\?"/g,
[CHAR_QUOTE_SINGLE$LWS]: /\\?'/g
};
const {
indexOf: StringProtoIndexOf$LWS,
replace: StringProtoReplace$LWS,
slice: StringProtoSlice$LWS
} = StringProto$LWS;

@@ -404,14 +409,10 @@ function capitalizeFirstChar$LWS(string$LWS) {

const upper$LWS = StringToUpperCase$LWS(string$LWS[0]);
return length$LWS === 1 ? upper$LWS : upper$LWS + StringSlice$LWS(string$LWS, 1);
const upper$LWS = ReflectApply$LWS(StringProtoToUpperCase$LWS, string$LWS[0], []);
return length$LWS === 1 ? upper$LWS : upper$LWS + ReflectApply$LWS(StringProtoSlice$LWS, string$LWS, [1]);
}
function enquote$LWS(string$LWS, quoteChar$LWS = QUOTE_CHAR_SINGLE$LWS) {
return quoteChar$LWS + escapeQuotes$LWS(string$LWS, quoteChar$LWS) + quoteChar$LWS;
function enquote$LWS(string$LWS, quoteChar$LWS = CHAR_QUOTE_SINGLE$LWS) {
return quoteChar$LWS + string$LWS.replace(QUOTE_CHAR_REG_EXP_MAP$LWS[quoteChar$LWS], `\\${quoteChar$LWS}`) + quoteChar$LWS;
}
function escapeQuotes$LWS(string$LWS, quoteChar$LWS = QUOTE_CHAR_SINGLE$LWS) {
return string$LWS.replace(QUOTE_CHAR_REG_EXP_MAP$LWS[quoteChar$LWS], `\\${quoteChar$LWS}`);
}
function isConvertibleToString$LWS(value$LWS) {

@@ -446,4 +447,4 @@ if (typeof value$LWS !== 'symbol') {

function StringCharCodeAt$LWS(string$LWS, index$LWS) {
return ReflectApply$LWS(StringProtoCharCodeAt$LWS, string$LWS, [index$LWS]);
function StringEndsWith$LWS(string$LWS, ...args$LWS) {
return ReflectApply$LWS(StringProtoEndsWith$LWS, string$LWS, args$LWS);
}

@@ -481,5 +482,31 @@

return ReflectApply$LWS(StringProtoToUpperCase$LWS, string$LWS, []);
}
} // Use `toString()` to coerce values using the default string concatenation
// operation without throwing exceptions.
function toString$LWS(value$LWS) {
if (typeof value$LWS === 'string') {
return value$LWS;
}
if (typeof value$LWS !== 'symbol') {
try {
// Attempt to coerce `value` to a string with the ToString operation.
// Section 7.1.17 ToString ( argument )
// https://tc39.es/ecma262/#sec-tostring
return `${value$LWS}`; // eslint-disable-next-line no-empty
} catch (_unused9$LWS) {}
}
return '';
} // Use `toSafeTemplateStringValue()` for values embedded in template strings,
// like error messages, because it coerces more values, including symbols,
// to strings without throwing exceptions.
function toSafeTemplateStringValue$LWS(value$LWS) {
if (typeof value$LWS === 'string') {
return value$LWS;
}
try {

@@ -490,3 +517,3 @@ // Attempt to coerce `value` to a string with the String() constructor.

return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
} catch (_unused9$LWS) {}
} catch (_unused10$LWS) {}

@@ -496,6 +523,2 @@ return '';

function toStringIfNotNullOrUndefined$LWS(value$LWS) {
return value$LWS === null || value$LWS === undefined ? value$LWS : toString$LWS(value$LWS);
}
const RegExpCtor$LWS = RegExp;

@@ -512,3 +535,3 @@ const {

function escapeRegExp$LWS(string$LWS) {
return StringReplace$LWS(string$LWS, specialCharRegExp$LWS, '\\$&');
return ReflectApply$LWS(StringProtoReplace$LWS, string$LWS, [specialCharRegExp$LWS, '\\$&']);
}

@@ -528,3 +551,3 @@

} catch (_unused10$LWS) {}
} catch (_unused11$LWS) {}

@@ -557,3 +580,3 @@ return false;

return true; // eslint-disable-next-line no-empty
} catch (_unused11$LWS) {}
} catch (_unused12$LWS) {}

@@ -598,3 +621,3 @@ return false;

return true; // eslint-disable-next-line no-empty
} catch (_unused12$LWS) {}
} catch (_unused13$LWS) {}
}

@@ -620,3 +643,3 @@

return true; // eslint-disable-next-line no-empty
} catch (_unused13$LWS) {}
} catch (_unused14$LWS) {}
}

@@ -647,3 +670,3 @@

return true; // eslint-disable-next-line no-empty
} catch (_unused14$LWS) {}
} catch (_unused15$LWS) {}
}

@@ -787,35 +810,2 @@

const ProxyCtor$LWS = Proxy;
const ProxyRevocable$LWS = Proxy.revocable;
function createRevokedProxy$LWS(object$LWS) {
const revocable$LWS = ProxyRevocable$LWS(object$LWS, {
__proto__: null
});
revocable$LWS.revoke();
return revocable$LWS.proxy;
}
function maskDistortion$LWS(distortedFunc$LWS, rawFunc$LWS) {
const proxy$LWS = new ProxyCtor$LWS(rawFunc$LWS, ObjectFreeze$LWS({
apply(_target$LWS, thisArg$LWS, args$LWS) {
if (thisArg$LWS === proxy$LWS) {
thisArg$LWS = distortedFunc$LWS;
}
return ReflectApply$LWS(distortedFunc$LWS, thisArg$LWS, args$LWS);
},
construct(_target$LWS, args$LWS, newTarget$LWS) {
if (newTarget$LWS === proxy$LWS) {
newTarget$LWS = distortedFunc$LWS;
}
return ReflectConstruct$LWS(distortedFunc$LWS, args$LWS, newTarget$LWS);
}
}));
return proxy$LWS;
}
class LockerSecurityError$LWS extends Error {

@@ -890,2 +880,26 @@ constructor(message$LWS) {

const MathMin$LWS = Math.min;
const PREFIX_HEAD$LWS = 'LSKey-';
const PREFIX_TAIL$LWS = '$';
function getNamespacePrefix$LWS(namespace$LWS) {
return `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}`;
}
function isNamespacePrefixed$LWS(key$LWS, namespace$LWS) {
return typeof key$LWS === 'string' && StringStartsWith$LWS(key$LWS, `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}`);
}
function prefixNamespace$LWS(key$LWS, namespace$LWS) {
return `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}${key$LWS}`;
}
function unprefixNamespace$LWS(key$LWS, namespace$LWS) {
if (typeof key$LWS !== 'string') {
return '';
}
const prefix$LWS = `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}`;
return StringStartsWith$LWS(key$LWS, prefix$LWS) ? StringSlice$LWS(key$LWS, prefix$LWS.length) : key$LWS;
}
const LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembraneSerializedValue');

@@ -911,2 +925,13 @@ const LOCKER_NEAR_MEMBRANE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembrane');

const ProxyCtor$LWS = Proxy;
const ProxyRevocable$LWS = Proxy.revocable;
function createRevokedProxy$LWS(object$LWS) {
const revocable$LWS = ProxyRevocable$LWS(object$LWS, {
__proto__: null
});
revocable$LWS.revoke();
return revocable$LWS.proxy;
}
exports.ArrayBufferIsView = ArrayBufferIsView$LWS;

@@ -925,5 +950,7 @@ exports.ArrayConcat = ArrayConcat$LWS;

exports.ArraySlice = ArraySlice$LWS;
exports.ArraySome = ArraySome$LWS;
exports.ArraySort = ArraySort$LWS;
exports.ArrayUnshift = ArrayUnshift$LWS;
exports.CHAR_ELLIPSIS = CHAR_ELLIPSIS$LWS;
exports.CHAR_QUOTE_DOUBLE = CHAR_QUOTE_DOUBLE$LWS;
exports.CHAR_QUOTE_SINGLE = CHAR_QUOTE_SINGLE$LWS;
exports.DateNow = DateNow$LWS;

@@ -963,4 +990,2 @@ exports.FunctionBind = FunctionBind$LWS;

exports.ProxyRevocable = ProxyRevocable$LWS;
exports.QUOTE_CHAR_DOUBLE = QUOTE_CHAR_DOUBLE$LWS;
exports.QUOTE_CHAR_SINGLE = QUOTE_CHAR_SINGLE$LWS;
exports.ReflectApply = ReflectApply$LWS;

@@ -987,6 +1012,9 @@ exports.ReflectConstruct = ReflectConstruct$LWS;

exports.SetValues = SetValues$LWS;
exports.StringCharCodeAt = StringCharCodeAt$LWS;
exports.StringCtor = StringCtor$LWS;
exports.StringEndsWith = StringEndsWith$LWS;
exports.StringIncludes = StringIncludes$LWS;
exports.StringMatch = StringMatch$LWS;
exports.StringProtoIndexOf = StringProtoIndexOf$LWS;
exports.StringProtoReplace = StringProtoReplace$LWS;
exports.StringProtoSlice = StringProtoSlice$LWS;
exports.StringReplace = StringReplace$LWS;

@@ -1026,5 +1054,5 @@ exports.StringSlice = StringSlice$LWS;

exports.enquote = enquote$LWS;
exports.escapeQuotes = escapeQuotes$LWS;
exports.escapeRegExp = escapeRegExp$LWS;
exports.getBrand = getBrand$LWS;
exports.getNamespacePrefix = getNamespacePrefix$LWS;
exports.getNearMembraneSerializedValue = getNearMembraneSerializedValue$LWS;

@@ -1039,2 +1067,3 @@ exports.getTimestamp = getTimestamp$LWS;

exports.isMap = isMap$LWS;
exports.isNamespacePrefixed = isNamespacePrefixed$LWS;
exports.isNearMembrane = isNearMembrane$LWS;

@@ -1051,3 +1080,3 @@ exports.isNumberObject = isNumberObject$LWS;

exports.markLiveObject = markLiveObject$LWS;
exports.maskDistortion = maskDistortion$LWS;
exports.prefixNamespace = prefixNamespace$LWS;
exports.shallowCloneArray = shallowCloneArray$LWS;

@@ -1058,5 +1087,6 @@ exports.shallowCloneOptions = shallowCloneOptions$LWS;

exports.toSafeDescriptor = toSafeDescriptor$LWS;
exports.toSafeTemplateStringValue = toSafeTemplateStringValue$LWS;
exports.toString = toString$LWS;
exports.toStringIfNotNullOrUndefined = toStringIfNotNullOrUndefined$LWS;
exports.unprefixNamespace = unprefixNamespace$LWS;
exports.wrap = wrap$LWS;
/*! version: 0.15.16 */
/*! version: 0.15.17 */

@@ -28,3 +28,2 @@ /*!

shift: ArrayProtoShift$LWS,
some: ArrayProtoSome$LWS,
sort: ArrayProtoSort$LWS,

@@ -45,9 +44,13 @@ unshift: ArrayProtoUnshift$LWS

const result$LWS = ReflectApply$LWS(ArrayProtoSlice$LWS, array$LWS, [0]);
const {
for (let i$LWS = 0, {
length: length$LWS
} = args$LWS;
} = args$LWS; i$LWS < length$LWS; i$LWS += 1) {
const value$LWS = args$LWS[i$LWS];
for (let i$LWS = 0; i$LWS < length$LWS; i$LWS += 1) {
const value$LWS = args$LWS[i$LWS];
ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, ArrayIsArray$LWS(value$LWS) ? value$LWS : [value$LWS]);
if (ArrayIsArray$LWS(value$LWS)) {
ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, value$LWS);
} else {
result$LWS[result$LWS.length] = value$LWS;
}
}

@@ -86,6 +89,2 @@

function ArraySome$LWS(array$LWS, iteratee$LWS) {
return ReflectApply$LWS(ArrayProtoSome$LWS, array$LWS, [iteratee$LWS]);
}
function ArraySort$LWS(array$LWS) {

@@ -193,3 +192,5 @@ return ReflectApply$LWS(ArrayProtoSort$LWS, array$LWS, []);

return false;
} : function isBigIntObject$LWS(_value$LWS) {
} :
/* istanbul ignore next: not reachable via tests */
function isBigIntObject$LWS(_value$LWS) {
return false;

@@ -232,4 +233,5 @@ };

1}`.includes(LOCKER_IDENTIFIER_MARKER$LWS);
const QUOTE_CHAR_DOUBLE$LWS = '"';
const QUOTE_CHAR_SINGLE$LWS = "'";
const CHAR_ELLIPSIS$LWS = '\u2026';
const CHAR_QUOTE_DOUBLE$LWS = '"';
const CHAR_QUOTE_SINGLE$LWS = "'";
const SANDBOX_EVAL_CONTEXT_NAME$LWS = '$lockerEvalContext$';

@@ -371,7 +373,5 @@ const SANDBOX_EVAL_HELPERS_NAME$LWS = '$lockerEvalHelpers$';

const {
charCodeAt: StringProtoCharCodeAt$LWS,
endsWith: StringProtoEndsWith$LWS,
includes: StringProtoIncludes$LWS,
match: StringProtoMatch$LWS,
replace: StringProtoReplace$LWS,
slice: StringProtoSlice$LWS,
split: StringProtoSplit$LWS,

@@ -385,5 +385,10 @@ startsWith: StringProtoStartsWith$LWS,

__proto__: null,
[QUOTE_CHAR_DOUBLE$LWS]: /\\?"/g,
[QUOTE_CHAR_SINGLE$LWS]: /\\?'/g
[CHAR_QUOTE_DOUBLE$LWS]: /\\?"/g,
[CHAR_QUOTE_SINGLE$LWS]: /\\?'/g
};
const {
indexOf: StringProtoIndexOf$LWS,
replace: StringProtoReplace$LWS,
slice: StringProtoSlice$LWS
} = StringProto$LWS;

@@ -399,14 +404,10 @@ function capitalizeFirstChar$LWS(string$LWS) {

const upper$LWS = StringToUpperCase$LWS(string$LWS[0]);
return length$LWS === 1 ? upper$LWS : upper$LWS + StringSlice$LWS(string$LWS, 1);
const upper$LWS = ReflectApply$LWS(StringProtoToUpperCase$LWS, string$LWS[0], []);
return length$LWS === 1 ? upper$LWS : upper$LWS + ReflectApply$LWS(StringProtoSlice$LWS, string$LWS, [1]);
}
function enquote$LWS(string$LWS, quoteChar$LWS = QUOTE_CHAR_SINGLE$LWS) {
return quoteChar$LWS + escapeQuotes$LWS(string$LWS, quoteChar$LWS) + quoteChar$LWS;
function enquote$LWS(string$LWS, quoteChar$LWS = CHAR_QUOTE_SINGLE$LWS) {
return quoteChar$LWS + string$LWS.replace(QUOTE_CHAR_REG_EXP_MAP$LWS[quoteChar$LWS], `\\${quoteChar$LWS}`) + quoteChar$LWS;
}
function escapeQuotes$LWS(string$LWS, quoteChar$LWS = QUOTE_CHAR_SINGLE$LWS) {
return string$LWS.replace(QUOTE_CHAR_REG_EXP_MAP$LWS[quoteChar$LWS], `\\${quoteChar$LWS}`);
}
function isConvertibleToString$LWS(value$LWS) {

@@ -441,4 +442,4 @@ if (typeof value$LWS !== 'symbol') {

function StringCharCodeAt$LWS(string$LWS, index$LWS) {
return ReflectApply$LWS(StringProtoCharCodeAt$LWS, string$LWS, [index$LWS]);
function StringEndsWith$LWS(string$LWS, ...args$LWS) {
return ReflectApply$LWS(StringProtoEndsWith$LWS, string$LWS, args$LWS);
}

@@ -476,5 +477,31 @@

return ReflectApply$LWS(StringProtoToUpperCase$LWS, string$LWS, []);
}
} // Use `toString()` to coerce values using the default string concatenation
// operation without throwing exceptions.
function toString$LWS(value$LWS) {
if (typeof value$LWS === 'string') {
return value$LWS;
}
if (typeof value$LWS !== 'symbol') {
try {
// Attempt to coerce `value` to a string with the ToString operation.
// Section 7.1.17 ToString ( argument )
// https://tc39.es/ecma262/#sec-tostring
return `${value$LWS}`; // eslint-disable-next-line no-empty
} catch (_unused9$LWS) {}
}
return '';
} // Use `toSafeTemplateStringValue()` for values embedded in template strings,
// like error messages, because it coerces more values, including symbols,
// to strings without throwing exceptions.
function toSafeTemplateStringValue$LWS(value$LWS) {
if (typeof value$LWS === 'string') {
return value$LWS;
}
try {

@@ -485,3 +512,3 @@ // Attempt to coerce `value` to a string with the String() constructor.

return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
} catch (_unused9$LWS) {}
} catch (_unused10$LWS) {}

@@ -491,6 +518,2 @@ return '';

function toStringIfNotNullOrUndefined$LWS(value$LWS) {
return value$LWS === null || value$LWS === undefined ? value$LWS : toString$LWS(value$LWS);
}
const RegExpCtor$LWS = RegExp;

@@ -507,3 +530,3 @@ const {

function escapeRegExp$LWS(string$LWS) {
return StringReplace$LWS(string$LWS, specialCharRegExp$LWS, '\\$&');
return ReflectApply$LWS(StringProtoReplace$LWS, string$LWS, [specialCharRegExp$LWS, '\\$&']);
}

@@ -523,3 +546,3 @@

} catch (_unused10$LWS) {}
} catch (_unused11$LWS) {}

@@ -552,3 +575,3 @@ return false;

return true; // eslint-disable-next-line no-empty
} catch (_unused11$LWS) {}
} catch (_unused12$LWS) {}

@@ -593,3 +616,3 @@ return false;

return true; // eslint-disable-next-line no-empty
} catch (_unused12$LWS) {}
} catch (_unused13$LWS) {}
}

@@ -615,3 +638,3 @@

return true; // eslint-disable-next-line no-empty
} catch (_unused13$LWS) {}
} catch (_unused14$LWS) {}
}

@@ -642,3 +665,3 @@

return true; // eslint-disable-next-line no-empty
} catch (_unused14$LWS) {}
} catch (_unused15$LWS) {}
}

@@ -782,35 +805,2 @@

const ProxyCtor$LWS = Proxy;
const ProxyRevocable$LWS = Proxy.revocable;
function createRevokedProxy$LWS(object$LWS) {
const revocable$LWS = ProxyRevocable$LWS(object$LWS, {
__proto__: null
});
revocable$LWS.revoke();
return revocable$LWS.proxy;
}
function maskDistortion$LWS(distortedFunc$LWS, rawFunc$LWS) {
const proxy$LWS = new ProxyCtor$LWS(rawFunc$LWS, ObjectFreeze$LWS({
apply(_target$LWS, thisArg$LWS, args$LWS) {
if (thisArg$LWS === proxy$LWS) {
thisArg$LWS = distortedFunc$LWS;
}
return ReflectApply$LWS(distortedFunc$LWS, thisArg$LWS, args$LWS);
},
construct(_target$LWS, args$LWS, newTarget$LWS) {
if (newTarget$LWS === proxy$LWS) {
newTarget$LWS = distortedFunc$LWS;
}
return ReflectConstruct$LWS(distortedFunc$LWS, args$LWS, newTarget$LWS);
}
}));
return proxy$LWS;
}
class LockerSecurityError$LWS extends Error {

@@ -885,2 +875,26 @@ constructor(message$LWS) {

const MathMin$LWS = Math.min;
const PREFIX_HEAD$LWS = 'LSKey-';
const PREFIX_TAIL$LWS = '$';
function getNamespacePrefix$LWS(namespace$LWS) {
return `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}`;
}
function isNamespacePrefixed$LWS(key$LWS, namespace$LWS) {
return typeof key$LWS === 'string' && StringStartsWith$LWS(key$LWS, `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}`);
}
function prefixNamespace$LWS(key$LWS, namespace$LWS) {
return `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}${key$LWS}`;
}
function unprefixNamespace$LWS(key$LWS, namespace$LWS) {
if (typeof key$LWS !== 'string') {
return '';
}
const prefix$LWS = `${PREFIX_HEAD$LWS}${namespace$LWS}${PREFIX_TAIL$LWS}`;
return StringStartsWith$LWS(key$LWS, prefix$LWS) ? StringSlice$LWS(key$LWS, prefix$LWS.length) : key$LWS;
}
const LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembraneSerializedValue');

@@ -906,3 +920,14 @@ const LOCKER_NEAR_MEMBRANE_SYMBOL$LWS = SymbolFor$LWS('@@lockerNearMembrane');

export { ArrayBufferIsView$LWS as ArrayBufferIsView, ArrayConcat$LWS as ArrayConcat, ArrayCtor$LWS as ArrayCtor, ArrayFilter$LWS as ArrayFilter, ArrayIncludes$LWS as ArrayIncludes, ArrayIndexOf$LWS as ArrayIndexOf, ArrayIsArray$LWS as ArrayIsArray, ArrayJoin$LWS as ArrayJoin, ArrayPop$LWS as ArrayPop, ArrayProtoPush$LWS as ArrayProtoPush, ArrayProtoSlice$LWS as ArrayProtoSlice, ArrayShift$LWS as ArrayShift, ArraySlice$LWS as ArraySlice, ArraySome$LWS as ArraySome, ArraySort$LWS as ArraySort, ArrayUnshift$LWS as ArrayUnshift, DateNow$LWS as DateNow, FunctionBind$LWS as FunctionBind, JSONParse$LWS as JSONParse, JSONStringify$LWS as JSONStringify, LOCKER_IDENTIFIER_MARKER$LWS as LOCKER_IDENTIFIER_MARKER, LOCKER_UNMINIFIED_FLAG$LWS as LOCKER_UNMINIFIED_FLAG, LockerSecurityError$LWS as LockerSecurityError, MapClear$LWS as MapClear, MapCtor$LWS as MapCtor, MapEntries$LWS as MapEntries, MapForEach$LWS as MapForEach, MapGet$LWS as MapGet, MapSet$LWS as MapSet, MathMin$LWS as MathMin, NumberIsFinite$LWS as NumberIsFinite, NumberToFixed$LWS as NumberToFixed, ObjectAssign$LWS as ObjectAssign, ObjectCtor$LWS as ObjectCtor, ObjectFreeze$LWS as ObjectFreeze, ObjectGetOwnPropertyDescriptors$LWS as ObjectGetOwnPropertyDescriptors, ObjectGetOwnPropertyNames$LWS as ObjectGetOwnPropertyNames, ObjectGetOwnPropertySymbols$LWS as ObjectGetOwnPropertySymbols, ObjectHasOwnProperty$LWS as ObjectHasOwnProperty, ObjectKeys$LWS as ObjectKeys, ObjectLookupOwnGetter$LWS as ObjectLookupOwnGetter, ObjectLookupOwnSetter$LWS as ObjectLookupOwnSetter, ObjectLookupOwnValue$LWS as ObjectLookupOwnValue, ObjectPreventExtensions$LWS as ObjectPreventExtensions, ObjectProto$LWS as ObjectProto, ObjectToString$LWS as ObjectToString, PromiseReject$LWS as PromiseReject, PromiseThen$LWS as PromiseThen, ProxyCtor$LWS as ProxyCtor, ProxyRevocable$LWS as ProxyRevocable, QUOTE_CHAR_DOUBLE$LWS as QUOTE_CHAR_DOUBLE, QUOTE_CHAR_SINGLE$LWS as QUOTE_CHAR_SINGLE, ReflectApply$LWS as ReflectApply, ReflectConstruct$LWS as ReflectConstruct, ReflectDefineProperty$LWS as ReflectDefineProperty, ReflectDeleteProperty$LWS as ReflectDeleteProperty, ReflectGet$LWS as ReflectGet, ReflectGetOwnPropertyDescriptor$LWS as ReflectGetOwnPropertyDescriptor, ReflectGetPrototypeOf$LWS as ReflectGetPrototypeOf, ReflectHas$LWS as ReflectHas, ReflectOwnKeys$LWS as ReflectOwnKeys, ReflectSet$LWS as ReflectSet, ReflectSetPrototypeOf$LWS as ReflectSetPrototypeOf, RegExpCtor$LWS as RegExpCtor, RegExpTest$LWS as RegExpTest, SANDBOX_EVAL_CONTEXT_NAME$LWS as SANDBOX_EVAL_CONTEXT_NAME, SANDBOX_EVAL_HELPERS_NAME$LWS as SANDBOX_EVAL_HELPERS_NAME, SYMBOL_LIVE_OBJECT$LWS as SYMBOL_LIVE_OBJECT, SetAdd$LWS as SetAdd, SetCtor$LWS as SetCtor, SetDelete$LWS as SetDelete, SetHas$LWS as SetHas, SetValues$LWS as SetValues, StringCharCodeAt$LWS as StringCharCodeAt, StringCtor$LWS as StringCtor, StringIncludes$LWS as StringIncludes, StringMatch$LWS as StringMatch, StringReplace$LWS as StringReplace, StringSlice$LWS as StringSlice, StringSplit$LWS as StringSplit, StringStartsWith$LWS as StringStartsWith, StringToLowerCase$LWS as StringToLowerCase, StringToUpperCase$LWS as StringToUpperCase, SymbolFor$LWS as SymbolFor, SymbolIterator$LWS as SymbolIterator, TO_STRING_BRAND_ARRAY$LWS as TO_STRING_BRAND_ARRAY, TO_STRING_BRAND_BIG_INT$LWS as TO_STRING_BRAND_BIG_INT, TO_STRING_BRAND_BOOLEAN$LWS as TO_STRING_BRAND_BOOLEAN, TO_STRING_BRAND_DATE$LWS as TO_STRING_BRAND_DATE, TO_STRING_BRAND_ERROR$LWS as TO_STRING_BRAND_ERROR, TO_STRING_BRAND_FUNCTION$LWS as TO_STRING_BRAND_FUNCTION, TO_STRING_BRAND_MAP$LWS as TO_STRING_BRAND_MAP, TO_STRING_BRAND_NULL$LWS as TO_STRING_BRAND_NULL, TO_STRING_BRAND_NUMBER$LWS as TO_STRING_BRAND_NUMBER, TO_STRING_BRAND_OBJECT$LWS as TO_STRING_BRAND_OBJECT, TO_STRING_BRAND_REG_EXP$LWS as TO_STRING_BRAND_REG_EXP, TO_STRING_BRAND_SET$LWS as TO_STRING_BRAND_SET, TO_STRING_BRAND_STRING$LWS as TO_STRING_BRAND_STRING, TO_STRING_BRAND_SYMBOL$LWS as TO_STRING_BRAND_SYMBOL, TO_STRING_BRAND_UNDEFINED$LWS as TO_STRING_BRAND_UNDEFINED, TO_STRING_BRAND_WEAK_MAP$LWS as TO_STRING_BRAND_WEAK_MAP, TO_STRING_BRAND_WEAK_SET$LWS as TO_STRING_BRAND_WEAK_SET, UNCOMPILED_LOCATION_NAME$LWS as UNCOMPILED_LOCATION_NAME, WEBPACK_REQUIRE_NAME$LWS as WEBPACK_REQUIRE_NAME, WeakMapCtor$LWS as WeakMapCtor, WeakMapGet$LWS as WeakMapGet, WeakMapSet$LWS as WeakMapSet, capitalizeFirstChar$LWS as capitalizeFirstChar, consoleWarn$LWS as consoleWarn, createRevokedProxy$LWS as createRevokedProxy, enquote$LWS as enquote, escapeQuotes$LWS as escapeQuotes, escapeRegExp$LWS as escapeRegExp, getBrand$LWS as getBrand, getNearMembraneSerializedValue$LWS as getNearMembraneSerializedValue, getTimestamp$LWS as getTimestamp, isArrayBuffer$LWS as isArrayBuffer, isBigIntObject$LWS as isBigIntObject, isBooleanObject$LWS as isBooleanObject, isConvertibleToString$LWS as isConvertibleToString, isDate$LWS as isDate, isLiveObject$LWS as isLiveObject, isMap$LWS as isMap, isNearMembrane$LWS as isNearMembrane, isNumberObject$LWS as isNumberObject, isObject$LWS as isObject, isObjectLike$LWS as isObjectLike, isRegExp$LWS as isRegExp, isSet$LWS as isSet, isStringObject$LWS as isStringObject, isSymbolObject$LWS as isSymbolObject, isWeakMap$LWS as isWeakMap, isWeakSet$LWS as isWeakSet, markLiveObject$LWS as markLiveObject, maskDistortion$LWS as maskDistortion, shallowCloneArray$LWS as shallowCloneArray, shallowCloneOptions$LWS as shallowCloneOptions, toBoolean$LWS as toBoolean, toLiveValue$LWS as toLiveValue, toSafeDescriptor$LWS as toSafeDescriptor, toString$LWS as toString, toStringIfNotNullOrUndefined$LWS as toStringIfNotNullOrUndefined, wrap$LWS as wrap };
/*! version: 0.15.16 */
const ProxyCtor$LWS = Proxy;
const ProxyRevocable$LWS = Proxy.revocable;
function createRevokedProxy$LWS(object$LWS) {
const revocable$LWS = ProxyRevocable$LWS(object$LWS, {
__proto__: null
});
revocable$LWS.revoke();
return revocable$LWS.proxy;
}
export { ArrayBufferIsView$LWS as ArrayBufferIsView, ArrayConcat$LWS as ArrayConcat, ArrayCtor$LWS as ArrayCtor, ArrayFilter$LWS as ArrayFilter, ArrayIncludes$LWS as ArrayIncludes, ArrayIndexOf$LWS as ArrayIndexOf, ArrayIsArray$LWS as ArrayIsArray, ArrayJoin$LWS as ArrayJoin, ArrayPop$LWS as ArrayPop, ArrayProtoPush$LWS as ArrayProtoPush, ArrayProtoSlice$LWS as ArrayProtoSlice, ArrayShift$LWS as ArrayShift, ArraySlice$LWS as ArraySlice, ArraySort$LWS as ArraySort, ArrayUnshift$LWS as ArrayUnshift, CHAR_ELLIPSIS$LWS as CHAR_ELLIPSIS, CHAR_QUOTE_DOUBLE$LWS as CHAR_QUOTE_DOUBLE, CHAR_QUOTE_SINGLE$LWS as CHAR_QUOTE_SINGLE, DateNow$LWS as DateNow, FunctionBind$LWS as FunctionBind, JSONParse$LWS as JSONParse, JSONStringify$LWS as JSONStringify, LOCKER_IDENTIFIER_MARKER$LWS as LOCKER_IDENTIFIER_MARKER, LOCKER_UNMINIFIED_FLAG$LWS as LOCKER_UNMINIFIED_FLAG, LockerSecurityError$LWS as LockerSecurityError, MapClear$LWS as MapClear, MapCtor$LWS as MapCtor, MapEntries$LWS as MapEntries, MapForEach$LWS as MapForEach, MapGet$LWS as MapGet, MapSet$LWS as MapSet, MathMin$LWS as MathMin, NumberIsFinite$LWS as NumberIsFinite, NumberToFixed$LWS as NumberToFixed, ObjectAssign$LWS as ObjectAssign, ObjectCtor$LWS as ObjectCtor, ObjectFreeze$LWS as ObjectFreeze, ObjectGetOwnPropertyDescriptors$LWS as ObjectGetOwnPropertyDescriptors, ObjectGetOwnPropertyNames$LWS as ObjectGetOwnPropertyNames, ObjectGetOwnPropertySymbols$LWS as ObjectGetOwnPropertySymbols, ObjectHasOwnProperty$LWS as ObjectHasOwnProperty, ObjectKeys$LWS as ObjectKeys, ObjectLookupOwnGetter$LWS as ObjectLookupOwnGetter, ObjectLookupOwnSetter$LWS as ObjectLookupOwnSetter, ObjectLookupOwnValue$LWS as ObjectLookupOwnValue, ObjectPreventExtensions$LWS as ObjectPreventExtensions, ObjectProto$LWS as ObjectProto, ObjectToString$LWS as ObjectToString, PromiseReject$LWS as PromiseReject, PromiseThen$LWS as PromiseThen, ProxyCtor$LWS as ProxyCtor, ProxyRevocable$LWS as ProxyRevocable, ReflectApply$LWS as ReflectApply, ReflectConstruct$LWS as ReflectConstruct, ReflectDefineProperty$LWS as ReflectDefineProperty, ReflectDeleteProperty$LWS as ReflectDeleteProperty, ReflectGet$LWS as ReflectGet, ReflectGetOwnPropertyDescriptor$LWS as ReflectGetOwnPropertyDescriptor, ReflectGetPrototypeOf$LWS as ReflectGetPrototypeOf, ReflectHas$LWS as ReflectHas, ReflectOwnKeys$LWS as ReflectOwnKeys, ReflectSet$LWS as ReflectSet, ReflectSetPrototypeOf$LWS as ReflectSetPrototypeOf, RegExpCtor$LWS as RegExpCtor, RegExpTest$LWS as RegExpTest, SANDBOX_EVAL_CONTEXT_NAME$LWS as SANDBOX_EVAL_CONTEXT_NAME, SANDBOX_EVAL_HELPERS_NAME$LWS as SANDBOX_EVAL_HELPERS_NAME, SYMBOL_LIVE_OBJECT$LWS as SYMBOL_LIVE_OBJECT, SetAdd$LWS as SetAdd, SetCtor$LWS as SetCtor, SetDelete$LWS as SetDelete, SetHas$LWS as SetHas, SetValues$LWS as SetValues, StringCtor$LWS as StringCtor, StringEndsWith$LWS as StringEndsWith, StringIncludes$LWS as StringIncludes, StringMatch$LWS as StringMatch, StringProtoIndexOf$LWS as StringProtoIndexOf, StringProtoReplace$LWS as StringProtoReplace, StringProtoSlice$LWS as StringProtoSlice, StringReplace$LWS as StringReplace, StringSlice$LWS as StringSlice, StringSplit$LWS as StringSplit, StringStartsWith$LWS as StringStartsWith, StringToLowerCase$LWS as StringToLowerCase, StringToUpperCase$LWS as StringToUpperCase, SymbolFor$LWS as SymbolFor, SymbolIterator$LWS as SymbolIterator, TO_STRING_BRAND_ARRAY$LWS as TO_STRING_BRAND_ARRAY, TO_STRING_BRAND_BIG_INT$LWS as TO_STRING_BRAND_BIG_INT, TO_STRING_BRAND_BOOLEAN$LWS as TO_STRING_BRAND_BOOLEAN, TO_STRING_BRAND_DATE$LWS as TO_STRING_BRAND_DATE, TO_STRING_BRAND_ERROR$LWS as TO_STRING_BRAND_ERROR, TO_STRING_BRAND_FUNCTION$LWS as TO_STRING_BRAND_FUNCTION, TO_STRING_BRAND_MAP$LWS as TO_STRING_BRAND_MAP, TO_STRING_BRAND_NULL$LWS as TO_STRING_BRAND_NULL, TO_STRING_BRAND_NUMBER$LWS as TO_STRING_BRAND_NUMBER, TO_STRING_BRAND_OBJECT$LWS as TO_STRING_BRAND_OBJECT, TO_STRING_BRAND_REG_EXP$LWS as TO_STRING_BRAND_REG_EXP, TO_STRING_BRAND_SET$LWS as TO_STRING_BRAND_SET, TO_STRING_BRAND_STRING$LWS as TO_STRING_BRAND_STRING, TO_STRING_BRAND_SYMBOL$LWS as TO_STRING_BRAND_SYMBOL, TO_STRING_BRAND_UNDEFINED$LWS as TO_STRING_BRAND_UNDEFINED, TO_STRING_BRAND_WEAK_MAP$LWS as TO_STRING_BRAND_WEAK_MAP, TO_STRING_BRAND_WEAK_SET$LWS as TO_STRING_BRAND_WEAK_SET, UNCOMPILED_LOCATION_NAME$LWS as UNCOMPILED_LOCATION_NAME, WEBPACK_REQUIRE_NAME$LWS as WEBPACK_REQUIRE_NAME, WeakMapCtor$LWS as WeakMapCtor, WeakMapGet$LWS as WeakMapGet, WeakMapSet$LWS as WeakMapSet, capitalizeFirstChar$LWS as capitalizeFirstChar, consoleWarn$LWS as consoleWarn, createRevokedProxy$LWS as createRevokedProxy, enquote$LWS as enquote, escapeRegExp$LWS as escapeRegExp, getBrand$LWS as getBrand, getNamespacePrefix$LWS as getNamespacePrefix, getNearMembraneSerializedValue$LWS as getNearMembraneSerializedValue, getTimestamp$LWS as getTimestamp, isArrayBuffer$LWS as isArrayBuffer, isBigIntObject$LWS as isBigIntObject, isBooleanObject$LWS as isBooleanObject, isConvertibleToString$LWS as isConvertibleToString, isDate$LWS as isDate, isLiveObject$LWS as isLiveObject, isMap$LWS as isMap, isNamespacePrefixed$LWS as isNamespacePrefixed, isNearMembrane$LWS as isNearMembrane, isNumberObject$LWS as isNumberObject, isObject$LWS as isObject, isObjectLike$LWS as isObjectLike, isRegExp$LWS as isRegExp, isSet$LWS as isSet, isStringObject$LWS as isStringObject, isSymbolObject$LWS as isSymbolObject, isWeakMap$LWS as isWeakMap, isWeakSet$LWS as isWeakSet, markLiveObject$LWS as markLiveObject, prefixNamespace$LWS as prefixNamespace, shallowCloneArray$LWS as shallowCloneArray, shallowCloneOptions$LWS as shallowCloneOptions, toBoolean$LWS as toBoolean, toLiveValue$LWS as toLiveValue, toSafeDescriptor$LWS as toSafeDescriptor, toSafeTemplateStringValue$LWS as toSafeTemplateStringValue, toString$LWS as toString, unprefixNamespace$LWS as unprefixNamespace, wrap$LWS as wrap };
/*! version: 0.15.17 */
{
"name": "@locker/shared",
"version": "0.15.16",
"version": "0.15.17",
"license": "Salesforce Developer Agreement",

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

],
"gitHead": "afd8b5fd28efc15db709fd72a64b02f3d655a63f"
"gitHead": "403e64ac628d016962ecd2ec525703ea3b55579b"
}

@@ -12,5 +12,4 @@ export declare const ArrayCtor: ArrayConstructor;

export declare function ArraySlice(array: any[], ...args: Parameters<typeof Array.prototype.slice>): ReturnType<typeof Array.prototype.slice>;
export declare function ArraySome(array: any[], iteratee: Function): ReturnType<typeof Array.prototype.some>;
export declare function ArraySort(array: any[]): ReturnType<typeof Array.prototype.sort>;
export declare function ArrayUnshift(array: any[], ...args: Parameters<typeof Array.prototype.unshift>): ReturnType<typeof Array.prototype.unshift>;
//# sourceMappingURL=Array.d.ts.map
export declare const LOCKER_IDENTIFIER_MARKER = "$LWS";
export declare const LOCKER_UNMINIFIED_FLAG: boolean;
export declare const QUOTE_CHAR_DOUBLE = "\"";
export declare const QUOTE_CHAR_SINGLE = "'";
export declare const CHAR_ELLIPSIS = "\u2026";
export declare const CHAR_QUOTE_DOUBLE = "\"";
export declare const CHAR_QUOTE_SINGLE = "'";
export declare const SANDBOX_EVAL_CONTEXT_NAME = "$lockerEvalContext$";

@@ -6,0 +7,0 @@ export declare const SANDBOX_EVAL_HELPERS_NAME = "$lockerEvalHelpers$";

@@ -10,3 +10,2 @@ export * from './Array';

export * from './Date';
export * from './Distortion';
export * from './Error';

@@ -18,2 +17,3 @@ export * from './Function';

export * from './Math';
export * from './Namespace';
export * from './NearMembrane';

@@ -20,0 +20,0 @@ export * from './Number';

export declare const StringCtor: StringConstructor;
export declare const StringProtoIndexOf: (searchString: string, position?: number | undefined) => number, StringProtoReplace: {
(searchValue: string | RegExp, replaceValue: string): string;
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
(searchValue: {
[Symbol.replace](string: string, replaceValue: string): string;
}, replaceValue: string): string;
(searchValue: {
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
}, replacer: (substring: string, ...args: any[]) => string): string;
}, StringProtoSlice: (start?: number | undefined, end?: number | undefined) => string;
export declare function capitalizeFirstChar(string: string): string;
export declare function enquote(string: string, quoteChar?: string): string;
export declare function escapeQuotes(string: string, quoteChar?: string): string;
export declare function isConvertibleToString(value: any): boolean;
export declare function isStringObject(value: any): boolean;
export declare function StringCharCodeAt(string: string, index: number): ReturnType<typeof String.prototype.charCodeAt>;
export declare function StringEndsWith(string: string, ...args: Parameters<typeof String.prototype.endsWith>): ReturnType<typeof String.prototype.endsWith>;
export declare function StringIncludes(string: string, ...args: Parameters<typeof String.prototype.includes>): ReturnType<typeof String.prototype.includes>;

@@ -17,3 +26,3 @@ export declare function StringMatch(string: string, regexp: RegExp): ReturnType<typeof String.prototype.match>;

export declare function toString(value: any): string;
export declare function toStringIfNotNullOrUndefined(value: any): string | null | undefined;
export declare function toSafeTemplateStringValue(value: any): string;
//# sourceMappingURL=String.d.ts.map

@@ -1,2 +0,1 @@

export declare type Distortion = (...arg: any) => any;
export interface GetterSetterDescriptor {

@@ -9,3 +8,2 @@ configurable?: boolean;

export declare type NearMembraneSerializedValue = bigint | boolean | number | string | symbol;
export declare type RawFunction = (...arg: any) => any;
//# sourceMappingURL=types.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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