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
227
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.18.11 to 0.18.12

2

dist/index.min.cjs.js

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

var e;Object.defineProperty(exports,"__esModule",{value:!0});const{apply:t,construct:r,defineProperty:o,deleteProperty:n,get:s,getOwnPropertyDescriptor:c,getPrototypeOf:p,has:i,isExtensible:a,ownKeys:l,preventExtensions:u,set:f,setPrototypeOf:x}=Reflect,y=Object,{assign:_,freeze:S,defineProperties:b,getOwnPropertyDescriptors:g,getOwnPropertySymbols:O,keys:R,preventExtensions:d,prototype:E}=y,{hasOwn:h}=y,{__lookupGetter__:P,__lookupSetter__:N,hasOwnProperty:A}=E,{toString:I}=E;const j="function"==typeof h?h:function(e,r){return t(A,e,[r])};function T(e,r){return null!=e&&j(e,r)?t(P,e,[r]):void 0}const m=Symbol,{asyncIterator:L,for:M,iterator:B,toStringTag:k,unscopables:v}=m,{toString:D,valueOf:w}=m.prototype,C=Array,{prototype:G}=C,{at:W,concat:F,copyWithin:U,entries:K,every:$,fill:V,findIndex:z,flat:Y,flatMap:H,forEach:J,keys:X,lastIndexOf:Q,map:q,pop:Z,reduce:ee,reduceRight:te,reverse:re,some:oe,splice:ne,toLocaleString:se,toString:ce,values:pe,[B]:ie}=G,ae=S(_({__proto__:null},G[v])),{includes:le,sort:ue,unshift:fe}=G,{filter:xe,find:ye,indexOf:_e,join:Se,push:be,shift:ge,slice:Oe}=G,{isArray:Re}=C;const de=ArrayBuffer,{isView:Ee}=de,he=T(de.prototype,"byteLength"),Pe="function"==typeof BigInt,Ne=Pe?BigInt.prototype.valueOf:void 0,{valueOf:Ae}=Boolean.prototype,Ie=`${function e(){return e.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),je=M("@@lockerNearMembraneProxyMasked"),Te=M("@@lockerNearMembraneSerializedValue"),me=M("@@lockerNearMembrane"),Le=M("@@lockerLiveValue"),Me=Date,{now:Be}=Me,{valueOf:ke}=Me.prototype,ve=Error,De=TypeError;class we extends Error{constructor(e){super(`Lightning Web Security: ${e}`)}}const Ce=Proxy,{revocable:Ge}=Ce;const{bind:We,toString:Fe}=Function.prototype;const Ue=Map,{prototype:Ke}=Ue,{clear:$e,delete:Ve,forEach:ze,get:Ye,has:He,keys:Je,values:Xe,[B]:Qe,[k]:qe}=Ke,{entries:Ze,set:et}=Ke,tt=T(Ke,"size");function rt(e){return x(e,null),e.clear=$e,e.delete=Ve,e.entries=Ze,e.forEach=ze,e.get=Ye,e.has=He,e.keys=Je,e.set=et,o(e,"size",{__proto__:null,configurable:!0,enumerable:!0,get:tt,set:void 0}),e.values=Xe,e[B]=Qe,e[k]=qe,x(e,Ke),e}const ot=Number,{isFinite:nt,isInteger:st}=ot,{toFixed:ct,valueOf:pt}=ot.prototype,it=String,{prototype:at}=it,{endsWith:lt,includes:ut,indexOf:ft,match:xt,replace:yt,slice:_t,split:St,startsWith:bt,toLowerCase:gt,toUpperCase:Ot,valueOf:Rt}=at,dt={__proto__:null,'"':/\\?"/g,"'":/\\?'/g},Et="function"==typeof URL?URL:void 0,ht=null==Et||null==(e=Et.prototype)?void 0:e.toString,Pt=/^[\s\S]+?\{[\t ]*(?:\r?\n)?([\s\S]*?)(?:\r?\n)?[\t ]*\}$|[\s\S]+?=>\s*([\s\S]+?)\s*$/;const Nt=RegExp,{prototype:At}=Nt,{exec:It,test:jt}=At,Tt=T(At,"source"),mt=/[\\^$.*+?()[\]{}|]/g;const Lt=Set,{prototype:Mt}=Lt,{clear:Bt,delete:kt,entries:vt,forEach:Dt,has:wt,keys:Ct,[B]:Gt,[k]:Wt}=Mt,{add:Ft,values:Ut}=Mt,Kt=T(Mt,"size");const $t=WeakMap,{prototype:Vt}=$t,{has:zt}=Vt,{delete:Yt,get:Ht,set:Jt,[k]:Xt}=Vt;const Qt=WeakSet,{prototype:qt}=Qt,{has:Zt}=qt,{add:er,delete:tr,[k]:rr}=qt;function or(e){return x(e,null),e.add=er,e.delete=tr,e.has=Zt,e[k]=rr,x(e,qt),e}const{toStringTag:nr}=Symbol,sr=/[(`.[+\-/*%<>=,?^&]/,cr=/\r\n?|\n|\u2028|\u2029/,pr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ir=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function ar(e){if(null===e)return"[object Null]";if(void 0===e)return"[object Undefined]";switch(typeof e){case"bigint":return"[object BigInt]";case"boolean":return"[object Boolean]";case"function":return"[object Function]";case"number":return"[object Number]";case"string":return"[object String]";case"symbol":return"[object Symbol]"}return Re(e)?"[object Array]":nr in e?function(e){try{if("byteLength"in e)return t(he,e,[]),"[object ArrayBuffer]"}catch(e){}try{if("toLocaleDateString"in e)return t(ke,e,[]),"[object Date]"}catch(e){}try{if("get"in e&&"size"in e)return t(tt,e,[]),"[object Map]"}catch(e){}try{if("add"in e&&"size"in e)return t(Kt,e,[]),"[object Set]"}catch(e){}try{if("get"in e&&!("size"in e))return t(zt,e,[]),"[object WeakMap]"}catch(e){}try{if("add"in e&&!("size"in e))return t(Zt,e,[]),"[object WeakSet]"}catch(e){}try{if("toPrecision"in e)return t(pt,e,[]),"[object Number]"}catch(e){}try{if("description"in e)return t(w,e,[]),"[object Symbol]"}catch(e){}try{if(j(e,"lastIndex"))return t(Tt,e,[]),"[object RegExp]"}catch(e){}try{if(j(e,"length"))return t(Rt,e,[]),"[object String]"}catch(e){}try{return t(Ae,e,[]),"[object Boolean]"}catch(e){}if(Pe)try{return t(Ne,e,[]),"[object BigInt]"}catch(e){}return"[object Object]"}(e):t(I,e,[])}const lr="undefined"==typeof performance?Be:t(We,performance.now,[performance]);const{parse:ur}=JSON,{stringify:fr}=JSON;function xr(e){if("object"==typeof e&&null!==e||"function"==typeof e)return Te in e?void 0:e[Te]}function yr(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&(!(me in e)&&!0===e[me])}const _r=rt(new Ue);function Sr(e,r){const o=new Ue,n=t(Ze,e,[]);let{length:s}=r;for(;;){const{done:e,value:c}=n.next();if(e)break;const{0:p,1:i}=c;let a;r[s++]=[e=>{a=e},p],r[s++]=[e=>{t(et,o,[a,e])},i]}return o}function br(e){const{flags:t,source:r}=ur(xr(e));return new Nt(r,t)}function gr(e,r){const o=new Lt,n=t(Ut,e,[]);let{length:s}=r;for(;;){const{done:e,value:c}=n.next();if(e)break;r[s++]=[e=>{t(Ft,o,[e])},c]}return o}function Or(e,t,r){const o=R(t);let{length:n}=e;for(let s=0,{length:c}=o;s<c;s+=1){const c=o[s],p=t[c];e[n++]=[e=>{r[c]=e},p]}}const Rr=console,{warn:dr}=Rr;const Er=or(new Qt);function hr(e,r=0){if(1&r||2&r||64&r||null==e||e===E||e===At)return!1;if("function"==typeof e){try{return Er.has(e)||j(e,Le)}catch(e){}return!1}if("object"==typeof e){try{if(Er.has(e)||j(e,Le))return!0}catch(e){}let o;try{if(({constructor:o}=e),o===y)return!0}catch(e){}try{if(null===p(e)&&("function"!=typeof o||o.prototype!==e))return!0}catch(e){}if(0===r){try{if(Re(e))return!0}catch(e){return!1}if(Ee(e))return!0}try{if(j(e,"lastIndex"))return t(Tt,e,[]),!0}catch(e){}try{if("byteLength"in e)return t(he,e,[]),!0}catch(e){}}return!1}const{min:Pr}=Math;function Nr(e){return`LSKey-${e}$`}function Ar(e){return`LSKey[${e}]`}const Ir=Promise,{catch:jr,then:Tr}=Ir.prototype,mr=Ir.resolve.bind(Ir),Lr=Ir.reject.bind(Ir);exports.ArrayBufferIsView=Ee,exports.ArrayBufferProtoByteLengthGetter=he,exports.ArrayConcat=function(e,...r){const o=t(Oe,e,[0]);for(let e=0,{length:n}=r;e<n;e+=1){const n=r[e];Re(n)?t(be,o,n):o[o.length]=n}return o},exports.ArrayCtor=C,exports.ArrayIsArray=Re,exports.ArrayProtoFilter=xe,exports.ArrayProtoFind=ye,exports.ArrayProtoIncludes=le,exports.ArrayProtoIndexOf=_e,exports.ArrayProtoJoin=Se,exports.ArrayProtoPush=be,exports.ArrayProtoShift=ge,exports.ArrayProtoSlice=Oe,exports.ArrayProtoSort=ue,exports.ArrayProtoUnshift=fe,exports.BigIntProtoValueOf=Ne,exports.BooleanProtoValueOf=Ae,exports.CHAR_ELLIPSIS="…",exports.CHAR_QUOTE_DOUBLE='"',exports.CHAR_QUOTE_SINGLE="'",exports.DateNow=Be,exports.DateProtoValueOf=ke,exports.ERR_ILLEGAL_PROPERTY_ACCESS="Illegal property access.",exports.ERR_INVALID_SANDBOX_KEY="Invalid sandbox key.",exports.ErrorCtor=ve,exports.FunctionProtoBind=We,exports.FunctionProtoToString=Fe,exports.JSONParse=ur,exports.JSONStringify=fr,exports.LOCKER_IDENTIFIER_MARKER="$LWS",exports.LOCKER_NEAR_MEMBRANE_PROXY_MASKED_SYMBOL=je,exports.LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL=Te,exports.LOCKER_NEAR_MEMBRANE_SYMBOL=me,exports.LOCKER_SERVICE_KEY="LSKey",exports.LOCKER_SERVICE_KEY_LOWERED="lskey",exports.LOCKER_UNMINIFIED_FLAG=Ie,exports.LockerSecurityError=we,exports.MapCtor=Ue,exports.MapProtoEntries=Ze,exports.MapProtoSet=et,exports.MapProtoSizeGetter=tt,exports.MathMin=Pr,exports.NumberIsFinite=nt,exports.NumberIsInteger=st,exports.NumberProtoToFixed=ct,exports.NumberProtoValueOf=pt,exports.ObjectAssign=_,exports.ObjectCtor=y,exports.ObjectDefineProperties=b,exports.ObjectFreeze=S,exports.ObjectGetOwnPropertyDescriptors=g,exports.ObjectGetOwnPropertySymbols=O,exports.ObjectHasOwn=j,exports.ObjectKeys=R,exports.ObjectLookupOwnGetter=T,exports.ObjectLookupOwnSetter=function(e,r){return null!=e&&j(e,r)?t(N,e,[r]):void 0},exports.ObjectLookupOwnValue=function(e,t){return null!=e&&j(e,t)?e[t]:void 0},exports.ObjectPreventExtensions=d,exports.ObjectProto=E,exports.ObjectProtoToString=I,exports.PromiseCtor=Ir,exports.PromiseProtoCatch=jr,exports.PromiseProtoThen=Tr,exports.PromiseReject=Lr,exports.PromiseResolve=mr,exports.ProxyCtor=Ce,exports.ReflectApply=t,exports.ReflectConstruct=r,exports.ReflectDefineProperty=o,exports.ReflectDeleteProperty=n,exports.ReflectGet=s,exports.ReflectGetOwnPropertyDescriptor=c,exports.ReflectGetPrototypeOf=p,exports.ReflectHas=i,exports.ReflectIsExtensible=a,exports.ReflectOwnKeys=l,exports.ReflectPreventExtensions=u,exports.ReflectSet=f,exports.ReflectSetPrototypeOf=x,exports.RegExpCtor=Nt,exports.RegExpProto=At,exports.RegExpProtoExec=It,exports.RegExpProtoSourceGetter=Tt,exports.RegExpProtoTest=jt,exports.SANDBOX_EVAL_CONTEXT_NAME="$lockerEvalContext$",exports.SANDBOX_EVAL_HELPERS_NAME="$lockerEvalHelpers$",exports.SUPPORTS_BIG_INT=Pe,exports.SYMBOL_LIVE_OBJECT=Le,exports.SetCtor=Lt,exports.SetProtoAdd=Ft,exports.SetProtoSizeGetter=Kt,exports.SetProtoValues=Ut,exports.StringCtor=it,exports.StringProtoEndsWith=lt,exports.StringProtoIncludes=ut,exports.StringProtoIndexOf=ft,exports.StringProtoMatch=xt,exports.StringProtoReplace=yt,exports.StringProtoSlice=_t,exports.StringProtoSplit=St,exports.StringProtoStartsWith=bt,exports.StringProtoToLowerCase=gt,exports.StringProtoToUpperCase=Ot,exports.StringProtoValueOf=Rt,exports.SymbolAsyncIterator=L,exports.SymbolFor=M,exports.SymbolIterator=B,exports.SymbolProtoToString=D,exports.SymbolProtoValueOf=w,exports.SymbolToStringTag=k,exports.SymbolUnscopables=v,exports.TO_STRING_BRAND_ARRAY="[object Array]",exports.TO_STRING_BRAND_ARRAY_BUFFER="[object ArrayBuffer]",exports.TO_STRING_BRAND_BIG_INT="[object BigInt]",exports.TO_STRING_BRAND_BOOLEAN="[object Boolean]",exports.TO_STRING_BRAND_DATE="[object Date]",exports.TO_STRING_BRAND_ERROR="[object Error]",exports.TO_STRING_BRAND_FUNCTION="[object Function]",exports.TO_STRING_BRAND_MAP="[object Map]",exports.TO_STRING_BRAND_NULL="[object Null]",exports.TO_STRING_BRAND_NUMBER="[object Number]",exports.TO_STRING_BRAND_OBJECT="[object Object]",exports.TO_STRING_BRAND_REG_EXP="[object RegExp]",exports.TO_STRING_BRAND_SET="[object Set]",exports.TO_STRING_BRAND_STRING="[object String]",exports.TO_STRING_BRAND_SYMBOL="[object Symbol]",exports.TO_STRING_BRAND_UNDEFINED="[object Undefined]",exports.TO_STRING_BRAND_WEAK_MAP="[object WeakMap]",exports.TO_STRING_BRAND_WEAK_SET="[object WeakSet]",exports.TypeErrorCtor=De,exports.UNCOMPILED_LOCATION_NAME="uncompiledLocation$LWS",exports.UNCOMPILED_TOP_NAME="uncompiledTop$LWS",exports.WEBPACK_REQUIRE_NAME="__webpack_require__",exports.WeakMapCtor=$t,exports.WeakMapProtoHas=zt,exports.WeakSetCtor=Qt,exports.WeakSetProtoHas=Zt,exports.capitalizeFirstChar=function(e){const{length:r}=e;if(r){const o=t(Ot,e[0],[]);return 1===r?o:o+t(_t,e,[1])}return""},exports.consoleWarn=function(...e){t(dr,Rr,e)},exports.createRevokedProxy=function(e){const t=Ge(e,{__proto__:null});return t.revoke(),t.proxy},exports.enquote=function(e,r="'"){return r+t(yt,e,[dt[r],`\\${r}`])+r},exports.escapeRegExp=function(e){return t(yt,e,[mt,"\\$&"])},exports.extractFunctionBodySource=function(e){var r,o;const n=t(Fe,e,[]),s=t(xt,n,[Pt]);return null!=(r=null!=(o=null==s?void 0:s[1])?o:null==s?void 0:s[2])?r:""},exports.getBrand=ar,exports.getNamespaceMarker=Nr,exports.getNearMembraneProxySerializedValue=xr,exports.getStorageNamespaceMarker=Ar,exports.getTimestamp=lr,exports.identity=function(e){return e},exports.indexOfPragma=function(e,r){let o=0;for(;;){pr.lastIndex=o,o+=t(It,pr,[e])[0].length;const n=t(It,ir,[t(_t,e,[o])]);if(null===n)return-1;if((n[1]||n[2])===r){pr.lastIndex=o+n[0].length;const r=t(It,pr,[e]),s=r.index+r[0].length,c=e[s];if(";"===c||"}"===c)return o;const p=s+1;if(t(jt,cr,[r[0]])&&!("!"===c&&p<e.length&&"="===e[p]||t(jt,sr,[c])))return o}o+=n[0].length,pr.lastIndex=o,o+=t(It,pr,[e])[0].length,";"===e[o]&&(o+=1)}},exports.isConvertibleToString=function(e){if("symbol"!=typeof e)try{return void 0!==`${e}`}catch(e){}return!1},exports.isNearMembraneProxy=yr,exports.isObject=function(e){return"object"==typeof e&&null!==e},exports.isObjectLike=function(e){return"object"==typeof e&&null!==e||"function"==typeof e},exports.isProxyMaskedFunction=function(e){return"function"==typeof e&&!(je in e)&&!0===e[je]},exports.isTargetLive=hr,exports.markTargetAsLive=function(e){return("object"!=typeof e||null===e)&&"function"!=typeof e||hr(e)||o(e,Le,{__proto__:null,value:void 0}),e},exports.noop=function(){},exports.partialStructuredClone=function(e){let r=e;if("object"==typeof e&&null!==e){try{r=function(e){let r;const o=[[e=>{r=e},e]];e:for(;o.length;){const{0:e,1:r}=t(ge,o,[]);if(null==r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||"bigint"==typeof r){e(r);continue e}if("symbol"==typeof r){e(r);break e}let n=_r.get(r);if(n){e(n);continue e}const s=ar(r);switch(s){case"[object Object]":{const e=p(r);e!==E&&null!==e&&null!==p(e)||(n={},Or(o,r,n));break}case"[object Array]":n=C(r.length),Or(o,r,n);break;case"[object Map]":n=Sr(r,o);break;case"[object Set]":n=gr(r,o)}if(void 0===n){if(!yr(r)){_r.set(r,r),e(r);continue e}switch(s){case"[object RegExp]":n=br(r);break;case"[object Boolean]":case"[object Number]":case"[object BigInt]":case"[object String]":n=y(xr(r))}}if(void 0===n){e(r);break e}_r.set(r,n),e(n)}return r}(e)}catch(e){}_r.clear()}return r},exports.prependNamespaceMarker=function(e,t){return`${Nr(t)}${e}`},exports.prependStorageNamespaceMarker=function(e,t){return`${Ar(t)}${e}`},exports.proxyMaskFunction=function(e,y,_){let S=t,b=r,g=o,O=s,R=c,d=i,E=f;_&&({apply:S=t,construct:b=r,defineProperty:g=o,get:O=s,getOwnPropertyDescriptor:R=c,has:d=i,set:E=f}=_);let h=!1,P=!1,N=0;const A=new Ce(y,{apply:(t,r,o)=>(N=1,r!==A&&r!==y||(r=e),S(e,r,o)),construct:(t,r,o)=>(N=2,o!==A&&o!==y||(o=e),b(e,r,o)),defineProperty(e,t,r){if(N=4,t===je)throw new De("Illegal property access.");return g(e,t,r)},deleteProperty:(e,t)=>(N=32,n(e,t)),get(e,t,r){h&&(h=128===N),P&&(P=h),N=16;const o=t===je;if(P&&o)return!0;const n=O(e,t,r,h);if(void 0!==n&&o)throw new De("Illegal property access.");return n},getOwnPropertyDescriptor(e,t){N=32;const r=R(e,t);if(r&&t===je)throw new De("Illegal property access.");return r},getPrototypeOf:e=>(N=64,p(e)),has(e,t){N=128;const r=d(e,t),o=t===je;if(r){if(h=!1,o)throw new De("Illegal property access.")}else h=!0,P=o;return r},isExtensible:e=>(N=256,a(e)),ownKeys:e=>(N=512,l(e)),preventExtensions:e=>(N=1024,u(e)),set(e,t,r,o){if(N=2048,t===je)throw new De("Illegal property access.");return E(e,t,r,o)},setPrototypeOf:(e,t)=>(N=4096,x(e,t))});return A},exports.removeNamespaceMarker=function(e,r){if("string"==typeof e){const o=Nr(r);return t(bt,e,[o])?t(_t,e,[o.length]):e}return""},exports.removeStorageNamespaceMarker=function(e,r){if("string"==typeof e){const o=Ar(r);return t(bt,e,[o])?t(_t,e,[o.length]):e}return""},exports.shallowCloneArray=function(e){return t(Oe,e,[0])},exports.shallowCloneOptions=function(e){const t=l(e),r={__proto__:null};for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];r[n]=e[n]}return r},exports.startsWithNamespaceMarker=function(e,r){return"string"==typeof e&&t(bt,e,[Nr(r)])},exports.startsWithStorageNamespaceMarker=function(e,r){return"string"==typeof e&&t(bt,e,[Ar(r)])},exports.toSafeArray=function(e){return x(e,null),e.at=W,e.concat=F,e.copyWithin=U,e.entries=K,e.every=$,e.fill=V,e.filter=xe,e.find=ye,e.findIndex=z,e.flat=Y,e.flatMap=H,e.forEach=J,e.includes=le,e.indexOf=_e,e.join=Se,e.keys=X,e.lastIndexOf=Q,e.map=q,e.pop=Z,e.push=be,e.reduce=ee,e.reduceRight=te,e.reverse=re,e.shift=ge,e.slice=Oe,e.some=oe,e.sort=ue,e.splice=ne,e.toLocaleString=se,e.toString=ce,e.unshift=fe,e.values=pe,e[B]=ie,e[v]=ae,x(e,G),e},exports.toSafeMap=rt,exports.toSafeSet=function(e){return x(e,null),e.add=Ft,e.clear=Bt,e.delete=kt,e.entries=vt,e.forEach=Dt,e.has=wt,e.keys=Ct,o(e,"size",{__proto__:null,configurable:!0,enumerable:!0,get:Kt,set:void 0}),e.values=Ut,e[B]=Gt,e[k]=Wt,x(e,Mt),e},exports.toSafeTemplateStringValue=function(e){if("string"==typeof e)return e;try{if("function"==typeof e)return t(Fe,e,[]);if("object"==typeof e&&null!==e){if(Et&&e instanceof Et)return t(ht,e,[]);const r=t(I,e,[]);return"[object Symbol]"===r?t(D,e,[]):r}return"symbol"==typeof e?t(D,e,[]):it(e)}catch(e){}return"[object Unknown]"},exports.toSafeWeakMap=function(e){return x(e,null),e.delete=Yt,e.get=Ht,e.has=zt,e.set=Jt,e[k]=Xt,x(e,Vt),e},exports.toSafeWeakSet=or,exports.toString=function(e){return"string"==typeof e?e:`${e}`},exports.trackAsLiveTarget=function(e){return Er.add(e),e};
/*! version: 0.18.11 */
/*! version: 0.18.12 */

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

var e;const{apply:t,construct:r,defineProperty:o,deleteProperty:n,get:a,getOwnPropertyDescriptor:s,getPrototypeOf:c,has:i,isExtensible:l,ownKeys:u,preventExtensions:f,set:p,setPrototypeOf:y}=Reflect,S=Object,{assign:_,freeze:b,defineProperties:g,getOwnPropertyDescriptors:O,getOwnPropertySymbols:R,keys:E,preventExtensions:d,prototype:h}=S,{hasOwn:P}=S,{__lookupGetter__:N,__lookupSetter__:A,hasOwnProperty:I}=h,{toString:j}=h;function T(e){return"object"==typeof e&&null!==e}function m(e){return"object"==typeof e&&null!==e||"function"==typeof e}const L="function"==typeof P?P:function(e,r){return t(I,e,[r])};function M(e,r){return null!=e&&L(e,r)?t(N,e,[r]):void 0}function B(e,r){return null!=e&&L(e,r)?t(A,e,[r]):void 0}function k(e,t){return null!=e&&L(e,t)?e[t]:void 0}const v=Symbol,{asyncIterator:x,for:D,iterator:w,toStringTag:C,unscopables:G}=v,{toString:W,valueOf:F}=v.prototype,U=Array,{prototype:K}=U,{at:$,concat:V,copyWithin:z,entries:Y,every:H,fill:J,findIndex:X,flat:Q,flatMap:q,forEach:Z,keys:ee,lastIndexOf:te,map:re,pop:oe,reduce:ne,reduceRight:ae,reverse:se,some:ce,splice:ie,toLocaleString:le,toString:ue,values:fe,[w]:pe}=K,ye=b(_({__proto__:null},K[G])),{includes:Se,sort:_e,unshift:be}=K,{filter:ge,find:Oe,indexOf:Re,join:Ee,push:de,shift:he,slice:Pe}=K,{isArray:Ne}=U;function Ae(e,...r){const o=t(Pe,e,[0]);for(let e=0,{length:n}=r;e<n;e+=1){const n=r[e];Ne(n)?t(de,o,n):o[o.length]=n}return o}function Ie(e){return y(e,null),e.at=$,e.concat=V,e.copyWithin=z,e.entries=Y,e.every=H,e.fill=J,e.filter=ge,e.find=Oe,e.findIndex=X,e.flat=Q,e.flatMap=q,e.forEach=Z,e.includes=Se,e.indexOf=Re,e.join=Ee,e.keys=ee,e.lastIndexOf=te,e.map=re,e.pop=oe,e.push=de,e.reduce=ne,e.reduceRight=ae,e.reverse=se,e.shift=he,e.slice=Pe,e.some=ce,e.sort=_e,e.splice=ie,e.toLocaleString=le,e.toString=ue,e.unshift=be,e.values=fe,e[w]=pe,e[G]=ye,y(e,K),e}const je=ArrayBuffer,{isView:Te}=je,me=M(je.prototype,"byteLength"),Le="function"==typeof BigInt,Me=Le?BigInt.prototype.valueOf:void 0,{valueOf:Be}=Boolean.prototype,ke="$LWS",ve=`${function e(){return e.name}()}`.includes("LOCKER_UNMINIFIED_FLAG"),xe="LSKey",De="lskey",we="…",Ce='"',Ge="'",We="uncompiledLocation$LWS",Fe="uncompiledTop$LWS",Ue="__webpack_require__",Ke="Illegal property access.",$e="Invalid sandbox key.",Ve=D("@@lockerNearMembraneProxyMasked"),ze=D("@@lockerNearMembraneSerializedValue"),Ye=D("@@lockerNearMembrane"),He=D("@@lockerLiveValue"),Je="[object Array]",Xe="[object ArrayBuffer]",Qe="[object BigInt]",qe="[object Boolean]",Ze="[object Date]",et="[object Error]",tt="[object Function]",rt="[object Map]",ot="[object Null]",nt="[object Number]",at="[object Object]",st="[object RegExp]",ct="[object Set]",it="[object String]",lt="[object Symbol]",ut="[object Undefined]",ft="[object WeakMap]",pt="[object WeakSet]",yt="$lockerEvalContext$",St="$lockerEvalHelpers$",_t=Date,{now:bt}=_t,{valueOf:gt}=_t.prototype,Ot=Error,Rt=TypeError;class Et extends Error{constructor(e){super(`Lightning Web Security: ${e}`)}}const dt=Proxy,{revocable:ht}=dt;function Pt(e){const t=ht(e,{__proto__:null});return t.revoke(),t.proxy}const{bind:Nt,toString:At}=Function.prototype;function It(e){return"function"==typeof e&&!(Ve in e)&&!0===e[Ve]}function jt(){}function Tt(e,S,_){let b=t,g=r,O=o,R=a,E=s,d=i,h=p;_&&({apply:b=t,construct:g=r,defineProperty:O=o,get:R=a,getOwnPropertyDescriptor:E=s,has:d=i,set:h=p}=_);let P=!1,N=!1,A=0;const I=new dt(S,{apply:(t,r,o)=>(A=1,r!==I&&r!==S||(r=e),b(e,r,o)),construct:(t,r,o)=>(A=2,o!==I&&o!==S||(o=e),g(e,r,o)),defineProperty(e,t,r){if(A=4,t===Ve)throw new Rt("Illegal property access.");return O(e,t,r)},deleteProperty:(e,t)=>(A=32,n(e,t)),get(e,t,r){P&&(P=128===A),N&&(N=P),A=16;const o=t===Ve;if(N&&o)return!0;const n=R(e,t,r,P);if(void 0!==n&&o)throw new Rt("Illegal property access.");return n},getOwnPropertyDescriptor(e,t){A=32;const r=E(e,t);if(r&&t===Ve)throw new Rt("Illegal property access.");return r},getPrototypeOf:e=>(A=64,c(e)),has(e,t){A=128;const r=d(e,t),o=t===Ve;if(r){if(P=!1,o)throw new Rt("Illegal property access.")}else P=!0,N=o;return r},isExtensible:e=>(A=256,l(e)),ownKeys:e=>(A=512,u(e)),preventExtensions:e=>(A=1024,f(e)),set(e,t,r,o){if(A=2048,t===Ve)throw new Rt("Illegal property access.");return h(e,t,r,o)},setPrototypeOf:(e,t)=>(A=4096,y(e,t))});return I}function mt(e){return e}const Lt=Map,{prototype:Mt}=Lt,{clear:Bt,delete:kt,forEach:vt,get:xt,has:Dt,keys:wt,values:Ct,[w]:Gt,[C]:Wt}=Mt,{entries:Ft,set:Ut}=Mt,Kt=M(Mt,"size");function $t(e){return y(e,null),e.clear=Bt,e.delete=kt,e.entries=Ft,e.forEach=vt,e.get=xt,e.has=Dt,e.keys=wt,e.set=Ut,o(e,"size",{__proto__:null,configurable:!0,enumerable:!0,get:Kt,set:void 0}),e.values=Ct,e[w]=Gt,e[C]=Wt,y(e,Mt),e}const Vt=Number,{isFinite:zt,isInteger:Yt}=Vt,{toFixed:Ht,valueOf:Jt}=Vt.prototype,Xt=String,{prototype:Qt}=Xt,{endsWith:qt,includes:Zt,indexOf:er,match:tr,replace:rr,slice:or,split:nr,startsWith:ar,toLowerCase:sr,toUpperCase:cr,valueOf:ir}=Qt,lr={__proto__:null,'"':/\\?"/g,"'":/\\?'/g},ur="function"==typeof URL?URL:void 0,fr=null==ur||null==(e=ur.prototype)?void 0:e.toString,pr=/^[\s\S]+?\{[\t ]*(?:\r?\n)?([\s\S]*?)(?:\r?\n)?[\t ]*\}$|[\s\S]+?=>\s*([\s\S]+?)\s*$/;function yr(e){const{length:r}=e;if(r){const o=t(cr,e[0],[]);return 1===r?o:o+t(or,e,[1])}return""}function Sr(e,r="'"){return r+t(rr,e,[lr[r],`\\${r}`])+r}function _r(e){var r,o;const n=t(At,e,[]),a=t(tr,n,[pr]);return null!=(r=null!=(o=null==a?void 0:a[1])?o:null==a?void 0:a[2])?r:""}function br(e){if("symbol"!=typeof e)try{return void 0!==`${e}`}catch(e){}return!1}function gr(e){return"string"==typeof e?e:`${e}`}function Or(e){if("string"==typeof e)return e;try{if("function"==typeof e)return t(At,e,[]);if("object"==typeof e&&null!==e){if(ur&&e instanceof ur)return t(fr,e,[]);const r=t(j,e,[]);return"[object Symbol]"===r?t(W,e,[]):r}return"symbol"==typeof e?t(W,e,[]):Xt(e)}catch(e){}return"[object Unknown]"}const Rr=RegExp,{prototype:Er}=Rr,{exec:dr,test:hr}=Er,Pr=M(Er,"source"),Nr=/[\\^$.*+?()[\]{}|]/g;function Ar(e){return t(rr,e,[Nr,"\\$&"])}const Ir=Set,{prototype:jr}=Ir,{clear:Tr,delete:mr,entries:Lr,forEach:Mr,has:Br,keys:kr,[w]:vr,[C]:xr}=jr,{add:Dr,values:wr}=jr,Cr=M(jr,"size");function Gr(e){return y(e,null),e.add=Dr,e.clear=Tr,e.delete=mr,e.entries=Lr,e.forEach=Mr,e.has=Br,e.keys=kr,o(e,"size",{__proto__:null,configurable:!0,enumerable:!0,get:Cr,set:void 0}),e.values=wr,e[w]=vr,e[C]=xr,y(e,jr),e}const Wr=WeakMap,{prototype:Fr}=Wr,{has:Ur}=Fr,{delete:Kr,get:$r,set:Vr,[C]:zr}=Fr;function Yr(e){return y(e,null),e.delete=Kr,e.get=$r,e.has=Ur,e.set=Vr,e[C]=zr,y(e,Fr),e}const Hr=WeakSet,{prototype:Jr}=Hr,{has:Xr}=Jr,{add:Qr,delete:qr,[C]:Zr}=Jr;function eo(e){return y(e,null),e.add=Qr,e.delete=qr,e.has=Xr,e[C]=Zr,y(e,Jr),e}const{toStringTag:to}=Symbol,ro=/[(`.[+\-/*%<>=,?^&]/,oo=/\r\n?|\n|\u2028|\u2029/,no=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ao=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function so(e){if(null===e)return"[object Null]";if(void 0===e)return"[object Undefined]";switch(typeof e){case"bigint":return"[object BigInt]";case"boolean":return"[object Boolean]";case"function":return"[object Function]";case"number":return"[object Number]";case"string":return"[object String]";case"symbol":return"[object Symbol]"}return Ne(e)?"[object Array]":to in e?function(e){try{if("byteLength"in e)return t(me,e,[]),"[object ArrayBuffer]"}catch(e){}try{if("toLocaleDateString"in e)return t(gt,e,[]),"[object Date]"}catch(e){}try{if("get"in e&&"size"in e)return t(Kt,e,[]),"[object Map]"}catch(e){}try{if("add"in e&&"size"in e)return t(Cr,e,[]),"[object Set]"}catch(e){}try{if("get"in e&&!("size"in e))return t(Ur,e,[]),"[object WeakMap]"}catch(e){}try{if("add"in e&&!("size"in e))return t(Xr,e,[]),"[object WeakSet]"}catch(e){}try{if("toPrecision"in e)return t(Jt,e,[]),"[object Number]"}catch(e){}try{if("description"in e)return t(F,e,[]),"[object Symbol]"}catch(e){}try{if(L(e,"lastIndex"))return t(Pr,e,[]),"[object RegExp]"}catch(e){}try{if(L(e,"length"))return t(ir,e,[]),"[object String]"}catch(e){}try{return t(Be,e,[]),"[object Boolean]"}catch(e){}if(Le)try{return t(Me,e,[]),"[object BigInt]"}catch(e){}return"[object Object]"}(e):t(j,e,[])}const co="undefined"==typeof performance?bt:t(Nt,performance.now,[performance]);function io(e,r){let o=0;for(;;){no.lastIndex=o,o+=t(dr,no,[e])[0].length;const n=t(dr,ao,[t(or,e,[o])]);if(null===n)return-1;if((n[1]||n[2])===r){no.lastIndex=o+n[0].length;const r=t(dr,no,[e]),a=r.index+r[0].length,s=e[a];if(";"===s||"}"===s)return o;const c=a+1;if(t(hr,oo,[r[0]])&&!("!"===s&&c<e.length&&"="===e[c]||t(hr,ro,[s])))return o}o+=n[0].length,no.lastIndex=o,o+=t(dr,no,[e])[0].length,";"===e[o]&&(o+=1)}}const{parse:lo}=JSON,{stringify:uo}=JSON;function fo(e){if("object"==typeof e&&null!==e||"function"==typeof e)return ze in e?void 0:e[ze]}function po(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&(!(Ye in e)&&!0===e[Ye])}const yo=$t(new Lt);function So(e,r){const o=new Lt,n=t(Ft,e,[]);let{length:a}=r;for(;;){const{done:e,value:s}=n.next();if(e)break;const{0:c,1:i}=s;let l;r[a++]=[e=>{l=e},c],r[a++]=[e=>{t(Ut,o,[l,e])},i]}return o}function _o(e){const{flags:t,source:r}=lo(fo(e));return new Rr(r,t)}function bo(e,r){const o=new Ir,n=t(wr,e,[]);let{length:a}=r;for(;;){const{done:e,value:s}=n.next();if(e)break;r[a++]=[e=>{t(Dr,o,[e])},s]}return o}function go(e,t,r){const o=E(t);let{length:n}=e;for(let a=0,{length:s}=o;a<s;a+=1){const s=o[a],c=t[s];e[n++]=[e=>{r[s]=e},c]}}function Oo(e){let r=e;if("object"==typeof e&&null!==e){try{r=function(e){let r;const o=[[e=>{r=e},e]];e:for(;o.length;){const{0:e,1:r}=t(he,o,[]);if(null==r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||"bigint"==typeof r){e(r);continue e}if("symbol"==typeof r){e(r);break e}let n=yo.get(r);if(n){e(n);continue e}const a=so(r);switch(a){case"[object Object]":{const e=c(r);e!==h&&null!==e&&null!==c(e)||(n={},go(o,r,n));break}case"[object Array]":n=U(r.length),go(o,r,n);break;case"[object Map]":n=So(r,o);break;case"[object Set]":n=bo(r,o)}if(void 0===n){if(!po(r)){yo.set(r,r),e(r);continue e}switch(a){case"[object RegExp]":n=_o(r);break;case"[object Boolean]":case"[object Number]":case"[object BigInt]":case"[object String]":n=S(fo(r))}}if(void 0===n){e(r);break e}yo.set(r,n),e(n)}return r}(e)}catch(e){}yo.clear()}return r}function Ro(e){return t(Pe,e,[0])}function Eo(e){const t=u(e),r={__proto__:null};for(let o=0,{length:n}=t;o<n;o+=1){const n=t[o];r[n]=e[n]}return r}const ho=console,{warn:Po}=ho;function No(...e){t(Po,ho,e)}const Ao=eo(new Hr);function Io(e,r=0){if(1&r||2&r||64&r||null==e||e===h||e===Er)return!1;if("function"==typeof e){try{return Ao.has(e)||L(e,He)}catch(e){}return!1}if("object"==typeof e){try{if(Ao.has(e)||L(e,He))return!0}catch(e){}let o;try{if(({constructor:o}=e),o===S)return!0}catch(e){}try{if(null===c(e)&&("function"!=typeof o||o.prototype!==e))return!0}catch(e){}if(0===r){try{if(Ne(e))return!0}catch(e){return!1}if(Te(e))return!0}try{if(L(e,"lastIndex"))return t(Pr,e,[]),!0}catch(e){}try{if("byteLength"in e)return t(me,e,[]),!0}catch(e){}}return!1}function jo(e){return("object"!=typeof e||null===e)&&"function"!=typeof e||Io(e)||o(e,He,{__proto__:null,value:void 0}),e}function To(e){return Ao.add(e),e}const{min:mo}=Math;function Lo(e){return`LSKey-${e}$`}function Mo(e){return`LSKey[${e}]`}function Bo(e,t){return`${Lo(t)}${e}`}function ko(e,t){return`${Mo(t)}${e}`}function vo(e,r){if("string"==typeof e){const o=Lo(r);return t(ar,e,[o])?t(or,e,[o.length]):e}return""}function xo(e,r){if("string"==typeof e){const o=Mo(r);return t(ar,e,[o])?t(or,e,[o.length]):e}return""}function Do(e,r){return"string"==typeof e&&t(ar,e,[Lo(r)])}function wo(e,r){return"string"==typeof e&&t(ar,e,[Mo(r)])}const Co=Promise,{catch:Go,then:Wo}=Co.prototype,Fo=Co.resolve.bind(Co),Uo=Co.reject.bind(Co);export{Te as ArrayBufferIsView,me as ArrayBufferProtoByteLengthGetter,Ae as ArrayConcat,U as ArrayCtor,Ne as ArrayIsArray,ge as ArrayProtoFilter,Oe as ArrayProtoFind,Se as ArrayProtoIncludes,Re as ArrayProtoIndexOf,Ee as ArrayProtoJoin,de as ArrayProtoPush,he as ArrayProtoShift,Pe as ArrayProtoSlice,_e as ArrayProtoSort,be as ArrayProtoUnshift,Me as BigIntProtoValueOf,Be as BooleanProtoValueOf,we as CHAR_ELLIPSIS,Ce as CHAR_QUOTE_DOUBLE,Ge as CHAR_QUOTE_SINGLE,bt as DateNow,gt as DateProtoValueOf,Ke as ERR_ILLEGAL_PROPERTY_ACCESS,$e as ERR_INVALID_SANDBOX_KEY,Ot as ErrorCtor,Nt as FunctionProtoBind,At as FunctionProtoToString,lo as JSONParse,uo as JSONStringify,ke as LOCKER_IDENTIFIER_MARKER,Ve as LOCKER_NEAR_MEMBRANE_PROXY_MASKED_SYMBOL,ze as LOCKER_NEAR_MEMBRANE_SERIALIZED_VALUE_SYMBOL,Ye as LOCKER_NEAR_MEMBRANE_SYMBOL,xe as LOCKER_SERVICE_KEY,De as LOCKER_SERVICE_KEY_LOWERED,ve as LOCKER_UNMINIFIED_FLAG,Et as LockerSecurityError,Lt as MapCtor,Ft as MapProtoEntries,Ut as MapProtoSet,Kt as MapProtoSizeGetter,mo as MathMin,zt as NumberIsFinite,Yt as NumberIsInteger,Ht as NumberProtoToFixed,Jt as NumberProtoValueOf,_ as ObjectAssign,S as ObjectCtor,g as ObjectDefineProperties,b as ObjectFreeze,O as ObjectGetOwnPropertyDescriptors,R as ObjectGetOwnPropertySymbols,L as ObjectHasOwn,E as ObjectKeys,M as ObjectLookupOwnGetter,B as ObjectLookupOwnSetter,k as ObjectLookupOwnValue,d as ObjectPreventExtensions,h as ObjectProto,j as ObjectProtoToString,Co as PromiseCtor,Go as PromiseProtoCatch,Wo as PromiseProtoThen,Uo as PromiseReject,Fo as PromiseResolve,dt as ProxyCtor,t as ReflectApply,r as ReflectConstruct,o as ReflectDefineProperty,n as ReflectDeleteProperty,a as ReflectGet,s as ReflectGetOwnPropertyDescriptor,c as ReflectGetPrototypeOf,i as ReflectHas,l as ReflectIsExtensible,u as ReflectOwnKeys,f as ReflectPreventExtensions,p as ReflectSet,y as ReflectSetPrototypeOf,Rr as RegExpCtor,Er as RegExpProto,dr as RegExpProtoExec,Pr as RegExpProtoSourceGetter,hr as RegExpProtoTest,yt as SANDBOX_EVAL_CONTEXT_NAME,St as SANDBOX_EVAL_HELPERS_NAME,Le as SUPPORTS_BIG_INT,He as SYMBOL_LIVE_OBJECT,Ir as SetCtor,Dr as SetProtoAdd,Cr as SetProtoSizeGetter,wr as SetProtoValues,Xt as StringCtor,qt as StringProtoEndsWith,Zt as StringProtoIncludes,er as StringProtoIndexOf,tr as StringProtoMatch,rr as StringProtoReplace,or as StringProtoSlice,nr as StringProtoSplit,ar as StringProtoStartsWith,sr as StringProtoToLowerCase,cr as StringProtoToUpperCase,ir as StringProtoValueOf,x as SymbolAsyncIterator,D as SymbolFor,w as SymbolIterator,W as SymbolProtoToString,F as SymbolProtoValueOf,C as SymbolToStringTag,G as SymbolUnscopables,Je as TO_STRING_BRAND_ARRAY,Xe as TO_STRING_BRAND_ARRAY_BUFFER,Qe as TO_STRING_BRAND_BIG_INT,qe as TO_STRING_BRAND_BOOLEAN,Ze as TO_STRING_BRAND_DATE,et as TO_STRING_BRAND_ERROR,tt as TO_STRING_BRAND_FUNCTION,rt as TO_STRING_BRAND_MAP,ot as TO_STRING_BRAND_NULL,nt as TO_STRING_BRAND_NUMBER,at as TO_STRING_BRAND_OBJECT,st as TO_STRING_BRAND_REG_EXP,ct as TO_STRING_BRAND_SET,it as TO_STRING_BRAND_STRING,lt as TO_STRING_BRAND_SYMBOL,ut as TO_STRING_BRAND_UNDEFINED,ft as TO_STRING_BRAND_WEAK_MAP,pt as TO_STRING_BRAND_WEAK_SET,Rt as TypeErrorCtor,We as UNCOMPILED_LOCATION_NAME,Fe as UNCOMPILED_TOP_NAME,Ue as WEBPACK_REQUIRE_NAME,Wr as WeakMapCtor,Ur as WeakMapProtoHas,Hr as WeakSetCtor,Xr as WeakSetProtoHas,yr as capitalizeFirstChar,No as consoleWarn,Pt as createRevokedProxy,Sr as enquote,Ar as escapeRegExp,_r as extractFunctionBodySource,so as getBrand,Lo as getNamespaceMarker,fo as getNearMembraneProxySerializedValue,Mo as getStorageNamespaceMarker,co as getTimestamp,mt as identity,io as indexOfPragma,br as isConvertibleToString,po as isNearMembraneProxy,T as isObject,m as isObjectLike,It as isProxyMaskedFunction,Io as isTargetLive,jo as markTargetAsLive,jt as noop,Oo as partialStructuredClone,Bo as prependNamespaceMarker,ko as prependStorageNamespaceMarker,Tt as proxyMaskFunction,vo as removeNamespaceMarker,xo as removeStorageNamespaceMarker,Ro as shallowCloneArray,Eo as shallowCloneOptions,Do as startsWithNamespaceMarker,wo as startsWithStorageNamespaceMarker,Ie as toSafeArray,$t as toSafeMap,Gr as toSafeSet,Or as toSafeTemplateStringValue,Yr as toSafeWeakMap,eo as toSafeWeakSet,gr as toString,To as trackAsLiveTarget};
/*! version: 0.18.11 */
/*! version: 0.18.12 */
{
"name": "@locker/shared",
"version": "0.18.11",
"version": "0.18.12",
"license": "SEE LICENSE IN LICENSE.txt",

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

],
"gitHead": "971762861ae1a504b5d32ab235a5d34d97cd30b4"
"gitHead": "c77e7a4fd162647dd8828972c09cee4e9c7096d5"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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