@sentio/runtime 2.44.4-rc.1 → 2.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
- import{$ as A,W as N,X as C,Y as V,Z as w,_ as O,aa as I,ba as M,ca as b,g as u,j as T,k as m,n as h,o as l,p as f,q as x,r as d,z as c}from"./chunk-4JZFB6MP.js";var s=class{stateMap=new Map;static reset(){s.INSTANCE=new s}},r=s;u(r,"INSTANCE",new s);var i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},g=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,n){let o=this.getOrRegister(),a=o.get(t);return a?(console.warn(t,"has been registered twice, use the previous one"),a):(o.set(t,n),n)}},p=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("process").then(e=>e.stdout.write(""));import("process").then(e=>e.stdout.write(""));import("process").then(e=>e.stdout.write(""));export{A as DummyProvider,d as Endpoints,c as GLOBAL_CONFIG,p as ListStateStorage,g as MapStateStorage,T as Plugin,m as PluginManager,b as ProcessorServiceImpl,M as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,O as StoreContext,f as USER_PROCESSOR,N as dbMetrics,l as errorString,I as getProvider,x as makeEthCallKey,h as mergeProcessResults,V as processMetrics,C as providerMetrics,w as timeoutError};
2
+ import{$ as A,W as N,X as C,Y as V,Z as w,_ as O,aa as I,ba as M,ca as b,g as u,j as T,k as m,n as h,o as l,p as f,q as x,r as d,z as c}from"./chunk-MHFCQFYK.js";var s=class{stateMap=new Map;static reset(){s.INSTANCE=new s}},r=s;u(r,"INSTANCE",new s);var i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},g=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,n){let o=this.getOrRegister(),a=o.get(t);return a?(console.warn(t,"has been registered twice, use the previous one"),a):(o.set(t,n),n)}},p=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("process").then(e=>e.stdout.write(""));import("process").then(e=>e.stdout.write(""));import("process").then(e=>e.stdout.write(""));export{A as DummyProvider,d as Endpoints,c as GLOBAL_CONFIG,p as ListStateStorage,g as MapStateStorage,T as Plugin,m as PluginManager,b as ProcessorServiceImpl,M as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,O as StoreContext,f as USER_PROCESSOR,N as dbMetrics,l as errorString,I as getProvider,x as makeEthCallKey,h as mergeProcessResults,V as processMetrics,C as providerMetrics,w as timeoutError};
3
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
3
- import{A as at,B as iE,C as Xr,D as aE,E as sE,F as Et,G as J,H as uE,I as Ft,J as Gi,K as _t,L as lE,M as St,N as cE,O as fE,P as He,Q as g,R as ki,S as st,T as X,U as Re,V as b,a as L,b as m,c as h,ca as pE,d as it,e as Ke,f as Y,h as MU,i as Zd,k as eE,l as tE,m as rE,r as yr,s as Rl,t as xU,u as oo,v as nE,w as oE,x as LU,y as IU,z as Pl}from"./chunk-4JZFB6MP.js";var Ee=h(bl=>{"use strict";bl.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};bl.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var EE=h((b7,dE)=>{var Yt=L("constants"),CU=process.cwd,Hi=null,wU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hi||(Hi=CU.call(process)),Hi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ml=process.chdir,process.chdir=function(t){Hi=null,Ml.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ml));var Ml;dE.exports=UU;function UU(t){Yt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),wU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,D){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,Yt.O_WRONLY|Yt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,Yt.O_WRONLY|Yt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){Yt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,Yt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,Yt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function s(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function u(c){return c&&function(p,_){var f=_?c.call(t,p,_):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var hE=h((M7,SE)=>{var _E=L("stream").Stream;SE.exports=DU;function DU(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);_E.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);_E.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var vE=h((x7,TE)=>{"use strict";TE.exports=BU;var VU=Object.getPrototypeOf||function(t){return t.__proto__};function BU(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:VU(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var Qr=h((L7,Il)=>{var ie=L("fs"),GU=EE(),kU=hE(),HU=vE(),Fi=L("util"),ve,qi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ve=Symbol.for("graceful-fs.queue"),qi=Symbol.for("graceful-fs.previous")):(ve="___graceful-fs.queue",qi="___graceful-fs.previous");function FU(){}function AE(t,e){Object.defineProperty(t,ve,{get:function(){return e}})}var Ar=FU;Fi.debuglog?Ar=Fi.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ar=function(){var t=Fi.format.apply(Fi,arguments);t="GFS4: "+t.split(/\n/).join(`
3
+ import{A as at,B as iE,C as Xr,D as aE,E as sE,F as Et,G as J,H as uE,I as Ft,J as Gi,K as _t,L as lE,M as St,N as cE,O as fE,P as He,Q as g,R as ki,S as st,T as X,U as Re,V as b,a as L,b as m,c as h,ca as pE,d as it,e as Ke,f as Y,h as MU,i as Zd,k as eE,l as tE,m as rE,r as yr,s as Rl,t as xU,u as oo,v as nE,w as oE,x as LU,y as IU,z as Pl}from"./chunk-MHFCQFYK.js";var Ee=h(bl=>{"use strict";bl.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};bl.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var EE=h((b7,dE)=>{var Yt=L("constants"),CU=process.cwd,Hi=null,wU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hi||(Hi=CU.call(process)),Hi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ml=process.chdir,process.chdir=function(t){Hi=null,Ml.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ml));var Ml;dE.exports=UU;function UU(t){Yt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),wU==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,D){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(D,G,F){if(D&&D.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,Yt.O_WRONLY|Yt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,Yt.O_WRONLY|Yt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){Yt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,Yt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,Yt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function s(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function u(c){return c&&function(p,_){var f=_?c.call(t,p,_):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var hE=h((M7,SE)=>{var _E=L("stream").Stream;SE.exports=DU;function DU(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);_E.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,u=o.length;r<u;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);_E.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var vE=h((x7,TE)=>{"use strict";TE.exports=BU;var VU=Object.getPrototypeOf||function(t){return t.__proto__};function BU(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:VU(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var Qr=h((L7,Il)=>{var ie=L("fs"),GU=EE(),kU=hE(),HU=vE(),Fi=L("util"),ve,qi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ve=Symbol.for("graceful-fs.queue"),qi=Symbol.for("graceful-fs.previous")):(ve="___graceful-fs.queue",qi="___graceful-fs.previous");function FU(){}function AE(t,e){Object.defineProperty(t,ve,{get:function(){return e}})}var Ar=FU;Fi.debuglog?Ar=Fi.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ar=function(){var t=Fi.format.apply(Fi,arguments);t="GFS4: "+t.split(/\n/).join(`
4
4
  GFS4: `),console.error(t)});ie[ve]||(mE=global[ve]||[],AE(ie,mE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||yE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,qi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),yE()}return Object.defineProperty(e,qi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ar(ie[ve]),L("assert").equal(ie[ve].length,0)}));var mE;global[ve]||AE(global,ie[ve]);Il.exports=xl(HU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Il.exports=xl(ie),ie.__patched=!0);function xl(t){GU(t),t.gracefulify=xl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),W(x,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Jr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,W){return typeof w=="function"&&(W=w,w=0),z(x,B,w,W);function z(ne,oe,se,Z,Te){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,Te){return l(oe,z(oe,se,Z,Te))}:function(oe,se,Z,Te){return l(oe,se,z(oe,se,Z,Te))};return W(x,B,w);function z(ne,oe,se,Z){return function(Te,re){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Jr([W,[ne,oe,se],Te,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,Te,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=kU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,W){return typeof w=="function"&&(W=w,w=null),z(x,B,w,W);function z(ne,oe,se,Z,Te){return ae(ne,oe,se,function(re,R7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Jr([z,[ne,oe,se,Z],re,Te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Jr(t){Ar("ENQUEUE",t[0].name,t[1]),ie[ve].push(t),Ll()}var Yi;function yE(){for(var t=Date.now(),e=0;e<ie[ve].length;++e)ie[ve][e].length>2&&(ie[ve][e][3]=t,ie[ve][e][4]=t);Ll()}function Ll(){if(clearTimeout(Yi),Yi=void 0,ie[ve].length!==0){var t=ie[ve].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)Ar("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Ar("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(Ar("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[ve].push(t)}Yi===void 0&&(Yi=setTimeout(Ll,0))}}});var Le=h(Ct=>{"use strict";var OE=Ee().fromCallback,xe=Qr(),YU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof xe[t]=="function");Object.assign(Ct,xe);YU.forEach(t=>{Ct[t]=OE(xe[t])});Ct.exists=function(t,e){return typeof e=="function"?xe.exists(t,e):new Promise(n=>xe.exists(t,n))};Ct.read=function(t,e,n,i,a,s){return typeof s=="function"?xe.read(t,e,n,i,a,s):new Promise((o,r)=>{xe.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};Ct.write=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.write(t,e,...n):new Promise((i,a)=>{xe.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};Ct.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.readv(t,e,...n):new Promise((i,a)=>{xe.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};Ct.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?xe.writev(t,e,...n):new Promise((i,a)=>{xe.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof xe.realpath.native=="function"?Ct.realpath.native=OE(xe.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var NE=h((C7,gE)=>{"use strict";var qU=L("path");gE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(qU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var ME=h((w7,Cl)=>{"use strict";var RE=Le(),{checkPath:PE}=NE(),bE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Cl.exports.makeDir=async(t,e)=>(PE(t),RE.mkdir(t,{mode:bE(e),recursive:!0}));Cl.exports.makeDirSync=(t,e)=>(PE(t),RE.mkdirSync(t,{mode:bE(e),recursive:!0}))});var ut=h((U7,xE)=>{"use strict";var jU=Ee().fromPromise,{makeDir:$U,makeDirSync:wl}=ME(),Ul=jU($U);xE.exports={mkdirs:Ul,mkdirsSync:wl,mkdirp:Ul,mkdirpSync:wl,ensureDir:Ul,ensureDirSync:wl}});var qt=h((D7,IE)=>{"use strict";var KU=Ee().fromPromise,LE=Le();function WU(t){return LE.access(t).then(()=>!0).catch(()=>!1)}IE.exports={pathExists:KU(WU),pathExistsSync:LE.existsSync}});var Dl=h((V7,CE)=>{"use strict";var Zr=Le(),zU=Ee().fromPromise;async function XU(t,e,n){let i=await Zr.open(t,"r+"),a=null;try{await Zr.futimes(i,e,n)}finally{try{await Zr.close(i)}catch(s){a=s}}if(a)throw a}function JU(t,e,n){let i=Zr.openSync(t,"r+");return Zr.futimesSync(i,e,n),Zr.closeSync(i)}CE.exports={utimesMillis:zU(XU),utimesMillisSync:JU}});var Or=h((B7,VE)=>{"use strict";var en=Le(),_e=L("path"),wE=Ee().fromPromise;function QU(t,e,n){let i=n.dereference?a=>en.stat(a,{bigint:!0}):a=>en.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function ZU(t,e,n){let i,a=n.dereference?o=>en.statSync(o,{bigint:!0}):o=>en.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function eD(t,e,n,i){let{srcStat:a,destStat:s}=await QU(t,e,i);if(s){if(io(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Vl(t,e))throw new Error(ji(t,e,n));return{srcStat:a,destStat:s}}function tD(t,e,n,i){let{srcStat:a,destStat:s}=ZU(t,e,i);if(s){if(io(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Vl(t,e))throw new Error(ji(t,e,n));return{srcStat:a,destStat:s}}async function UE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await en.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(io(e,o))throw new Error(ji(t,n,i));return UE(t,e,s,i)}function DE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=en.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(io(e,o))throw new Error(ji(t,n,i));return DE(t,e,s,i)}function io(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Vl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function ji(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}VE.exports={checkPaths:wE(eD),checkPathsSync:tD,checkParentPaths:wE(UE),checkParentPathsSync:DE,isSrcSubdir:Vl,areIdentical:io}});var FE=h((G7,HE)=>{"use strict";var Pe=Le(),ao=L("path"),{mkdirs:rD}=ut(),{pathExists:nD}=qt(),{utimesMillis:oD}=Dl(),so=Or();async function iD(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
6
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await so.checkPaths(t,e,"copy",n);if(await so.checkParentPaths(t,i,e,"copy"),!await GE(t,e,n))return;let o=ao.dirname(e);await nD(o)||await rD(o),await kE(a,t,e,n)}async function GE(t,e,n){return n.filter?n.filter(t,e):!0}async function kE(t,e,n,i){let s=await(i.dereference?Pe.stat:Pe.lstat)(e);if(s.isDirectory())return lD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return aD(s,t,e,n,i);if(s.isSymbolicLink())return cD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function aD(t,e,n,i,a){if(!e)return BE(t,n,i,a);if(a.overwrite)return await Pe.unlink(i),BE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function BE(t,e,n,i){if(await Pe.copyFile(e,n),i.preserveTimestamps){sD(t.mode)&&await uD(n,t.mode);let a=await Pe.stat(e);await oD(n,a.atime,a.mtime)}return Pe.chmod(n,t.mode)}function sD(t){return(t&128)===0}function uD(t,e){return Pe.chmod(t,e|128)}async function lD(t,e,n,i,a){e||await Pe.mkdir(i);let s=await Pe.readdir(n);await Promise.all(s.map(async o=>{let r=ao.join(n,o),u=ao.join(i,o);if(!await GE(r,u,a))return;let{destStat:c}=await so.checkPaths(r,u,"copy",a);return kE(c,r,u,a)})),e||await Pe.chmod(i,t.mode)}async function cD(t,e,n,i){let a=await Pe.readlink(e);if(i.dereference&&(a=ao.resolve(process.cwd(),a)),!t)return Pe.symlink(a,n);let s=null;try{s=await Pe.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Pe.symlink(a,n);throw o}if(i.dereference&&(s=ao.resolve(process.cwd(),s)),so.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(so.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await Pe.unlink(n),Pe.symlink(a,n)}HE.exports=iD});var KE=h((k7,$E)=>{"use strict";var Ie=Qr(),uo=L("path"),fD=ut().mkdirsSync,pD=Dl().utimesMillisSync,lo=Or();function dD(t,e,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.44.4-rc.1",
3
+ "version": "2.44.4",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {