@serverless-devs/s 2.0.100-beta.2 → 2.0.100-beta.3
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/clean/index.js +1 -1
- package/lib/cli/index.js +23 -23
- package/lib/component/index.js +35 -35
- package/lib/config/add/index.js +20 -20
- package/lib/config/delete/index.js +20 -20
- package/lib/config/get/index.js +24 -24
- package/lib/config/index.js +1 -1
- package/lib/error/index.js +4 -3
- package/lib/help/index.js +16 -15
- package/lib/index.js +62 -62
- package/lib/init/index.js +42 -42
- package/lib/set/analysis/index.js +22 -22
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +22 -22
- package/lib/set/registry/index.js +22 -22
- package/lib/set/workspace/index.js +20 -20
- package/lib/update-notifier/index.js +1 -1
- package/package.json +1 -1
package/lib/clean/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),Y&&(O+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+O+`return __p
|
|
34
|
-
}`;var G=il(function(){return Z(c,N+"return "+O).apply(i,p)});if(G.source=O,Ws(G))throw G;return G}function M0(e){return J(e).toLowerCase()}function H0(e){return J(e).toUpperCase()}function U0(e,t,n){if(e=J(e),e&&(n||t===i))return ho(e);if(!e||!(t=$e(t)))return e;var u=Qe(e),a=Qe(t),c=po(u,a),p=go(u,a)+1;return Nt(u,c,p).join("")}function W0(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,mo(e)+1);if(!e||!(t=$e(t)))return e;var u=Qe(e),a=go(u,Qe(t))+1;return Nt(u,0,a).join("")}function B0(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Wi,"");if(!e||!(t=$e(t)))return e;var u=Qe(e),a=po(u,Qe(t));return Nt(u,a).join("")}function G0(e,t){var n=Fc,u=Pc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?B(t.length):n,u="omission"in t?$e(t.omission):u}e=J(e);var c=e.length;if(an(e)){var p=Qe(e);c=p.length}if(n>=c)return e;var d=n-ln(u);if(d<1)return u;var _=p?Nt(p,0,d).join(""):e.slice(0,d);if(a===i)return _+u;if(p&&(d+=_.length-d),Bs(a)){if(e.slice(d).search(a)){var A,R=_;for(a.global||(a=is(a.source,J(Du.exec(a))+"g")),a.lastIndex=0;A=a.exec(R);)var O=A.index;_=_.slice(0,O===i?d:O)}}else if(e.indexOf($e(a),d)!=d){var I=_.lastIndexOf(a);I>-1&&(_=_.slice(0,I))}return _+u}function X0(e){return e=J(e),e&&th.test(e)?e.replace(Tu,Ep):e}var z0=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),zs=sa("toUpperCase");function rl(e,t,n){return e=J(e),t=n?i:t,t===i?dp(e)?xp(e):sp(e):e.match(t)||[]}var il=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ws(n)?n:new U(n)}}),V0=mt(function(e,t){return Me(t,function(n){n=at(n),gt(e,n,Hs(e[n],e))}),e});function j0(e){var t=e==null?0:e.length,n=P();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new He(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function Y0(e){return Ed(We(e,v))}function Vs(e){return function(){return e}}function K0(e,t){return e==null||e!==e?t:e}var Z0=oa(),J0=oa(!0);function Ie(e){return e}function js(e){return Po(typeof e=="function"?e:We(e,v))}function Q0(e){return Ho(We(e,v))}function k0(e,t){return Uo(e,We(t,v))}var ev=z(function(e,t){return function(n){return Wn(n,e,t)}}),tv=z(function(e,t){return function(n){return Wn(e,n,t)}});function Ys(e,t,n){var u=ce(t),a=zr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=zr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=Et(e);return Me(a,function(d){var _=t[d];e[d]=_,p&&(e.prototype[d]=function(){var A=this.__chain__;if(c||A){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=A,R}return _.apply(e,St([this.value()],arguments))})}),e}function nv(){return fe._===this&&(fe._=Cp),this}function Ks(){}function rv(e){return e=B(e),z(function(t){return Wo(t,e)})}var iv=Ss(ne),sv=Ss(oo),uv=Ss(Ji);function sl(e){return Ns(e)?Qi(at(e)):Fd(e)}function ov(e){return function(t){return e==null?i:Gt(e,t)}}var av=la(),lv=la(!0);function Zs(){return[]}function Js(){return!1}function fv(){return{}}function cv(){return""}function hv(){return!0}function pv(e,t){if(e=B(e),e<1||e>Rt)return[];var n=st,u=ge(e,st);t=P(t),e-=st;for(var a=ts(u,t);++n<e;)t(n);return a}function dv(e){return W(e)?ne(e,at):Ne(e)?[e]:Re(Oa(J(e)))}function gv(e){var t=++Sp;return J(e)+t}var _v=Jr(function(e,t){return e+t},0),mv=Is("ceil"),vv=Jr(function(e,t){return e/t},1),Ev=Is("floor");function yv(e){return e&&e.length?Xr(e,Ie,hs):i}function wv(e,t){return e&&e.length?Xr(e,P(t,2),hs):i}function xv(e){return fo(e,Ie)}function Av(e,t){return fo(e,P(t,2))}function Rv(e){return e&&e.length?Xr(e,Ie,_s):i}function Ov(e,t){return e&&e.length?Xr(e,P(t,2),_s):i}var Sv=Jr(function(e,t){return e*t},1),Iv=Is("round"),Cv=Jr(function(e,t){return e-t},0);function bv(e){return e&&e.length?es(e,Ie):0}function Lv(e,t){return e&&e.length?es(e,P(t,2)):0}return l.after=Q_,l.ary=Fa,l.assign=Hm,l.assignIn=Za,l.assignInWith=fi,l.assignWith=Um,l.at=Wm,l.before=Pa,l.bind=Hs,l.bindAll=V0,l.bindKey=Ma,l.castArray=fm,l.chain=Na,l.chunk=Eg,l.compact=yg,l.concat=wg,l.cond=j0,l.conforms=Y0,l.constant=Vs,l.countBy=b_,l.create=Bm,l.curry=Ha,l.curryRight=Ua,l.debounce=Wa,l.defaults=Gm,l.defaultsDeep=Xm,l.defer=k_,l.delay=em,l.difference=xg,l.differenceBy=Ag,l.differenceWith=Rg,l.drop=Og,l.dropRight=Sg,l.dropRightWhile=Ig,l.dropWhile=Cg,l.fill=bg,l.filter=T_,l.flatMap=D_,l.flatMapDeep=q_,l.flatMapDepth=F_,l.flatten=ba,l.flattenDeep=Lg,l.flattenDepth=Tg,l.flip=tm,l.flow=Z0,l.flowRight=J0,l.fromPairs=$g,l.functions=Jm,l.functionsIn=Qm,l.groupBy=P_,l.initial=Dg,l.intersection=qg,l.intersectionBy=Fg,l.intersectionWith=Pg,l.invert=e0,l.invertBy=t0,l.invokeMap=H_,l.iteratee=js,l.keyBy=U_,l.keys=ce,l.keysIn=Se,l.map=ii,l.mapKeys=r0,l.mapValues=i0,l.matches=Q0,l.matchesProperty=k0,l.memoize=ui,l.merge=s0,l.mergeWith=Ja,l.method=ev,l.methodOf=tv,l.mixin=Ys,l.negate=oi,l.nthArg=rv,l.omit=u0,l.omitBy=o0,l.once=nm,l.orderBy=W_,l.over=iv,l.overArgs=rm,l.overEvery=sv,l.overSome=uv,l.partial=Us,l.partialRight=Ba,l.partition=B_,l.pick=a0,l.pickBy=Qa,l.property=sl,l.propertyOf=ov,l.pull=Wg,l.pullAll=Ta,l.pullAllBy=Bg,l.pullAllWith=Gg,l.pullAt=Xg,l.range=av,l.rangeRight=lv,l.rearg=im,l.reject=z_,l.remove=zg,l.rest=sm,l.reverse=Ps,l.sampleSize=j_,l.set=f0,l.setWith=c0,l.shuffle=Y_,l.slice=Vg,l.sortBy=J_,l.sortedUniq=kg,l.sortedUniqBy=e_,l.split=D0,l.spread=um,l.tail=t_,l.take=n_,l.takeRight=r_,l.takeRightWhile=i_,l.takeWhile=s_,l.tap=y_,l.throttle=om,l.thru=ri,l.toArray=ja,l.toPairs=ka,l.toPairsIn=el,l.toPath=dv,l.toPlainObject=Ka,l.transform=h0,l.unary=am,l.union=u_,l.unionBy=o_,l.unionWith=a_,l.uniq=l_,l.uniqBy=f_,l.uniqWith=c_,l.unset=p0,l.unzip=Ms,l.unzipWith=$a,l.update=d0,l.updateWith=g0,l.values=vn,l.valuesIn=_0,l.without=h_,l.words=rl,l.wrap=lm,l.xor=p_,l.xorBy=d_,l.xorWith=g_,l.zip=__,l.zipObject=m_,l.zipObjectDeep=v_,l.zipWith=E_,l.entries=ka,l.entriesIn=el,l.extend=Za,l.extendWith=fi,Ys(l,l),l.add=_v,l.attempt=il,l.camelCase=y0,l.capitalize=tl,l.ceil=mv,l.clamp=m0,l.clone=cm,l.cloneDeep=pm,l.cloneDeepWith=dm,l.cloneWith=hm,l.conformsTo=gm,l.deburr=nl,l.defaultTo=K0,l.divide=vv,l.endsWith=w0,l.eq=et,l.escape=x0,l.escapeRegExp=A0,l.every=L_,l.find=$_,l.findIndex=Ia,l.findKey=zm,l.findLast=N_,l.findLastIndex=Ca,l.findLastKey=Vm,l.floor=Ev,l.forEach=Da,l.forEachRight=qa,l.forIn=jm,l.forInRight=Ym,l.forOwn=Km,l.forOwnRight=Zm,l.get=Gs,l.gt=_m,l.gte=mm,l.has=km,l.hasIn=Xs,l.head=La,l.identity=Ie,l.includes=M_,l.indexOf=Ng,l.inRange=v0,l.invoke=n0,l.isArguments=Vt,l.isArray=W,l.isArrayBuffer=vm,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Em,l.isBuffer=Dt,l.isDate=ym,l.isElement=wm,l.isEmpty=xm,l.isEqual=Am,l.isEqualWith=Rm,l.isError=Ws,l.isFinite=Om,l.isFunction=Et,l.isInteger=Ga,l.isLength=ai,l.isMap=Xa,l.isMatch=Sm,l.isMatchWith=Im,l.isNaN=Cm,l.isNative=bm,l.isNil=Tm,l.isNull=Lm,l.isNumber=za,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=jn,l.isRegExp=Bs,l.isSafeInteger=$m,l.isSet=Va,l.isString=li,l.isSymbol=Ne,l.isTypedArray=mn,l.isUndefined=Nm,l.isWeakMap=Dm,l.isWeakSet=qm,l.join=Mg,l.kebabCase=R0,l.last=Ge,l.lastIndexOf=Hg,l.lowerCase=O0,l.lowerFirst=S0,l.lt=Fm,l.lte=Pm,l.max=yv,l.maxBy=wv,l.mean=xv,l.meanBy=Av,l.min=Rv,l.minBy=Ov,l.stubArray=Zs,l.stubFalse=Js,l.stubObject=fv,l.stubString=cv,l.stubTrue=hv,l.multiply=Sv,l.nth=Ug,l.noConflict=nv,l.noop=Ks,l.now=si,l.pad=I0,l.padEnd=C0,l.padStart=b0,l.parseInt=L0,l.random=E0,l.reduce=G_,l.reduceRight=X_,l.repeat=T0,l.replace=$0,l.result=l0,l.round=Iv,l.runInContext=g,l.sample=V_,l.size=K_,l.snakeCase=N0,l.some=Z_,l.sortedIndex=jg,l.sortedIndexBy=Yg,l.sortedIndexOf=Kg,l.sortedLastIndex=Zg,l.sortedLastIndexBy=Jg,l.sortedLastIndexOf=Qg,l.startCase=q0,l.startsWith=F0,l.subtract=Cv,l.sum=bv,l.sumBy=Lv,l.template=P0,l.times=pv,l.toFinite=yt,l.toInteger=B,l.toLength=Ya,l.toLower=M0,l.toNumber=Xe,l.toSafeInteger=Mm,l.toString=J,l.toUpper=H0,l.trim=U0,l.trimEnd=W0,l.trimStart=B0,l.truncate=G0,l.unescape=X0,l.uniqueId=gv,l.upperCase=z0,l.upperFirst=zs,l.each=Da,l.eachRight=qa,l.first=La,Ys(l,function(){var e={};return ut(l,function(t,n){Q.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,Me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Me(["drop","take"],function(e,t){j.prototype[e]=function(n){n=n===i?1:le(B(n),0);var u=this.__filtered__&&!t?new j(this):this.clone();return u.__filtered__?u.__takeCount__=ge(n,u.__takeCount__):u.__views__.push({size:ge(n,st),type:e+(u.__dir__<0?"Right":"")}),u},j.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Me(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Cu||n==Wc;j.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:P(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),Me(["head","last"],function(e,t){var n="take"+(t?"Right":"");j.prototype[e]=function(){return this[n](1).value()[0]}}),Me(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[n](1)}}),j.prototype.compact=function(){return this.filter(Ie)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new j(this):this.map(function(n){return Wn(n,e,t)})}),j.prototype.reject=function(e){return this.filter(oi(P(e)))},j.prototype.slice=function(e,t){e=B(e);var n=this;return n.__filtered__&&(e>0||t<0)?new j(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=B(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(st)},ut(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,d=u?[1]:arguments,_=p instanceof j,A=d[0],R=_||W(p),O=function(V){var Y=a.apply(l,St([V],d));return u&&I?Y[0]:Y};R&&n&&typeof A=="function"&&A.length!=1&&(_=R=!1);var I=this.__chain__,N=!!this.__actions__.length,M=c&&!I,G=_&&!N;if(!c&&R){p=G?p:new j(this);var H=e.apply(p,d);return H.__actions__.push({func:ri,args:[O],thisArg:i}),new Ue(H,I)}return M&&G?e.apply(this,d):(H=this.thru(O),M?u?H.value()[0]:H.value():H)})}),Me(["pop","push","shift","sort","splice","unshift"],function(e){var t=br[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),ut(j.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";Q.call(hn,u)||(hn[u]=[]),hn[u].push({name:t,func:n})}}),hn[Zr(i,Ft).name]=[{name:"wrapper",func:i}],j.prototype.clone=Xp,j.prototype.reverse=zp,j.prototype.value=Vp,l.prototype.at=w_,l.prototype.chain=x_,l.prototype.commit=A_,l.prototype.next=R_,l.prototype.plant=S_,l.prototype.reverse=I_,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=C_,l.prototype.first=l.prototype.head,Dn&&(l.prototype[Dn]=O_),l},Ct=Ap();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=Ct,define(function(){return Ct})):Mt?((Mt.exports=Ct)._=Ct,ji._=Ct):fe._=Ct}).call(xn)});var mu=q(Ce=>{"use strict";var VE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function w(S){try{v(o.next(S))}catch($){m($)}}function y(S){try{v(o.throw(S))}catch($){m($)}}function v(S){S.done?h(S.value):f(S.value).then(w,y)}v((o=o.apply(i,r||[])).next())})},jE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function w(v){return function(S){return y([v,S])}}function y(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(S){v=[6,S],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},Ec=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var yc=Ec(require("path")),gu=Ec(ar()),lt=gu.default.fse,Oi=gu.default.jsyaml,_u=gu.default.getRootHome;function YE(i){var r=xc();lt.writeFileSync(r,Oi.dump(i))}function wc(){var i=xc();if(!lt.existsSync(i))return{};try{var r=Oi.load(lt.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function xc(){var i=yc.default.join(_u(),"set-config.yml");return lt.existsSync(i)||lt.createFileSync(i),i}function KE(i,r){var s=wc();s[i]=r,YE(s)}Ce.setConfig=KE;function ZE(i,r){var s=wc();return s[i]||r}Ce.getConfig=ZE;function JE(i){return VE(this,void 0,void 0,function(){var r,s,o,f,h,m,w;return jE(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=yc.default.join(_u(),r),o=lt.existsSync(s),f={},o)return[3,5];h=_u(),y.label=1;case 1:return y.trys.push([1,2,,4]),lt.statSync(h),[3,4];case 2:return m=y.sent(),[4,lt.mkdirSync(h)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=Oi.load(lt.readFileSync(s,"utf8"))||{}}catch(v){throw v}y.label=6;case 6:return i.read?[2,f]:(w=i.configKey||"",f[w]=i.data,[4,lt.writeFileSync(s,Oi.dump(f))]);case 7:return y.sent(),[2,f]}})})}Ce.handlerProfileFile=JE});var Ac=q((Fw,QE)=>{QE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.2",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/help.test.ts",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Eu=q(F=>{"use strict";var kE=F&&F.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),ey=F&&F.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),ty=F&&F.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&kE(r,i,s);return ey(r,i),r},fr=F&&F.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function w(S){try{v(o.next(S))}catch($){m($)}}function y(S){try{v(o.throw(S))}catch($){m($)}}function v(S){S.done?h(S.value):f(S.value).then(w,y)}v((o=o.apply(i,r||[])).next())})},cr=F&&F.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function w(v){return function(S){return y([v,S])}}function y(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(S){v=[6,S],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},vu=F&&F.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(F,"__esModule",{value:!0});F.emoji=F.mark=F.replaceTemplate=F.getTemplatekey=F.replaceFun=F.getLang=F.printn=F.getFolderSize=F.getVersion=F.getPid=F.aiRequest=F.getCredentialWithAll=F.getCredentialWithExisted=F.getCredentialAliasList=F.getProcessArgv=F.bgRed=F.yellow=F.red=void 0;var Rc=vu(require("path")),hr=vu(require("fs")),Ye=vc(),ny=vu(require("os")),Ke=ty(ar()),ry=mu(),Oc=Ac(),Si=Ke.default.colors,iy=Ke.default.got,sy=Ke.default.getMAC,uy=Ke.default.isDocker,oy=Ke.default.isCiCdEnv,ay=Ke.default.getGlobalArgs,ly=Ke.default.getYamlContent,fy=Ke.default.getRootHome,Sc=Ke.default.getCredential,cy=Ke.default.getCredentialFromEnv;F.red=Si.hex("#fd5750");F.yellow=Si.hex("#F3F99D");F.bgRed=Si.hex("#000").bgHex("#fd5750");var hy=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=ay(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ye.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ye.filter)(s._argsObj,function(o){return!(0,Ye.includes)(["-h","--help"],o)}))})}catch{return{}}};F.getProcessArgv=hy;var py=function(){return fr(void 0,void 0,void 0,function(){var i,r,s;return cr(this,function(o){switch(o.label){case 0:return i=[],[4,ly(Rc.default.join(fy(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ye.keys)(r)),[4,cy()];case 2:return s=o.sent(),s&&(i=(0,Ye.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};F.getCredentialAliasList=py;var dy=function(i){return fr(void 0,void 0,void 0,function(){var r,s;return cr(this,function(o){switch(o.label){case 0:return[4,(0,F.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ye.includes)(r,i)?[4,Sc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ye.omit)(s,"Alias")];case 3:return[2]}})})};F.getCredentialWithExisted=dy;var gy=function(){return fr(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return cr(this,function(m){switch(m.label){case 0:return[4,(0,F.getCredentialAliasList)()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,Sc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Ye.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};F.getCredentialWithAll=gy;var _y=function(i,r){r===void 0&&(r="unknow");try{var s=(0,ry.getConfig)("analysis");return s!=="enable"||uy()||oy()?void 0:iy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0}).then(function(o){var f=(0,Ye.get)(o.body,"shorturl");f&&console.log(`AI Tips:
|
|
34
|
+
}`;var G=il(function(){return Z(c,N+"return "+O).apply(i,p)});if(G.source=O,Ws(G))throw G;return G}function M0(e){return J(e).toLowerCase()}function H0(e){return J(e).toUpperCase()}function U0(e,t,n){if(e=J(e),e&&(n||t===i))return ho(e);if(!e||!(t=$e(t)))return e;var u=Qe(e),a=Qe(t),c=po(u,a),p=go(u,a)+1;return Nt(u,c,p).join("")}function W0(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,mo(e)+1);if(!e||!(t=$e(t)))return e;var u=Qe(e),a=go(u,Qe(t))+1;return Nt(u,0,a).join("")}function B0(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Wi,"");if(!e||!(t=$e(t)))return e;var u=Qe(e),a=po(u,Qe(t));return Nt(u,a).join("")}function G0(e,t){var n=Fc,u=Pc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?B(t.length):n,u="omission"in t?$e(t.omission):u}e=J(e);var c=e.length;if(an(e)){var p=Qe(e);c=p.length}if(n>=c)return e;var d=n-ln(u);if(d<1)return u;var _=p?Nt(p,0,d).join(""):e.slice(0,d);if(a===i)return _+u;if(p&&(d+=_.length-d),Bs(a)){if(e.slice(d).search(a)){var A,R=_;for(a.global||(a=is(a.source,J(Du.exec(a))+"g")),a.lastIndex=0;A=a.exec(R);)var O=A.index;_=_.slice(0,O===i?d:O)}}else if(e.indexOf($e(a),d)!=d){var I=_.lastIndexOf(a);I>-1&&(_=_.slice(0,I))}return _+u}function X0(e){return e=J(e),e&&th.test(e)?e.replace(Tu,Ep):e}var z0=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),zs=sa("toUpperCase");function rl(e,t,n){return e=J(e),t=n?i:t,t===i?dp(e)?xp(e):sp(e):e.match(t)||[]}var il=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ws(n)?n:new U(n)}}),V0=mt(function(e,t){return Me(t,function(n){n=at(n),gt(e,n,Hs(e[n],e))}),e});function j0(e){var t=e==null?0:e.length,n=P();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new He(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function Y0(e){return Ed(We(e,v))}function Vs(e){return function(){return e}}function K0(e,t){return e==null||e!==e?t:e}var Z0=oa(),J0=oa(!0);function Ie(e){return e}function js(e){return Po(typeof e=="function"?e:We(e,v))}function Q0(e){return Ho(We(e,v))}function k0(e,t){return Uo(e,We(t,v))}var ev=z(function(e,t){return function(n){return Wn(n,e,t)}}),tv=z(function(e,t){return function(n){return Wn(e,n,t)}});function Ys(e,t,n){var u=ce(t),a=zr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=zr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=Et(e);return Me(a,function(d){var _=t[d];e[d]=_,p&&(e.prototype[d]=function(){var A=this.__chain__;if(c||A){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=A,R}return _.apply(e,St([this.value()],arguments))})}),e}function nv(){return fe._===this&&(fe._=Cp),this}function Ks(){}function rv(e){return e=B(e),z(function(t){return Wo(t,e)})}var iv=Ss(ne),sv=Ss(oo),uv=Ss(Ji);function sl(e){return Ns(e)?Qi(at(e)):Fd(e)}function ov(e){return function(t){return e==null?i:Gt(e,t)}}var av=la(),lv=la(!0);function Zs(){return[]}function Js(){return!1}function fv(){return{}}function cv(){return""}function hv(){return!0}function pv(e,t){if(e=B(e),e<1||e>Rt)return[];var n=st,u=ge(e,st);t=P(t),e-=st;for(var a=ts(u,t);++n<e;)t(n);return a}function dv(e){return W(e)?ne(e,at):Ne(e)?[e]:Re(Oa(J(e)))}function gv(e){var t=++Sp;return J(e)+t}var _v=Jr(function(e,t){return e+t},0),mv=Is("ceil"),vv=Jr(function(e,t){return e/t},1),Ev=Is("floor");function yv(e){return e&&e.length?Xr(e,Ie,hs):i}function wv(e,t){return e&&e.length?Xr(e,P(t,2),hs):i}function xv(e){return fo(e,Ie)}function Av(e,t){return fo(e,P(t,2))}function Rv(e){return e&&e.length?Xr(e,Ie,_s):i}function Ov(e,t){return e&&e.length?Xr(e,P(t,2),_s):i}var Sv=Jr(function(e,t){return e*t},1),Iv=Is("round"),Cv=Jr(function(e,t){return e-t},0);function bv(e){return e&&e.length?es(e,Ie):0}function Lv(e,t){return e&&e.length?es(e,P(t,2)):0}return l.after=Q_,l.ary=Fa,l.assign=Hm,l.assignIn=Za,l.assignInWith=fi,l.assignWith=Um,l.at=Wm,l.before=Pa,l.bind=Hs,l.bindAll=V0,l.bindKey=Ma,l.castArray=fm,l.chain=Na,l.chunk=Eg,l.compact=yg,l.concat=wg,l.cond=j0,l.conforms=Y0,l.constant=Vs,l.countBy=b_,l.create=Bm,l.curry=Ha,l.curryRight=Ua,l.debounce=Wa,l.defaults=Gm,l.defaultsDeep=Xm,l.defer=k_,l.delay=em,l.difference=xg,l.differenceBy=Ag,l.differenceWith=Rg,l.drop=Og,l.dropRight=Sg,l.dropRightWhile=Ig,l.dropWhile=Cg,l.fill=bg,l.filter=T_,l.flatMap=D_,l.flatMapDeep=q_,l.flatMapDepth=F_,l.flatten=ba,l.flattenDeep=Lg,l.flattenDepth=Tg,l.flip=tm,l.flow=Z0,l.flowRight=J0,l.fromPairs=$g,l.functions=Jm,l.functionsIn=Qm,l.groupBy=P_,l.initial=Dg,l.intersection=qg,l.intersectionBy=Fg,l.intersectionWith=Pg,l.invert=e0,l.invertBy=t0,l.invokeMap=H_,l.iteratee=js,l.keyBy=U_,l.keys=ce,l.keysIn=Se,l.map=ii,l.mapKeys=r0,l.mapValues=i0,l.matches=Q0,l.matchesProperty=k0,l.memoize=ui,l.merge=s0,l.mergeWith=Ja,l.method=ev,l.methodOf=tv,l.mixin=Ys,l.negate=oi,l.nthArg=rv,l.omit=u0,l.omitBy=o0,l.once=nm,l.orderBy=W_,l.over=iv,l.overArgs=rm,l.overEvery=sv,l.overSome=uv,l.partial=Us,l.partialRight=Ba,l.partition=B_,l.pick=a0,l.pickBy=Qa,l.property=sl,l.propertyOf=ov,l.pull=Wg,l.pullAll=Ta,l.pullAllBy=Bg,l.pullAllWith=Gg,l.pullAt=Xg,l.range=av,l.rangeRight=lv,l.rearg=im,l.reject=z_,l.remove=zg,l.rest=sm,l.reverse=Ps,l.sampleSize=j_,l.set=f0,l.setWith=c0,l.shuffle=Y_,l.slice=Vg,l.sortBy=J_,l.sortedUniq=kg,l.sortedUniqBy=e_,l.split=D0,l.spread=um,l.tail=t_,l.take=n_,l.takeRight=r_,l.takeRightWhile=i_,l.takeWhile=s_,l.tap=y_,l.throttle=om,l.thru=ri,l.toArray=ja,l.toPairs=ka,l.toPairsIn=el,l.toPath=dv,l.toPlainObject=Ka,l.transform=h0,l.unary=am,l.union=u_,l.unionBy=o_,l.unionWith=a_,l.uniq=l_,l.uniqBy=f_,l.uniqWith=c_,l.unset=p0,l.unzip=Ms,l.unzipWith=$a,l.update=d0,l.updateWith=g0,l.values=vn,l.valuesIn=_0,l.without=h_,l.words=rl,l.wrap=lm,l.xor=p_,l.xorBy=d_,l.xorWith=g_,l.zip=__,l.zipObject=m_,l.zipObjectDeep=v_,l.zipWith=E_,l.entries=ka,l.entriesIn=el,l.extend=Za,l.extendWith=fi,Ys(l,l),l.add=_v,l.attempt=il,l.camelCase=y0,l.capitalize=tl,l.ceil=mv,l.clamp=m0,l.clone=cm,l.cloneDeep=pm,l.cloneDeepWith=dm,l.cloneWith=hm,l.conformsTo=gm,l.deburr=nl,l.defaultTo=K0,l.divide=vv,l.endsWith=w0,l.eq=et,l.escape=x0,l.escapeRegExp=A0,l.every=L_,l.find=$_,l.findIndex=Ia,l.findKey=zm,l.findLast=N_,l.findLastIndex=Ca,l.findLastKey=Vm,l.floor=Ev,l.forEach=Da,l.forEachRight=qa,l.forIn=jm,l.forInRight=Ym,l.forOwn=Km,l.forOwnRight=Zm,l.get=Gs,l.gt=_m,l.gte=mm,l.has=km,l.hasIn=Xs,l.head=La,l.identity=Ie,l.includes=M_,l.indexOf=Ng,l.inRange=v0,l.invoke=n0,l.isArguments=Vt,l.isArray=W,l.isArrayBuffer=vm,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Em,l.isBuffer=Dt,l.isDate=ym,l.isElement=wm,l.isEmpty=xm,l.isEqual=Am,l.isEqualWith=Rm,l.isError=Ws,l.isFinite=Om,l.isFunction=Et,l.isInteger=Ga,l.isLength=ai,l.isMap=Xa,l.isMatch=Sm,l.isMatchWith=Im,l.isNaN=Cm,l.isNative=bm,l.isNil=Tm,l.isNull=Lm,l.isNumber=za,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=jn,l.isRegExp=Bs,l.isSafeInteger=$m,l.isSet=Va,l.isString=li,l.isSymbol=Ne,l.isTypedArray=mn,l.isUndefined=Nm,l.isWeakMap=Dm,l.isWeakSet=qm,l.join=Mg,l.kebabCase=R0,l.last=Ge,l.lastIndexOf=Hg,l.lowerCase=O0,l.lowerFirst=S0,l.lt=Fm,l.lte=Pm,l.max=yv,l.maxBy=wv,l.mean=xv,l.meanBy=Av,l.min=Rv,l.minBy=Ov,l.stubArray=Zs,l.stubFalse=Js,l.stubObject=fv,l.stubString=cv,l.stubTrue=hv,l.multiply=Sv,l.nth=Ug,l.noConflict=nv,l.noop=Ks,l.now=si,l.pad=I0,l.padEnd=C0,l.padStart=b0,l.parseInt=L0,l.random=E0,l.reduce=G_,l.reduceRight=X_,l.repeat=T0,l.replace=$0,l.result=l0,l.round=Iv,l.runInContext=g,l.sample=V_,l.size=K_,l.snakeCase=N0,l.some=Z_,l.sortedIndex=jg,l.sortedIndexBy=Yg,l.sortedIndexOf=Kg,l.sortedLastIndex=Zg,l.sortedLastIndexBy=Jg,l.sortedLastIndexOf=Qg,l.startCase=q0,l.startsWith=F0,l.subtract=Cv,l.sum=bv,l.sumBy=Lv,l.template=P0,l.times=pv,l.toFinite=yt,l.toInteger=B,l.toLength=Ya,l.toLower=M0,l.toNumber=Xe,l.toSafeInteger=Mm,l.toString=J,l.toUpper=H0,l.trim=U0,l.trimEnd=W0,l.trimStart=B0,l.truncate=G0,l.unescape=X0,l.uniqueId=gv,l.upperCase=z0,l.upperFirst=zs,l.each=Da,l.eachRight=qa,l.first=La,Ys(l,function(){var e={};return ut(l,function(t,n){Q.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,Me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Me(["drop","take"],function(e,t){j.prototype[e]=function(n){n=n===i?1:le(B(n),0);var u=this.__filtered__&&!t?new j(this):this.clone();return u.__filtered__?u.__takeCount__=ge(n,u.__takeCount__):u.__views__.push({size:ge(n,st),type:e+(u.__dir__<0?"Right":"")}),u},j.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Me(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==Cu||n==Wc;j.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:P(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),Me(["head","last"],function(e,t){var n="take"+(t?"Right":"");j.prototype[e]=function(){return this[n](1).value()[0]}}),Me(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");j.prototype[e]=function(){return this.__filtered__?new j(this):this[n](1)}}),j.prototype.compact=function(){return this.filter(Ie)},j.prototype.find=function(e){return this.filter(e).head()},j.prototype.findLast=function(e){return this.reverse().find(e)},j.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new j(this):this.map(function(n){return Wn(n,e,t)})}),j.prototype.reject=function(e){return this.filter(oi(P(e)))},j.prototype.slice=function(e,t){e=B(e);var n=this;return n.__filtered__&&(e>0||t<0)?new j(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=B(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},j.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},j.prototype.toArray=function(){return this.take(st)},ut(j.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,d=u?[1]:arguments,_=p instanceof j,A=d[0],R=_||W(p),O=function(V){var Y=a.apply(l,St([V],d));return u&&I?Y[0]:Y};R&&n&&typeof A=="function"&&A.length!=1&&(_=R=!1);var I=this.__chain__,N=!!this.__actions__.length,M=c&&!I,G=_&&!N;if(!c&&R){p=G?p:new j(this);var H=e.apply(p,d);return H.__actions__.push({func:ri,args:[O],thisArg:i}),new Ue(H,I)}return M&&G?e.apply(this,d):(H=this.thru(O),M?u?H.value()[0]:H.value():H)})}),Me(["pop","push","shift","sort","splice","unshift"],function(e){var t=br[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),ut(j.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";Q.call(hn,u)||(hn[u]=[]),hn[u].push({name:t,func:n})}}),hn[Zr(i,Ft).name]=[{name:"wrapper",func:i}],j.prototype.clone=Xp,j.prototype.reverse=zp,j.prototype.value=Vp,l.prototype.at=w_,l.prototype.chain=x_,l.prototype.commit=A_,l.prototype.next=R_,l.prototype.plant=S_,l.prototype.reverse=I_,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=C_,l.prototype.first=l.prototype.head,Dn&&(l.prototype[Dn]=O_),l},Ct=Ap();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=Ct,define(function(){return Ct})):Mt?((Mt.exports=Ct)._=Ct,ji._=Ct):fe._=Ct}).call(xn)});var mu=q(Ce=>{"use strict";var VE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function w(S){try{v(o.next(S))}catch($){m($)}}function y(S){try{v(o.throw(S))}catch($){m($)}}function v(S){S.done?h(S.value):f(S.value).then(w,y)}v((o=o.apply(i,r||[])).next())})},jE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function w(v){return function(S){return y([v,S])}}function y(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(S){v=[6,S],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},Ec=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var yc=Ec(require("path")),gu=Ec(ar()),lt=gu.default.fse,Oi=gu.default.jsyaml,_u=gu.default.getRootHome;function YE(i){var r=xc();lt.writeFileSync(r,Oi.dump(i))}function wc(){var i=xc();if(!lt.existsSync(i))return{};try{var r=Oi.load(lt.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function xc(){var i=yc.default.join(_u(),"set-config.yml");return lt.existsSync(i)||lt.createFileSync(i),i}function KE(i,r){var s=wc();s[i]=r,YE(s)}Ce.setConfig=KE;function ZE(i,r){var s=wc();return s[i]||r}Ce.getConfig=ZE;function JE(i){return VE(this,void 0,void 0,function(){var r,s,o,f,h,m,w;return jE(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=yc.default.join(_u(),r),o=lt.existsSync(s),f={},o)return[3,5];h=_u(),y.label=1;case 1:return y.trys.push([1,2,,4]),lt.statSync(h),[3,4];case 2:return m=y.sent(),[4,lt.mkdirSync(h)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=Oi.load(lt.readFileSync(s,"utf8"))||{}}catch(v){throw v}y.label=6;case 6:return i.read?[2,f]:(w=i.configKey||"",f[w]=i.data,[4,lt.writeFileSync(s,Oi.dump(f))]);case 7:return y.sent(),[2,f]}})})}Ce.handlerProfileFile=JE});var Ac=q((Fw,QE)=>{QE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.3",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/help.test.ts",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",lodash:"^4.17.20","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Eu=q(F=>{"use strict";var kE=F&&F.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),ey=F&&F.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),ty=F&&F.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&kE(r,i,s);return ey(r,i),r},fr=F&&F.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function w(S){try{v(o.next(S))}catch($){m($)}}function y(S){try{v(o.throw(S))}catch($){m($)}}function v(S){S.done?h(S.value):f(S.value).then(w,y)}v((o=o.apply(i,r||[])).next())})},cr=F&&F.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function w(v){return function(S){return y([v,S])}}function y(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(S){v=[6,S],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},vu=F&&F.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(F,"__esModule",{value:!0});F.emoji=F.mark=F.replaceTemplate=F.getTemplatekey=F.replaceFun=F.getLang=F.printn=F.getFolderSize=F.getVersion=F.getPid=F.aiRequest=F.getCredentialWithAll=F.getCredentialWithExisted=F.getCredentialAliasList=F.getProcessArgv=F.bgRed=F.yellow=F.red=void 0;var Rc=vu(require("path")),hr=vu(require("fs")),Ye=vc(),ny=vu(require("os")),Ke=ty(ar()),ry=mu(),Oc=Ac(),Si=Ke.default.colors,iy=Ke.default.got,sy=Ke.default.getMAC,uy=Ke.default.isDocker,oy=Ke.default.isCiCdEnv,ay=Ke.default.getGlobalArgs,ly=Ke.default.getYamlContent,fy=Ke.default.getRootHome,Sc=Ke.default.getCredential,cy=Ke.default.getCredentialFromEnv;F.red=Si.hex("#fd5750");F.yellow=Si.hex("#F3F99D");F.bgRed=Si.hex("#000").bgHex("#fd5750");var hy=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=ay(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Ye.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Ye.filter)(s._argsObj,function(o){return!(0,Ye.includes)(["-h","--help"],o)}))})}catch{return{}}};F.getProcessArgv=hy;var py=function(){return fr(void 0,void 0,void 0,function(){var i,r,s;return cr(this,function(o){switch(o.label){case 0:return i=[],[4,ly(Rc.default.join(fy(),"access.yaml"))];case 1:return r=o.sent(),r&&(i=(0,Ye.keys)(r)),[4,cy()];case 2:return s=o.sent(),s&&(i=(0,Ye.filter)(i,function(f){return f!==s.Alias}),i.push(s.Alias)),[2,i]}})})};F.getCredentialAliasList=py;var dy=function(i){return fr(void 0,void 0,void 0,function(){var r,s;return cr(this,function(o){switch(o.label){case 0:return[4,(0,F.getCredentialAliasList)()];case 1:return r=o.sent(),(0,Ye.includes)(r,i)?[4,Sc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Ye.omit)(s,"Alias")];case 3:return[2]}})})};F.getCredentialWithExisted=dy;var gy=function(){return fr(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return cr(this,function(m){switch(m.label){case 0:return[4,(0,F.getCredentialAliasList)()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,Sc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Ye.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};F.getCredentialWithAll=gy;var _y=function(i,r){r===void 0&&(r="unknow");try{var s=(0,ry.getConfig)("analysis");return s!=="enable"||uy()||oy()?void 0:iy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0}).then(function(o){var f=(0,Ye.get)(o.body,"shorturl");f&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(Si.underline(f),`
|
|
36
36
|
`))})}catch{}};F.aiRequest=_y;var my=function(){try{return sy().replace(/:/g,"")}catch{return"unknown"}};F.getPid=my;function vy(){var i=(0,Ke.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(Ke.default.getRootHome()),h="".concat(Oc.name,": ").concat(Oc.version);return i?"".concat(h,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(h,", ").concat(f,", ").concat(r,", ").concat(s)}F.getVersion=vy;function Ey(i){return fr(this,void 0,void 0,function(){function r(f){return fr(this,void 0,void 0,function(){var h,m;return cr(this,function(w){switch(w.label){case 0:return h=hr.default.lstatSync(f),typeof h!="object"?[2]:(s.set(h.ino,h.size),h.isDirectory()?(m=hr.default.readdirSync(f),typeof m!="object"?[2]:[4,Promise.all(m.map(function(y){return r(Rc.default.join(f,y))}))]):[3,2]);case 1:w.sent(),w.label=2;case 2:return[2]}})})}var s,o;return cr(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(h,m){return h+m},0),[2,o]}})})}F.getFolderSize=Ey;function yy(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}F.printn=yy;function wy(){return"en"}F.getLang=wy;function Ic(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var h=o[f].replace(/{{|}}/g,""),m=(0,Ye.trim)(h.split("|")[0]);r[m]&&(i=i.replace(o[f],r[m]))}return i}F.replaceFun=Ic;function xy(i){var r=/\{\{(.*?)\}\}/g,s=i.match(r);return s?s.filter(function(o){return o}).map(function(o){var f=o.replace(/{{|}}/g,""),h=f.split("|");return{name:(0,Ye.trim)(h[0]),desc:(0,Ye.trim)(h[1])}}):[]}F.getTemplatekey=xy;function Ay(i,r){i.forEach(function(s){if(hr.default.existsSync(s)){var o=hr.default.readFileSync(s,"utf-8"),f=Ic(o,r);hr.default.writeFileSync(s,f,"utf-8")}})}F.replaceTemplate=Ay;function Ry(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}F.mark=Ry;function Oy(i,r){return ny.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}F.emoji=Oy});var Cc=q(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var bc=q(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Tc=q(pr=>{"use strict";var Lc=pr&&pr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(pr,"__esModule",{value:!0});var Sy=Eu(),Iy=Lc(Cc()),Cy=Lc(bc()),xu={en:Cy.default,zh:Iy.default},by=function(i){var r=(0,Sy.getLang)(),s=xu[r]?xu[r][i]:xu.en[i];return s||i};pr.default=by});var $c=q(dr=>{"use strict";var Ly=dr&&dr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(dr,"__esModule",{value:!0});var Ty=Ly(ar()),$y=Ty.default.Logger,Au=new $y("S-CLI");Au.success=function(i){return Au.log(i,"green")};dr.default=Au});var gr=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var Ny=gr(dl()),_r=gr(ar()),Ii=gr(Tc()),ft=gr(require("path")),An=gr($c()),Dy=mu(),qy=Eu(),Rn=_r.default.rimraf,Fy=_r.default.minimist,Ru=_r.default.fse,Py=_r.default.colors,My=_r.default.getRootHome,Hy=`Clean up the cache related functions of serverless devs. You can clean up the environment, unused dependent packages and related cache contents through this command.
|
|
37
37
|
|