@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
4 lines (3 loc) • 11.8 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
var ce=Object.defineProperty;var n=(e,u)=>ce(e,"name",{value:u,configurable:!0});var U=(e,u)=>()=>{try{return u||e((u={exports:{}}).exports,u),u.exports}catch(w){throw u=0,w}};var H=U((we,V)=>{var M=require("constants"),ue=process.cwd,q=null,ae=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return q||(q=ue.call(process)),q};try{process.cwd()}catch{}typeof process.chdir=="function"&&(K=process.chdir,process.chdir=function(e){q=null,K.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,K));var K;V.exports=fe;function fe(e){M.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&u(e),e.lutimes||w(e),e.chown=E(e.chown),e.fchown=E(e.fchown),e.lchown=E(e.lchown),e.chmod=N(e.chmod),e.fchmod=N(e.fchmod),e.lchmod=N(e.lchmod),e.chownSync=R(e.chownSync),e.fchownSync=R(e.fchownSync),e.lchownSync=R(e.lchownSync),e.chmodSync=y(e.chmodSync),e.fchmodSync=y(e.fchmodSync),e.lchmodSync=y(e.lchmodSync),e.stat=I(e.stat),e.fstat=I(e.fstat),e.lstat=I(e.lstat),e.statSync=T(e.statSync),e.fstatSync=T(e.fstatSync),e.lstatSync=T(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(t,a,o){o&&process.nextTick(o)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(t,a,o,r){r&&process.nextTick(r)},e.lchownSync=function(){}),ae==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(t){function a(o,r,c){var d=Date.now(),p=0;t(o,r,n(function m(D){if(D&&(D.code==="EACCES"||D.code==="EPERM"||D.code==="EBUSY")&&Date.now()-d<6e4){setTimeout(function(){e.stat(r,function(P,$){P&&P.code==="ENOENT"?t(o,r,m):c(D)})},p),p<100&&(p+=10);return}c&&c(D)},"CB"))}return n(a,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(t){function a(o,r,c,d,p,m){var D;if(m&&typeof m=="function"){var P=0;D=n(function($,Q,z){if($&&$.code==="EAGAIN"&&P<10)return P++,t.call(e,o,r,c,d,p,D);m.apply(this,arguments)},"callback")}return t.call(e,o,r,c,d,p,D)}return n(a,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(a,t),a})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(t){return function(a,o,r,c,d){for(var p=0;;)try{return t.call(e,a,o,r,c,d)}catch(m){if(m.code==="EAGAIN"&&p<10){p++;continue}throw m}}})(e.readSync);function u(t){t.lchmod=function(a,o,r){t.open(a,M.O_WRONLY|M.O_SYMLINK,o,function(c,d){if(c){r&&r(c);return}t.fchmod(d,o,function(p){t.close(d,function(m){r&&r(p||m)})})})},t.lchmodSync=function(a,o){var r=t.openSync(a,M.O_WRONLY|M.O_SYMLINK,o),c=!0,d;try{d=t.fchmodSync(r,o),c=!1}finally{if(c)try{t.closeSync(r)}catch{}else t.closeSync(r)}return d}}n(u,"patchLchmod");function w(t){M.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(a,o,r,c){t.open(a,M.O_SYMLINK,function(d,p){if(d){c&&c(d);return}t.futimes(p,o,r,function(m){t.close(p,function(D){c&&c(m||D)})})})},t.lutimesSync=function(a,o,r){var c=t.openSync(a,M.O_SYMLINK),d,p=!0;try{d=t.futimesSync(c,o,r),p=!1}finally{if(p)try{t.closeSync(c)}catch{}else t.closeSync(c)}return d}):t.futimes&&(t.lutimes=function(a,o,r,c){c&&process.nextTick(c)},t.lutimesSync=function(){})}n(w,"patchLutimes");function N(t){return t&&function(a,o,r){return t.call(e,a,o,function(c){j(c)&&(c=null),r&&r.apply(this,arguments)})}}n(N,"chmodFix");function y(t){return t&&function(a,o){try{return t.call(e,a,o)}catch(r){if(!j(r))throw r}}}n(y,"chmodFixSync");function E(t){return t&&function(a,o,r,c){return t.call(e,a,o,r,function(d){j(d)&&(d=null),c&&c.apply(this,arguments)})}}n(E,"chownFix");function R(t){return t&&function(a,o,r){try{return t.call(e,a,o,r)}catch(c){if(!j(c))throw c}}}n(R,"chownFixSync");function I(t){return t&&function(a,o,r){typeof o=="function"&&(r=o,o=null);function c(d,p){p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),r&&r.apply(this,arguments)}return n(c,"callback"),o?t.call(e,a,o,c):t.call(e,a,c)}}n(I,"statFix");function T(t){return t&&function(a,o){var r=o?t.call(e,a,o):t.call(e,a);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}}n(T,"statFixSync");function j(t){if(!t||t.code==="ENOSYS")return!0;var a=!process.getuid||process.getuid()!==0;return!!(a&&(t.code==="EINVAL"||t.code==="EPERM"))}n(j,"chownErOk")}n(fe,"patch")});var Z=U((Ee,X)=>{var J=require("stream").Stream;X.exports=le;function le(e){return{ReadStream:u,WriteStream:w};function u(N,y){if(!(this instanceof u))return new u(N,y);J.call(this);var E=this;this.path=N,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,y=y||{};for(var R=Object.keys(y),I=0,T=R.length;I<T;I++){var j=R[I];this[j]=y[j]}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(){E._read()});return}e.open(this.path,this.flags,this.mode,function(t,a){if(t){E.emit("error",t),E.readable=!1;return}E.fd=a,E.emit("open",a),E._read()})}function w(N,y){if(!(this instanceof w))return new w(N,y);J.call(this),this.path=N,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,y=y||{};for(var E=Object.keys(y),R=0,I=E.length;R<I;R++){var T=E[R];this[T]=y[T]}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())}}n(le,"legacy")});var te=U((Fe,ee)=>{"use strict";ee.exports=he;var pe=Object.getPrototypeOf||function(e){return e.__proto__};function he(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var u={__proto__:pe(e)};else var u=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(w){Object.defineProperty(u,w,Object.getOwnPropertyDescriptor(e,w))}),u}n(he,"clone")});var v=require("fs"),de=H(),ye=Z(),se=te(),Y=require("util"),L,C;typeof Symbol=="function"&&typeof Symbol.for=="function"?(L=Symbol.for("graceful-fs.queue"),C=Symbol.for("graceful-fs.previous")):(L="___graceful-fs.queue",C="___graceful-fs.previous");function me(){}n(me,"noop");function ie(e,u){Object.defineProperty(e,L,{get:n(function(){return u},"get")})}n(ie,"publishQueue");var x=me;Y.debuglog?x=Y.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(x=n(function(){var e=Y.format.apply(Y,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)},"debug"));v[L]||(ne=global[L]||[],ie(v,ne),v.close=(function(e){function u(w,N){return e.call(v,w,function(y){y||re(),typeof N=="function"&&N.apply(this,arguments)})}return n(u,"close"),Object.defineProperty(u,C,{value:e}),u})(v.close),v.closeSync=(function(e){function u(w){e.apply(v,arguments),re()}return n(u,"closeSync"),Object.defineProperty(u,C,{value:e}),u})(v.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){x(v[L]),require("assert").equal(v[L].length,0)}));var ne;global[L]||ie(global,v[L]);module.exports=k(se(v));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!v.__patched&&(module.exports=k(v),v.__patched=!0);function k(e){de(e),e.gracefulify=k,e.createReadStream=Q,e.createWriteStream=z;var u=e.readFile;e.readFile=w;function w(i,l,f){return typeof l=="function"&&(f=l,l=null),F(i,l,f);function F(_,O,S,g){return u(_,O,function(h){h&&(h.code==="EMFILE"||h.code==="ENFILE")?W([F,[_,O,S],h,g||Date.now(),Date.now()]):typeof S=="function"&&S.apply(this,arguments)})}n(F,"go$readFile")}n(w,"readFile");var N=e.writeFile;e.writeFile=y;function y(i,l,f,F){return typeof f=="function"&&(F=f,f=null),_(i,l,f,F);function _(O,S,g,h,b){return N(O,S,g,function(s){s&&(s.code==="EMFILE"||s.code==="ENFILE")?W([_,[O,S,g,h],s,b||Date.now(),Date.now()]):typeof h=="function"&&h.apply(this,arguments)})}n(_,"go$writeFile")}n(y,"writeFile");var E=e.appendFile;E&&(e.appendFile=R);function R(i,l,f,F){return typeof f=="function"&&(F=f,f=null),_(i,l,f,F);function _(O,S,g,h,b){return E(O,S,g,function(s){s&&(s.code==="EMFILE"||s.code==="ENFILE")?W([_,[O,S,g,h],s,b||Date.now(),Date.now()]):typeof h=="function"&&h.apply(this,arguments)})}n(_,"go$appendFile")}n(R,"appendFile");var I=e.copyFile;I&&(e.copyFile=T);function T(i,l,f,F){return typeof f=="function"&&(F=f,f=0),_(i,l,f,F);function _(O,S,g,h,b){return I(O,S,g,function(s){s&&(s.code==="EMFILE"||s.code==="ENFILE")?W([_,[O,S,g,h],s,b||Date.now(),Date.now()]):typeof h=="function"&&h.apply(this,arguments)})}n(_,"go$copyFile")}n(T,"copyFile");var j=e.readdir;e.readdir=a;var t=/^v[0-5]\./;function a(i,l,f){typeof l=="function"&&(f=l,l=null);var F=t.test(process.version)?n(function(S,g,h,b){return j(S,_(S,g,h,b))},"go$readdir"):n(function(S,g,h,b){return j(S,g,_(S,g,h,b))},"go$readdir");return F(i,l,f);function _(O,S,g,h){return function(b,s){b&&(b.code==="EMFILE"||b.code==="ENFILE")?W([F,[O,S,g],b,h||Date.now(),Date.now()]):(s&&s.sort&&s.sort(),typeof g=="function"&&g.call(this,b,s))}}}if(n(a,"readdir"),process.version.substr(0,4)==="v0.8"){var o=ye(e);m=o.ReadStream,P=o.WriteStream}var r=e.ReadStream;r&&(m.prototype=Object.create(r.prototype),m.prototype.open=D);var c=e.WriteStream;c&&(P.prototype=Object.create(c.prototype),P.prototype.open=$),Object.defineProperty(e,"ReadStream",{get:n(function(){return m},"get"),set:n(function(i){m=i},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:n(function(){return P},"get"),set:n(function(i){P=i},"set"),enumerable:!0,configurable:!0});var d=m;Object.defineProperty(e,"FileReadStream",{get:n(function(){return d},"get"),set:n(function(i){d=i},"set"),enumerable:!0,configurable:!0});var p=P;Object.defineProperty(e,"FileWriteStream",{get:n(function(){return p},"get"),set:n(function(i){p=i},"set"),enumerable:!0,configurable:!0});function m(i,l){return this instanceof m?(r.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}n(m,"ReadStream");function D(){var i=this;G(i.path,i.flags,i.mode,function(l,f){l?(i.autoClose&&i.destroy(),i.emit("error",l)):(i.fd=f,i.emit("open",f),i.read())})}n(D,"ReadStream$open");function P(i,l){return this instanceof P?(c.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}n(P,"WriteStream");function $(){var i=this;G(i.path,i.flags,i.mode,function(l,f){l?(i.destroy(),i.emit("error",l)):(i.fd=f,i.emit("open",f))})}n($,"WriteStream$open");function Q(i,l){return new e.ReadStream(i,l)}n(Q,"createReadStream");function z(i,l){return new e.WriteStream(i,l)}n(z,"createWriteStream");var oe=e.open;e.open=G;function G(i,l,f,F){return typeof f=="function"&&(F=f,f=null),_(i,l,f,F);function _(O,S,g,h,b){return oe(O,S,g,function(s,Se){s&&(s.code==="EMFILE"||s.code==="ENFILE")?W([_,[O,S,g,h],s,b||Date.now(),Date.now()]):typeof h=="function"&&h.apply(this,arguments)})}n(_,"go$open")}return n(G,"open"),e}n(k,"patch");function W(e){x("ENQUEUE",e[0].name,e[1]),v[L].push(e),B()}n(W,"enqueue");var A;function re(){for(var e=Date.now(),u=0;u<v[L].length;++u)v[L][u].length>2&&(v[L][u][3]=e,v[L][u][4]=e);B()}n(re,"resetQueue");function B(){if(clearTimeout(A),A=void 0,v[L].length!==0){var e=v[L].shift(),u=e[0],w=e[1],N=e[2],y=e[3],E=e[4];if(y===void 0)x("RETRY",u.name,w),u.apply(null,w);else if(Date.now()-y>=6e4){x("TIMEOUT",u.name,w);var R=w.pop();typeof R=="function"&&R.call(null,N)}else{var I=Date.now()-E,T=Math.max(E-y,1),j=Math.min(T*1.2,100);I>=j?(x("RETRY",u.name,w),u.apply(null,w.concat([y]))):v[L].push(e)}A===void 0&&(A=setTimeout(B,0))}}n(B,"retry");