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.7.2 to 0.7.3

2

lib/index.min.js

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

var t;function e(e,r,n=t.None,o,i){let a,s,l;!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(a||(a={})),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"}(s||(s={})),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"}(l||(l={}));const{distortionCallback:c=(t=>t),instrumentation:u}=i||{__proto__:null},{eval:p}=globalThis,y=Array,{isArray:f}=Array,{push:h}=Array.prototype,{defineProperties:d,freeze:g,isFrozen:b,isSealed:P,seal:T}=Object,{hasOwnProperty:m}=Object.prototype,{revocable:v}=Proxy,{defineProperty:w,getOwnPropertyDescriptor:k,setPrototypeOf:E,apply:I,construct:x,deleteProperty:O,get:S,set:A,has:G,getPrototypeOf:M,isExtensible:D,ownKeys:R,preventExtensions:C}=Reflect,N=TypeError,{get:F,set:_}=WeakMap.prototype,U=new WeakMap,V=Symbol.for("@@lockerLiveValue"),L=Symbol.for("@@lockerMagicValue"),j=Symbol.for("@@membraneUndefinedValue"),z=`to:${e}`,K=`from:${e}`,B=n&a.MagicMarker;let $,H,W,J,q,Q,X,Y,Z,tt,et,rt,nt,ot,it;function at(t){return function(...e){try{return I(t,this,e)}catch(t){const e=ut();if(e)throw e;throw new N(t?.message)}}}function st(t,e){return u?function(...r){let n;u.start(e);try{n=I(t,this,r)}finally{u.end(e)}return n}:t}function lt(t){const e=gt(t);return"function"==typeof e&&e(),t}function ct(t){const e=()=>{$=t};return e["[[OriginalTarget]]"]=t,e}function ut(){const t=$;return $=void 0,t}function pt(t,e,r,n,o,i){const a={__proto__:null};return t!==j&&(a.configurable=!!t),e!==j&&(a.enumerable=!!e),r!==j&&(a.writable=!!r),o!==j&&(a.get=dt(o)),i!==j&&(a.set=dt(i)),n!==j&&(a.value=dt(n)),a}function yt(t,e,r){let n;X(e,r,((...t)=>{n=I(pt,void 0,t)})),void 0!==n&&w(t,r,n)}function ft(t,e){let r=[];et(e,((...t)=>{r=t}));const n={__proto__:null};let o;const i=(...t)=>{o=I(pt,void 0,t)};for(let t=0,a=r.length;t<a;t+=1){const a=r[t];X(e,a,i),n[a]=o}d(t,n)}function ht(t){let e=I(F,U,[t]);if(e)return e;let r,n=s.None;const o=function(t){let e;try{e=c(t)}finally{if(e!==t&&typeof e!=typeof t)throw new N(`Invalid distortion ${t}.`)}return e}(t);if("function"==typeof o){n|=s.IsFunction;try{n|=+!("prototype"in o)&&s.IsArrowFunction}catch{}try{r=k(o,"name")?.value}catch{}}else{let t=!1;try{t=f(o)}catch{n|=s.Revoked}n|=+t&&s.IsArray,n|=+!t&&s.IsObject}const i=ct(o);return e=H(i,n,r),I(_,U,[t,e]),e}function dt(t){return"function"==typeof t?(t(),ut()):t}function gt(t){var e;if(void 0!==t)return null===(e=t)||"function"!=typeof e&&"object"!=typeof e?t:ht(t)}function bt(t){const{configurable:e,enumerable:r,writable:n,value:o,get:i,set:a}=t;return["configurable"in t?!!e:j,"enumerable"in t?!!r:j,"writable"in t?!!n:j,"value"in t?gt(o):j,"get"in t?gt(i):j,"set"in t?gt(a):j]}function Pt(t,e){ft(t,e);const r=Y(e);E(t,dt(r)),C(t)}I(m,Error,["stackTraceLimit"])&&"number"==typeof Error.stackTraceLimit&&(Error.stackTraceLimit*=2);class Tt{constructor(t,n,o){this.color=e,this.targetMarkedAsMagic=!1,this.apply=function(t,e,r){const{targetPointer:n}=this,o=[n,gt(e)],{length:i}=r,{length:a}=o;o.length+=i;for(let t=0,e=i;t<e;t+=1)o[t+a]=gt(r[t]);return dt(I(W,void 0,o))},this.construct=function(t,e,r){const{targetPointer:n}=this;if(void 0===r)throw new N;const o=[n,gt(r)],{length:i}=e,{length:a}=o;o.length+=i;for(let t=0,r=i;t<r;t+=1)o[t+a]=gt(e[t]);return dt(I(J,void 0,o))},this.targetPointer=t;const i=function(t,e){let r;return t&s.IsFunction?(r=t&s.IsArrowFunction?()=>{}:function(){},w(r,"name",{value:e,configurable:!0})):r=t&s.IsArray?[]:{},r}(n,o),{proxy:a,revoke:l}=v(i,this);this.proxy=a,this.revoke=l,this.ownKeys=Tt.defaultOwnKeysTrap,this.isExtensible=Tt.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=Tt.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=Tt.defaultGetPrototypeOfTrap,this.get=Tt.defaultGetTrap,this.has=Tt.defaultHasTrap,this.setPrototypeOf=Tt.defaultSetPrototypeOfTrap,this.set=Tt.defaultSetTrap,this.deleteProperty=Tt.defaultDeletePropertyTrap,this.preventExtensions=Tt.defaultPreventExtensionsTrap,this.defineProperty=Tt.defaultDefinePropertyTrap,n&s.Revoked&&l(),r||g(this)}isTargetMarkedAsLive(){const{targetPointer:t}=this;try{return Z(t,V)}catch{}return!1}isTargetMarkedAsMagic(){if(B){const{targetPointer:t}=this;try{return Z(t,L)}catch{}}return!1}makeProxyDynamic(){this.set=Tt.dynamicSetTrap,this.deleteProperty=Tt.dynamicDeletePropertyTrap,this.setPrototypeOf=Tt.dynamicSetPrototypeOfTrap,this.preventExtensions=Tt.dynamicPreventExtensionsTrap,this.defineProperty=Tt.dynamicDefinePropertyTrap,this.targetMarkedAsMagic=this.isTargetMarkedAsMagic(),g(this)}makeProxyStatic(t){const{targetPointer:e}=this,r=ot(e);if(r&l.Revoked)return void this.revoke();let n=null;try{n=Y(e),E(t,dt(n))}catch{return void this.revoke()}ft(t,e),r&l.IsFrozen?g(t):r&l.IsSealed?T(t):r&l.IsNotExtensible&&C(t),this.getOwnPropertyDescriptor=k,this.getPrototypeOf=M,this.get=S,this.has=G,this.ownKeys=R,this.isExtensible=D,this.set=A,this.defineProperty=w,this.deleteProperty=O,this.setPrototypeOf=E,this.preventExtensions=C,g(this)}makeProxyUnambiguous(t){this.isTargetMarkedAsLive()?this.makeProxyDynamic():this.makeProxyStatic(t)}static dynamicDefinePropertyTrap(t,e,r){const{targetPointer:n}=this,o=bt(r),i=[n,e];I(h,i,o);const a=I(q,void 0,i);if(a){const[r]=o;!1===r&&yt(t,n,e)}return a}static dynamicDeletePropertyTrap(t,e){const{targetPointer:r}=this;return Q(r,e)}static dynamicGetOwnPropertyDescriptorTrap(t,e){const{targetPointer:r}=this;let n;return X(r,e,((...t)=>{n=I(pt,void 0,t)})),void 0===n||!1===n.configurable&&yt(t,r,e),n}static dynamicGetPrototypeOfTrap(t){const{targetPointer:e}=this;return dt(Y(e))}static dynamicIsExtensibleTrap(t){if(!D(t))return!1;const{targetPointer:e}=this;return!!tt(e)||(Pt(t,e),!1)}static dynamicOwnKeysTrap(t){const{targetPointer:e}=this;let r=[];return et(e,((...t)=>{r=t})),r}static dynamicPreventExtensionsTrap(t){const{targetPointer:e}=this;if(D(t)){if(!rt(e))return tt(e)||Pt(t,e),!1;Pt(t,e)}return!0}static dynamicSetPrototypeOfTrap(t,e){const{targetPointer:r}=this,n=gt(e);return nt(r,n)}static dynamicHasTrap(t,e){const{targetPointer:r}=this;if(it(r,e))return!0;const n=Y(r);if(null===n)return!1;let o=dt(n);for(;null!==o;){if(I(m,o,[e]))return!0;o=M(o)}return!1}static dynamicGetTrap(t,e,r){let n=this.proxy;for(;null!==n;){if(I(m,n,[e])){const{get:t,value:o}=k(n,e);return t?I(t,r,[]):o}n=M(n)}}static dynamicSetTrap(t,e,r,n){const{targetPointer:o}=this;let i=this.proxy;for(;null!==i;){if(I(m,i,[e])){const{get:t,set:o}=k(i,e);return o?(I(o,n,[r]),!0):!t&&(this.targetMarkedAsMagic?A(i,e,r,i):w(i,e,{value:r}))}i=M(i)}const a=gt(r);return q(o,e,!0,!0,!0,a,j,j)}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 pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(t),this.deleteProperty?.(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(t),this.preventExtensions?.(t)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(t),this.defineProperty?.(t,e,r)}}function mt(t,e,r){const n=ht(t);let o;const i=(...t)=>{o=I(pt,void 0,t)};return{enumerable:r,configurable:!0,writable:!0,get:()=>(X(n,e,i),void 0===o?delete t[e]:w(t,e,o),S(t,e)),set(r){X(n,e,i),void 0===o?delete t[e]:w(t,e,o),A(t,e,r)}}}return Tt.defaultOwnKeysTrap=Tt.dynamicOwnKeysTrap,Tt.defaultIsExtensibleTrap=Tt.dynamicIsExtensibleTrap,Tt.defaultGetOwnPropertyDescriptorTrap=Tt.dynamicGetOwnPropertyDescriptorTrap,Tt.defaultGetPrototypeOfTrap=Tt.dynamicGetPrototypeOfTrap,Tt.defaultGetTrap=Tt.dynamicGetTrap,Tt.defaultHasTrap=Tt.dynamicHasTrap,Tt.defaultSetPrototypeOfTrap=r?Tt.pendingSetPrototypeOfTrap:Tt.dynamicSetPrototypeOfTrap,Tt.defaultSetTrap=r?Tt.pendingSetTrap:Tt.dynamicSetTrap,Tt.defaultDeletePropertyTrap=r?Tt.pendingDeletePropertyTrap:Tt.dynamicDeletePropertyTrap,Tt.defaultPreventExtensionsTrap=r?Tt.pendingPreventExtensionsTrap:Tt.dynamicPreventExtensionsTrap,Tt.defaultDefinePropertyTrap=r?Tt.pendingDefinePropertyTrap:Tt.dynamicDefinePropertyTrap,E(Tt.prototype,null),g(Tt.prototype),o(ct(globalThis),ut,gt,((t,e)=>{t();return ct(ut()[e])}),(t=>{try{p(t)}catch(t){throw lt(t)}}),((t,e)=>{t();const r=ut();I(_,U,[r,e])}),((t,...e)=>{t();const r=ut();for(let t=0,n=e.length;t<n;t+=2){const n=e[t],o=mt(r,n,!!e[t+1]);try{w(r,n,o)}catch{}}}),((t,e,r)=>{const{proxy:n}=new Tt(t,e,r);return I(_,U,[n,t]),ct(n)}),st(((t,e,...r)=>{t();const n=ut(),o=dt(e),{length:i}=r,a=new y(i);for(let t=0,e=i;t<e;t+=1)a[t]=dt(r[t]);let s;try{s=I(n,o,a)}catch(t){throw lt(t)}return gt(s)}),z),st(((t,e,...r)=>{t();const n=ut(),o=dt(e),{length:i}=r,a=new y(i);for(let t=0,e=i;t<e;t+=1)a[t]=dt(r[t]);let s;try{s=x(n,a,o)}catch(t){throw lt(t)}return gt(s)}),z),st(((t,e,...r)=>{t();const n=ut(),o=I(pt,void 0,r);try{return w(n,e,o)}catch(t){throw lt(t)}}),z),st(((t,e)=>{t();const r=ut();try{return O(r,e)}catch(t){throw lt(t)}}),z),st(((t,e,r)=>{t();const n=ut();let o;try{o=k(n,e)}catch(t){throw lt(t)}if(!o)return;const i=bt(o);I(r,void 0,i)}),z),st((t=>{t();const e=ut();let r;try{r=M(e)}catch(t){throw lt(t)}return gt(r)}),z),st(((t,e)=>{t();const r=ut();try{return G(r,e)}catch(t){throw lt(t)}}),z),st((t=>{t();const e=ut();try{return D(e)}catch(t){throw lt(t)}}),z),st(((t,e)=>{t();const r=ut();let n;try{n=R(r)}catch(t){throw lt(t)}I(e,void 0,n)}),z),st((t=>{t();const e=ut();try{return C(e)}catch(t){throw lt(t)}}),z),st(((t,e)=>{t();const r=ut(),n=dt(e);try{return E(r,n)}catch(t){throw lt(t)}}),z),st((t=>{t();const e=ut();let r=l.None;try{b(e)?r|=l.IsSealed&l.IsFrozen&l.IsNotExtensible:P(e)?r|=l.IsSealed:D(e)||(r|=l.IsNotExtensible),f(e)}catch{r|=l.Revoked}return r}),z),st(((t,e)=>{t();const r=ut();try{return I(m,r,[e])}catch(t){throw lt(t)}}),z)),(...t)=>{const[,,,,,,,e,r,n,o,i,a,s,l,c,u,p,y,f,h]=t;H=e,W=at(st(r,K)),J=at(st(n,K)),q=at(st(o,K)),Q=at(st(i,K)),X=at(st(a,K)),Y=at(st(s,K)),Z=at(st(l,K)),tt=at(st(c,K)),et=at(st(u,K)),rt=at(st(p,K)),nt=at(st(y,K)),ot=at(st(f,K)),it=at(st(h,K))}}!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(t||(t={}));const r=`(function(){'use strict';return (${e.toString()})})()`,n=Symbol.for("@@membraneUndefinedValue"),o=/^\d+$/,{includes:i,push:a}=Array.prototype,s=Error,{assign:l,keys:c}=Object,{propertyIsEnumerable:u}=Object.prototype,{apply:p,ownKeys:y}=Reflect,{test:f}=RegExp.prototype;function h(t,e){return p(f,t,[e])}class d{constructor(e){if(void 0===e)throw new s("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:r,redConnector:n,distortionCallback:o,support:i}=e;let a,l;const c={distortionCallback:o};let u=t.None;u|=i?.magicMarker&&t.MagicMarker;const y=r("blue",false,u,((...t)=>{a=t}),c),f=n("red",true,u,((...t)=>{l=t}));p(y,void 0,l),p(f,void 0,a);const[h,d,g,b,,P]=a;this.blueGlobalThisPointer=h,this.blueGetSelectedTarget=d,this.blueGetTransferableValue=g,this.blueCallableGetPropertyValuePointer=b,this.blueCallableLinkPointers=P;const[T,,,m,v,w,k,,,,E,,,,,,,,I]=l;this.redGlobalThisPointer=T,this.redCallableEvaluate=v,this.redCallableInstallLazyDescriptors=k,this.redCallableSetPrototypeOf=I,this.redCallableDefineProperty=E,this.redCallableGetPropertyValuePointer=m,this.redCallableLinkPointers=w}evaluate(t){try{this.redCallableEvaluate(t)}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)e=this.blueCallableGetPropertyValuePointer(e,t[n]),r=this.redCallableGetPropertyValuePointer(r,t[n]);this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r)}remap(t,e){const r=y(e),i=this.blueGetTransferableValue(t);for(let t=0,a=r.length;t<a;t+=1){const a=r[t];if("symbol"!=typeof a&&h(o,a))continue;const s=l({__proto__:null},e[a]),c="configurable"in s?!!s.configurable:n,u="enumerable"in s?!!s.enumerable:n,p="writable"in s?!!s.writable:n,y="value"in s?this.blueGetTransferableValue(s.value):n,f="get"in s?this.blueGetTransferableValue(s.get):n,d="set"in s?this.blueGetTransferableValue(s.set):n;this.redCallableDefineProperty(i,a,c,u,p,y,f,d)}}lazyRemap(t,e){const r=c(t),n=[this.blueGetTransferableValue(t)];for(let s=0,l=e.length;s<l;s+=1){const l=e[s];if("symbol"!=typeof l&&h(o,l))continue;const c="symbol"==typeof l?p(u,t,[l]):p(i,r,[l]);p(a,n,[l,c])}p(this.redCallableInstallLazyDescriptors,void 0,n)}remapProto(t,e){const r=this.blueGetTransferableValue(t),n=this.blueGetTransferableValue(e);this.redCallableSetPrototypeOf(r,n)}}const{has:g}=Set.prototype,{apply:b,getOwnPropertyDescriptor:P,ownKeys:T}=Reflect,m=new Set(["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"]),v=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError"];function w(t,e){for(let r=0,n=v.length;r<n;r+=1){const n=v[r],o=e[n];o&&(t.link(n),o.prototype&&t.link(n,"prototype"))}}function k(t){const e={__proto__:null},r=T(t);for(let n=0,o=r.length;n<o;n+=1){const o=r[n];b(g,m,[o])||(e[o]=P(t,o))}return e}function E(t){return b(g,m,[t])}export{t as SupportFlagsField,d as VirtualEnvironment,k as getFilteredEndowmentDescriptors,e as init,r as initSourceTextInStrictMode,E as isIntrinsicGlobalName,w as linkIntrinsics};
var t;function e(e,r,n=t.None,o,i){let a,s,l;!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(a||(a={})),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"}(s||(s={})),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"}(l||(l={}));const{distortionCallback:c=(t=>t),instrumentation:u}=i||{__proto__:null},{eval:p}=globalThis,y=Array,{isArray:f}=Array,{push:h}=Array.prototype,{defineProperties:d,freeze:g,isFrozen:b,isSealed:P,seal:m}=Object,{hasOwnProperty:T}=Object.prototype,{revocable:v}=Proxy,{defineProperty:w,getOwnPropertyDescriptor:k,setPrototypeOf:E,apply:I,construct:x,deleteProperty:O,get:S,set:A,has:G,getPrototypeOf:D,isExtensible:M,ownKeys:R,preventExtensions:C}=Reflect,N=TypeError,{get:F,set:_}=WeakMap.prototype,U=new WeakMap,V=Symbol.for("@@lockerLiveValue"),L=Symbol.for("@@lockerMagicValue"),j=Symbol.for("@@membraneUndefinedValue"),z=`to:${e}`,K=`from:${e}`,B=n&a.MagicMarker;let $,H,W,J,q,Q,X,Y,Z,tt,et,rt,nt,ot,it;function at(t){return function(...e){try{return I(t,this,e)}catch(t){const e=ut();if(e)throw e;throw new N(t?.message)}}}function st(t,e){return u?function(...r){let n;u.start(e);try{n=I(t,this,r)}finally{u.end(e)}return n}:t}function lt(t){const e=bt(t);return"function"==typeof e&&e(),t}function ct(t){const e=()=>{$=t};return e["[[OriginalTarget]]"]=t,e}function ut(){const t=$;return $=void 0,t}function pt(t,e,r,n,o,i){const a={__proto__:null};return t!==j&&(a.configurable=!!t),e!==j&&(a.enumerable=!!e),r!==j&&(a.writable=!!r),o!==j&&(a.get=gt(o)),i!==j&&(a.set=gt(i)),n!==j&&(a.value=gt(n)),a}function yt(t,e,r){let n;X(e,r,((...t)=>{n=I(pt,void 0,t)})),void 0!==n&&w(t,r,n)}function ft(t,e){let r=[];et(e,((...t)=>{r=t}));const n={__proto__:null};let o;const i=(...t)=>{o=I(pt,void 0,t)};for(let t=0,a=r.length;t<a;t+=1){const a=r[t];X(e,a,i),n[a]=o}d(t,n)}function ht(t,e){try{return Z(t,e)}catch{}return!1}function dt(t){let e=I(F,U,[t]);if(e)return e;let r,n=s.None;const o=function(t){let e;try{e=c(t)}finally{if(e!==t&&typeof e!=typeof t)throw new N(`Invalid distortion ${t}.`)}return e}(t);if("function"==typeof o){n|=s.IsFunction;try{n|=+!("prototype"in o)&&s.IsArrowFunction}catch{}try{r=k(o,"name")?.value}catch{}}else{let t=!1;try{t=f(o)}catch{n|=s.Revoked}n|=+t&&s.IsArray,n|=+!t&&s.IsObject}const i=ct(o);return e=H(i,n,r),I(_,U,[t,e]),e}function gt(t){return"function"==typeof t?(t(),ut()):t}function bt(t){var e;if(void 0!==t)return null===(e=t)||"function"!=typeof e&&"object"!=typeof e?t:dt(t)}function Pt(t){const{configurable:e,enumerable:r,writable:n,value:o,get:i,set:a}=t;return["configurable"in t?!!e:j,"enumerable"in t?!!r:j,"writable"in t?!!n:j,"value"in t?bt(o):j,"get"in t?bt(i):j,"set"in t?bt(a):j]}function mt(t,e){ft(t,e);const r=Y(e);E(t,gt(r)),C(t)}I(T,Error,["stackTraceLimit"])&&"number"==typeof Error.stackTraceLimit&&(Error.stackTraceLimit*=2);class Tt{constructor(t,n,o){this.color=e,this.apply=function(t,e,r){const{targetPointer:n}=this,o=[n,bt(e)],{length:i}=r,{length:a}=o;o.length+=i;for(let t=0,e=i;t<e;t+=1)o[t+a]=bt(r[t]);return gt(I(W,void 0,o))},this.construct=function(t,e,r){const{targetPointer:n}=this;if(void 0===r)throw new N;const o=[n,bt(r)],{length:i}=e,{length:a}=o;o.length+=i;for(let t=0,r=i;t<r;t+=1)o[t+a]=bt(e[t]);return gt(I(J,void 0,o))},this.targetPointer=t;const i=function(t,e){let r;return t&s.IsFunction?(r=t&s.IsArrowFunction?()=>{}:function(){},w(r,"name",{value:e,configurable:!0})):r=t&s.IsArray?[]:{},r}(n,o),{proxy:a,revoke:l}=v(i,this);this.proxy=a,this.revoke=l,this.ownKeys=Tt.defaultOwnKeysTrap,this.isExtensible=Tt.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=Tt.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=Tt.defaultGetPrototypeOfTrap,this.get=Tt.defaultGetTrap,this.has=Tt.defaultHasTrap,this.setPrototypeOf=Tt.defaultSetPrototypeOfTrap,this.set=Tt.defaultSetTrap,this.deleteProperty=Tt.defaultDeletePropertyTrap,this.preventExtensions=Tt.defaultPreventExtensionsTrap,this.defineProperty=Tt.defaultDefinePropertyTrap,n&s.Revoked&&l(),r||g(this)}get targetMarkedAsLive(){const t=ht(this.targetPointer,V);return w(this,"targetMarkedAsLive",{value:t}),t}get targetMarkedAsMagic(){const t=!!B&&ht(this.targetPointer,L);return w(this,"targetMarkedAsMagic",{value:t}),t}makeProxyDynamic(){this.set=Tt.dynamicSetTrap,this.deleteProperty=Tt.dynamicDeletePropertyTrap,this.setPrototypeOf=Tt.dynamicSetPrototypeOfTrap,this.preventExtensions=Tt.dynamicPreventExtensionsTrap,this.defineProperty=Tt.dynamicDefinePropertyTrap,g(this)}makeProxyStatic(t){const{targetPointer:e}=this,r=ot(e);if(r&l.Revoked)return void this.revoke();let n=null;try{n=Y(e),E(t,gt(n))}catch{return void this.revoke()}ft(t,e),r&l.IsFrozen?g(t):r&l.IsSealed?m(t):r&l.IsNotExtensible&&C(t),this.getOwnPropertyDescriptor=k,this.getPrototypeOf=D,this.get=S,this.has=G,this.ownKeys=R,this.isExtensible=M,this.set=A,this.defineProperty=w,this.deleteProperty=O,this.setPrototypeOf=E,this.preventExtensions=C,g(this)}makeProxyUnambiguous(t){this.targetMarkedAsLive?this.makeProxyDynamic():this.makeProxyStatic(t)}static dynamicDefinePropertyTrap(t,e,r){const{targetPointer:n}=this,o=Pt(r),i=[n,e];I(h,i,o);const a=I(q,void 0,i);if(a){const[r]=o;!1===r&&yt(t,n,e)}return a}static dynamicDeletePropertyTrap(t,e){const{targetPointer:r}=this;return Q(r,e)}static dynamicGetOwnPropertyDescriptorTrap(t,e){const{targetPointer:r}=this;let n;return X(r,e,((...t)=>{n=I(pt,void 0,t)})),void 0===n||!1===n.configurable&&yt(t,r,e),n}static dynamicGetPrototypeOfTrap(t){const{targetPointer:e}=this;return gt(Y(e))}static dynamicIsExtensibleTrap(t){if(!M(t))return!1;const{targetPointer:e}=this;return!!tt(e)||(mt(t,e),!1)}static dynamicOwnKeysTrap(t){const{targetPointer:e}=this;let r=[];return et(e,((...t)=>{r=t})),r}static dynamicPreventExtensionsTrap(t){const{targetPointer:e}=this;if(M(t)){if(!rt(e))return tt(e)||mt(t,e),!1;mt(t,e)}return!0}static dynamicSetPrototypeOfTrap(t,e){const{targetPointer:r}=this,n=bt(e);return nt(r,n)}static dynamicHasTrap(t,e){const{targetPointer:r}=this;if(it(r,e))return!0;const n=Y(r);if(null===n)return!1;let o=gt(n);for(;null!==o;){if(I(T,o,[e]))return!0;o=D(o)}return!1}static dynamicGetTrap(t,e,r){let n=this.proxy;for(;null!==n;){if(I(T,n,[e])){const{get:t,value:o}=k(n,e);return t?I(t,r,[]):o}n=D(n)}}static dynamicSetTrap(t,e,r,n){const{targetPointer:o}=this;let i=this.proxy;for(;null!==i;){if(I(T,i,[e])){const{get:t,set:o}=k(i,e);return o?(I(o,n,[r]),!0):!t&&(this.targetMarkedAsMagic?A(i,e,r,i):w(i,e,{value:r}))}i=D(i)}const a=bt(r);return q(o,e,!0,!0,!0,a,j,j)}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 pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(t),this.deleteProperty?.(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(t),this.preventExtensions?.(t)}static pendingDefinePropertyTrap(t,e,r){return this.makeProxyUnambiguous(t),this.defineProperty?.(t,e,r)}}function vt(t,e,r){const n=dt(t);let o;const i=(...t)=>{o=I(pt,void 0,t)};return{enumerable:r,configurable:!0,writable:!0,get:()=>(X(n,e,i),void 0===o?delete t[e]:w(t,e,o),S(t,e)),set(r){X(n,e,i),void 0===o?delete t[e]:w(t,e,o),A(t,e,r)}}}return Tt.defaultOwnKeysTrap=Tt.dynamicOwnKeysTrap,Tt.defaultIsExtensibleTrap=Tt.dynamicIsExtensibleTrap,Tt.defaultGetOwnPropertyDescriptorTrap=Tt.dynamicGetOwnPropertyDescriptorTrap,Tt.defaultGetPrototypeOfTrap=Tt.dynamicGetPrototypeOfTrap,Tt.defaultGetTrap=Tt.dynamicGetTrap,Tt.defaultHasTrap=Tt.dynamicHasTrap,Tt.defaultSetPrototypeOfTrap=r?Tt.pendingSetPrototypeOfTrap:Tt.dynamicSetPrototypeOfTrap,Tt.defaultSetTrap=r?Tt.pendingSetTrap:Tt.dynamicSetTrap,Tt.defaultDeletePropertyTrap=r?Tt.pendingDeletePropertyTrap:Tt.dynamicDeletePropertyTrap,Tt.defaultPreventExtensionsTrap=r?Tt.pendingPreventExtensionsTrap:Tt.dynamicPreventExtensionsTrap,Tt.defaultDefinePropertyTrap=r?Tt.pendingDefinePropertyTrap:Tt.dynamicDefinePropertyTrap,E(Tt.prototype,null),g(Tt.prototype),o(ct(globalThis),ut,bt,((t,e)=>{t();return ct(ut()[e])}),(t=>{try{p(t)}catch(t){throw lt(t)}}),((t,e)=>{t();const r=ut();I(_,U,[r,e])}),((t,...e)=>{t();const r=ut();for(let t=0,n=e.length;t<n;t+=2){const n=e[t],o=vt(r,n,!!e[t+1]);try{w(r,n,o)}catch{}}}),((t,e,r)=>{const{proxy:n}=new Tt(t,e,r);return I(_,U,[n,t]),ct(n)}),st(((t,e,...r)=>{t();const n=ut(),o=gt(e),{length:i}=r,a=new y(i);for(let t=0,e=i;t<e;t+=1)a[t]=gt(r[t]);let s;try{s=I(n,o,a)}catch(t){throw lt(t)}return bt(s)}),z),st(((t,e,...r)=>{t();const n=ut(),o=gt(e),{length:i}=r,a=new y(i);for(let t=0,e=i;t<e;t+=1)a[t]=gt(r[t]);let s;try{s=x(n,a,o)}catch(t){throw lt(t)}return bt(s)}),z),st(((t,e,...r)=>{t();const n=ut(),o=I(pt,void 0,r);try{return w(n,e,o)}catch(t){throw lt(t)}}),z),st(((t,e)=>{t();const r=ut();try{return O(r,e)}catch(t){throw lt(t)}}),z),st(((t,e,r)=>{t();const n=ut();let o;try{o=k(n,e)}catch(t){throw lt(t)}if(!o)return;const i=Pt(o);I(r,void 0,i)}),z),st((t=>{t();const e=ut();let r;try{r=D(e)}catch(t){throw lt(t)}return bt(r)}),z),st(((t,e)=>{t();const r=ut();try{return G(r,e)}catch(t){throw lt(t)}}),z),st((t=>{t();const e=ut();try{return M(e)}catch(t){throw lt(t)}}),z),st(((t,e)=>{t();const r=ut();let n;try{n=R(r)}catch(t){throw lt(t)}I(e,void 0,n)}),z),st((t=>{t();const e=ut();try{return C(e)}catch(t){throw lt(t)}}),z),st(((t,e)=>{t();const r=ut(),n=gt(e);try{return E(r,n)}catch(t){throw lt(t)}}),z),st((t=>{t();const e=ut();let r=l.None;try{b(e)?r|=l.IsSealed&l.IsFrozen&l.IsNotExtensible:P(e)?r|=l.IsSealed:M(e)||(r|=l.IsNotExtensible),f(e)}catch{r|=l.Revoked}return r}),z),st(((t,e)=>{t();const r=ut();try{return I(T,r,[e])}catch(t){throw lt(t)}}),z)),(...t)=>{const[,,,,,,,e,r,n,o,i,a,s,l,c,u,p,y,f,h]=t;H=e,W=at(st(r,K)),J=at(st(n,K)),q=at(st(o,K)),Q=at(st(i,K)),X=at(st(a,K)),Y=at(st(s,K)),Z=at(st(l,K)),tt=at(st(c,K)),et=at(st(u,K)),rt=at(st(p,K)),nt=at(st(y,K)),ot=at(st(f,K)),it=at(st(h,K))}}!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(t||(t={}));const r=`(function(){'use strict';return (${e.toString()})})()`,n=Symbol.for("@@membraneUndefinedValue"),o=/^\d+$/,{includes:i,push:a}=Array.prototype,s=Error,{assign:l,keys:c}=Object,{propertyIsEnumerable:u}=Object.prototype,{apply:p,ownKeys:y}=Reflect,{test:f}=RegExp.prototype;function h(t,e){return p(f,t,[e])}class d{constructor(e){if(void 0===e)throw new s("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:r,redConnector:n,distortionCallback:o,support:i}=e;let a,l;const c={distortionCallback:o};let u=t.None;u|=i?.magicMarker&&t.MagicMarker;const y=r("blue",false,u,((...t)=>{a=t}),c),f=n("red",true,u,((...t)=>{l=t}));p(y,void 0,l),p(f,void 0,a);const[h,d,g,b,,P]=a;this.blueGlobalThisPointer=h,this.blueGetSelectedTarget=d,this.blueGetTransferableValue=g,this.blueCallableGetPropertyValuePointer=b,this.blueCallableLinkPointers=P;const[m,,,T,v,w,k,,,,E,,,,,,,,I]=l;this.redGlobalThisPointer=m,this.redCallableEvaluate=v,this.redCallableInstallLazyDescriptors=k,this.redCallableSetPrototypeOf=I,this.redCallableDefineProperty=E,this.redCallableGetPropertyValuePointer=T,this.redCallableLinkPointers=w}evaluate(t){try{this.redCallableEvaluate(t)}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)e=this.blueCallableGetPropertyValuePointer(e,t[n]),r=this.redCallableGetPropertyValuePointer(r,t[n]);this.redCallableLinkPointers(r,e),this.blueCallableLinkPointers(e,r)}remap(t,e){const r=y(e),i=this.blueGetTransferableValue(t);for(let t=0,a=r.length;t<a;t+=1){const a=r[t];if("symbol"!=typeof a&&h(o,a))continue;const s=l({__proto__:null},e[a]),c="configurable"in s?!!s.configurable:n,u="enumerable"in s?!!s.enumerable:n,p="writable"in s?!!s.writable:n,y="value"in s?this.blueGetTransferableValue(s.value):n,f="get"in s?this.blueGetTransferableValue(s.get):n,d="set"in s?this.blueGetTransferableValue(s.set):n;this.redCallableDefineProperty(i,a,c,u,p,y,f,d)}}lazyRemap(t,e){const r=c(t),n=[this.blueGetTransferableValue(t)];for(let s=0,l=e.length;s<l;s+=1){const l=e[s];if("symbol"!=typeof l&&h(o,l))continue;const c="symbol"==typeof l?p(u,t,[l]):p(i,r,[l]);p(a,n,[l,c])}p(this.redCallableInstallLazyDescriptors,void 0,n)}remapProto(t,e){const r=this.blueGetTransferableValue(t),n=this.blueGetTransferableValue(e);this.redCallableSetPrototypeOf(r,n)}}const{has:g}=Set.prototype,{apply:b,getOwnPropertyDescriptor:P,ownKeys:m}=Reflect,T=new Set(["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"]),v=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError"];function w(t,e){for(let r=0,n=v.length;r<n;r+=1){const n=v[r],o=e[n];o&&(t.link(n),o.prototype&&t.link(n,"prototype"))}}function k(t){const e={__proto__:null},r=m(t);for(let n=0,o=r.length;n<o;n+=1){const o=r[n];b(g,T,[o])||(e[o]=P(t,o))}return e}function E(t){return b(g,T,[t])}export{t as SupportFlagsField,d as VirtualEnvironment,k as getFilteredEndowmentDescriptors,e as init,r as initSourceTextInStrictMode,E as isIntrinsicGlobalName,w as linkIntrinsics};
//# sourceMappingURL=index.min.js.map
{
"name": "@locker/near-membrane-base",
"version": "0.7.2",
"version": "0.7.3",
"license": "MIT",

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

},
"gitHead": "d5a8ce14e9d0cd31ef323bd3f6ee0aa685b29663"
"gitHead": "51129b30ba7939e1ae1a717242cb4dff3f165beb"
}

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

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