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
229
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.16.6 to 0.16.7

33

dist/index.cjs.js

@@ -402,2 +402,15 @@ /*!

function isConvertibleToString$LWS(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}` !== undefined; // eslint-disable-next-line no-empty
} catch (_unused7$LWS) {}
}
return false;
}
function isStringObject$LWS(value$LWS) {

@@ -413,3 +426,3 @@ if (typeof value$LWS === 'object' && value$LWS !== null) {

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

@@ -454,4 +467,7 @@

try {
// Attempt to coerce `value` to a string with the String() constructor.
// Section 22.1.1.1 String ( value )
// https://tc39.es/ecma262/#sec-string-constructor-string-value
return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
} catch (_unused8$LWS) {}
} catch (_unused9$LWS) {}

@@ -492,3 +508,3 @@ return '';

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

@@ -525,3 +541,3 @@ return false;

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

@@ -565,3 +581,3 @@ return false;

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

@@ -587,3 +603,3 @@

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

@@ -614,3 +630,3 @@

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

@@ -1042,2 +1058,3 @@

exports.isBooleanObject = isBooleanObject$LWS;
exports.isConvertibleToString = isConvertibleToString$LWS;
exports.isDate = isDate$LWS;

@@ -1066,2 +1083,2 @@ exports.isLiveObject = isLiveObject$LWS;

exports.wrap = wrap$LWS;
/*! version: 0.16.6 */
/*! version: 0.16.7 */

@@ -397,2 +397,15 @@ /*!

function isConvertibleToString$LWS(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}` !== undefined; // eslint-disable-next-line no-empty
} catch (_unused7$LWS) {}
}
return false;
}
function isStringObject$LWS(value$LWS) {

@@ -408,3 +421,3 @@ if (typeof value$LWS === 'object' && value$LWS !== null) {

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

@@ -449,4 +462,7 @@

try {
// Attempt to coerce `value` to a string with the String() constructor.
// Section 22.1.1.1 String ( value )
// https://tc39.es/ecma262/#sec-string-constructor-string-value
return StringCtor$LWS(value$LWS); // eslint-disable-next-line no-empty
} catch (_unused8$LWS) {}
} catch (_unused9$LWS) {}

@@ -487,3 +503,3 @@ return '';

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

@@ -520,3 +536,3 @@ return false;

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

@@ -560,3 +576,3 @@ return false;

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

@@ -582,3 +598,3 @@

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

@@ -609,3 +625,3 @@

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

@@ -920,3 +936,3 @@

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, 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, 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, RegExpExec$LWS as RegExpExec, 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, 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, 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, indexOfPragma$LWS as indexOfPragma, isArrayBuffer$LWS as isArrayBuffer, isBigIntObject$LWS as isBigIntObject, isBooleanObject$LWS as isBooleanObject, 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.16.6 */
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, 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, 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, RegExpExec$LWS as RegExpExec, 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, 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, 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, indexOfPragma$LWS as indexOfPragma, 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.16.7 */
{
"name": "@locker/shared",
"version": "0.16.6",
"version": "0.16.7",
"license": "Salesforce Developer Agreement",

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

],
"gitHead": "617692312551857a5929aaa9219ef1d6fe75097d"
"gitHead": "daba783ec872f18b6bc634dc2bab0333bb00e4e3"
}

@@ -5,2 +5,3 @@ export declare const StringCtor: StringConstructor;

export declare function escapeQuotes(string: string, quoteChar?: string): string;
export declare function isConvertibleToString(value: any): boolean;
export declare function isStringObject(value: any): boolean;

@@ -7,0 +8,0 @@ export declare function StringIncludes(string: string, ...args: Parameters<typeof String.prototype.includes>): ReturnType<typeof String.prototype.includes>;

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