@locker/shared
Advanced tools
Comparing version 0.15.4 to 0.15.5
@@ -31,5 +31,5 @@ /*! | ||
slice: ArrayProtoSlice$LWS, | ||
some: ArrayProtoSome$LWS | ||
some: ArrayProtoSome$LWS, | ||
sort: ArrayProtoSort$LWS | ||
} = Array.prototype; | ||
const emptyArray$LWS = []; | ||
const ArrayCtor$LWS = Array; | ||
@@ -77,3 +77,3 @@ const { | ||
function ArrayPop$LWS(arr$LWS) { | ||
return ReflectApply$LWS(ArrayProtoPop$LWS, arr$LWS, emptyArray$LWS); | ||
return ReflectApply$LWS(ArrayProtoPop$LWS, arr$LWS, []); | ||
} | ||
@@ -97,2 +97,6 @@ | ||
function ArraySort$LWS(arr$LWS) { | ||
return ReflectApply$LWS(ArrayProtoSort$LWS, arr$LWS, []); | ||
} | ||
const { | ||
@@ -117,3 +121,5 @@ now: DateNow$LWS | ||
} = Reflect; | ||
const getTimestamp$LWS = typeof performance === 'undefined' ? DateNow$LWS : FunctionBind$LWS(performance.now, performance); | ||
const getTimestamp$LWS = typeof performance === 'undefined' ? | ||
/* istanbul ignore next: unreachable in test env */ | ||
DateNow$LWS : FunctionBind$LWS(performance.now, performance); | ||
@@ -134,5 +140,7 @@ function isObject$LWS(value$LWS) { | ||
for (let i$LWS = 0, len$LWS = ownKeys$LWS.length; i$LWS < len$LWS; i$LWS += 1) { | ||
const key$LWS = ownKeys$LWS[i$LWS]; | ||
clone$LWS[key$LWS] = options$LWS[key$LWS]; | ||
for (let i$LWS = 0, { | ||
length: length$LWS | ||
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) { | ||
const ownKey$LWS = ownKeys$LWS[i$LWS]; | ||
clone$LWS[ownKey$LWS] = options$LWS[ownKey$LWS]; | ||
} | ||
@@ -157,3 +165,5 @@ | ||
for (let i$LWS = 0, len$LWS = ownKeys$LWS.length; i$LWS < len$LWS; i$LWS += 1) { | ||
for (let i$LWS = 0, { | ||
length: length$LWS | ||
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) { | ||
toSafeDescriptor$LWS(descriptorMap$LWS[ownKeys$LWS[i$LWS]]); | ||
@@ -169,2 +179,7 @@ } | ||
const ZERO_WIDTH_JOINER$LWS = '\u200D'; | ||
const LOCKER_IDENTIFIER_MARKER$LWS = `$LWS${ZERO_WIDTH_JOINER$LWS}`; | ||
const SANDBOX_EVAL_CONTEXT_NAME$LWS = '$lockerEvalContext$'; | ||
const SANDBOX_EVAL_HELPERS_NAME$LWS = '$lockerEvalHelpers$'; | ||
const UNCOMPILED_LOCATION_NAME$LWS = `uncompiledLocation${LOCKER_IDENTIFIER_MARKER$LWS}`; | ||
const { | ||
@@ -192,28 +207,28 @@ // eslint-disable-next-line @typescript-eslint/naming-convention | ||
function ObjectHasOwnProperty$LWS(obj$LWS, key$LWS) { | ||
return obj$LWS !== null && obj$LWS !== undefined && ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS]); | ||
function ObjectHasOwnProperty$LWS(object$LWS, key$LWS) { | ||
return object$LWS !== null && object$LWS !== undefined && ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS]); | ||
} | ||
function ObjectLookupOwnGetter$LWS(obj$LWS, key$LWS) { | ||
if (obj$LWS === null || obj$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS])) { | ||
function ObjectLookupOwnGetter$LWS(object$LWS, key$LWS) { | ||
if (object$LWS === null || object$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS])) { | ||
return undefined; | ||
} | ||
return ReflectApply$LWS(ObjectProto__lookupGetter__$LWS, obj$LWS, [key$LWS]); | ||
return ReflectApply$LWS(ObjectProto__lookupGetter__$LWS, object$LWS, [key$LWS]); | ||
} | ||
function ObjectLookupOwnSetter$LWS(obj$LWS, key$LWS) { | ||
if (obj$LWS === null || obj$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS])) { | ||
function ObjectLookupOwnSetter$LWS(object$LWS, key$LWS) { | ||
if (object$LWS === null || object$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS])) { | ||
return undefined; | ||
} | ||
return ReflectApply$LWS(ObjectProto__lookupSetter__$LWS, obj$LWS, [key$LWS]); | ||
return ReflectApply$LWS(ObjectProto__lookupSetter__$LWS, object$LWS, [key$LWS]); | ||
} | ||
function ObjectLookupOwnValue$LWS(obj$LWS, key$LWS) { | ||
if (obj$LWS === null || obj$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS])) { | ||
function ObjectLookupOwnValue$LWS(object$LWS, key$LWS) { | ||
if (object$LWS === null || object$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS])) { | ||
return undefined; | ||
} | ||
return obj$LWS[key$LWS]; | ||
return object$LWS[key$LWS]; | ||
} | ||
@@ -286,27 +301,3 @@ | ||
} | ||
/** | ||
* MAGIC_OBJECT_SYMBOL is used to mark objects that have magical side effects | ||
* when setting properties, which would be broken by a Define Property operation. | ||
* For example, the `style` object of an HTMLElement in Safari <= 14. This marker | ||
* is a signal to the membrane that it must use a Set operation, instead of a | ||
* Define Property operation. | ||
* | ||
*/ | ||
const MAGIC_OBJECT_SYMBOL$LWS = SymbolFor$LWS('@@lockerMagicValue'); | ||
function markMagicObject$LWS(object$LWS) { | ||
ReflectDefineProperty$LWS(object$LWS, MAGIC_OBJECT_SYMBOL$LWS, { | ||
// @ts-ignore: TS doesn't like __proto__ on property descriptors. | ||
__proto__: null, | ||
value: undefined | ||
}); | ||
return object$LWS; | ||
} | ||
function isMagicObject$LWS(object$LWS) { | ||
return ObjectHasOwnProperty$LWS(object$LWS, MAGIC_OBJECT_SYMBOL$LWS); | ||
} | ||
const { | ||
@@ -326,3 +317,3 @@ clear: MapProtoClear$LWS, | ||
function MapEntries$LWS(map$LWS) { | ||
return ReflectApply$LWS(MapProtoEntries$LWS, map$LWS, emptyArray$LWS); | ||
return ReflectApply$LWS(MapProtoEntries$LWS, map$LWS, []); | ||
} | ||
@@ -346,2 +337,5 @@ | ||
} = Number.prototype; | ||
const { | ||
isFinite: NumberIsFinite$LWS | ||
} = Number; | ||
@@ -408,7 +402,7 @@ function NumberToFixed$LWS(num$LWS, digits$LWS = 0) { | ||
function StringToLowerCase$LWS(str$LWS) { | ||
return ReflectApply$LWS(StringProtoToLowerCase$LWS, str$LWS, emptyArray$LWS); | ||
return ReflectApply$LWS(StringProtoToLowerCase$LWS, str$LWS, []); | ||
} | ||
function StringToUpperCase$LWS(str$LWS) { | ||
return ReflectApply$LWS(StringProtoToUpperCase$LWS, str$LWS, emptyArray$LWS); | ||
return ReflectApply$LWS(StringProtoToUpperCase$LWS, str$LWS, []); | ||
} | ||
@@ -431,6 +425,6 @@ | ||
try { | ||
return StringCtor$LWS(value$LWS); | ||
} catch (_unused$LWS) { | ||
return ''; | ||
} | ||
return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty | ||
} catch (_unused$LWS) {} | ||
return ''; | ||
} | ||
@@ -453,22 +447,4 @@ | ||
return StringReplace$LWS(string$LWS, specialCharRegExp$LWS, '\\$&'); | ||
} // To sanitizeArguments that require no transformation | ||
function toIgnore$LWS(value$LWS) { | ||
return value$LWS; | ||
} | ||
function sanitizeArguments$LWS(args$LWS, sanitizers$LWS) { | ||
const argsLen$LWS = args$LWS.length; | ||
const sLen$LWS = sanitizers$LWS.length; | ||
const len$LWS = MathMin$LWS(argsLen$LWS, sLen$LWS); | ||
const sanitizedArgs$LWS = ArrayFrom$LWS(args$LWS); | ||
for (let i$LWS = 0; i$LWS < len$LWS; i$LWS += 1) { | ||
sanitizedArgs$LWS[i$LWS] = sanitizers$LWS[i$LWS](args$LWS[i$LWS]); | ||
} | ||
return sanitizedArgs$LWS; | ||
} | ||
const { | ||
@@ -521,2 +497,3 @@ add: SetProtoAdd$LWS, | ||
exports.ArraySome = ArraySome$LWS; | ||
exports.ArraySort = ArraySort$LWS; | ||
exports.DateNow = DateNow$LWS; | ||
@@ -527,4 +504,4 @@ exports.FunctionBind = FunctionBind$LWS; | ||
exports.LIVE_OBJECT_SYMBOL = LIVE_OBJECT_SYMBOL$LWS; | ||
exports.LOCKER_IDENTIFIER_MARKER = LOCKER_IDENTIFIER_MARKER$LWS; | ||
exports.LockerSecurityError = LockerSecurityError$LWS; | ||
exports.MAGIC_OBJECT_SYMBOL = MAGIC_OBJECT_SYMBOL$LWS; | ||
exports.MapClear = MapClear$LWS; | ||
@@ -537,2 +514,3 @@ exports.MapCtor = MapCtor$LWS; | ||
exports.MathMin = MathMin$LWS; | ||
exports.NumberIsFinite = NumberIsFinite$LWS; | ||
exports.NumberToFixed = NumberToFixed$LWS; | ||
@@ -573,2 +551,4 @@ exports.ObjectAssign = ObjectAssign$LWS; | ||
exports.RegExpTest = RegExpTest$LWS; | ||
exports.SANDBOX_EVAL_CONTEXT_NAME = SANDBOX_EVAL_CONTEXT_NAME$LWS; | ||
exports.SANDBOX_EVAL_HELPERS_NAME = SANDBOX_EVAL_HELPERS_NAME$LWS; | ||
exports.SYMBOL_LIVE_OBJECT = SYMBOL_LIVE_OBJECT$LWS; | ||
@@ -580,2 +560,3 @@ exports.SetAdd = SetAdd$LWS; | ||
exports.StringCharCodeAt = StringCharCodeAt$LWS; | ||
exports.StringCtor = StringCtor$LWS; | ||
exports.StringIncludes = StringIncludes$LWS; | ||
@@ -592,21 +573,18 @@ exports.StringMatch = StringMatch$LWS; | ||
exports.SymbolIterator = SymbolIterator$LWS; | ||
exports.UNCOMPILED_LOCATION_NAME = UNCOMPILED_LOCATION_NAME$LWS; | ||
exports.WeakMapCtor = WeakMapCtor$LWS; | ||
exports.WeakMapGet = WeakMapGet$LWS; | ||
exports.WeakMapSet = WeakMapSet$LWS; | ||
exports.ZERO_WIDTH_JOINER = ZERO_WIDTH_JOINER$LWS; | ||
exports.capitalizeFirstChar = capitalizeFirstChar$LWS; | ||
exports.createRevokedProxy = createRevokedProxy$LWS; | ||
exports.emptyArray = emptyArray$LWS; | ||
exports.escapeRegExp = escapeRegExp$LWS; | ||
exports.getTimestamp = getTimestamp$LWS; | ||
exports.isLiveObject = isLiveObject$LWS; | ||
exports.isMagicObject = isMagicObject$LWS; | ||
exports.isObject = isObject$LWS; | ||
exports.isObjectLike = isObjectLike$LWS; | ||
exports.markLiveObject = markLiveObject$LWS; | ||
exports.markMagicObject = markMagicObject$LWS; | ||
exports.maskDistortion = maskDistortion$LWS; | ||
exports.sanitizeArguments = sanitizeArguments$LWS; | ||
exports.shallowCloneOptions = shallowCloneOptions$LWS; | ||
exports.toBoolean = toBoolean$LWS; | ||
exports.toIgnore = toIgnore$LWS; | ||
exports.toSafeDescriptor = toSafeDescriptor$LWS; | ||
@@ -617,2 +595,2 @@ exports.toSafeDescriptorMap = toSafeDescriptorMap$LWS; | ||
exports.wrap = wrap$LWS; | ||
/*! version: 0.15.4 */ | ||
/*! version: 0.15.5 */ |
@@ -5,15 +5,15 @@ /*! | ||
const { | ||
apply: ReflectApply, | ||
construct: ReflectConstruct, | ||
deleteProperty: ReflectDeleteProperty, | ||
has: ReflectHas, | ||
get: ReflectGet, | ||
getPrototypeOf: ReflectGetPrototypeOf, | ||
set: ReflectSet, | ||
apply: ReflectApply$LWS, | ||
construct: ReflectConstruct$LWS, | ||
deleteProperty: ReflectDeleteProperty$LWS, | ||
has: ReflectHas$LWS, | ||
get: ReflectGet$LWS, | ||
getPrototypeOf: ReflectGetPrototypeOf$LWS, | ||
set: ReflectSet$LWS, | ||
setPrototypeOf: ReflectSetPrototypeOf$1$LWS, | ||
defineProperty: ReflectDefineProperty, | ||
isExtensible: ReflectIsExtensible, | ||
getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor, | ||
defineProperty: ReflectDefineProperty$LWS, | ||
isExtensible: ReflectIsExtensible$LWS, | ||
getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor$LWS, | ||
ownKeys: ReflectOwnKeys$1$LWS, | ||
preventExtensions: ReflectPreventExtensions | ||
preventExtensions: ReflectPreventExtensions$LWS | ||
} = Reflect; | ||
@@ -27,18 +27,18 @@ const { | ||
slice: ArrayProtoSlice$LWS, | ||
some: ArrayProtoSome$LWS | ||
some: ArrayProtoSome$LWS, | ||
sort: ArrayProtoSort$LWS | ||
} = Array.prototype; | ||
const emptyArray = []; | ||
const ArrayCtor = Array; | ||
const ArrayCtor$LWS = Array; | ||
const { | ||
from: ArrayFrom, | ||
isArray: ArrayIsArray | ||
from: ArrayFrom$LWS, | ||
isArray: ArrayIsArray$LWS | ||
} = Array; | ||
const { | ||
push: ArrayProtoPush | ||
push: ArrayProtoPush$LWS | ||
} = Array.prototype; | ||
function ArrayConcat(arr$LWS, ...args$LWS) { | ||
function ArrayConcat$LWS(arr$LWS, ...args$LWS) { | ||
// Reimplement Array#concat to avoid prototype poisoning from Symbol.isConcatSpreadable. | ||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable | ||
const result$LWS = ReflectApply(ArrayProtoSlice$LWS, arr$LWS, [0]); | ||
const result$LWS = ReflectApply$LWS(ArrayProtoSlice$LWS, arr$LWS, [0]); | ||
const { | ||
@@ -50,3 +50,3 @@ length: length$LWS | ||
const value$LWS = args$LWS[i$LWS]; | ||
ReflectApply(ArrayProtoPush, result$LWS, ArrayIsArray(value$LWS) ? value$LWS : [value$LWS]); | ||
ReflectApply$LWS(ArrayProtoPush$LWS, result$LWS, ArrayIsArray$LWS(value$LWS) ? value$LWS : [value$LWS]); | ||
} | ||
@@ -57,40 +57,44 @@ | ||
function ArrayFilter(arr$LWS, iteratee$LWS) { | ||
return ReflectApply(ArrayProtoFilter$LWS, arr$LWS, [iteratee$LWS]); | ||
function ArrayFilter$LWS(arr$LWS, iteratee$LWS) { | ||
return ReflectApply$LWS(ArrayProtoFilter$LWS, arr$LWS, [iteratee$LWS]); | ||
} | ||
function ArrayIncludes(arr$LWS, value$LWS) { | ||
return ReflectApply(ArrayProtoIncludes$LWS, arr$LWS, [value$LWS]); | ||
function ArrayIncludes$LWS(arr$LWS, value$LWS) { | ||
return ReflectApply$LWS(ArrayProtoIncludes$LWS, arr$LWS, [value$LWS]); | ||
} | ||
function ArrayIndexOf(arr$LWS, ...args$LWS) { | ||
return ReflectApply(ArrayProtoIndexOf$LWS, arr$LWS, args$LWS); | ||
function ArrayIndexOf$LWS(arr$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(ArrayProtoIndexOf$LWS, arr$LWS, args$LWS); | ||
} | ||
function ArrayJoin(arr$LWS, ...args$LWS) { | ||
return ReflectApply(ArrayProtoJoin$LWS, arr$LWS, args$LWS); | ||
function ArrayJoin$LWS(arr$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(ArrayProtoJoin$LWS, arr$LWS, args$LWS); | ||
} | ||
function ArrayPop(arr$LWS) { | ||
return ReflectApply(ArrayProtoPop$LWS, arr$LWS, emptyArray); | ||
function ArrayPop$LWS(arr$LWS) { | ||
return ReflectApply$LWS(ArrayProtoPop$LWS, arr$LWS, []); | ||
} | ||
function ArrayPush(arr$LWS, ...args$LWS) { | ||
return ReflectApply(ArrayProtoPush, arr$LWS, args$LWS); | ||
function ArrayPush$LWS(arr$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(ArrayProtoPush$LWS, arr$LWS, args$LWS); | ||
} | ||
function ArrayShallowClone(arr$LWS) { | ||
return ArraySlice(arr$LWS, 0); | ||
function ArrayShallowClone$LWS(arr$LWS) { | ||
return ArraySlice$LWS(arr$LWS, 0); | ||
} | ||
function ArraySlice(arr$LWS, ...args$LWS) { | ||
return ReflectApply(ArrayProtoSlice$LWS, arr$LWS, args$LWS); | ||
function ArraySlice$LWS(arr$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(ArrayProtoSlice$LWS, arr$LWS, args$LWS); | ||
} | ||
function ArraySome(arr$LWS, iteratee$LWS) { | ||
return ReflectApply(ArrayProtoSome$LWS, arr$LWS, [iteratee$LWS]); | ||
function ArraySome$LWS(arr$LWS, iteratee$LWS) { | ||
return ReflectApply$LWS(ArrayProtoSome$LWS, arr$LWS, [iteratee$LWS]); | ||
} | ||
function ArraySort$LWS(arr$LWS) { | ||
return ReflectApply$LWS(ArrayProtoSort$LWS, arr$LWS, []); | ||
} | ||
const { | ||
now: DateNow | ||
now: DateNow$LWS | ||
} = Date; | ||
@@ -101,7 +105,7 @@ const { | ||
const FunctionBind = (func$LWS, thisArg$LWS) => ReflectApply(FunctionProtoBind$LWS, func$LWS, [thisArg$LWS]); | ||
const FunctionBind$LWS = (func$LWS, thisArg$LWS) => ReflectApply$LWS(FunctionProtoBind$LWS, func$LWS, [thisArg$LWS]); | ||
function wrap(func$LWS, wrapper$LWS) { | ||
function wrap$LWS(func$LWS, wrapper$LWS) { | ||
return function wrapped$LWS(...args$LWS) { | ||
return ReflectApply(wrapper$LWS, this, [func$LWS, args$LWS]); | ||
return ReflectApply$LWS(wrapper$LWS, this, [func$LWS, args$LWS]); | ||
}; | ||
@@ -114,13 +118,15 @@ } | ||
} = Reflect; | ||
const getTimestamp = typeof performance === 'undefined' ? DateNow : FunctionBind(performance.now, performance); | ||
const getTimestamp$LWS = typeof performance === 'undefined' ? | ||
/* istanbul ignore next: unreachable in test env */ | ||
DateNow$LWS : FunctionBind$LWS(performance.now, performance); | ||
function isObject(value$LWS) { | ||
function isObject$LWS(value$LWS) { | ||
return typeof value$LWS === 'object' && value$LWS !== null; | ||
} | ||
function isObjectLike(value$LWS) { | ||
function isObjectLike$LWS(value$LWS) { | ||
return typeof value$LWS === 'function' || typeof value$LWS === 'object' && value$LWS !== null; | ||
} | ||
function shallowCloneOptions(options$LWS) { | ||
function shallowCloneOptions$LWS(options$LWS) { | ||
const ownKeys$LWS = ReflectOwnKeys$LWS(options$LWS); | ||
@@ -131,5 +137,7 @@ const clone$LWS = { | ||
for (let i$LWS = 0, len$LWS = ownKeys$LWS.length; i$LWS < len$LWS; i$LWS += 1) { | ||
const key$LWS = ownKeys$LWS[i$LWS]; | ||
clone$LWS[key$LWS] = options$LWS[key$LWS]; | ||
for (let i$LWS = 0, { | ||
length: length$LWS | ||
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) { | ||
const ownKey$LWS = ownKeys$LWS[i$LWS]; | ||
clone$LWS[ownKey$LWS] = options$LWS[ownKey$LWS]; | ||
} | ||
@@ -140,3 +148,3 @@ | ||
function toSafeDescriptor(desc$LWS) { | ||
function toSafeDescriptor$LWS(desc$LWS) { | ||
ReflectSetPrototypeOf$LWS(desc$LWS, null); | ||
@@ -146,3 +154,3 @@ return desc$LWS; | ||
function toSafeDescriptorMap(descriptorMap$LWS) { | ||
function toSafeDescriptorMap$LWS(descriptorMap$LWS) { | ||
// Descriptor maps are not susceptible to Object.prototype pollution because | ||
@@ -156,4 +164,6 @@ // the internal operation uses [[OwnPropertyKeys]]: | ||
for (let i$LWS = 0, len$LWS = ownKeys$LWS.length; i$LWS < len$LWS; i$LWS += 1) { | ||
toSafeDescriptor(descriptorMap$LWS[ownKeys$LWS[i$LWS]]); | ||
for (let i$LWS = 0, { | ||
length: length$LWS | ||
} = ownKeys$LWS; i$LWS < length$LWS; i$LWS += 1) { | ||
toSafeDescriptor$LWS(descriptorMap$LWS[ownKeys$LWS[i$LWS]]); | ||
} | ||
@@ -164,6 +174,11 @@ | ||
function toBoolean(value$LWS) { | ||
function toBoolean$LWS(value$LWS) { | ||
return !!value$LWS; | ||
} | ||
const ZERO_WIDTH_JOINER$LWS = '\u200D'; | ||
const LOCKER_IDENTIFIER_MARKER$LWS = `$LWS${ZERO_WIDTH_JOINER$LWS}`; | ||
const SANDBOX_EVAL_CONTEXT_NAME$LWS = '$lockerEvalContext$'; | ||
const SANDBOX_EVAL_HELPERS_NAME$LWS = '$lockerEvalHelpers$'; | ||
const UNCOMPILED_LOCATION_NAME$LWS = `uncompiledLocation${LOCKER_IDENTIFIER_MARKER$LWS}`; | ||
const { | ||
@@ -177,49 +192,49 @@ // eslint-disable-next-line @typescript-eslint/naming-convention | ||
const { | ||
assign: ObjectAssign, | ||
create: ObjectCreate, | ||
defineProperties: ObjectDefineProperties, | ||
getOwnPropertyDescriptors: ObjectGetOwnPropertyDescriptors, | ||
freeze: ObjectFreeze, | ||
getOwnPropertyNames: ObjectGetOwnPropertyNames, | ||
getOwnPropertySymbols: ObjectGetOwnPropertySymbols, | ||
keys: ObjectKeys, | ||
seal: ObjectSeal, | ||
isSealed: ObjectIsSealed, | ||
isFrozen: ObjectIsFrozen, | ||
preventExtensions: ObjectPreventExtensions | ||
assign: ObjectAssign$LWS, | ||
create: ObjectCreate$LWS, | ||
defineProperties: ObjectDefineProperties$LWS, | ||
getOwnPropertyDescriptors: ObjectGetOwnPropertyDescriptors$LWS, | ||
freeze: ObjectFreeze$LWS, | ||
getOwnPropertyNames: ObjectGetOwnPropertyNames$LWS, | ||
getOwnPropertySymbols: ObjectGetOwnPropertySymbols$LWS, | ||
keys: ObjectKeys$LWS, | ||
seal: ObjectSeal$LWS, | ||
isSealed: ObjectIsSealed$LWS, | ||
isFrozen: ObjectIsFrozen$LWS, | ||
preventExtensions: ObjectPreventExtensions$LWS | ||
} = Object; | ||
function ObjectHasOwnProperty(obj$LWS, key$LWS) { | ||
return obj$LWS !== null && obj$LWS !== undefined && ReflectApply(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS]); | ||
function ObjectHasOwnProperty$LWS(object$LWS, key$LWS) { | ||
return object$LWS !== null && object$LWS !== undefined && ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS]); | ||
} | ||
function ObjectLookupOwnGetter(obj$LWS, key$LWS) { | ||
if (obj$LWS === null || obj$LWS === undefined || !ReflectApply(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS])) { | ||
function ObjectLookupOwnGetter$LWS(object$LWS, key$LWS) { | ||
if (object$LWS === null || object$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS])) { | ||
return undefined; | ||
} | ||
return ReflectApply(ObjectProto__lookupGetter__$LWS, obj$LWS, [key$LWS]); | ||
return ReflectApply$LWS(ObjectProto__lookupGetter__$LWS, object$LWS, [key$LWS]); | ||
} | ||
function ObjectLookupOwnSetter(obj$LWS, key$LWS) { | ||
if (obj$LWS === null || obj$LWS === undefined || !ReflectApply(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS])) { | ||
function ObjectLookupOwnSetter$LWS(object$LWS, key$LWS) { | ||
if (object$LWS === null || object$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS])) { | ||
return undefined; | ||
} | ||
return ReflectApply(ObjectProto__lookupSetter__$LWS, obj$LWS, [key$LWS]); | ||
return ReflectApply$LWS(ObjectProto__lookupSetter__$LWS, object$LWS, [key$LWS]); | ||
} | ||
function ObjectLookupOwnValue(obj$LWS, key$LWS) { | ||
if (obj$LWS === null || obj$LWS === undefined || !ReflectApply(ObjectProtoHasOwnProperty$LWS, obj$LWS, [key$LWS])) { | ||
function ObjectLookupOwnValue$LWS(object$LWS, key$LWS) { | ||
if (object$LWS === null || object$LWS === undefined || !ReflectApply$LWS(ObjectProtoHasOwnProperty$LWS, object$LWS, [key$LWS])) { | ||
return undefined; | ||
} | ||
return obj$LWS[key$LWS]; | ||
return object$LWS[key$LWS]; | ||
} | ||
const ProxyCtor = Proxy; | ||
const ProxyRevocable = Proxy.revocable; | ||
const ProxyCtor$LWS = Proxy; | ||
const ProxyRevocable$LWS = Proxy.revocable; | ||
function maskDistortion(distortedFunc$LWS, rawFunc$LWS) { | ||
const proxy$LWS = new ProxyCtor(rawFunc$LWS, ObjectFreeze({ | ||
function maskDistortion$LWS(distortedFunc$LWS, rawFunc$LWS) { | ||
const proxy$LWS = new ProxyCtor$LWS(rawFunc$LWS, ObjectFreeze$LWS({ | ||
apply(target$LWS, thisArg$LWS, args$LWS) { | ||
@@ -230,3 +245,3 @@ if (thisArg$LWS === proxy$LWS) { | ||
return ReflectApply(distortedFunc$LWS, thisArg$LWS, args$LWS); | ||
return ReflectApply$LWS(distortedFunc$LWS, thisArg$LWS, args$LWS); | ||
}, | ||
@@ -239,3 +254,3 @@ | ||
return ReflectConstruct(distortedFunc$LWS, args$LWS, newTarget$LWS); | ||
return ReflectConstruct$LWS(distortedFunc$LWS, args$LWS, newTarget$LWS); | ||
} | ||
@@ -247,5 +262,5 @@ | ||
function createRevokedProxy(object$LWS) { | ||
function createRevokedProxy$LWS(object$LWS) { | ||
// @ts-ignore: TS doesn't like null as a ProxyHandler. | ||
const revocable$LWS = ProxyRevocable(object$LWS, { | ||
const revocable$LWS = ProxyRevocable$LWS(object$LWS, { | ||
__proto__: null | ||
@@ -257,3 +272,3 @@ }); | ||
class LockerSecurityError extends Error { | ||
class LockerSecurityError$LWS extends Error { | ||
constructor(message$LWS) { | ||
@@ -266,15 +281,15 @@ super(`Lightning Web Security: ${message$LWS}`); | ||
const { | ||
parse: JSONParse, | ||
stringify: JSONStringify | ||
parse: JSONParse$LWS, | ||
stringify: JSONStringify$LWS | ||
} = JSON; | ||
const { | ||
for: SymbolFor, | ||
iterator: SymbolIterator | ||
for: SymbolFor$LWS, | ||
iterator: SymbolIterator$LWS | ||
} = Symbol; | ||
const LIVE_OBJECT_SYMBOL = SymbolFor('@@lockerLiveValue'); // This is used by packages/locker-core-engine/src/LockerFilter.js | ||
const LIVE_OBJECT_SYMBOL$LWS = SymbolFor$LWS('@@lockerLiveValue'); // This is used by packages/locker-core-engine/src/LockerFilter.js | ||
const SYMBOL_LIVE_OBJECT = LIVE_OBJECT_SYMBOL; | ||
const SYMBOL_LIVE_OBJECT$LWS = LIVE_OBJECT_SYMBOL$LWS; | ||
function markLiveObject(object$LWS) { | ||
ReflectDefineProperty(object$LWS, LIVE_OBJECT_SYMBOL, { | ||
function markLiveObject$LWS(object$LWS) { | ||
ReflectDefineProperty$LWS(object$LWS, LIVE_OBJECT_SYMBOL$LWS, { | ||
// @ts-ignore: TS doesn't like __proto__ on property descriptors. | ||
@@ -287,30 +302,6 @@ __proto__: null, | ||
function isLiveObject(object$LWS) { | ||
return ObjectHasOwnProperty(object$LWS, LIVE_OBJECT_SYMBOL); | ||
function isLiveObject$LWS(object$LWS) { | ||
return ObjectHasOwnProperty$LWS(object$LWS, LIVE_OBJECT_SYMBOL$LWS); | ||
} | ||
/** | ||
* MAGIC_OBJECT_SYMBOL is used to mark objects that have magical side effects | ||
* when setting properties, which would be broken by a Define Property operation. | ||
* For example, the `style` object of an HTMLElement in Safari <= 14. This marker | ||
* is a signal to the membrane that it must use a Set operation, instead of a | ||
* Define Property operation. | ||
* | ||
*/ | ||
const MAGIC_OBJECT_SYMBOL = SymbolFor('@@lockerMagicValue'); | ||
function markMagicObject(object$LWS) { | ||
ReflectDefineProperty(object$LWS, MAGIC_OBJECT_SYMBOL, { | ||
// @ts-ignore: TS doesn't like __proto__ on property descriptors. | ||
__proto__: null, | ||
value: undefined | ||
}); | ||
return object$LWS; | ||
} | ||
function isMagicObject(object$LWS) { | ||
return ObjectHasOwnProperty(object$LWS, MAGIC_OBJECT_SYMBOL); | ||
} | ||
const { | ||
@@ -323,31 +314,34 @@ clear: MapProtoClear$LWS, | ||
} = Map.prototype; | ||
const MapCtor = Map; | ||
const MapCtor$LWS = Map; | ||
function MapClear(map$LWS) { | ||
return ReflectApply(MapProtoClear$LWS, map$LWS, []); | ||
function MapClear$LWS(map$LWS) { | ||
return ReflectApply$LWS(MapProtoClear$LWS, map$LWS, []); | ||
} | ||
function MapEntries(map$LWS) { | ||
return ReflectApply(MapProtoEntries$LWS, map$LWS, emptyArray); | ||
function MapEntries$LWS(map$LWS) { | ||
return ReflectApply$LWS(MapProtoEntries$LWS, map$LWS, []); | ||
} | ||
function MapForEach(map$LWS, iteratee$LWS) { | ||
return ReflectApply(MapProtoForEach$LWS, map$LWS, [iteratee$LWS]); | ||
function MapForEach$LWS(map$LWS, iteratee$LWS) { | ||
return ReflectApply$LWS(MapProtoForEach$LWS, map$LWS, [iteratee$LWS]); | ||
} | ||
function MapGet(map$LWS, key$LWS) { | ||
return ReflectApply(MapProtoGet$LWS, map$LWS, [key$LWS]); | ||
function MapGet$LWS(map$LWS, key$LWS) { | ||
return ReflectApply$LWS(MapProtoGet$LWS, map$LWS, [key$LWS]); | ||
} | ||
function MapSet(map$LWS, key$LWS, value$LWS) { | ||
return ReflectApply(MapProtoSet$LWS, map$LWS, [key$LWS, value$LWS]); | ||
function MapSet$LWS(map$LWS, key$LWS, value$LWS) { | ||
return ReflectApply$LWS(MapProtoSet$LWS, map$LWS, [key$LWS, value$LWS]); | ||
} | ||
const MathMin = Math.min; | ||
const MathMin$LWS = Math.min; | ||
const { | ||
toFixed: NumberProtoToFixed$LWS | ||
} = Number.prototype; | ||
const { | ||
isFinite: NumberIsFinite$LWS | ||
} = Number; | ||
function NumberToFixed(num$LWS, digits$LWS = 0) { | ||
return ReflectApply(NumberProtoToFixed$LWS, num$LWS, [digits$LWS]); | ||
function NumberToFixed$LWS(num$LWS, digits$LWS = 0) { | ||
return ReflectApply$LWS(NumberProtoToFixed$LWS, num$LWS, [digits$LWS]); | ||
} | ||
@@ -358,6 +352,6 @@ | ||
} = Promise.prototype; | ||
const PromiseReject = Promise.reject.bind(Promise); | ||
const PromiseReject$LWS = Promise.reject.bind(Promise); | ||
function PromiseThen(promise$LWS, ...args$LWS) { | ||
return ReflectApply(PromiseProtoThen$LWS, promise$LWS, args$LWS); | ||
function PromiseThen$LWS(promise$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(PromiseProtoThen$LWS, promise$LWS, args$LWS); | ||
} | ||
@@ -379,43 +373,43 @@ | ||
function StringCharCodeAt(str$LWS, index$LWS) { | ||
return ReflectApply(StringProtoCharCodeAt$LWS, str$LWS, [index$LWS]); | ||
function StringCharCodeAt$LWS(str$LWS, index$LWS) { | ||
return ReflectApply$LWS(StringProtoCharCodeAt$LWS, str$LWS, [index$LWS]); | ||
} | ||
function StringIncludes(str$LWS, ...args$LWS) { | ||
return ReflectApply(StringProtoIncludes$LWS, str$LWS, args$LWS); | ||
function StringIncludes$LWS(str$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(StringProtoIncludes$LWS, str$LWS, args$LWS); | ||
} | ||
function StringMatch(str$LWS, regexp$LWS) { | ||
return ReflectApply(StringProtoMatch$LWS, str$LWS, [regexp$LWS]); | ||
function StringMatch$LWS(str$LWS, regexp$LWS) { | ||
return ReflectApply$LWS(StringProtoMatch$LWS, str$LWS, [regexp$LWS]); | ||
} | ||
function StringReplace(str$LWS, pattern$LWS, replacement$LWS) { | ||
return ReflectApply(StringProtoReplace$LWS, str$LWS, [pattern$LWS, replacement$LWS]); | ||
function StringReplace$LWS(str$LWS, pattern$LWS, replacement$LWS) { | ||
return ReflectApply$LWS(StringProtoReplace$LWS, str$LWS, [pattern$LWS, replacement$LWS]); | ||
} | ||
function StringSlice(str$LWS, ...args$LWS) { | ||
return ReflectApply(StringProtoSlice$LWS, str$LWS, args$LWS); | ||
function StringSlice$LWS(str$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(StringProtoSlice$LWS, str$LWS, args$LWS); | ||
} | ||
function StringSplit(str$LWS, ...args$LWS) { | ||
return ReflectApply(StringProtoSplit$LWS, str$LWS, args$LWS); | ||
function StringSplit$LWS(str$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(StringProtoSplit$LWS, str$LWS, args$LWS); | ||
} | ||
function StringSubstring(str$LWS, ...args$LWS) { | ||
return ReflectApply(StringProtoSubstring$LWS, str$LWS, args$LWS); | ||
function StringSubstring$LWS(str$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(StringProtoSubstring$LWS, str$LWS, args$LWS); | ||
} | ||
function StringStartsWith(str$LWS, ...args$LWS) { | ||
return ReflectApply(StringProtoStartsWith$LWS, str$LWS, args$LWS); | ||
function StringStartsWith$LWS(str$LWS, ...args$LWS) { | ||
return ReflectApply$LWS(StringProtoStartsWith$LWS, str$LWS, args$LWS); | ||
} | ||
function StringToLowerCase(str$LWS) { | ||
return ReflectApply(StringProtoToLowerCase$LWS, str$LWS, emptyArray); | ||
function StringToLowerCase$LWS(str$LWS) { | ||
return ReflectApply$LWS(StringProtoToLowerCase$LWS, str$LWS, []); | ||
} | ||
function StringToUpperCase(str$LWS) { | ||
return ReflectApply(StringProtoToUpperCase$LWS, str$LWS, emptyArray); | ||
function StringToUpperCase$LWS(str$LWS) { | ||
return ReflectApply$LWS(StringProtoToUpperCase$LWS, str$LWS, []); | ||
} | ||
function capitalizeFirstChar(str$LWS) { | ||
function capitalizeFirstChar$LWS(str$LWS) { | ||
const { | ||
@@ -429,16 +423,16 @@ length: length$LWS | ||
const upper$LWS = StringToUpperCase(str$LWS[0]); | ||
return length$LWS === 1 ? upper$LWS : upper$LWS + StringSlice(str$LWS, 1); | ||
const upper$LWS = StringToUpperCase$LWS(str$LWS[0]); | ||
return length$LWS === 1 ? upper$LWS : upper$LWS + StringSlice$LWS(str$LWS, 1); | ||
} | ||
function toString(value$LWS) { | ||
function toString$LWS(value$LWS) { | ||
try { | ||
return StringCtor$LWS(value$LWS); | ||
} catch (_unused$LWS) { | ||
return ''; | ||
} | ||
return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty | ||
} catch (_unused$LWS) {} | ||
return ''; | ||
} | ||
function toStringIfNotNullOrUndefined(value$LWS) { | ||
return value$LWS === null || value$LWS === undefined ? value$LWS : toString(value$LWS); | ||
function toStringIfNotNullOrUndefined$LWS(value$LWS) { | ||
return value$LWS === null || value$LWS === undefined ? value$LWS : toString$LWS(value$LWS); | ||
} | ||
@@ -451,28 +445,10 @@ | ||
function RegExpTest(regexp$LWS, content$LWS) { | ||
return ReflectApply(RegExpProtoTest$LWS, regexp$LWS, [toString(content$LWS)]); | ||
function RegExpTest$LWS(regexp$LWS, content$LWS) { | ||
return ReflectApply$LWS(RegExpProtoTest$LWS, regexp$LWS, [toString$LWS(content$LWS)]); | ||
} | ||
function escapeRegExp(string$LWS) { | ||
return StringReplace(string$LWS, specialCharRegExp$LWS, '\\$&'); | ||
} // To sanitizeArguments that require no transformation | ||
function toIgnore(value$LWS) { | ||
return value$LWS; | ||
function escapeRegExp$LWS(string$LWS) { | ||
return StringReplace$LWS(string$LWS, specialCharRegExp$LWS, '\\$&'); | ||
} | ||
function sanitizeArguments(args$LWS, sanitizers$LWS) { | ||
const argsLen$LWS = args$LWS.length; | ||
const sLen$LWS = sanitizers$LWS.length; | ||
const len$LWS = MathMin(argsLen$LWS, sLen$LWS); | ||
const sanitizedArgs$LWS = ArrayFrom(args$LWS); | ||
for (let i$LWS = 0; i$LWS < len$LWS; i$LWS += 1) { | ||
sanitizedArgs$LWS[i$LWS] = sanitizers$LWS[i$LWS](args$LWS[i$LWS]); | ||
} | ||
return sanitizedArgs$LWS; | ||
} | ||
const { | ||
@@ -483,14 +459,14 @@ add: SetProtoAdd$LWS, | ||
} = Set.prototype; | ||
const SetCtor = Set; | ||
const SetCtor$LWS = Set; | ||
function SetAdd(set$LWS, value$LWS) { | ||
return ReflectApply(SetProtoAdd$LWS, set$LWS, [value$LWS]); | ||
function SetAdd$LWS(set$LWS, value$LWS) { | ||
return ReflectApply$LWS(SetProtoAdd$LWS, set$LWS, [value$LWS]); | ||
} | ||
function SetDelete(set$LWS, value$LWS) { | ||
return ReflectApply(SetProtoDelete$LWS, set$LWS, [value$LWS]); | ||
function SetDelete$LWS(set$LWS, value$LWS) { | ||
return ReflectApply$LWS(SetProtoDelete$LWS, set$LWS, [value$LWS]); | ||
} | ||
function SetHas(set$LWS, value$LWS) { | ||
return ReflectApply(SetProtoHas$LWS, set$LWS, [value$LWS]); | ||
function SetHas$LWS(set$LWS, value$LWS) { | ||
return ReflectApply$LWS(SetProtoHas$LWS, set$LWS, [value$LWS]); | ||
} | ||
@@ -502,13 +478,13 @@ | ||
} = WeakMap.prototype; | ||
const WeakMapCtor = WeakMap; | ||
const WeakMapCtor$LWS = WeakMap; | ||
function WeakMapGet(weakMap$LWS, key$LWS) { | ||
return ReflectApply(WeakMapProtoGet$LWS, weakMap$LWS, [key$LWS]); | ||
function WeakMapGet$LWS(weakMap$LWS, key$LWS) { | ||
return ReflectApply$LWS(WeakMapProtoGet$LWS, weakMap$LWS, [key$LWS]); | ||
} | ||
function WeakMapSet(weakMap$LWS, key$LWS, value$LWS) { | ||
return ReflectApply(WeakMapProtoSet$LWS, weakMap$LWS, [key$LWS, value$LWS]); | ||
function WeakMapSet$LWS(weakMap$LWS, key$LWS, value$LWS) { | ||
return ReflectApply$LWS(WeakMapProtoSet$LWS, weakMap$LWS, [key$LWS, value$LWS]); | ||
} | ||
export { ArrayConcat, ArrayCtor, ArrayFilter, ArrayFrom, ArrayIncludes, ArrayIndexOf, ArrayIsArray, ArrayJoin, ArrayPop, ArrayProtoPush, ArrayPush, ArrayShallowClone, ArraySlice, ArraySome, DateNow, FunctionBind, JSONParse, JSONStringify, LIVE_OBJECT_SYMBOL, LockerSecurityError, MAGIC_OBJECT_SYMBOL, MapClear, MapCtor, MapEntries, MapForEach, MapGet, MapSet, MathMin, NumberToFixed, ObjectAssign, ObjectCreate, ObjectDefineProperties, ObjectFreeze, ObjectGetOwnPropertyDescriptors, ObjectGetOwnPropertyNames, ObjectGetOwnPropertySymbols, ObjectHasOwnProperty, ObjectIsFrozen, ObjectIsSealed, ObjectKeys, ObjectLookupOwnGetter, ObjectLookupOwnSetter, ObjectLookupOwnValue, ObjectPreventExtensions, ObjectSeal, PromiseReject, PromiseThen, ProxyCtor, ProxyRevocable, ReflectApply, ReflectConstruct, ReflectDefineProperty, ReflectDeleteProperty, ReflectGet, ReflectGetOwnPropertyDescriptor, ReflectGetPrototypeOf, ReflectHas, ReflectIsExtensible, ReflectOwnKeys$1$LWS as ReflectOwnKeys, ReflectPreventExtensions, ReflectSet, ReflectSetPrototypeOf$1$LWS as ReflectSetPrototypeOf, RegExpTest, SYMBOL_LIVE_OBJECT, SetAdd, SetCtor, SetDelete, SetHas, StringCharCodeAt, StringIncludes, StringMatch, StringReplace, StringSlice, StringSplit, StringStartsWith, StringSubstring, StringToLowerCase, StringToUpperCase, SymbolFor, SymbolIterator, WeakMapCtor, WeakMapGet, WeakMapSet, capitalizeFirstChar, createRevokedProxy, emptyArray, escapeRegExp, getTimestamp, isLiveObject, isMagicObject, isObject, isObjectLike, markLiveObject, markMagicObject, maskDistortion, sanitizeArguments, shallowCloneOptions, toBoolean, toIgnore, toSafeDescriptor, toSafeDescriptorMap, toString, toStringIfNotNullOrUndefined, wrap }; | ||
/*! version: 0.15.4 */ | ||
export { ArrayConcat$LWS as ArrayConcat, ArrayCtor$LWS as ArrayCtor, ArrayFilter$LWS as ArrayFilter, ArrayFrom$LWS as ArrayFrom, ArrayIncludes$LWS as ArrayIncludes, ArrayIndexOf$LWS as ArrayIndexOf, ArrayIsArray$LWS as ArrayIsArray, ArrayJoin$LWS as ArrayJoin, ArrayPop$LWS as ArrayPop, ArrayProtoPush$LWS as ArrayProtoPush, ArrayPush$LWS as ArrayPush, ArrayShallowClone$LWS as ArrayShallowClone, ArraySlice$LWS as ArraySlice, ArraySome$LWS as ArraySome, ArraySort$LWS as ArraySort, DateNow$LWS as DateNow, FunctionBind$LWS as FunctionBind, JSONParse$LWS as JSONParse, JSONStringify$LWS as JSONStringify, LIVE_OBJECT_SYMBOL$LWS as LIVE_OBJECT_SYMBOL, LOCKER_IDENTIFIER_MARKER$LWS as LOCKER_IDENTIFIER_MARKER, 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, ObjectCreate$LWS as ObjectCreate, ObjectDefineProperties$LWS as ObjectDefineProperties, ObjectFreeze$LWS as ObjectFreeze, ObjectGetOwnPropertyDescriptors$LWS as ObjectGetOwnPropertyDescriptors, ObjectGetOwnPropertyNames$LWS as ObjectGetOwnPropertyNames, ObjectGetOwnPropertySymbols$LWS as ObjectGetOwnPropertySymbols, ObjectHasOwnProperty$LWS as ObjectHasOwnProperty, ObjectIsFrozen$LWS as ObjectIsFrozen, ObjectIsSealed$LWS as ObjectIsSealed, ObjectKeys$LWS as ObjectKeys, ObjectLookupOwnGetter$LWS as ObjectLookupOwnGetter, ObjectLookupOwnSetter$LWS as ObjectLookupOwnSetter, ObjectLookupOwnValue$LWS as ObjectLookupOwnValue, ObjectPreventExtensions$LWS as ObjectPreventExtensions, ObjectSeal$LWS as ObjectSeal, 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, ReflectIsExtensible$LWS as ReflectIsExtensible, ReflectOwnKeys$1$LWS as ReflectOwnKeys, ReflectPreventExtensions$LWS as ReflectPreventExtensions, ReflectSet$LWS as ReflectSet, ReflectSetPrototypeOf$1$LWS as ReflectSetPrototypeOf, 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, 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, StringSubstring$LWS as StringSubstring, StringToLowerCase$LWS as StringToLowerCase, StringToUpperCase$LWS as StringToUpperCase, SymbolFor$LWS as SymbolFor, SymbolIterator$LWS as SymbolIterator, UNCOMPILED_LOCATION_NAME$LWS as UNCOMPILED_LOCATION_NAME, WeakMapCtor$LWS as WeakMapCtor, WeakMapGet$LWS as WeakMapGet, WeakMapSet$LWS as WeakMapSet, ZERO_WIDTH_JOINER$LWS as ZERO_WIDTH_JOINER, capitalizeFirstChar$LWS as capitalizeFirstChar, createRevokedProxy$LWS as createRevokedProxy, escapeRegExp$LWS as escapeRegExp, getTimestamp$LWS as getTimestamp, isLiveObject$LWS as isLiveObject, isObject$LWS as isObject, isObjectLike$LWS as isObjectLike, markLiveObject$LWS as markLiveObject, maskDistortion$LWS as maskDistortion, shallowCloneOptions$LWS as shallowCloneOptions, toBoolean$LWS as toBoolean, toSafeDescriptor$LWS as toSafeDescriptor, toSafeDescriptorMap$LWS as toSafeDescriptorMap, toString$LWS as toString, toStringIfNotNullOrUndefined$LWS as toStringIfNotNullOrUndefined, wrap$LWS as wrap }; | ||
/*! version: 0.15.5 */ |
{ | ||
"name": "@locker/shared", | ||
"version": "0.15.4", | ||
"version": "0.15.5", | ||
"license": "Salesforce Developer Agreement", | ||
@@ -23,3 +23,3 @@ "author": "Salesforce UI Security Team", | ||
], | ||
"gitHead": "bc643ba0793f6915a3c4ff4e95ac1cba6c1b5165" | ||
"gitHead": "9908c09daf0ae97dc6ea9afc4bfeee6dc8ad085d" | ||
} |
@@ -1,2 +0,1 @@ | ||
export declare const emptyArray: []; | ||
export declare const ArrayCtor: ArrayConstructor; | ||
@@ -20,2 +19,3 @@ export declare const ArrayFrom: { | ||
export declare function ArraySome(arr: any[], iteratee: Function): ReturnType<typeof Array.prototype.some>; | ||
export declare function ArraySort(arr: any[]): ReturnType<typeof Array.prototype.sort>; | ||
//# sourceMappingURL=Array.d.ts.map |
export * from './Array'; | ||
export * from './Basic'; | ||
export * from './Boolean'; | ||
export * from './constants'; | ||
export * from './Date'; | ||
@@ -10,3 +11,2 @@ export * from './Distortion'; | ||
export * from './LiveObject'; | ||
export * from './MagicObject'; | ||
export * from './Map'; | ||
@@ -20,3 +20,2 @@ export * from './Math'; | ||
export * from './RegExp'; | ||
export * from './Sanitize'; | ||
export * from './Set'; | ||
@@ -23,0 +22,0 @@ export * from './String'; |
@@ -0,2 +1,3 @@ | ||
export declare const NumberIsFinite: (number: unknown) => boolean; | ||
export declare function NumberToFixed(num: Number, digits?: number): ReturnType<typeof Number.prototype.toFixed>; | ||
//# sourceMappingURL=Number.d.ts.map |
@@ -19,6 +19,6 @@ export declare const ObjectAssign: { | ||
}, ObjectSeal: <T>(o: T) => T, ObjectIsSealed: (o: any) => boolean, ObjectIsFrozen: (o: any) => boolean, ObjectPreventExtensions: <T>(o: T) => T; | ||
export declare function ObjectHasOwnProperty(obj: any, key: PropertyKey): boolean; | ||
export declare function ObjectLookupOwnGetter(obj: any, key: PropertyKey): Function | undefined; | ||
export declare function ObjectLookupOwnSetter(obj: any, key: PropertyKey): Function | undefined; | ||
export declare function ObjectLookupOwnValue(obj: any, key: PropertyKey): Function | undefined; | ||
export declare function ObjectHasOwnProperty(object: any, key: PropertyKey): boolean; | ||
export declare function ObjectLookupOwnGetter(object: any, key: PropertyKey): Function | undefined; | ||
export declare function ObjectLookupOwnSetter(object: any, key: PropertyKey): Function | undefined; | ||
export declare function ObjectLookupOwnValue(object: any, key: PropertyKey): Function | undefined; | ||
//# sourceMappingURL=Object.d.ts.map |
@@ -0,1 +1,2 @@ | ||
export declare const StringCtor: StringConstructor; | ||
export declare function StringCharCodeAt(str: string, index: number): ReturnType<typeof String.prototype.charCodeAt>; | ||
@@ -2,0 +3,0 @@ export declare function StringIncludes(str: string, ...args: Parameters<typeof String.prototype.includes>): ReturnType<typeof String.prototype.includes>; |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64006
227
3
7
36
52
1026
1