@locker/shared
Advanced tools
Comparing version 0.11.15 to 0.11.16
@@ -119,2 +119,7 @@ /** | ||
const FunctionCall = unapply(Function.prototype.call); | ||
function wrap(func, wrapper) { | ||
return function wrapped(...args) { | ||
return ReflectApply(wrapper, this, [func, args]); | ||
}; | ||
} | ||
@@ -290,2 +295,3 @@ const { parse: JSONParse, stringify: JSONStringify } = JSON; | ||
exports.unconstruct = unconstruct; | ||
/** version: 0.11.15 */ | ||
exports.wrap = wrap; | ||
/** version: 0.11.16 */ |
@@ -115,2 +115,7 @@ /** | ||
const FunctionCall = unapply(Function.prototype.call); | ||
function wrap(func, wrapper) { | ||
return function wrapped(...args) { | ||
return ReflectApply(wrapper, this, [func, args]); | ||
}; | ||
} | ||
@@ -190,3 +195,3 @@ const { parse: JSONParse, stringify: JSONStringify } = JSON; | ||
export { ArrayConcat, ArrayFilter, ArrayForEach, ArrayFrom, ArrayIncludes, ArrayIsArray, ArrayJoin, ArrayMap, ArrayPush, ArraySome, ErrorCreate, FunctionBind, FunctionCall, JSONParse, JSONStringify, LockerRangeError, LockerSecurityError, MapConcat, MapCreate, MapEntries, MapForEach, MapGet, MapIteratorCreate, MapSet, MathMin, ObjectAssign, ObjectCreate, ObjectDefineProperty, ObjectFreeze, ObjectGetOwnPropertyDescriptors, ObjectGetOwnPropertyNames, ObjectGetOwnPropertySymbols, ObjectHasOwnProperty, ObjectIsFrozen, ObjectIsSealed, ObjectKeys, ObjectPreventExtensions, ObjectSeal, ProxyCreate, ProxyRevocable, RangeErrorCreate, ReflectApply, ReflectConstruct, ReflectDefineProperty, ReflectDeleteProperty, ReflectGet, ReflectGetOwnPropertyDescriptor, ReflectGetPrototypeOf, ReflectHas, ReflectIsExtensible, ReflectOwnKeys, ReflectPreventExtensions, ReflectSet, ReflectSetPrototypeOf, RegExpTest, SetAdd, SetCreate, SetDelete, SetHas, StringCharCodeAt, StringEndsWith, StringIncludes, StringIndexOf, StringMatch, StringReplace, StringSplit, StringStartsWith, StringSubstring, StringToLowerCase, StringToUpperCase, StringTrim, SymbolFor, SymbolIterator, TypeErrorCreate, WeakMapCreate, WeakMapGet, WeakMapHas, WeakMapSet, createRevokedProxy, createSafeObject, defaults, isFunction, isNull, isNullOrUndefined, isObject, isObjectLike, isTrue, isUndefined, maskDistortion, sanitizeArguments, toBoolean, toIgnore, toString, toStringIfNotNullOrUndefined, unapply, unconstruct }; | ||
/** version: 0.11.15 */ | ||
export { ArrayConcat, ArrayFilter, ArrayForEach, ArrayFrom, ArrayIncludes, ArrayIsArray, ArrayJoin, ArrayMap, ArrayPush, ArraySome, ErrorCreate, FunctionBind, FunctionCall, JSONParse, JSONStringify, LockerRangeError, LockerSecurityError, MapConcat, MapCreate, MapEntries, MapForEach, MapGet, MapIteratorCreate, MapSet, MathMin, ObjectAssign, ObjectCreate, ObjectDefineProperty, ObjectFreeze, ObjectGetOwnPropertyDescriptors, ObjectGetOwnPropertyNames, ObjectGetOwnPropertySymbols, ObjectHasOwnProperty, ObjectIsFrozen, ObjectIsSealed, ObjectKeys, ObjectPreventExtensions, ObjectSeal, ProxyCreate, ProxyRevocable, RangeErrorCreate, ReflectApply, ReflectConstruct, ReflectDefineProperty, ReflectDeleteProperty, ReflectGet, ReflectGetOwnPropertyDescriptor, ReflectGetPrototypeOf, ReflectHas, ReflectIsExtensible, ReflectOwnKeys, ReflectPreventExtensions, ReflectSet, ReflectSetPrototypeOf, RegExpTest, SetAdd, SetCreate, SetDelete, SetHas, StringCharCodeAt, StringEndsWith, StringIncludes, StringIndexOf, StringMatch, StringReplace, StringSplit, StringStartsWith, StringSubstring, StringToLowerCase, StringToUpperCase, StringTrim, SymbolFor, SymbolIterator, TypeErrorCreate, WeakMapCreate, WeakMapGet, WeakMapHas, WeakMapSet, createRevokedProxy, createSafeObject, defaults, isFunction, isNull, isNullOrUndefined, isObject, isObjectLike, isTrue, isUndefined, maskDistortion, sanitizeArguments, toBoolean, toIgnore, toString, toStringIfNotNullOrUndefined, unapply, unconstruct, wrap }; | ||
/** version: 0.11.16 */ |
{ | ||
"name": "@locker/shared", | ||
"version": "0.11.15", | ||
"version": "0.11.16", | ||
"license": "Salesforce Developer Agreement", | ||
@@ -24,3 +24,3 @@ "author": "Salesforce UI Security Team", | ||
}, | ||
"gitHead": "3195c1166c8dddbe4494deee374365371377051e" | ||
"gitHead": "d8cc8542f5db478e0f94877d6303c544f9a6528f" | ||
} |
export declare const FunctionBind: Function; | ||
export declare const FunctionCall: Function; | ||
export declare function wrap(func: Function, wrapper: Function): Function; |
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
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
29465
590