New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@locker/near-membrane-base

Package Overview
Dependencies
Maintainers
7
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@locker/near-membrane-base - npm Package Compare versions

Comparing version 0.8.4 to 0.8.5

2

lib/index.min.js

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

const{setPrototypeOf:t}=Reflect;var e;function r(){const{eval:t}=globalThis,r=Array,{isArray:n}=Array,{defineProperties:o,freeze:i,isFrozen:a,isSealed:l,seal:s}=Object,{hasOwnProperty:c,toString:u}=Object.prototype,{revocable:p}=Proxy,{apply:f,construct:y,defineProperty:h,deleteProperty:b,get:g,getOwnPropertyDescriptor:P,getPrototypeOf:T,has:d,isExtensible:v,ownKeys:w,preventExtensions:O,set:E,setPrototypeOf:S}=Reflect,{slice:x}=String.prototype,I=TypeError,{get:m,set:k}=WeakMap.prototype,G=Symbol.for("@@lockerLiveValue"),D=Symbol.for("@@lockerMagicValue"),{toStringTag:A}=Symbol,C=Symbol.for("@@membraneUndefinedValue");let R,N,U;return function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(R||(R={})),S(R,null),function(t){t[t.None=0]="None",t[t.IsNotExtensible=1]="IsNotExtensible",t[t.IsSealed=2]="IsSealed",t[t.IsFrozen=4]="IsFrozen",t[t.Revoked=16]="Revoked"}(N||(N={})),S(N,null),function(t){t[t.None=0]="None",t[t.IsArray=1]="IsArray",t[t.IsFunction=2]="IsFunction",t[t.IsObject=4]="IsObject",t[t.IsArrowFunction=8]="IsArrowFunction",t[t.Revoked=16]="Revoked"}(U||(U={})),S(U,null),function(F,_,M=e.None,V,j){const{distortionCallback:K=(t=>t),instrumentation:L}=j||{__proto__:null},z=new WeakMap,H=`to:${F}`,B=`from:${F}`,$=!!(M&R.MagicMarker);let W,J,q,Q,X,Y,Z,tt,et,rt,nt,ot,it,at,lt,st;function ct(t,e){let r=[];et(e,((...t)=>{r=t}));const n={};let i;const a=(t,e,r,n,o,a)=>{i=ut(t,e,r,n,o,a)};for(let t=0,o=r.length;t<o;t+=1){const o=r[t];Y(e,o,a),i&&(n[o]=i)}o(t,n)}function ut(t,e,r,n,o,i){const a={__proto__:null};return t!==C&&(a.configurable=!!t),e!==C&&(a.enumerable=!!e),r!==C&&(a.writable=!!r),o!==C&&(a.get=bt(o)),i!==C&&(a.set=bt(i)),n!==C&&(a.value=bt(n)),a}function pt(t){return()=>{st=t}}function ft(t){return function(...e){try{return f(t,this,e)}catch(t){const e=gt();if(e)throw e;throw new I(t?.message)}}}function yt(t){const e=xt(t),{configurable:r,enumerable:n,writable:o,value:i,get:a,set:l}=e;return["configurable"in e?!!r:C,"enumerable"in e?!!n:C,"writable"in e?!!o:C,"value"in e?Tt(i):C,"get"in e?Tt(a):C,"set"in e?Tt(l):C]}function ht(t,e){let r=wt(t);for(;r;){const t=P(r,e);if(t)return xt(t);r=T(r)}}function bt(t){return"function"==typeof t?(t(),gt()):t}function gt(){const t=st;return st=void 0,t}function Pt(t){let e=f(m,z,[t]);if(e)return e;const r=function(t){let e;try{return e=K(t),e}finally{if(e!==t&&typeof e!=typeof t)throw new I(`Invalid distortion ${t}.`)}}(t),o=pt(r),i=function(t){let e=U.None;if("function"==typeof t){e|=U.IsFunction;try{e|=+!("prototype"in t)&&U.IsArrowFunction}catch{}}else{let r=!1;try{r=n(t)}catch{e|=U.Revoked}e|=+r&&U.IsArray,e|=+!r&&U.IsObject}return e}(r);let a;if("function"==typeof t)try{const e=P(t,"name");if(e){a=xt(e).value}}catch{}return e=W(o,i,a),f(k,z,[t,e]),e}function Tt(t){if(void 0!==t)return null===t||"function"!=typeof t&&"object"!=typeof t?t:Pt(t)}function dt(t,e,r){return L?function(...n){const o=L.startActivity(e,{crossingDirection:r});try{return f(t,this,n)}catch(t){throw o.error(t),t}finally{o.stop()}}:t}function vt(t,e,r){let n;return Y(t,r,((t,o,i,a,l,s)=>{n=ut(t,o,i,a,l,s),!1===n.configurable&&h(e,r,n)})),n}function wt(t){return bt(Z(t))}function Ot(t,e,r,n,o,i){const a=vt(t,e,r),l=a||ht(t,r);if(l){if("get"in l||"set"in l){const{set:t}=l;return!!t&&(f(t,o,[n]),!0)}if(!1===l.writable)return!1}let s;if(i)s=a;else{if(null===o||"function"!=typeof o&&"object"!=typeof o)return!1;const t=P(o,r);t&&(s=xt(t))}return s?!("get"in s)&&!("set"in s)&&!1!==s.writable&&(u=o,$&&f(c,u,[D])?nt(t,r,Tt(n),Pt(o)):h(o,r,{__proto__:null,value:n}),!0):h(o,r,{__proto__:null,configurable:!0,enumerable:!0,value:n,writable:!0});var u}function Et(t,e){ct(t,e);const r=wt(e);S(t,r),O(t)}function St(t){const e=Tt(t);return"function"==typeof e&&e(),t}function xt(t){return S(t,null),t}class It{constructor(t,e,r){this.color=F,this.apply=function(t,e,r){const{foreignTargetPointer:n}=this,o=[n,Tt(e)],{length:i}=r,{length:a}=o;o.length+=i;for(let t=0,e=i;t<e;t+=1){const e=r[t],n=t+a;o[n]=void 0===e?void 0:null===e||"function"!=typeof e&&"object"!=typeof e?e:Pt(e)}return bt(f(J,void 0,o))},this.construct=function(t,e,r){if(void 0===r)throw new I;const{foreignTargetPointer:n}=this,o=[n,Tt(r)],{length:i}=e,{length:a}=o;o.length+=i;for(let t=0,r=i;t<r;t+=1){const r=e[t],n=t+a;o[n]=void 0===r?void 0:null===r||"function"!=typeof r&&"object"!=typeof r?r:Pt(r)}return bt(f(q,void 0,o))};const n=function(t,e){let r;return r=t&U.IsFunction?t&U.IsArrowFunction?()=>{}:function(){}:t&U.IsArray?[]:{},r}(e),{proxy:o,revoke:a}=p(n,this);this.foreignTargetPointer=t,this.proxy=o,this.revoke=a,this.defineProperty=It.defaultDefinePropertyTrap,this.deleteProperty=It.defaultDeletePropertyTrap,this.isExtensible=It.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=It.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=It.defaultGetPrototypeOfTrap,this.get=It.defaultGetTrap,this.has=It.defaultHasTrap,this.ownKeys=It.defaultOwnKeysTrap,this.preventExtensions=It.defaultPreventExtensionsTrap,this.setPrototypeOf=It.defaultSetPrototypeOfTrap,this.set=It.defaultSetTrap,e&U.Revoked&&a(),_||i(this)}makeProxyLive(){this.defineProperty=It.liveDefinePropertyTrap,this.deleteProperty=It.liveDeletePropertyTrap,this.preventExtensions=It.livePreventExtensionsTrap,this.set=It.liveSetTrap,this.setPrototypeOf=It.liveSetPrototypeOfTrap,i(this)}makeProxyStatic(t){const{foreignTargetPointer:e}=this,r=it(e);if(r&N.Revoked)this.revoke();else{try{const r=wt(e);S(t,r)}catch{return void this.revoke()}ct(t,e),r&N.IsFrozen?i(t):r&N.IsSealed?s(t):r&N.IsNotExtensible&&O(t),this.defineProperty=It.staticDefinePropertyTrap,this.deleteProperty=It.staticDeletePropertyTrap,this.get=It.staticGetTrap,this.getOwnPropertyDescriptor=It.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=It.staticGetPrototypeOfTrap,this.has=It.staticHasTrap,this.isExtensible=It.staticIsExtensibleTrap,this.ownKeys=It.staticOwnKeysTrap,this.preventExtensions=It.staticPreventExtensionsTrap,this.set=It.staticSetTrap,this.setPrototypeOf=It.staticSetPrototypeOfTrap,i(this)}}makeProxyUnambiguous(t){var e;e=this.foreignTargetPointer,lt(e,G)?this.makeProxyLive():this.makeProxyStatic(t)}static liveDefinePropertyTrap(t,e,r){return function(t,e,r,n){const o=yt(n),i=Q(t,r,o[0],o[1],o[2],o[3],o[4],o[5]);return i&&!1===o[0]&&Y(t,r,((t,n,o,i,a,l)=>{h(e,r,ut(t,n,o,i,a,l))})),i}(this.foreignTargetPointer,t,e,r)}static liveDeletePropertyTrap(t,e){return function(t,e,r){return X(t,r)}(this.foreignTargetPointer,0,e)}static liveGetOwnPropertyDescriptorTrap(t,e){return vt(this.foreignTargetPointer,t,e)}static liveGetPrototypeOfTrap(t){return wt(this.foreignTargetPointer)}static liveGetTrap(t,e,r){return function(t,e,r,n){const o=vt(t,e,r)||ht(t,r);if(o){const{get:t,value:e}=o;return t?f(t,n,[]):e}if(r===A)return at(t)}(this.foreignTargetPointer,t,e,r)}static liveHasTrap(t,e){return function(t,e){if(lt(t,e))return!0;let r=wt(t);for(;r;){if(f(c,r,[e]))return!0;r=T(r)}return!1}(this.foreignTargetPointer,e)}static liveIsExtensibleTrap(t){return function(t,e){if(v(e)){if(tt(t))return!0;Et(e,t)}return!1}(this.foreignTargetPointer,t)}static liveOwnKeysTrap(t){return function(t){let e;return et(t,((...t)=>{e=t})),e||[]}(this.foreignTargetPointer)}static livePreventExtensionsTrap(t){return function(t,e){if(v(e)){if(!rt(t))return tt(t)||Et(e,t),!1;Et(e,t)}return!0}(this.foreignTargetPointer,t)}static liveSetPrototypeOfTrap(t,e){return function(t,e){const r=Tt(e);return ot(t,r)}(this.foreignTargetPointer,e)}static liveSetTrap(t,e,r,n){const o=this.proxy===n;return Ot(this.foreignTargetPointer,t,e,r,n,o)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(t),this.defineProperty(t,e,r)}static pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(t),this.deleteProperty(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(t),this.preventExtensions(t)}static pendingSetPrototypeOfTrap(t,e){return this.makeProxyUnambiguous(t),this.setPrototypeOf(t,e)}static pendingSetTrap(t,e,r,n){return this.makeProxyUnambiguous(t),this.set(t,e,r,n)}static staticGetTrap(t,e,r){return e===A?at(this.foreignTargetPointer):g(t,e,r)}}return It.staticDefinePropertyTrap=h,It.staticDeletePropertyTrap=b,It.staticGetOwnPropertyDescriptorTrap=P,It.staticGetPrototypeOfTrap=T,It.staticHasTrap=d,It.staticIsExtensibleTrap=v,It.staticOwnKeysTrap=w,It.staticPreventExtensionsTrap=O,It.staticSetTrap=E,It.staticSetPrototypeOfTrap=S,It.defaultGetTrap=It.liveGetTrap,It.defaultGetOwnPropertyDescriptorTrap=It.liveGetOwnPropertyDescriptorTrap,It.defaultGetPrototypeOfTrap=It.liveGetPrototypeOfTrap,It.defaultHasTrap=It.liveHasTrap,It.defaultIsExtensibleTrap=It.liveIsExtensibleTrap,It.defaultOwnKeysTrap=It.liveOwnKeysTrap,It.defaultDefinePropertyTrap=_?It.pendingDefinePropertyTrap:It.liveDefinePropertyTrap,It.defaultDeletePropertyTrap=_?It.pendingDeletePropertyTrap:It.liveDeletePropertyTrap,It.defaultPreventExtensionsTrap=_?It.pendingPreventExtensionsTrap:It.livePreventExtensionsTrap,It.defaultSetTrap=_?It.pendingSetTrap:It.liveSetTrap,It.defaultSetPrototypeOfTrap=_?It.pendingSetPrototypeOfTrap:It.liveSetPrototypeOfTrap,S(It.prototype,null),i(It.prototype),V(pt(globalThis),gt,Tt,((t,e)=>{t();return pt(gt()[e])}),(e=>{try{return Tt(t(e))}catch(t){throw St(t)}}),((t,e)=>{t();const r=gt();f(k,z,[r,e])}),((t,e,r)=>{const{proxy:n}=new It(t,e,r);return f(k,z,[n,t]),pt(n)}),dt(((t,e,...n)=>{t();const o=gt(),i=bt(e),{length:a}=n,l=new r(a);for(let t=0,e=a;t<e;t+=1)l[t]=bt(n[t]);let s;try{s=f(o,i,l)}catch(t){throw St(t)}return Tt(s)}),"callableApply",H),dt(((t,e,...n)=>{t();const o=gt(),i=bt(e),{length:a}=n,l=new r(a);for(let t=0,e=a;t<e;t+=1)l[t]=bt(n[t]);let s;try{s=y(o,l,i)}catch(t){throw St(t)}return Tt(s)}),"callableConstruct",H),dt(((t,e,r,n,o,i,a,l)=>{t();const s=gt();try{return h(s,e,ut(r,n,o,i,a,l))}catch(t){throw St(t)}}),"callableDefineProperty",H),dt(((t,e)=>{t();const r=gt();try{return b(r,e)}catch(t){throw St(t)}}),"callableDeleteProperty",H),dt(((t,e,r)=>{t();const n=gt();let o;try{o=P(n,e)}catch(t){throw St(t)}if(o){const t=yt(o);r(t[0],t[1],t[2],t[3],t[4],t[5])}}),"callableGetOwnPropertyDescriptor",H),dt((t=>{t();const e=gt();let r;try{r=T(e)}catch(t){throw St(t)}return Tt(r)}),"callableGetPrototypeOf",H),dt((t=>{t();const e=gt();try{return v(e)}catch(t){throw St(t)}}),"callableIsExtensible",H),dt(((t,e)=>{t();const r=gt();let n;try{n=w(r)}catch(t){throw St(t)}f(e,void 0,n)}),"callableOwnKeys",H),dt((t=>{t();const e=gt();try{return O(e)}catch(t){throw St(t)}}),"callablePreventExtensions",H),dt(((t,e,r,n)=>{t();const o=gt();try{return E(o,e,bt(r),bt(n))}catch(t){throw St(t)}}),"callableSet",H),dt(((t,e)=>{t();const r=gt(),n=bt(e);try{return S(r,n)}catch(t){throw St(t)}}),"callableSetPrototypeOf",H),dt((t=>{t();return function(t){let e=N.None;try{a(t)?e|=N.IsSealed&N.IsFrozen&N.IsNotExtensible:l(t)?e|=N.IsSealed:v(t)||(e|=N.IsNotExtensible),n(t)}catch{e|=N.Revoked}return e}(gt())}),"callableGetTargetIntegrityTraits",H),dt((t=>{t();const e=gt();try{if("object"==typeof e&&null!==e&&!n(e)){const t=f(u,e,[]);return f(x,t,[8,-1])}}catch{}}),"callableGetUnbrandedTag",H),dt(((t,e)=>{t();const r=gt();try{return f(c,r,[e])}catch(t){throw St(t)}}),"callableHasOwnProperty",H)),(...t)=>{const{6:e,7:r,8:n,9:o,10:i,11:a,12:l,13:s,14:c,15:u,16:p,17:f,18:y,19:h,20:b}=t;W=e,J=ft(dt(r,"callableApply",B)),q=ft(dt(n,"callableConstruct",B)),Q=ft(dt(o,"callableDefineProperty",B)),X=ft(dt(i,"callableDeleteProperty",B)),Y=ft(dt(a,"callableGetOwnPropertyDescriptor",B)),Z=ft(dt(l,"callableGetPrototypeOf",B)),tt=ft(dt(s,"callableIsExtensible",B)),et=ft(dt(c,"callableOwnKeys",B)),rt=ft(dt(u,"callablePreventExtensions",B)),nt=ft(dt(p,"callableSet",B)),ot=ft(dt(f,"callableSetPrototypeOf",B)),it=ft(dt(y,"callableGetTargetIntegrityTraits",B)),at=ft(dt(h,"callableGetUnbrandedTag",B)),lt=ft(dt(b,"callableHasOwnProperty",B))}}}!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(e||(e={})),t(e,null);const n=TypeError,o=`\n(function(){\n 'use strict';\n (${function(){"number"==typeof Error.stackTraceLimit&&(Error.stackTraceLimit*=2)}.toString()})();\n return (${r.toString()})\n})()`;function i(t){if(!t)throw new n("Missing evaluator function.");return t(o)()}const a=Symbol.for("@@membraneUndefinedValue"),l=Error,{assign:s,keys:c}=Object,{apply:u,ownKeys:p}=Reflect,{slice:f,toUpperCase:y}=String.prototype;function h(t){const{length:e}=t;if(!e)return t;const r=u(y,t[0],[]);return 1===e?r:r+u(f,t,[1])}class b{constructor(t){if(void 0===t)throw new l("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:r,redConnector:n,distortionCallback:o,support:i,instrumentation:a}=t;this.blueConnector=r,this.redConnector=n;let s=e.None;const p=i?c(i):[];for(let t=0,r=p.length;t<r;t+=1){const r=h(p[t]);s|=e[r]}let f,y;const b=r("blue",false,s,((...t)=>{f=t}),{distortionCallback:o,instrumentation:a}),g=n("red",true,s,((...t)=>{y=t}));u(b,void 0,y),u(g,void 0,f);const{0:P,1:T,2:d,3:v,5:w}=f;this.blueGlobalThisPointer=P,this.blueGetSelectedTarget=T,this.blueGetTransferableValue=d,this.blueCallableGetPropertyValuePointer=v,this.blueCallableLinkPointers=w;const{0:O,3:E,4:S,5:x,9:I,17:m}=y;this.redGlobalThisPointer=O,this.redCallableEvaluate=S,this.redCallableSetPrototypeOf=m,this.redCallableDefineProperty=I,this.redCallableGetPropertyValuePointer=E,this.redCallableLinkPointers=x}evaluate(t){try{const e=this.redCallableEvaluate(t);return"function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){const e=this.blueGetSelectedTarget();if(e)throw e;throw t}}link(...t){let e=this.blueGlobalThisPointer,r=this.redGlobalThisPointer;for(let n=0,o=t.length;n<o;n+=1){const o=t[n];e=this.blueCallableGetPropertyValuePointer(e,o),r=this.redCallableGetPropertyValuePointer(r,o)}this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r)}remap(t,e){const r=p(e),n=this.blueGetTransferableValue(t);for(let t=0,o=r.length;t<o;t+=1){const o=r[t],i=e[o],l=s({__proto__:null},i);this.redCallableDefineProperty(n,o,"configurable"in l?!!l.configurable:a,"enumerable"in l?!!l.enumerable:a,"writable"in l?!!l.writable:a,"value"in l?this.blueGetTransferableValue(l.value):a,"get"in l?this.blueGetTransferableValue(l.get):a,"set"in l?this.blueGetTransferableValue(l.set):a)}}remapProto(t,e){const r=this.blueGetTransferableValue(t),n=this.blueGetTransferableValue(e);this.redCallableSetPrototypeOf(r,n)}}const{includes:g}=Array.prototype,{has:P}=Set.prototype,{apply:T,getOwnPropertyDescriptor:d,ownKeys:v}=Reflect,w=new Set(["globalThis","Infinity","NaN","undefined","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","AggregateError","Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Error","EvalError","FinalizationRegistry","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Number","Object","Proxy","RangeError","ReferenceError","RegExp","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakRef","Atomics","JSON","Math","Reflect","escape","unescape"]),O=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval"];function E(t,e){const r=v(e);for(let n=0,o=r.length;n<o;n+=1){const o=r[n];if(!T(P,w,[o])&&!T(g,O,[o])){const r=d(e,o);r&&(t[o]=r)}}return t}function S(t,e){for(let r=0,n=O.length;r<n;r+=1){const n=O[r],o=e[n];o&&(t.link(n),o.prototype&&t.link(n,"prototype"))}}function x(...t){const e={};for(let r=0,n=t.length;r<n;r+=1){const n=t[r];n&&E(e,n)}return e}const I=TypeError;function m(t,e){if(!t)throw new I("Missing global object shape.");if(!e)throw new I("Missing global object virtualization target.")}export{e as SupportFlagsEnum,b as VirtualEnvironment,i as createConnector,r as createMembraneMarshall,x as getResolvedShapeDescriptors,S as linkIntrinsics,m as validateRequiredGlobalShapeAndVirtualizationObjects};
const{setPrototypeOf:t}=Reflect;var e;function r(){const{eval:t}=globalThis,r=Array,{isArray:n}=Array,{defineProperties:o,freeze:i,isFrozen:a,isSealed:l,seal:s}=Object,{hasOwnProperty:c,toString:u}=Object.prototype,{revocable:p}=Proxy,{apply:f,construct:y,defineProperty:h,deleteProperty:g,get:b,getOwnPropertyDescriptor:P,getPrototypeOf:T,has:d,isExtensible:v,ownKeys:w,preventExtensions:O,set:E,setPrototypeOf:S}=Reflect,{slice:x}=String.prototype,I=TypeError,{get:m,set:k}=WeakMap.prototype,G=Symbol.for("@@lockerLiveValue"),A=Symbol.for("@@lockerMagicValue"),{toStringTag:D}=Symbol,C=Symbol.for("@@membraneUndefinedValue");let R,N,U;return function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(R||(R={})),S(R,null),function(t){t[t.None=0]="None",t[t.IsNotExtensible=1]="IsNotExtensible",t[t.IsSealed=2]="IsSealed",t[t.IsFrozen=4]="IsFrozen",t[t.Revoked=16]="Revoked"}(N||(N={})),S(N,null),function(t){t[t.None=0]="None",t[t.IsArray=1]="IsArray",t[t.IsFunction=2]="IsFunction",t[t.IsObject=4]="IsObject",t[t.IsArrowFunction=8]="IsArrowFunction",t[t.Revoked=16]="Revoked"}(U||(U={})),S(U,null),function(F,_){let M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.None,V=arguments.length>3?arguments[3]:void 0,j=arguments.length>4?arguments[4]:void 0;const{distortionCallback:K=(t=>t),instrumentation:L}=j||{__proto__:null},z=new WeakMap,H=`to:${F}`,B=`from:${F}`,$=!!(M&R.MagicMarker);let W,J,q,Q,X,Y,Z,tt,et,rt,nt,ot,it,at,lt,st;function ct(t,e){let r=[];et(e,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r=e}));const n={};let i;const a=(t,e,r,n,o,a)=>{i=ut(t,e,r,n,o,a)};for(let t=0,o=r.length;t<o;t+=1){const o=r[t];Y(e,o,a),i&&(n[o]=i)}o(t,n)}function ut(t,e,r,n,o,i){const a={__proto__:null};return t!==C&&(a.configurable=!!t),e!==C&&(a.enumerable=!!e),r!==C&&(a.writable=!!r),o!==C&&(a.get=Pt(o)),i!==C&&(a.set=Pt(i)),n!==C&&(a.value=Pt(n)),a}function pt(t){return()=>{st=t}}function ft(t,e){let r;return r=t&U.IsFunction?t&U.IsArrowFunction?()=>{}:function(){}:t&U.IsArray?[]:{},r}function yt(t){return function(){try{for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return f(t,this,r)}catch(t){const e=Tt();if(e)throw e;throw new I(null==t?void 0:t.message)}}}function ht(t){const e=Vt(t),{configurable:r,enumerable:n,writable:o,value:i,get:a,set:l}=e;return["configurable"in e?!!r:C,"enumerable"in e?!!n:C,"writable"in e?!!o:C,"value"in e?Ot(i):C,"get"in e?Ot(a):C,"set"in e?Ot(l):C]}function gt(t){let e;try{return e=K(t),e}finally{if(e!==t&&typeof e!=typeof t)throw new I(`Invalid distortion ${t}.`)}}function bt(t,e){let r=At(t);for(;r;){const t=P(r,e);if(t)return Vt(t);r=T(r)}}function Pt(t){return"function"==typeof t?(t(),Tt()):t}function Tt(){const t=st;return st=void 0,t}function dt(t){let e=U.None;if("function"==typeof t){e|=U.IsFunction;try{e|=+!("prototype"in t)&&U.IsArrowFunction}catch(t){}}else{let r=!1;try{r=n(t)}catch(t){e|=U.Revoked}e|=+r&&U.IsArray,e|=+!r&&U.IsObject}return e}function vt(t){let e=N.None;try{a(t)?e|=N.IsSealed&N.IsFrozen&N.IsNotExtensible:l(t)?e|=N.IsSealed:v(t)||(e|=N.IsNotExtensible),n(t)}catch(t){e|=N.Revoked}return e}function wt(t){let e=f(m,z,[t]);if(e)return e;const r=gt(t),n=pt(r),o=dt(r);let i;if("function"==typeof t)try{const e=P(t,"name");if(e){i=Vt(e).value}}catch(t){}return e=W(n,o,i),f(k,z,[t,e]),e}function Ot(t){if(void 0!==t)return null===t||"function"!=typeof t&&"object"!=typeof t?t:wt(t)}function Et(t,e,r){return L?function(){const n=L.startActivity(e,{crossingDirection:r});try{for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return f(t,this,i)}catch(t){throw n.error(t),t}finally{n.stop()}}:t}function St(t){return lt(t,G)}function xt(t){return $&&f(c,t,[A])}function It(t,e,r,n){const o=ht(n),i=Q(t,r,o[0],o[1],o[2],o[3],o[4],o[5]);return i&&!1===o[0]&&Y(t,r,((t,n,o,i,a,l)=>{h(e,r,ut(t,n,o,i,a,l))})),i}function mt(t,e,r){return X(t,r)}function kt(t,e,r,n){const o=Gt(t,e,r)||bt(t,r);if(o){const{get:t,value:e}=o;return t?f(t,n,[]):e}if(r===D)return at(t)}function Gt(t,e,r){let n;return Y(t,r,((t,o,i,a,l,s)=>{n=ut(t,o,i,a,l,s),!1===n.configurable&&h(e,r,n)})),n}function At(t){return Pt(Z(t))}function Dt(t,e){if(lt(t,e))return!0;let r=At(t);for(;r;){if(f(c,r,[e]))return!0;r=T(r)}return!1}function Ct(t,e){if(v(e)){if(tt(t))return!0;_t(e,t)}return!1}function Rt(t){let e;return et(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e=r})),e||[]}function Nt(t,e){if(v(e)){if(!rt(t))return tt(t)||_t(e,t),!1;_t(e,t)}return!0}function Ut(t,e,r,n,o,i){const a=Gt(t,e,r),l=a||bt(t,r);if(l){if("get"in l||"set"in l){const{set:t}=l;return!!t&&(f(t,o,[n]),!0)}if(!1===l.writable)return!1}let s;if(i)s=a;else{if(null===o||"function"!=typeof o&&"object"!=typeof o)return!1;const t=P(o,r);t&&(s=Vt(t))}return s?!("get"in s)&&!("set"in s)&&!1!==s.writable&&(xt(o)?nt(t,r,Ot(n),wt(o)):h(o,r,{__proto__:null,value:n}),!0):h(o,r,{__proto__:null,configurable:!0,enumerable:!0,value:n,writable:!0})}function Ft(t,e){const r=Ot(e);return ot(t,r)}function _t(t,e){ct(t,e);const r=At(e);S(t,r),O(t)}function Mt(t){const e=Ot(t);return"function"==typeof e&&e(),t}function Vt(t){return S(t,null),t}class jt{constructor(t,e,r){this.color=F,this.apply=function(t,e,r){const{foreignTargetPointer:n}=this,o=[n,Ot(e)],{length:i}=r,{length:a}=o;o.length+=i;for(let t=0,e=i;t<e;t+=1){const e=r[t],n=t+a;o[n]=void 0===e?void 0:null===e||"function"!=typeof e&&"object"!=typeof e?e:wt(e)}return Pt(f(J,void 0,o))},this.construct=function(t,e,r){if(void 0===r)throw new I;const{foreignTargetPointer:n}=this,o=[n,Ot(r)],{length:i}=e,{length:a}=o;o.length+=i;for(let t=0,r=i;t<r;t+=1){const r=e[t],n=t+a;o[n]=void 0===r?void 0:null===r||"function"!=typeof r&&"object"!=typeof r?r:wt(r)}return Pt(f(q,void 0,o))};const n=ft(e),{proxy:o,revoke:a}=p(n,this);this.foreignTargetPointer=t,this.proxy=o,this.revoke=a,this.defineProperty=jt.defaultDefinePropertyTrap,this.deleteProperty=jt.defaultDeletePropertyTrap,this.isExtensible=jt.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=jt.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=jt.defaultGetPrototypeOfTrap,this.get=jt.defaultGetTrap,this.has=jt.defaultHasTrap,this.ownKeys=jt.defaultOwnKeysTrap,this.preventExtensions=jt.defaultPreventExtensionsTrap,this.setPrototypeOf=jt.defaultSetPrototypeOfTrap,this.set=jt.defaultSetTrap,e&U.Revoked&&a(),_||i(this)}makeProxyLive(){this.defineProperty=jt.liveDefinePropertyTrap,this.deleteProperty=jt.liveDeletePropertyTrap,this.preventExtensions=jt.livePreventExtensionsTrap,this.set=jt.liveSetTrap,this.setPrototypeOf=jt.liveSetPrototypeOfTrap,i(this)}makeProxyStatic(t){const{foreignTargetPointer:e}=this,r=it(e);if(r&N.Revoked)this.revoke();else{try{const r=At(e);S(t,r)}catch(t){return void this.revoke()}ct(t,e),r&N.IsFrozen?i(t):r&N.IsSealed?s(t):r&N.IsNotExtensible&&O(t),this.defineProperty=jt.staticDefinePropertyTrap,this.deleteProperty=jt.staticDeletePropertyTrap,this.get=jt.staticGetTrap,this.getOwnPropertyDescriptor=jt.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=jt.staticGetPrototypeOfTrap,this.has=jt.staticHasTrap,this.isExtensible=jt.staticIsExtensibleTrap,this.ownKeys=jt.staticOwnKeysTrap,this.preventExtensions=jt.staticPreventExtensionsTrap,this.set=jt.staticSetTrap,this.setPrototypeOf=jt.staticSetPrototypeOfTrap,i(this)}}makeProxyUnambiguous(t){St(this.foreignTargetPointer)?this.makeProxyLive():this.makeProxyStatic(t)}static liveDefinePropertyTrap(t,e,r){return It(this.foreignTargetPointer,t,e,r)}static liveDeletePropertyTrap(t,e){return mt(this.foreignTargetPointer,0,e)}static liveGetOwnPropertyDescriptorTrap(t,e){return Gt(this.foreignTargetPointer,t,e)}static liveGetPrototypeOfTrap(t){return At(this.foreignTargetPointer)}static liveGetTrap(t,e,r){return kt(this.foreignTargetPointer,t,e,r)}static liveHasTrap(t,e){return Dt(this.foreignTargetPointer,e)}static liveIsExtensibleTrap(t){return Ct(this.foreignTargetPointer,t)}static liveOwnKeysTrap(t){return Rt(this.foreignTargetPointer)}static livePreventExtensionsTrap(t){return Nt(this.foreignTargetPointer,t)}static liveSetPrototypeOfTrap(t,e){return Ft(this.foreignTargetPointer,e)}static liveSetTrap(t,e,r,n){const o=this.proxy===n;return Ut(this.foreignTargetPointer,t,e,r,n,o)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(t),this.defineProperty(t,e,r)}static pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(t),this.deleteProperty(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(t),this.preventExtensions(t)}static pendingSetPrototypeOfTrap(t,e){return this.makeProxyUnambiguous(t),this.setPrototypeOf(t,e)}static pendingSetTrap(t,e,r,n){return this.makeProxyUnambiguous(t),this.set(t,e,r,n)}static staticGetTrap(t,e,r){return e===D?at(this.foreignTargetPointer):b(t,e,r)}}return jt.staticDefinePropertyTrap=h,jt.staticDeletePropertyTrap=g,jt.staticGetOwnPropertyDescriptorTrap=P,jt.staticGetPrototypeOfTrap=T,jt.staticHasTrap=d,jt.staticIsExtensibleTrap=v,jt.staticOwnKeysTrap=w,jt.staticPreventExtensionsTrap=O,jt.staticSetTrap=E,jt.staticSetPrototypeOfTrap=S,jt.defaultGetTrap=jt.liveGetTrap,jt.defaultGetOwnPropertyDescriptorTrap=jt.liveGetOwnPropertyDescriptorTrap,jt.defaultGetPrototypeOfTrap=jt.liveGetPrototypeOfTrap,jt.defaultHasTrap=jt.liveHasTrap,jt.defaultIsExtensibleTrap=jt.liveIsExtensibleTrap,jt.defaultOwnKeysTrap=jt.liveOwnKeysTrap,jt.defaultDefinePropertyTrap=_?jt.pendingDefinePropertyTrap:jt.liveDefinePropertyTrap,jt.defaultDeletePropertyTrap=_?jt.pendingDeletePropertyTrap:jt.liveDeletePropertyTrap,jt.defaultPreventExtensionsTrap=_?jt.pendingPreventExtensionsTrap:jt.livePreventExtensionsTrap,jt.defaultSetTrap=_?jt.pendingSetTrap:jt.liveSetTrap,jt.defaultSetPrototypeOfTrap=_?jt.pendingSetPrototypeOfTrap:jt.liveSetPrototypeOfTrap,S(jt.prototype,null),i(jt.prototype),V(pt(globalThis),Tt,Ot,((t,e)=>{t();return pt(Tt()[e])}),(e=>{try{return Ot(t(e))}catch(t){throw Mt(t)}}),((t,e)=>{t();const r=Tt();f(k,z,[r,e])}),((t,e,r)=>{const{proxy:n}=new jt(t,e,r);return f(k,z,[n,t]),pt(n)}),Et((function(t,e){t();const n=Tt(),o=Pt(e);for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];const{length:s}=a,c=new r(s);for(let t=0,e=s;t<e;t+=1)c[t]=Pt(a[t]);let u;try{u=f(n,o,c)}catch(t){throw Mt(t)}return Ot(u)}),"callableApply",H),Et((function(t,e){t();const n=Tt(),o=Pt(e);for(var i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];const{length:s}=a,c=new r(s);for(let t=0,e=s;t<e;t+=1)c[t]=Pt(a[t]);let u;try{u=y(n,c,o)}catch(t){throw Mt(t)}return Ot(u)}),"callableConstruct",H),Et(((t,e,r,n,o,i,a,l)=>{t();const s=Tt();try{return h(s,e,ut(r,n,o,i,a,l))}catch(t){throw Mt(t)}}),"callableDefineProperty",H),Et(((t,e)=>{t();const r=Tt();try{return g(r,e)}catch(t){throw Mt(t)}}),"callableDeleteProperty",H),Et(((t,e,r)=>{t();const n=Tt();let o;try{o=P(n,e)}catch(t){throw Mt(t)}if(o){const t=ht(o);r(t[0],t[1],t[2],t[3],t[4],t[5])}}),"callableGetOwnPropertyDescriptor",H),Et((t=>{t();const e=Tt();let r;try{r=T(e)}catch(t){throw Mt(t)}return Ot(r)}),"callableGetPrototypeOf",H),Et((t=>{t();const e=Tt();try{return v(e)}catch(t){throw Mt(t)}}),"callableIsExtensible",H),Et(((t,e)=>{t();const r=Tt();let n;try{n=w(r)}catch(t){throw Mt(t)}f(e,void 0,n)}),"callableOwnKeys",H),Et((t=>{t();const e=Tt();try{return O(e)}catch(t){throw Mt(t)}}),"callablePreventExtensions",H),Et(((t,e,r,n)=>{t();const o=Tt();try{return E(o,e,Pt(r),Pt(n))}catch(t){throw Mt(t)}}),"callableSet",H),Et(((t,e)=>{t();const r=Tt(),n=Pt(e);try{return S(r,n)}catch(t){throw Mt(t)}}),"callableSetPrototypeOf",H),Et((t=>{t();return vt(Tt())}),"callableGetTargetIntegrityTraits",H),Et((t=>{t();const e=Tt();try{if("object"==typeof e&&null!==e&&!n(e)){const t=f(u,e,[]);return f(x,t,[8,-1])}}catch(t){}}),"callableGetUnbrandedTag",H),Et(((t,e)=>{t();const r=Tt();try{return f(c,r,[e])}catch(t){throw Mt(t)}}),"callableHasOwnProperty",H)),function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const{6:n,7:o,8:i,9:a,10:l,11:s,12:c,13:u,14:p,15:f,16:y,17:h,18:g,19:b,20:P}=e;W=n,J=yt(Et(o,"callableApply",B)),q=yt(Et(i,"callableConstruct",B)),Q=yt(Et(a,"callableDefineProperty",B)),X=yt(Et(l,"callableDeleteProperty",B)),Y=yt(Et(s,"callableGetOwnPropertyDescriptor",B)),Z=yt(Et(c,"callableGetPrototypeOf",B)),tt=yt(Et(u,"callableIsExtensible",B)),et=yt(Et(p,"callableOwnKeys",B)),rt=yt(Et(f,"callablePreventExtensions",B)),nt=yt(Et(y,"callableSet",B)),ot=yt(Et(h,"callableSetPrototypeOf",B)),it=yt(Et(g,"callableGetTargetIntegrityTraits",B)),at=yt(Et(b,"callableGetUnbrandedTag",B)),lt=yt(Et(P,"callableHasOwnProperty",B))}}}!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(e||(e={})),t(e,null);const n=TypeError,o=`\n(function(){\n 'use strict';\n (${function(){"number"==typeof Error.stackTraceLimit&&(Error.stackTraceLimit*=2)}.toString()})();\n return (${r.toString()})\n})()`;function i(t){if(!t)throw new n("Missing evaluator function.");return t(o)()}const a=Symbol.for("@@membraneUndefinedValue"),l=Error,{assign:s,keys:c}=Object,{apply:u,ownKeys:p}=Reflect,{slice:f,toUpperCase:y}=String.prototype;function h(t){const{length:e}=t;if(!e)return t;const r=u(y,t[0],[]);return 1===e?r:r+u(f,t,[1])}class g{constructor(t){if(void 0===t)throw new l("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:r,redConnector:n,distortionCallback:o,support:i,instrumentation:a}=t;this.blueConnector=r,this.redConnector=n;let s=e.None;const p=i?c(i):[];for(let t=0,r=p.length;t<r;t+=1){const r=h(p[t]);s|=e[r]}let f,y;const g=r("blue",false,s,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];f=e}),{distortionCallback:o,instrumentation:a}),b=n("red",true,s,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];y=e}));u(g,void 0,y),u(b,void 0,f);const{0:P,1:T,2:d,3:v,5:w}=f;this.blueGlobalThisPointer=P,this.blueGetSelectedTarget=T,this.blueGetTransferableValue=d,this.blueCallableGetPropertyValuePointer=v,this.blueCallableLinkPointers=w;const{0:O,3:E,4:S,5:x,9:I,17:m}=y;this.redGlobalThisPointer=O,this.redCallableEvaluate=S,this.redCallableSetPrototypeOf=m,this.redCallableDefineProperty=I,this.redCallableGetPropertyValuePointer=E,this.redCallableLinkPointers=x}evaluate(t){try{const e=this.redCallableEvaluate(t);return"function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){const e=this.blueGetSelectedTarget();if(e)throw e;throw t}}link(){let t=this.blueGlobalThisPointer,e=this.redGlobalThisPointer;for(let r=0,n=arguments.length;r<n;r+=1){const n=r<0||arguments.length<=r?void 0:arguments[r];t=this.blueCallableGetPropertyValuePointer(t,n),e=this.redCallableGetPropertyValuePointer(e,n)}this.redCallableLinkPointers(e,t),this.blueCallableLinkPointers(t,e)}remap(t,e){const r=p(e),n=this.blueGetTransferableValue(t);for(let t=0,o=r.length;t<o;t+=1){const o=r[t],i=e[o],l=s({__proto__:null},i);this.redCallableDefineProperty(n,o,"configurable"in l?!!l.configurable:a,"enumerable"in l?!!l.enumerable:a,"writable"in l?!!l.writable:a,"value"in l?this.blueGetTransferableValue(l.value):a,"get"in l?this.blueGetTransferableValue(l.get):a,"set"in l?this.blueGetTransferableValue(l.set):a)}}remapProto(t,e){const r=this.blueGetTransferableValue(t),n=this.blueGetTransferableValue(e);this.redCallableSetPrototypeOf(r,n)}}const{includes:b}=Array.prototype,{has:P}=Set.prototype,{apply:T,getOwnPropertyDescriptor:d,ownKeys:v}=Reflect,w=new Set(["globalThis","Infinity","NaN","undefined","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","AggregateError","Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Error","EvalError","FinalizationRegistry","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Number","Object","Proxy","RangeError","ReferenceError","RegExp","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakRef","Atomics","JSON","Math","Reflect","escape","unescape"]),O=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval"];function E(t,e){const r=v(e);for(let n=0,o=r.length;n<o;n+=1){const o=r[n];if(!T(P,w,[o])&&!T(b,O,[o])){const r=d(e,o);r&&(t[o]=r)}}return t}function S(t,e){for(let r=0,n=O.length;r<n;r+=1){const n=O[r],o=e[n];o&&(t.link(n),o.prototype&&t.link(n,"prototype"))}}function x(){const t={};for(let e=0,r=arguments.length;e<r;e+=1){const r=e<0||arguments.length<=e?void 0:arguments[e];r&&E(t,r)}return t}const I=TypeError;function m(t,e){if(!t)throw new I("Missing global object shape.");if(!e)throw new I("Missing global object virtualization target.")}export{e as SupportFlagsEnum,g as VirtualEnvironment,i as createConnector,r as createMembraneMarshall,x as getResolvedShapeDescriptors,S as linkIntrinsics,m as validateRequiredGlobalShapeAndVirtualizationObjects};
//# sourceMappingURL=index.min.js.map
{
"name": "@locker/near-membrane-base",
"version": "0.8.4",
"version": "0.8.5",
"license": "MIT",

@@ -13,3 +13,3 @@ "author": "Caridy Patiño <caridy@gmail.com>",

"clean": "rimraf lib types",
"build": "tsc --project tsconfig.types.json && rollup -c"
"build": "tsc --project tsconfig.types.json && rollup --config .rolluprc.cjs"
},

@@ -23,3 +23,3 @@ "files": [

},
"gitHead": "dd8dc7e7caee834b4503259c0f32616748f284c6"
"gitHead": "30dbae8e0453ff50d73196596dd9e3be1e776780"
}

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc