@sentio/runtime 2.63.0 → 2.63.1
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/{chunk-WUUWUOFG.js → chunk-EQHBEFKX.js} +2 -2
- package/lib/chunk-U6BJVJ62.js +26 -0
- package/lib/chunk-U6BJVJ62.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +2 -2
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +11 -0
- package/src/gen/processor/protos/processor.ts +17 -1
- package/lib/chunk-TBN64DSW.js +0 -26
- package/lib/chunk-TBN64DSW.js.map +0 -1
- /package/lib/{chunk-WUUWUOFG.js.map → chunk-EQHBEFKX.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
|
2
|
-
import{a as gF,b as yF,c as Cw,d as vF,e as bF,f as _F,g as EF,h as AF,i as Zu,j as xw,k as Ow,n as Xu,q as di,s as ny,t as Iw}from"./chunk-
|
|
2
|
+
import{a as gF,b as yF,c as Cw,d as vF,e as bF,f as _F,g as EF,h as AF,i as Zu,j as xw,k as Ow,n as Xu,q as di,s as ny,t as Iw}from"./chunk-U6BJVJ62.js";import{q as Pw,u as wF}from"./chunk-G6HW3DCN.js";import{a as ie,b as Lt,c as g,d as $u,e as No,f as $r}from"./chunk-AUPVVLD3.js";var dt=g(sy=>{"use strict";sy.fromCallback=function(r){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")r.apply(this,e);else return new Promise((t,n)=>{e.push((i,s)=>i!=null?n(i):t(s)),r.apply(this,e)})},"name",{value:r.name})};sy.fromPromise=function(r){return Object.defineProperty(function(...e){let t=e[e.length-1];if(typeof t!="function")return r.apply(this,e);e.pop(),r.apply(this,e).then(n=>t(null,n),t)},"name",{value:r.name})}});var Nw=g((Zde,Rw)=>{"use strict";var fi=ie("constants"),TF=process.cwd,ed=null,CF=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ed||(ed=TF.call(process)),ed};try{process.cwd()}catch{}typeof process.chdir=="function"&&(oy=process.chdir,process.chdir=function(r){ed=null,oy.call(process,r)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,oy));var oy;Rw.exports=xF;function xF(r){fi.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(r),r.lutimes||t(r),r.chown=s(r.chown),r.fchown=s(r.fchown),r.lchown=s(r.lchown),r.chmod=n(r.chmod),r.fchmod=n(r.fchmod),r.lchmod=n(r.lchmod),r.chownSync=o(r.chownSync),r.fchownSync=o(r.fchownSync),r.lchownSync=o(r.lchownSync),r.chmodSync=i(r.chmodSync),r.fchmodSync=i(r.fchmodSync),r.lchmodSync=i(r.lchmodSync),r.stat=a(r.stat),r.fstat=a(r.fstat),r.lstat=a(r.lstat),r.statSync=c(r.statSync),r.fstatSync=c(r.fstatSync),r.lstatSync=c(r.lstatSync),r.chmod&&!r.lchmod&&(r.lchmod=function(u,d,f){f&&process.nextTick(f)},r.lchmodSync=function(){}),r.chown&&!r.lchown&&(r.lchown=function(u,d,f,h){h&&process.nextTick(h)},r.lchownSync=function(){}),CF==="win32"&&(r.rename=typeof r.rename!="function"?r.rename:function(u){function d(f,h,m){var p=Date.now(),y=0;u(f,h,function b(E){if(E&&(E.code==="EACCES"||E.code==="EPERM"||E.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){r.stat(h,function(x,S){x&&x.code==="ENOENT"?u(f,h,b):m(E)})},y),y<100&&(y+=10);return}m&&m(E)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,u),d}(r.rename)),r.read=typeof r.read!="function"?r.read:function(u){function d(f,h,m,p,y,b){var E;if(b&&typeof b=="function"){var x=0;E=function(S,M,I){if(S&&S.code==="EAGAIN"&&x<10)return x++,u.call(r,f,h,m,p,y,E);b.apply(this,arguments)}}return u.call(r,f,h,m,p,y,E)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,u),d}(r.read),r.readSync=typeof r.readSync!="function"?r.readSync:function(u){return function(d,f,h,m,p){for(var y=0;;)try{return u.call(r,d,f,h,m,p)}catch(b){if(b.code==="EAGAIN"&&y<10){y++;continue}throw b}}}(r.readSync);function e(u){u.lchmod=function(d,f,h){u.open(d,fi.O_WRONLY|fi.O_SYMLINK,f,function(m,p){if(m){h&&h(m);return}u.fchmod(p,f,function(y){u.close(p,function(b){h&&h(y||b)})})})},u.lchmodSync=function(d,f){var h=u.openSync(d,fi.O_WRONLY|fi.O_SYMLINK,f),m=!0,p;try{p=u.fchmodSync(h,f),m=!1}finally{if(m)try{u.closeSync(h)}catch{}else u.closeSync(h)}return p}}function t(u){fi.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(d,f,h,m){u.open(d,fi.O_SYMLINK,function(p,y){if(p){m&&m(p);return}u.futimes(y,f,h,function(b){u.close(y,function(E){m&&m(b||E)})})})},u.lutimesSync=function(d,f,h){var m=u.openSync(d,fi.O_SYMLINK),p,y=!0;try{p=u.futimesSync(m,f,h),y=!1}finally{if(y)try{u.closeSync(m)}catch{}else u.closeSync(m)}return p}):u.futimes&&(u.lutimes=function(d,f,h,m){m&&process.nextTick(m)},u.lutimesSync=function(){})}function n(u){return u&&function(d,f,h){return u.call(r,d,f,function(m){l(m)&&(m=null),h&&h.apply(this,arguments)})}}function i(u){return u&&function(d,f){try{return u.call(r,d,f)}catch(h){if(!l(h))throw h}}}function s(u){return u&&function(d,f,h,m){return u.call(r,d,f,h,function(p){l(p)&&(p=null),m&&m.apply(this,arguments)})}}function o(u){return u&&function(d,f,h){try{return u.call(r,d,f,h)}catch(m){if(!l(m))throw m}}}function a(u){return u&&function(d,f,h){typeof f=="function"&&(h=f,f=null);function m(p,y){y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),h&&h.apply(this,arguments)}return f?u.call(r,d,f,m):u.call(r,d,m)}}function c(u){return u&&function(d,f){var h=f?u.call(r,d,f):u.call(r,d);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function l(u){if(!u||u.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var Lw=g((Xde,Dw)=>{"use strict";var Mw=ie("stream").Stream;Dw.exports=OF;function OF(r){return{ReadStream:e,WriteStream:t};function e(n,i){if(!(this instanceof e))return new e(n,i);Mw.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=i[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}r.open(this.path,this.flags,this.mode,function(u,d){if(u){s.emit("error",u),s.readable=!1;return}s.fd=d,s.emit("open",d),s._read()})}function t(n,i){if(!(this instanceof t))return new t(n,i);Mw.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}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=r.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var qw=g((efe,Fw)=>{"use strict";Fw.exports=PF;var IF=Object.getPrototypeOf||function(r){return r.__proto__};function PF(r){if(r===null||typeof r!="object")return r;if(r instanceof Object)var e={__proto__:IF(r)};else var e=Object.create(null);return Object.getOwnPropertyNames(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}});var Do=g((tfe,ly)=>{"use strict";var ze=ie("fs"),kF=Nw(),RF=Lw(),NF=qw(),td=ie("util"),yt,nd;typeof Symbol=="function"&&typeof Symbol.for=="function"?(yt=Symbol.for("graceful-fs.queue"),nd=Symbol.for("graceful-fs.previous")):(yt="___graceful-fs.queue",nd="___graceful-fs.previous");function MF(){}function jw(r,e){Object.defineProperty(r,yt,{get:function(){return e}})}var xs=MF;td.debuglog?xs=td.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(xs=function(){var r=td.format.apply(td,arguments);r="GFS4: "+r.split(/\n/).join(`
|
|
3
3
|
GFS4: `),console.error(r)});ze[yt]||(Bw=global[yt]||[],jw(ze,Bw),ze.close=function(r){function e(t,n){return r.call(ze,t,function(i){i||Uw(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,nd,{value:r}),e}(ze.close),ze.closeSync=function(r){function e(t){r.apply(ze,arguments),Uw()}return Object.defineProperty(e,nd,{value:r}),e}(ze.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){xs(ze[yt]),ie("assert").equal(ze[yt].length,0)}));var Bw;global[yt]||jw(global,ze[yt]);ly.exports=ay(NF(ze));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ze.__patched&&(ly.exports=ay(ze),ze.__patched=!0);function ay(r){kF(r),r.gracefulify=ay,r.createReadStream=M,r.createWriteStream=I;var e=r.readFile;r.readFile=t;function t(L,q,C){return typeof q=="function"&&(C=q,q=null),oe(L,q,C);function oe(O,_,T,R){return e(O,_,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?Mo([oe,[O,_,T],F,R||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var n=r.writeFile;r.writeFile=i;function i(L,q,C,oe){return typeof C=="function"&&(oe=C,C=null),O(L,q,C,oe);function O(_,T,R,F,K){return n(_,T,R,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Mo([O,[_,T,R,F],G,K||Date.now(),Date.now()]):typeof F=="function"&&F.apply(this,arguments)})}}var s=r.appendFile;s&&(r.appendFile=o);function o(L,q,C,oe){return typeof C=="function"&&(oe=C,C=null),O(L,q,C,oe);function O(_,T,R,F,K){return s(_,T,R,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Mo([O,[_,T,R,F],G,K||Date.now(),Date.now()]):typeof F=="function"&&F.apply(this,arguments)})}}var a=r.copyFile;a&&(r.copyFile=c);function c(L,q,C,oe){return typeof C=="function"&&(oe=C,C=0),O(L,q,C,oe);function O(_,T,R,F,K){return a(_,T,R,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Mo([O,[_,T,R,F],G,K||Date.now(),Date.now()]):typeof F=="function"&&F.apply(this,arguments)})}}var l=r.readdir;r.readdir=d;var u=/^v[0-5]\./;function d(L,q,C){typeof q=="function"&&(C=q,q=null);var oe=u.test(process.version)?function(T,R,F,K){return l(T,O(T,R,F,K))}:function(T,R,F,K){return l(T,R,O(T,R,F,K))};return oe(L,q,C);function O(_,T,R,F){return function(K,G){K&&(K.code==="EMFILE"||K.code==="ENFILE")?Mo([oe,[_,T,R],K,F||Date.now(),Date.now()]):(G&&G.sort&&G.sort(),typeof R=="function"&&R.call(this,K,G))}}}if(process.version.substr(0,4)==="v0.8"){var f=RF(r);b=f.ReadStream,x=f.WriteStream}var h=r.ReadStream;h&&(b.prototype=Object.create(h.prototype),b.prototype.open=E);var m=r.WriteStream;m&&(x.prototype=Object.create(m.prototype),x.prototype.open=S),Object.defineProperty(r,"ReadStream",{get:function(){return b},set:function(L){b=L},enumerable:!0,configurable:!0}),Object.defineProperty(r,"WriteStream",{get:function(){return x},set:function(L){x=L},enumerable:!0,configurable:!0});var p=b;Object.defineProperty(r,"FileReadStream",{get:function(){return p},set:function(L){p=L},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(r,"FileWriteStream",{get:function(){return y},set:function(L){y=L},enumerable:!0,configurable:!0});function b(L,q){return this instanceof b?(h.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function E(){var L=this;z(L.path,L.flags,L.mode,function(q,C){q?(L.autoClose&&L.destroy(),L.emit("error",q)):(L.fd=C,L.emit("open",C),L.read())})}function x(L,q){return this instanceof x?(m.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var L=this;z(L.path,L.flags,L.mode,function(q,C){q?(L.destroy(),L.emit("error",q)):(L.fd=C,L.emit("open",C))})}function M(L,q){return new r.ReadStream(L,q)}function I(L,q){return new r.WriteStream(L,q)}var B=r.open;r.open=z;function z(L,q,C,oe){return typeof C=="function"&&(oe=C,C=null),O(L,q,C,oe);function O(_,T,R,F,K){return B(_,T,R,function(G,me){G&&(G.code==="EMFILE"||G.code==="ENFILE")?Mo([O,[_,T,R,F],G,K||Date.now(),Date.now()]):typeof F=="function"&&F.apply(this,arguments)})}}return r}function Mo(r){xs("ENQUEUE",r[0].name,r[1]),ze[yt].push(r),cy()}var rd;function Uw(){for(var r=Date.now(),e=0;e<ze[yt].length;++e)ze[yt][e].length>2&&(ze[yt][e][3]=r,ze[yt][e][4]=r);cy()}function cy(){if(clearTimeout(rd),rd=void 0,ze[yt].length!==0){var r=ze[yt].shift(),e=r[0],t=r[1],n=r[2],i=r[3],s=r[4];if(i===void 0)xs("RETRY",e.name,t),e.apply(null,t);else if(Date.now()-i>=6e4){xs("TIMEOUT",e.name,t);var o=t.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),l=Math.min(c*1.2,100);a>=l?(xs("RETRY",e.name,t),e.apply(null,t.concat([i]))):ze[yt].push(r)}rd===void 0&&(rd=setTimeout(cy,0))}}});var qt=g(kn=>{"use strict";var zw=dt().fromCallback,Ft=Do(),DF=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(r=>typeof Ft[r]=="function");Object.assign(kn,Ft);DF.forEach(r=>{kn[r]=zw(Ft[r])});kn.exists=function(r,e){return typeof e=="function"?Ft.exists(r,e):new Promise(t=>Ft.exists(r,t))};kn.read=function(r,e,t,n,i,s){return typeof s=="function"?Ft.read(r,e,t,n,i,s):new Promise((o,a)=>{Ft.read(r,e,t,n,i,(c,l,u)=>{if(c)return a(c);o({bytesRead:l,buffer:u})})})};kn.write=function(r,e,...t){return typeof t[t.length-1]=="function"?Ft.write(r,e,...t):new Promise((n,i)=>{Ft.write(r,e,...t,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};kn.readv=function(r,e,...t){return typeof t[t.length-1]=="function"?Ft.readv(r,e,...t):new Promise((n,i)=>{Ft.readv(r,e,...t,(s,o,a)=>{if(s)return i(s);n({bytesRead:o,buffers:a})})})};kn.writev=function(r,e,...t){return typeof t[t.length-1]=="function"?Ft.writev(r,e,...t):new Promise((n,i)=>{Ft.writev(r,e,...t,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})};typeof Ft.realpath.native=="function"?kn.realpath.native=zw(Ft.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Gw=g((nfe,Hw)=>{"use strict";var LF=ie("path");Hw.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(LF.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}}});var Jw=g((ife,uy)=>{"use strict";var Vw=qt(),{checkPath:Ww}=Gw(),Kw=r=>{let e={mode:511};return typeof r=="number"?r:{...e,...r}.mode};uy.exports.makeDir=async(r,e)=>(Ww(r),Vw.mkdir(r,{mode:Kw(e),recursive:!0}));uy.exports.makeDirSync=(r,e)=>(Ww(r),Vw.mkdirSync(r,{mode:Kw(e),recursive:!0}))});var Ir=g((sfe,Qw)=>{"use strict";var FF=dt().fromPromise,{makeDir:qF,makeDirSync:dy}=Jw(),fy=FF(qF);Qw.exports={mkdirs:fy,mkdirsSync:dy,mkdirp:fy,mkdirpSync:dy,ensureDir:fy,ensureDirSync:dy}});var hi=g((ofe,$w)=>{"use strict";var BF=dt().fromPromise,Yw=qt();function UF(r){return Yw.access(r).then(()=>!0).catch(()=>!1)}$w.exports={pathExists:BF(UF),pathExistsSync:Yw.existsSync}});var hy=g((afe,Zw)=>{"use strict";var Lo=qt(),jF=dt().fromPromise;async function zF(r,e,t){let n=await Lo.open(r,"r+"),i=null;try{await Lo.futimes(n,e,t)}finally{try{await Lo.close(n)}catch(s){i=s}}if(i)throw i}function HF(r,e,t){let n=Lo.openSync(r,"r+");return Lo.futimesSync(n,e,t),Lo.closeSync(n)}Zw.exports={utimesMillis:jF(zF),utimesMillisSync:HF}});var Os=g((cfe,rS)=>{"use strict";var Fo=qt(),ft=ie("path"),Xw=dt().fromPromise;function GF(r,e,t){let n=t.dereference?i=>Fo.stat(i,{bigint:!0}):i=>Fo.lstat(i,{bigint:!0});return Promise.all([n(r),n(e).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function VF(r,e,t){let n,i=t.dereference?o=>Fo.statSync(o,{bigint:!0}):o=>Fo.lstatSync(o,{bigint:!0}),s=i(r);try{n=i(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}async function WF(r,e,t,n){let{srcStat:i,destStat:s}=await GF(r,e,n);if(s){if(zc(i,s)){let o=ft.basename(r),a=ft.basename(e);if(t==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${r}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${r}'.`)}if(i.isDirectory()&&py(r,e))throw new Error(id(r,e,t));return{srcStat:i,destStat:s}}function KF(r,e,t,n){let{srcStat:i,destStat:s}=VF(r,e,n);if(s){if(zc(i,s)){let o=ft.basename(r),a=ft.basename(e);if(t==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${r}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${r}'.`)}if(i.isDirectory()&&py(r,e))throw new Error(id(r,e,t));return{srcStat:i,destStat:s}}async function eS(r,e,t,n){let i=ft.resolve(ft.dirname(r)),s=ft.resolve(ft.dirname(t));if(s===i||s===ft.parse(s).root)return;let o;try{o=await Fo.stat(s,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(zc(e,o))throw new Error(id(r,t,n));return eS(r,e,s,n)}function tS(r,e,t,n){let i=ft.resolve(ft.dirname(r)),s=ft.resolve(ft.dirname(t));if(s===i||s===ft.parse(s).root)return;let o;try{o=Fo.statSync(s,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(zc(e,o))throw new Error(id(r,t,n));return tS(r,e,s,n)}function zc(r,e){return e.ino&&e.dev&&e.ino===r.ino&&e.dev===r.dev}function py(r,e){let t=ft.resolve(r).split(ft.sep).filter(i=>i),n=ft.resolve(e).split(ft.sep).filter(i=>i);return t.every((i,s)=>n[s]===i)}function id(r,e,t){return`Cannot ${t} '${r}' to a subdirectory of itself, '${e}'.`}rS.exports={checkPaths:Xw(WF),checkPathsSync:KF,checkParentPaths:Xw(eS),checkParentPathsSync:tS,isSrcSubdir:py,areIdentical:zc}});var aS=g((lfe,oS)=>{"use strict";var It=qt(),Hc=ie("path"),{mkdirs:JF}=Ir(),{pathExists:QF}=hi(),{utimesMillis:YF}=hy(),Gc=Os();async function $F(r,e,t={}){typeof t=="function"&&(t={filter:t}),t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
4
4
|
|
|
5
5
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:i}=await Gc.checkPaths(r,e,"copy",t);if(await Gc.checkParentPaths(r,n,e,"copy"),!await iS(r,e,t))return;let o=Hc.dirname(e);await QF(o)||await JF(o),await sS(i,r,e,t)}async function iS(r,e,t){return t.filter?t.filter(r,e):!0}async function sS(r,e,t,n){let s=await(n.dereference?It.stat:It.lstat)(e);if(s.isDirectory())return tq(s,r,e,t,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ZF(s,r,e,t,n);if(s.isSymbolicLink())return rq(r,e,t,n);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 ZF(r,e,t,n,i){if(!e)return nS(r,t,n,i);if(i.overwrite)return await It.unlink(n),nS(r,t,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}async function nS(r,e,t,n){if(await It.copyFile(e,t),n.preserveTimestamps){XF(r.mode)&&await eq(t,r.mode);let i=await It.stat(e);await YF(t,i.atime,i.mtime)}return It.chmod(t,r.mode)}function XF(r){return(r&128)===0}function eq(r,e){return It.chmod(r,e|128)}async function tq(r,e,t,n,i){e||await It.mkdir(n);let s=[];for await(let o of await It.opendir(t)){let a=Hc.join(t,o.name),c=Hc.join(n,o.name);s.push(iS(a,c,i).then(l=>{if(l)return Gc.checkPaths(a,c,"copy",i).then(({destStat:u})=>sS(u,a,c,i))}))}await Promise.all(s),e||await It.chmod(n,r.mode)}async function rq(r,e,t,n){let i=await It.readlink(e);if(n.dereference&&(i=Hc.resolve(process.cwd(),i)),!r)return It.symlink(i,t);let s=null;try{s=await It.readlink(t)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return It.symlink(i,t);throw o}if(n.dereference&&(s=Hc.resolve(process.cwd(),s)),Gc.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(Gc.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return await It.unlink(t),It.symlink(i,t)}oS.exports=$F});var fS=g((ufe,dS)=>{"use strict";var Bt=Do(),Vc=ie("path"),nq=Ir().mkdirsSync,iq=hy().utimesMillisSync,Wc=Os();function sq(r,e,t){typeof t=="function"&&(t={filter:t}),t=t||{},t.clobber="clobber"in t?!!t.clobber:!0,t.overwrite="overwrite"in t?!!t.overwrite:t.clobber,t.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -114,4 +114,4 @@ long/umd/index.js:
|
|
|
114
114
|
@noble/curves/esm/secp256k1.js:
|
|
115
115
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
116
116
|
*/
|
|
117
|
-
//# sourceMappingURL=chunk-
|
|
117
|
+
//# sourceMappingURL=chunk-EQHBEFKX.js.map
|