babylonjs-editor-cli 5.4.2-alpha.3 → 5.4.3-alpha.0

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.
@@ -1,4 +1,4 @@
1
- var tce=Object.create;var Zd=Object.defineProperty;var rce=Object.getOwnPropertyDescriptor;var nce=Object.getOwnPropertyNames;var sce=Object.getPrototypeOf,ice=Object.prototype.hasOwnProperty;var i=(e,t)=>Zd(e,"name",{value:t,configurable:!0});var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kr=(e,t)=>{for(var r in t)Zd(e,r,{get:t[r],enumerable:!0})},BI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of nce(t))!ice.call(e,s)&&s!==r&&Zd(e,s,{get:()=>t[s],enumerable:!(n=rce(t,s))||n.enumerable});return e};var P=(e,t,r)=>(r=e!=null?tce(sce(e)):{},BI(t||!e||!e.__esModule?Zd(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>BI(Zd({},"__esModule",{value:!0}),e);var kr=A(y_=>{"use strict";y_.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{t.push((s,o)=>s!=null?n(s):r(o)),e.apply(this,t)})},"name",{value:e.name})},y_.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var $I=A((s6e,MI)=>{var Ko=require("constants"),oce=process.cwd,Em=null,ace=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Em||(Em=oce.call(process)),Em};try{process.cwd()}catch{}typeof process.chdir=="function"&&(E_=process.chdir,process.chdir=function(e){Em=null,E_.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,E_)),MI.exports=cce;function cce(e){Ko.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,f,p,g){g&&process.nextTick(g)},e.lchownSync=function(){}),ace==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(d){function f(p,g,E){var w=Date.now(),C=0;d(p,g,i(function x(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){e.stat(g,function(B,F){B&&B.code==="ENOENT"?d(p,g,x):E(O)})},C),C<100&&(C+=10);return}E&&E(O)},"CB"))}return i(f,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(d){function f(p,g,E,w,C,x){var O;if(x&&typeof x=="function"){var B=0;O=i(function(F,re,we){if(F&&F.code==="EAGAIN"&&B<10)return B++,d.call(e,p,g,E,w,C,O);x.apply(this,arguments)},"callback")}return d.call(e,p,g,E,w,C,O)}return i(f,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(d){return function(f,p,g,E,w){for(var C=0;;)try{return d.call(e,f,p,g,E,w)}catch(x){if(x.code==="EAGAIN"&&C<10){C++;continue}throw x}}})(e.readSync);function t(d){d.lchmod=function(f,p,g){d.open(f,Ko.O_WRONLY|Ko.O_SYMLINK,p,function(E,w){if(E){g&&g(E);return}d.fchmod(w,p,function(C){d.close(w,function(x){g&&g(C||x)})})})},d.lchmodSync=function(f,p){var g=d.openSync(f,Ko.O_WRONLY|Ko.O_SYMLINK,p),E=!0,w;try{w=d.fchmodSync(g,p),E=!1}finally{if(E)try{d.closeSync(g)}catch{}else d.closeSync(g)}return w}}i(t,"patchLchmod");function r(d){Ko.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(f,p,g,E){d.open(f,Ko.O_SYMLINK,function(w,C){if(w){E&&E(w);return}d.futimes(C,p,g,function(x){d.close(C,function(O){E&&E(x||O)})})})},d.lutimesSync=function(f,p,g){var E=d.openSync(f,Ko.O_SYMLINK),w,C=!0;try{w=d.futimesSync(E,p,g),C=!1}finally{if(C)try{d.closeSync(E)}catch{}else d.closeSync(E)}return w}):d.futimes&&(d.lutimes=function(f,p,g,E){E&&process.nextTick(E)},d.lutimesSync=function(){})}i(r,"patchLutimes");function n(d){return d&&function(f,p,g){return d.call(e,f,p,function(E){u(E)&&(E=null),g&&g.apply(this,arguments)})}}i(n,"chmodFix");function s(d){return d&&function(f,p){try{return d.call(e,f,p)}catch(g){if(!u(g))throw g}}}i(s,"chmodFixSync");function o(d){return d&&function(f,p,g,E){return d.call(e,f,p,g,function(w){u(w)&&(w=null),E&&E.apply(this,arguments)})}}i(o,"chownFix");function a(d){return d&&function(f,p,g){try{return d.call(e,f,p,g)}catch(E){if(!u(E))throw E}}}i(a,"chownFixSync");function c(d){return d&&function(f,p,g){typeof p=="function"&&(g=p,p=null);function E(w,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),g&&g.apply(this,arguments)}return i(E,"callback"),p?d.call(e,f,p,E):d.call(e,f,E)}}i(c,"statFix");function l(d){return d&&function(f,p){var g=p?d.call(e,f,p):d.call(e,f);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}i(l,"statFixSync");function u(d){if(!d||d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(d.code==="EINVAL"||d.code==="EPERM"))}i(u,"chownErOk")}i(cce,"patch");var E_});var jI=A((o6e,LI)=>{var FI=require("stream").Stream;LI.exports=lce;function lce(e){return{ReadStream:t,WriteStream:r};function t(n,s){if(!(this instanceof t))return new t(n,s);FI.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var a=Object.keys(s),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=s[u]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(d,f){if(d){o.emit("error",d),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);FI.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var o=Object.keys(s),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=s[l]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}i(lce,"legacy")});var qI=A((c6e,UI)=>{"use strict";UI.exports=dce;var uce=Object.getPrototypeOf||function(e){return e.__proto__};function dce(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:uce(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}i(dce,"clone")});var bl=A((u6e,w_)=>{var zt=require("fs"),fce=$I(),hce=jI(),pce=qI(),Sm=require("util"),Yr,bm;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Yr=Symbol.for("graceful-fs.queue"),bm=Symbol.for("graceful-fs.previous")):(Yr="___graceful-fs.queue",bm="___graceful-fs.previous");function mce(){}i(mce,"noop");function GI(e,t){Object.defineProperty(e,Yr,{get:i(function(){return t},"get")})}i(GI,"publishQueue");var fc=mce;Sm.debuglog?fc=Sm.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(fc=i(function(){var e=Sm.format.apply(Sm,arguments);e="GFS4: "+e.split(/\n/).join(`
1
+ var tce=Object.create;var Zd=Object.defineProperty;var rce=Object.getOwnPropertyDescriptor;var nce=Object.getOwnPropertyNames;var sce=Object.getPrototypeOf,ice=Object.prototype.hasOwnProperty;var i=(e,t)=>Zd(e,"name",{value:t,configurable:!0});var T=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var A=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Kr=(e,t)=>{for(var r in t)Zd(e,r,{get:t[r],enumerable:!0})},BI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of nce(t))!ice.call(e,s)&&s!==r&&Zd(e,s,{get:()=>t[s],enumerable:!(n=rce(t,s))||n.enumerable});return e};var P=(e,t,r)=>(r=e!=null?tce(sce(e)):{},BI(t||!e||!e.__esModule?Zd(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>BI(Zd({},"__esModule",{value:!0}),e);var kr=A(y_=>{"use strict";y_.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{t.push((s,o)=>s!=null?n(s):r(o)),e.apply(this,t)})},"name",{value:e.name})},y_.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var $I=A((s6e,MI)=>{var Ko=require("constants"),oce=process.cwd,Em=null,ace=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Em||(Em=oce.call(process)),Em};try{process.cwd()}catch{}typeof process.chdir=="function"&&(E_=process.chdir,process.chdir=function(e){Em=null,E_.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,E_)),MI.exports=cce;function cce(e){Ko.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,f,p,g){g&&process.nextTick(g)},e.lchownSync=function(){}),ace==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(d){function f(p,g,E){var w=Date.now(),C=0;d(p,g,i(function x(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-w<6e4){setTimeout(function(){e.stat(g,function(B,F){B&&B.code==="ENOENT"?d(p,g,x):E(O)})},C),C<100&&(C+=10);return}E&&E(O)},"CB"))}return i(f,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(d){function f(p,g,E,w,C,x){var O;if(x&&typeof x=="function"){var B=0;O=i(function(F,re,we){if(F&&F.code==="EAGAIN"&&B<10)return B++,d.call(e,p,g,E,w,C,O);x.apply(this,arguments)},"callback")}return d.call(e,p,g,E,w,C,O)}return i(f,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(f,d),f})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(d){return function(f,p,g,E,w){for(var C=0;;)try{return d.call(e,f,p,g,E,w)}catch(x){if(x.code==="EAGAIN"&&C<10){C++;continue}throw x}}})(e.readSync);function t(d){d.lchmod=function(f,p,g){d.open(f,Ko.O_WRONLY|Ko.O_SYMLINK,p,function(E,w){if(E){g&&g(E);return}d.fchmod(w,p,function(C){d.close(w,function(x){g&&g(C||x)})})})},d.lchmodSync=function(f,p){var g=d.openSync(f,Ko.O_WRONLY|Ko.O_SYMLINK,p),E=!0,w;try{w=d.fchmodSync(g,p),E=!1}finally{if(E)try{d.closeSync(g)}catch{}else d.closeSync(g)}return w}}i(t,"patchLchmod");function r(d){Ko.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(f,p,g,E){d.open(f,Ko.O_SYMLINK,function(w,C){if(w){E&&E(w);return}d.futimes(C,p,g,function(x){d.close(C,function(O){E&&E(x||O)})})})},d.lutimesSync=function(f,p,g){var E=d.openSync(f,Ko.O_SYMLINK),w,C=!0;try{w=d.futimesSync(E,p,g),C=!1}finally{if(C)try{d.closeSync(E)}catch{}else d.closeSync(E)}return w}):d.futimes&&(d.lutimes=function(f,p,g,E){E&&process.nextTick(E)},d.lutimesSync=function(){})}i(r,"patchLutimes");function n(d){return d&&function(f,p,g){return d.call(e,f,p,function(E){u(E)&&(E=null),g&&g.apply(this,arguments)})}}i(n,"chmodFix");function s(d){return d&&function(f,p){try{return d.call(e,f,p)}catch(g){if(!u(g))throw g}}}i(s,"chmodFixSync");function o(d){return d&&function(f,p,g,E){return d.call(e,f,p,g,function(w){u(w)&&(w=null),E&&E.apply(this,arguments)})}}i(o,"chownFix");function a(d){return d&&function(f,p,g){try{return d.call(e,f,p,g)}catch(E){if(!u(E))throw E}}}i(a,"chownFixSync");function c(d){return d&&function(f,p,g){typeof p=="function"&&(g=p,p=null);function E(w,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),g&&g.apply(this,arguments)}return i(E,"callback"),p?d.call(e,f,p,E):d.call(e,f,E)}}i(c,"statFix");function l(d){return d&&function(f,p){var g=p?d.call(e,f,p):d.call(e,f);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}i(l,"statFixSync");function u(d){if(!d||d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(d.code==="EINVAL"||d.code==="EPERM"))}i(u,"chownErOk")}i(cce,"patch");var E_});var jI=A((o6e,LI)=>{var FI=require("stream").Stream;LI.exports=lce;function lce(e){return{ReadStream:t,WriteStream:r};function t(n,s){if(!(this instanceof t))return new t(n,s);FI.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var a=Object.keys(s),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=s[u]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(d,f){if(d){o.emit("error",d),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function r(n,s){if(!(this instanceof r))return new r(n,s);FI.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var o=Object.keys(s),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=s[l]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}i(lce,"legacy")});var qI=A((c6e,UI)=>{"use strict";UI.exports=dce;var uce=Object.getPrototypeOf||function(e){return e.__proto__};function dce(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:uce(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}i(dce,"clone")});var bl=A((u6e,w_)=>{var zt=require("fs"),fce=$I(),hce=jI(),pce=qI(),Sm=require("util"),Yr,bm;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Yr=Symbol.for("graceful-fs.queue"),bm=Symbol.for("graceful-fs.previous")):(Yr="___graceful-fs.queue",bm="___graceful-fs.previous");function mce(){}i(mce,"noop");function GI(e,t){Object.defineProperty(e,Yr,{get:i(function(){return t},"get")})}i(GI,"publishQueue");var fc=mce;Sm.debuglog?fc=Sm.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(fc=i(function(){var e=Sm.format.apply(Sm,arguments);e="GFS4: "+e.split(/\n/).join(`
2
2
  GFS4: `),console.error(e)},"debug")),zt[Yr]||(HI=global[Yr]||[],GI(zt,HI),zt.close=(function(e){function t(r,n){return e.call(zt,r,function(s){s||zI(),typeof n=="function"&&n.apply(this,arguments)})}return i(t,"close"),Object.defineProperty(t,bm,{value:e}),t})(zt.close),zt.closeSync=(function(e){function t(r){e.apply(zt,arguments),zI()}return i(t,"closeSync"),Object.defineProperty(t,bm,{value:e}),t})(zt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fc(zt[Yr]),require("assert").equal(zt[Yr].length,0)})),global[Yr]||GI(global,zt[Yr]),w_.exports=S_(pce(zt)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!zt.__patched&&(w_.exports=S_(zt),zt.__patched=!0);function S_(e){fce(e),e.gracefulify=S_,e.createReadStream=re,e.createWriteStream=we;var t=e.readFile;e.readFile=r;function r(se,ge,ve){return typeof ge=="function"&&(ve=ge,ge=null),rt(se,ge,ve);function rt(Xe,Tt,lt,Dt){return t(Xe,Tt,function(Qe){Qe&&(Qe.code==="EMFILE"||Qe.code==="ENFILE")?Sl([rt,[Xe,Tt,lt],Qe,Dt||Date.now(),Date.now()]):typeof lt=="function"&&lt.apply(this,arguments)})}i(rt,"go$readFile")}i(r,"readFile");var n=e.writeFile;e.writeFile=s;function s(se,ge,ve,rt){return typeof ve=="function"&&(rt=ve,ve=null),Xe(se,ge,ve,rt);function Xe(Tt,lt,Dt,Qe,Ft){return n(Tt,lt,Dt,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?Sl([Xe,[Tt,lt,Dt,Qe],yt,Ft||Date.now(),Date.now()]):typeof Qe=="function"&&Qe.apply(this,arguments)})}i(Xe,"go$writeFile")}i(s,"writeFile");var o=e.appendFile;o&&(e.appendFile=a);function a(se,ge,ve,rt){return typeof ve=="function"&&(rt=ve,ve=null),Xe(se,ge,ve,rt);function Xe(Tt,lt,Dt,Qe,Ft){return o(Tt,lt,Dt,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?Sl([Xe,[Tt,lt,Dt,Qe],yt,Ft||Date.now(),Date.now()]):typeof Qe=="function"&&Qe.apply(this,arguments)})}i(Xe,"go$appendFile")}i(a,"appendFile");var c=e.copyFile;c&&(e.copyFile=l);function l(se,ge,ve,rt){return typeof ve=="function"&&(rt=ve,ve=0),Xe(se,ge,ve,rt);function Xe(Tt,lt,Dt,Qe,Ft){return c(Tt,lt,Dt,function(yt){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?Sl([Xe,[Tt,lt,Dt,Qe],yt,Ft||Date.now(),Date.now()]):typeof Qe=="function"&&Qe.apply(this,arguments)})}i(Xe,"go$copyFile")}i(l,"copyFile");var u=e.readdir;e.readdir=f;var d=/^v[0-5]\./;function f(se,ge,ve){typeof ge=="function"&&(ve=ge,ge=null);var rt=d.test(process.version)?i(function(lt,Dt,Qe,Ft){return u(lt,Xe(lt,Dt,Qe,Ft))},"go$readdir"):i(function(lt,Dt,Qe,Ft){return u(lt,Dt,Xe(lt,Dt,Qe,Ft))},"go$readdir");return rt(se,ge,ve);function Xe(Tt,lt,Dt,Qe){return function(Ft,yt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?Sl([rt,[Tt,lt,Dt],Ft,Qe||Date.now(),Date.now()]):(yt&&yt.sort&&yt.sort(),typeof Dt=="function"&&Dt.call(this,Ft,yt))}}}if(i(f,"readdir"),process.version.substr(0,4)==="v0.8"){var p=hce(e);x=p.ReadStream,B=p.WriteStream}var g=e.ReadStream;g&&(x.prototype=Object.create(g.prototype),x.prototype.open=O);var E=e.WriteStream;E&&(B.prototype=Object.create(E.prototype),B.prototype.open=F),Object.defineProperty(e,"ReadStream",{get:i(function(){return x},"get"),set:i(function(se){x=se},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:i(function(){return B},"get"),set:i(function(se){B=se},"set"),enumerable:!0,configurable:!0});var w=x;Object.defineProperty(e,"FileReadStream",{get:i(function(){return w},"get"),set:i(function(se){w=se},"set"),enumerable:!0,configurable:!0});var C=B;Object.defineProperty(e,"FileWriteStream",{get:i(function(){return C},"get"),set:i(function(se){C=se},"set"),enumerable:!0,configurable:!0});function x(se,ge){return this instanceof x?(g.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}i(x,"ReadStream");function O(){var se=this;ye(se.path,se.flags,se.mode,function(ge,ve){ge?(se.autoClose&&se.destroy(),se.emit("error",ge)):(se.fd=ve,se.emit("open",ve),se.read())})}i(O,"ReadStream$open");function B(se,ge){return this instanceof B?(E.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}i(B,"WriteStream");function F(){var se=this;ye(se.path,se.flags,se.mode,function(ge,ve){ge?(se.destroy(),se.emit("error",ge)):(se.fd=ve,se.emit("open",ve))})}i(F,"WriteStream$open");function re(se,ge){return new e.ReadStream(se,ge)}i(re,"createReadStream");function we(se,ge){return new e.WriteStream(se,ge)}i(we,"createWriteStream");var Ne=e.open;e.open=ye;function ye(se,ge,ve,rt){return typeof ve=="function"&&(rt=ve,ve=null),Xe(se,ge,ve,rt);function Xe(Tt,lt,Dt,Qe,Ft){return Ne(Tt,lt,Dt,function(yt,El){yt&&(yt.code==="EMFILE"||yt.code==="ENFILE")?Sl([Xe,[Tt,lt,Dt,Qe],yt,Ft||Date.now(),Date.now()]):typeof Qe=="function"&&Qe.apply(this,arguments)})}i(Xe,"go$open")}return i(ye,"open"),e}i(S_,"patch");function Sl(e){fc("ENQUEUE",e[0].name,e[1]),zt[Yr].push(e),b_()}i(Sl,"enqueue");var wm;function zI(){for(var e=Date.now(),t=0;t<zt[Yr].length;++t)zt[Yr][t].length>2&&(zt[Yr][t][3]=e,zt[Yr][t][4]=e);b_()}i(zI,"resetQueue");function b_(){if(clearTimeout(wm),wm=void 0,zt[Yr].length!==0){var e=zt[Yr].shift(),t=e[0],r=e[1],n=e[2],s=e[3],o=e[4];if(s===void 0)fc("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-s>=6e4){fc("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var c=Date.now()-o,l=Math.max(o-s,1),u=Math.min(l*1.2,100);c>=u?(fc("RETRY",t.name,r),t.apply(null,r.concat([s]))):zt[Yr].push(e)}wm===void 0&&(wm=setTimeout(b_,0))}}i(b_,"retry");var HI});var vn=A(fo=>{"use strict";var VI=kr().fromCallback,Cn=bl(),gce=["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(e=>typeof Cn[e]=="function");Object.assign(fo,Cn),gce.forEach(e=>{fo[e]=VI(Cn[e])}),fo.exists=function(e,t){return typeof t=="function"?Cn.exists(e,t):new Promise(r=>Cn.exists(e,r))},fo.read=function(e,t,r,n,s,o){return typeof o=="function"?Cn.read(e,t,r,n,s,o):new Promise((a,c)=>{Cn.read(e,t,r,n,s,(l,u,d)=>{if(l)return c(l);a({bytesRead:u,buffer:d})})})},fo.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Cn.write(e,t,...r):new Promise((n,s)=>{Cn.write(e,t,...r,(o,a,c)=>{if(o)return s(o);n({bytesWritten:a,buffer:c})})})},fo.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?Cn.readv(e,t,...r):new Promise((n,s)=>{Cn.readv(e,t,...r,(o,a,c)=>{if(o)return s(o);n({bytesRead:a,buffers:c})})})},fo.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Cn.writev(e,t,...r):new Promise((n,s)=>{Cn.writev(e,t,...r,(o,a,c)=>{if(o)return s(o);n({bytesWritten:a,buffers:c})})})},typeof Cn.realpath.native=="function"?fo.realpath.native=VI(Cn.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var KI=A((h6e,WI)=>{"use strict";var yce=require("path");WI.exports.checkPath=i(function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(yce.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}},"checkPath")});var QI=A((m6e,x_)=>{"use strict";var YI=vn(),{checkPath:XI}=KI(),JI=i(e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode},"getMode");x_.exports.makeDir=async(e,t)=>(XI(e),YI.mkdir(e,{mode:JI(t),recursive:!0})),x_.exports.makeDirSync=(e,t)=>(XI(e),YI.mkdirSync(e,{mode:JI(t),recursive:!0}))});var Ks=A((y6e,ZI)=>{"use strict";var Ece=kr().fromPromise,{makeDir:Sce,makeDirSync:__}=QI(),C_=Ece(Sce);ZI.exports={mkdirs:C_,mkdirsSync:__,mkdirp:C_,mkdirpSync:__,ensureDir:C_,ensureDirSync:__}});var Yo=A((E6e,tD)=>{"use strict";var bce=kr().fromPromise,eD=vn();function wce(e){return eD.access(e).then(()=>!0).catch(()=>!1)}i(wce,"pathExists"),tD.exports={pathExists:bce(wce),pathExistsSync:eD.existsSync}});var v_=A((b6e,rD)=>{"use strict";var wl=vn(),xce=kr().fromPromise;async function _ce(e,t,r){let n=await wl.open(e,"r+"),s=null;try{await wl.futimes(n,t,r)}finally{try{await wl.close(n)}catch(o){s=o}}if(s)throw s}i(_ce,"utimesMillis");function Cce(e,t,r){let n=wl.openSync(e,"r+");return wl.futimesSync(n,t,r),wl.closeSync(n)}i(Cce,"utimesMillisSync"),rD.exports={utimesMillis:xce(_ce),utimesMillisSync:Cce}});var hc=A((x6e,oD)=>{"use strict";var xl=vn(),Or=require("path"),nD=kr().fromPromise;function vce(e,t,r){let n=r.dereference?s=>xl.stat(s,{bigint:!0}):s=>xl.lstat(s,{bigint:!0});return Promise.all([n(e),n(t).catch(s=>{if(s.code==="ENOENT")return null;throw s})]).then(([s,o])=>({srcStat:s,destStat:o}))}i(vce,"getStats");function Ace(e,t,r){let n,s=r.dereference?a=>xl.statSync(a,{bigint:!0}):a=>xl.lstatSync(a,{bigint:!0}),o=s(e);try{n=s(t)}catch(a){if(a.code==="ENOENT")return{srcStat:o,destStat:null};throw a}return{srcStat:o,destStat:n}}i(Ace,"getStatsSync");async function Rce(e,t,r,n){let{srcStat:s,destStat:o}=await vce(e,t,n);if(o){if(ef(s,o)){let a=Or.basename(e),c=Or.basename(t);if(r==="move"&&a!==c&&a.toLowerCase()===c.toLowerCase())return{srcStat:s,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!s.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(s.isDirectory()&&A_(e,t))throw new Error(xm(e,t,r));return{srcStat:s,destStat:o}}i(Rce,"checkPaths");function Tce(e,t,r,n){let{srcStat:s,destStat:o}=Ace(e,t,n);if(o){if(ef(s,o)){let a=Or.basename(e),c=Or.basename(t);if(r==="move"&&a!==c&&a.toLowerCase()===c.toLowerCase())return{srcStat:s,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!s.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(s.isDirectory()&&A_(e,t))throw new Error(xm(e,t,r));return{srcStat:s,destStat:o}}i(Tce,"checkPathsSync");async function sD(e,t,r,n){let s=Or.resolve(Or.dirname(e)),o=Or.resolve(Or.dirname(r));if(o===s||o===Or.parse(o).root)return;let a;try{a=await xl.stat(o,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(ef(t,a))throw new Error(xm(e,r,n));return sD(e,t,o,n)}i(sD,"checkParentPaths");function iD(e,t,r,n){let s=Or.resolve(Or.dirname(e)),o=Or.resolve(Or.dirname(r));if(o===s||o===Or.parse(o).root)return;let a;try{a=xl.statSync(o,{bigint:!0})}catch(c){if(c.code==="ENOENT")return;throw c}if(ef(t,a))throw new Error(xm(e,r,n));return iD(e,t,o,n)}i(iD,"checkParentPathsSync");function ef(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}i(ef,"areIdentical");function A_(e,t){let r=Or.resolve(e).split(Or.sep).filter(s=>s),n=Or.resolve(t).split(Or.sep).filter(s=>s);return r.every((s,o)=>n[o]===s)}i(A_,"isSrcSubdir");function xm(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}i(xm,"errMsg"),oD.exports={checkPaths:nD(Rce),checkPathsSync:Tce,checkParentPaths:nD(sD),checkParentPathsSync:iD,isSrcSubdir:A_,areIdentical:ef}});var dD=A((C6e,uD)=>{"use strict";var sn=vn(),tf=require("path"),{mkdirs:Pce}=Ks(),{pathExists:kce}=Yo(),{utimesMillis:Oce}=v_(),rf=hc();async function Ice(e,t,r={}){typeof r=="function"&&(r={filter:r}),r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
3
 
4
4
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:n,destStat:s}=await rf.checkPaths(e,t,"copy",r);if(await rf.checkParentPaths(e,n,t,"copy"),!await aD(e,t,r))return;let a=tf.dirname(t);await kce(a)||await Pce(a),await cD(s,e,t,r)}i(Ice,"copy");async function aD(e,t,r){return r.filter?r.filter(e,t):!0}i(aD,"runFilter");async function cD(e,t,r,n){let o=await(n.dereference?sn.stat:sn.lstat)(t);if(o.isDirectory())return Mce(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Dce(o,e,t,r,n);if(o.isSymbolicLink())return $ce(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}i(cD,"getStatsAndPerformCopy");async function Dce(e,t,r,n,s){if(!t)return lD(e,r,n,s);if(s.overwrite)return await sn.unlink(n),lD(e,r,n,s);if(s.errorOnExist)throw new Error(`'${n}' already exists`)}i(Dce,"onFile");async function lD(e,t,r,n){if(await sn.copyFile(t,r),n.preserveTimestamps){Nce(e.mode)&&await Bce(r,e.mode);let s=await sn.stat(t);await Oce(r,s.atime,s.mtime)}return sn.chmod(r,e.mode)}i(lD,"copyFile");function Nce(e){return(e&128)===0}i(Nce,"fileIsNotWritable");function Bce(e,t){return sn.chmod(e,t|128)}i(Bce,"makeFileWritable");async function Mce(e,t,r,n,s){t||await sn.mkdir(n);let o=await sn.readdir(r);await Promise.all(o.map(async a=>{let c=tf.join(r,a),l=tf.join(n,a);if(!await aD(c,l,s))return;let{destStat:d}=await rf.checkPaths(c,l,"copy",s);return cD(d,c,l,s)})),t||await sn.chmod(n,e.mode)}i(Mce,"onDir");async function $ce(e,t,r,n){let s=await sn.readlink(t);if(n.dereference&&(s=tf.resolve(process.cwd(),s)),!e)return sn.symlink(s,r);let o=null;try{o=await sn.readlink(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return sn.symlink(s,r);throw a}if(n.dereference&&(o=tf.resolve(process.cwd(),o)),rf.isSrcSubdir(s,o))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${o}'.`);if(rf.isSrcSubdir(o,s))throw new Error(`Cannot overwrite '${o}' with '${s}'.`);return await sn.unlink(r),sn.symlink(s,r)}i($ce,"onLink"),uD.exports=Ice});var gD=A((A6e,mD)=>{"use strict";var An=bl(),nf=require("path"),Fce=Ks().mkdirsSync,Lce=v_().utimesMillisSync,sf=hc();function jce(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-editor-cli",
3
- "version": "5.4.2-alpha.3",
3
+ "version": "5.4.3-alpha.0",
4
4
  "description": "Babylon.js Editor CLI is a command line interface to help you package your scenes made using the Babylon.js Editor",
5
5
  "productName": "Babylon.js Editor CLI",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-editor-cli",
3
- "version": "5.4.2-alpha.3",
3
+ "version": "5.4.3-alpha.0",
4
4
  "description": "Babylon.js Editor CLI is a command line interface to help you package your scenes made using the Babylon.js Editor",
5
5
  "productName": "Babylon.js Editor CLI",
6
6
  "scripts": {