@serverless-devs/s 2.1.1-beta.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +16 -16
- package/lib/cli/index.js +15 -15
- package/lib/component/index.js +17 -17
- package/lib/config/add/index.js +15 -15
- package/lib/config/delete/index.js +15 -15
- package/lib/config/get/index.js +19 -19
- package/lib/config/index.js +10 -10
- package/lib/edit/index.js +33 -38
- package/lib/help/index.js +2 -2
- package/lib/index.js +76 -76
- package/lib/init/index.js +33 -33
- package/lib/set/analysis/index.js +16 -16
- package/lib/set/index.js +10 -10
- package/lib/set/locale/index.js +16 -16
- package/lib/set/registry/index.js +16 -16
- package/lib/set/workspace/index.js +17 -17
- package/lib/update-notifier/index.js +1 -1
- package/lib/utils/common.js +2 -23
- package/lib/verify/index.js +19 -19
- package/package.json +4 -4
- package/shell/postbuild.sh +17 -18
- package/bin/s-set-autocomplete +0 -2
- package/lib/set/autocomplete/index.js +0 -47
- package/lib/tab/index.js +0 -159
- package/shell/postinstall.js +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serverless-devs/s",
|
|
3
|
-
"version": "2.1.1
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",
|
|
5
5
|
"homepage": "https://www.serverless-devs.com",
|
|
6
6
|
"keywords": [
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"jest": "^27.4.7",
|
|
68
68
|
"latest-version": "^5.1.0",
|
|
69
69
|
"lint-staged": "^10.0.8",
|
|
70
|
+
"open": "^8.4.0",
|
|
70
71
|
"os-locale": "5.0.0",
|
|
71
72
|
"prettier": "^2.2.1",
|
|
72
73
|
"semver": "^7.3.5",
|
|
@@ -79,8 +80,7 @@
|
|
|
79
80
|
"**/*.{js,jsx,ts}": "f2elint exec eslint"
|
|
80
81
|
},
|
|
81
82
|
"dependencies": {
|
|
82
|
-
"@serverless-devs/core": "
|
|
83
|
-
"@serverless-devs/ui": "
|
|
84
|
-
"tabtab": "^3.0.2"
|
|
83
|
+
"@serverless-devs/core": "latest",
|
|
84
|
+
"@serverless-devs/ui": "latest"
|
|
85
85
|
}
|
|
86
86
|
}
|
package/shell/postbuild.sh
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
esbuild lib/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
3
|
-
esbuild lib/init/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
4
|
-
esbuild lib/cli/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
5
|
-
esbuild lib/config/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
6
|
-
esbuild lib/config/add/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
7
|
-
esbuild lib/config/delete/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
8
|
-
esbuild lib/config/get/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
9
|
-
esbuild lib/set/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
10
|
-
esbuild lib/set/registry/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
11
|
-
esbuild lib/set/locale/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
12
|
-
esbuild lib/set/analysis/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --
|
|
13
|
-
esbuild lib/set/
|
|
14
|
-
esbuild lib/
|
|
15
|
-
esbuild lib/
|
|
16
|
-
esbuild lib/
|
|
17
|
-
esbuild lib/
|
|
18
|
-
esbuild lib/
|
|
19
|
-
esbuild lib/edit/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --external:tabtab --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/edit/index.js
|
|
2
|
+
esbuild lib/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/index.js
|
|
3
|
+
esbuild lib/init/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/init/index.js
|
|
4
|
+
esbuild lib/cli/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/cli/index.js
|
|
5
|
+
esbuild lib/config/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/config/index.js
|
|
6
|
+
esbuild lib/config/add/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/config/add/index.js
|
|
7
|
+
esbuild lib/config/delete/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/config/delete/index.js
|
|
8
|
+
esbuild lib/config/get/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/config/get/index.js
|
|
9
|
+
esbuild lib/set/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/set/index.js
|
|
10
|
+
esbuild lib/set/registry/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/set/registry/index.js
|
|
11
|
+
esbuild lib/set/locale/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/set/locale/index.js
|
|
12
|
+
esbuild lib/set/analysis/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/set/analysis/index.js
|
|
13
|
+
esbuild lib/set/workspace/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/set/workspace/index.js
|
|
14
|
+
esbuild lib/clean/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/clean/index.js
|
|
15
|
+
esbuild lib/component/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/component/index.js
|
|
16
|
+
esbuild lib/update-notifier/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/update-notifier/index.js
|
|
17
|
+
esbuild lib/verify/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/verify/index.js
|
|
18
|
+
esbuild lib/edit/index.js --bundle --log-level=error --minify --external:@serverless-devs/core --external:@serverless-devs/ui --platform=node --format=cjs --target=node10.4 --allow-overwrite --outfile=lib/edit/index.js
|
|
20
19
|
|
|
21
20
|
|
package/bin/s-set-autocomplete
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Tt=f((X,jt)=>{var hi=require("events").EventEmitter,Je=require("child_process").spawn,U=require("path"),Qe=require("fs"),ge=class{constructor(e,t){this.flags=e,this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=Lt(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.description=t||"",this.defaultValue=void 0}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return fi(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}},te=class extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},re=class extends hi{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._args=[],this.rawArgs=null,this._scriptPath=null,this._name=e||"",this._optionValues={},this._storeOptionsAsProperties=!0,this._storeOptionsAsPropertiesCalled=!1,this._passCommandToAction=!0,this._actionResults=[],this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._hasImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command"}command(e,t,n){let s=t,i=n;typeof s=="object"&&s!==null&&(i=s,s=null),i=i||{};let a=e.split(/ +/),l=this.createCommand(a.shift());return s&&(l.description(s),l._executableHandler=!0),i.isDefault&&(this._defaultCommandName=l._name),l._hidden=!!(i.noHelp||i.hidden),l._hasHelpOption=this._hasHelpOption,l._helpFlags=this._helpFlags,l._helpDescription=this._helpDescription,l._helpShortFlag=this._helpShortFlag,l._helpLongFlag=this._helpLongFlag,l._helpCommandName=this._helpCommandName,l._helpCommandnameAndArgs=this._helpCommandnameAndArgs,l._helpCommandDescription=this._helpCommandDescription,l._exitCallback=this._exitCallback,l._storeOptionsAsProperties=this._storeOptionsAsProperties,l._passCommandToAction=this._passCommandToAction,l._combineFlagAndOptionalValue=this._combineFlagAndOptionalValue,l._executableFile=i.executableFile||null,this.commands.push(l),l._parseExpectedArgs(a),l.parent=this,s?this:l}createCommand(e){return new re(e)}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name");function n(s){s.forEach(i=>{if(i._executableHandler&&!i._executableFile)throw new Error(`Must specify executableFile for deeply nested executable: ${i.name()}`);n(i.commands)})}return n(e.commands),t=t||{},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}arguments(e){return this._parseExpectedArgs(e.split(/ +/))}addHelpCommand(e,t){return e===!1?this._hasImplicitHelpCommand=!1:(this._hasImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=t||this._helpCommandDescription),this}_lazyHasImplicitHelpCommand(){return this._hasImplicitHelpCommand===void 0&&(this._hasImplicitHelpCommand=this.commands.length&&!this._actionHandler&&!this._findCommand("help")),this._hasImplicitHelpCommand}_parseExpectedArgs(e){if(!!e.length)return e.forEach(t=>{let n={required:!1,name:"",variadic:!1};switch(t[0]){case"<":n.required=!0,n.name=t.slice(1,-1);break;case"[":n.name=t.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&this._args.push(n)}),this._args.forEach((t,n)=>{if(t.variadic&&n<this._args.length-1)throw new Error(`only the last argument can be variadic '${t.name}'`)}),this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync")throw t},this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new te(e,t,n)),process.exit(e)}action(e){let t=n=>{let s=this._args.length,i=n.slice(0,s);this._passCommandToAction?i[s]=this:i[s]=this.opts(),n.length>s&&i.push(n.slice(s));let a=e.apply(this,i),l=this;for(;l.parent;)l=l.parent;l._actionResults.push(a)};return this._actionHandler=t,this}_checkForOptionNameClash(e){if(!this._storeOptionsAsProperties||this._storeOptionsAsPropertiesCalled||e.name()==="help"||this._getOptionValue(e.attributeName())===void 0)return;let n=!0;if(e.negate){let s=e.long.replace(/^--no-/,"--");n=!this._findOption(s)}else if(e.long){let s=e.long.replace(/^--/,"--no-");n=!this._findOption(s)}if(n)throw new Error(`option '${e.name()}' clashes with existing property '${e.attributeName()}' on Command
|
|
2
|
-
- call storeOptionsAsProperties(false) to store option values safely,
|
|
3
|
-
- or call storeOptionsAsProperties(true) to suppress this check,
|
|
4
|
-
- or change option name
|
|
5
|
-
|
|
6
|
-
Read more on https://git.io/JJc0W`)}_optionEx(e,t,n,s,i){let a=new ge(t,n),l=a.name(),c=a.attributeName();if(a.mandatory=!!e.mandatory,this._checkForOptionNameClash(a),typeof s!="function")if(s instanceof RegExp){let o=s;s=(u,h)=>{let v=o.exec(u);return v?v[0]:h}}else i=s,s=null;if(a.negate||a.optional||a.required||typeof i=="boolean"){if(a.negate){let o=a.long.replace(/^--no-/,"--");i=this._findOption(o)?this._getOptionValue(c):!0}i!==void 0&&(this._setOptionValue(c,i),a.defaultValue=i)}return this.options.push(a),this.on("option:"+l,o=>{let u=this._getOptionValue(c);o!==null&&s?o=s(o,u===void 0?i:u):o!==null&&a.variadic&&(u===i||!Array.isArray(u)?o=[o]:o=u.concat(o)),typeof u=="boolean"||typeof u>"u"?o==null?this._setOptionValue(c,a.negate?!1:i||!0):this._setOptionValue(c,o):o!==null&&this._setOptionValue(c,a.negate?!1:o)}),this}option(e,t,n,s){return this._optionEx({},e,t,n,s)}requiredOption(e,t,n,s){return this._optionEx({mandatory:!0},e,t,n,s)}combineFlagAndOptionalValue(e){return this._combineFlagAndOptionalValue=e===void 0||e,this}allowUnknownOption(e){return this._allowUnknownOption=e===void 0||e,this}storeOptionsAsProperties(e){if(this._storeOptionsAsPropertiesCalled=!0,this._storeOptionsAsProperties=e===void 0||e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}passCommandToAction(e){return this._passCommandToAction=e===void 0||e,this}_setOptionValue(e,t){this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t}_getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}parse(e,t){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");t=t||{},e===void 0&&(e=process.argv,process.versions&&process.versions.electron&&(t.from="electron")),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":process.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._scriptPath&&process.mainModule&&(this._scriptPath=process.mainModule.filename),this._name=this._name||this._scriptPath&&U.basename(this._scriptPath,U.extname(this._scriptPath)),this._parseCommand([],n),this}parseAsync(e,t){return this.parse(e,t),Promise.all(this._actionResults).then(()=>this)}_executeSubCommand(e,t){t=t.slice();let n=!1,s=[".js",".ts",".tsx",".mjs"];this._checkForMissingMandatoryOptions();let i=this._scriptPath;!i&&process.mainModule&&(i=process.mainModule.filename);let a;try{let v=Qe.realpathSync(i);a=U.dirname(v)}catch{a="."}let l=U.basename(i,U.extname(i))+"-"+e._name;e._executableFile&&(l=e._executableFile);let c=U.join(a,l);Qe.existsSync(c)?l=c:s.forEach(v=>{Qe.existsSync(`${c}${v}`)&&(l=`${c}${v}`)}),n=s.includes(U.extname(l));let o;process.platform!=="win32"?n?(t.unshift(l),t=Nt(process.execArgv).concat(t),o=Je(process.argv[0],t,{stdio:"inherit"})):o=Je(l,t,{stdio:"inherit"}):(t.unshift(l),t=Nt(process.execArgv).concat(t),o=Je(process.execPath,t,{stdio:"inherit"})),["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(v=>{process.on(v,()=>{o.killed===!1&&o.exitCode===null&&o.kill(v)})});let h=this._exitCallback;h?o.on("close",()=>{h(new te(process.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):o.on("close",process.exit.bind(process)),o.on("error",v=>{if(v.code==="ENOENT"){let m=`'${l}' does not exist
|
|
7
|
-
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
8
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name`;throw new Error(m)}else if(v.code==="EACCES")throw new Error(`'${l}' not executable`);if(!h)process.exit(1);else{let m=new te(1,"commander.executeSubCommandAsync","(error)");m.nestedError=v,h(m)}}),this.runningCommand=o}_dispatchSubcommand(e,t,n){let s=this._findCommand(e);s||this._helpAndError(),s._executableHandler?this._executeSubCommand(s,t.concat(n)):s._parseCommand(t,n)}_parseCommand(e,t){let n=this.parseOptions(t);if(e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))this._dispatchSubcommand(e[0],e.slice(1),t);else if(this._lazyHasImplicitHelpCommand()&&e[0]===this._helpCommandName)e.length===1?this.help():this._dispatchSubcommand(e[1],[],[this._helpLongFlag]);else if(this._defaultCommandName)xt(this,t),this._dispatchSubcommand(this._defaultCommandName,e,t);else if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this._helpAndError(),xt(this,n.unknown),this._checkForMissingMandatoryOptions(),n.unknown.length>0&&this.unknownOption(n.unknown[0]),this._actionHandler){let s=this.args.slice();this._args.forEach((i,a)=>{i.required&&s[a]==null?this.missingArgument(i.name):i.variadic&&(s[a]=s.splice(a))}),this._actionHandler(s),this.emit("command:"+this.name(),e,t)}else e.length?this._findCommand("*")?this._dispatchSubcommand("*",e,t):this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length&&this.unknownCommand():this.commands.length&&this._helpAndError()}_findCommand(e){if(!!e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(t=>{t.mandatory&&e._getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})}parseOptions(e){let t=[],n=[],s=t,i=e.slice();function a(c){return c.length>1&&c[0]==="-"}let l=null;for(;i.length;){let c=i.shift();if(c==="--"){s===n&&s.push(c),s.push(...i);break}if(l&&!a(c)){this.emit(`option:${l.name()}`,c);continue}if(l=null,a(c)){let o=this._findOption(c);if(o){if(o.required){let u=i.shift();u===void 0&&this.optionMissingArgument(o),this.emit(`option:${o.name()}`,u)}else if(o.optional){let u=null;i.length>0&&!a(i[0])&&(u=i.shift()),this.emit(`option:${o.name()}`,u)}else this.emit(`option:${o.name()}`);l=o.variadic?o:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let o=this._findOption(`-${c[1]}`);if(o){o.required||o.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${o.name()}`,c.slice(2)):(this.emit(`option:${o.name()}`),i.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let o=c.indexOf("="),u=this._findOption(c.slice(0,o));if(u&&(u.required||u.optional)){this.emit(`option:${u.name()}`,c.slice(o+1));continue}}c.length>1&&c[0]==="-"&&(s=n),s.push(c)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let s=this.options[n].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e}return this._optionValues}missingArgument(e){let t=`error: missing required argument '${e}'`;console.error(t),this._exit(1,"commander.missingArgument",t)}optionMissingArgument(e,t){let n;t?n=`error: option '${e.flags}' argument missing, got '${t}'`:n=`error: option '${e.flags}' argument missing`,console.error(n),this._exit(1,"commander.optionMissingArgument",n)}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;console.error(t),this._exit(1,"commander.missingMandatoryOptionValue",t)}unknownOption(e){if(this._allowUnknownOption)return;let t=`error: unknown option '${e}'`;console.error(t),this._exit(1,"commander.unknownOption",t)}unknownCommand(){let e=[this.name()];for(let s=this.parent;s;s=s.parent)e.unshift(s.name());let t=e.join(" "),n=`error: unknown command '${this.args[0]}'.`+(this._hasHelpOption?` See '${t} ${this._helpLongFlag}'.`:"");console.error(n),this._exit(1,"commander.unknownCommand",n)}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let s=new ge(t,n);return this._versionOptionName=s.attributeName(),this.options.push(s),this.on("option:"+s.name(),()=>{process.stdout.write(e+`
|
|
9
|
-
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,this._argsDescription=t,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this._args.map(n=>qt(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}prepareCommands(){let e=this.commands.filter(t=>!t._hidden).map(t=>{let n=t._args.map(s=>qt(s)).join(" ");return[t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:""),t._description]});return this._lazyHasImplicitHelpCommand()&&e.push([this._helpCommandnameAndArgs,this._helpCommandDescription]),e}largestCommandLength(){return this.prepareCommands().reduce((t,n)=>Math.max(t,n[0].length),0)}largestOptionLength(){let e=[].slice.call(this.options);return e.push({flags:this._helpFlags}),e.reduce((t,n)=>Math.max(t,n.flags.length),0)}largestArgLength(){return this._args.reduce((e,t)=>Math.max(e,t.name.length),0)}padWidth(){let e=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>e&&(e=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>e&&(e=this.largestCommandLength()),e}optionHelp(){let e=this.padWidth(),n=(process.stdout.columns||80)-e-4;function s(c,o){return Ke(c,e)+" "+At(o,n,e+2)}let i=this.options.map(c=>{let o=c.description+(!c.negate&&c.defaultValue!==void 0?" (default: "+JSON.stringify(c.defaultValue)+")":"");return s(c.flags,o)}),a=this._hasHelpOption&&this._helpShortFlag&&!this._findOption(this._helpShortFlag),l=this._hasHelpOption&&!this._findOption(this._helpLongFlag);if(a||l){let c=this._helpFlags;a?l||(c=this._helpShortFlag):c=this._helpLongFlag,i.push(s(c,this._helpDescription))}return i.join(`
|
|
10
|
-
`)}commandHelp(){if(!this.commands.length&&!this._lazyHasImplicitHelpCommand())return"";let e=this.prepareCommands(),t=this.padWidth(),s=(process.stdout.columns||80)-t-4;return["Commands:",e.map(i=>{let a=i[1]?" "+i[1]:"";return(a?Ke(i[0],t):i[0])+At(a,s,t+2)}).join(`
|
|
11
|
-
`).replace(/^/gm," "),""].join(`
|
|
12
|
-
`)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let c=this._argsDescription;if(c&&this._args.length){let o=this.padWidth(),h=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(v=>{e.push(" "+Ke(v.name,o)+" "+Dt(c[v.name]||"",h,o+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let n="";for(let c=this.parent;c;c=c.parent)n=c.name()+" "+n;let s=["Usage: "+n+t+" "+this.usage(),""],i=[],a=this.commandHelp();a&&(i=[a]);let l=[];return(this._hasHelpOption||this.options.length>0)&&(l=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(l).concat(i).join(`
|
|
13
|
-
`)}outputHelp(e){e||(e=n=>n);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=Lt(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};X=jt.exports=new re;X.program=X;X.Command=re;X.Option=ge;X.CommanderError=te;function fi(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Ke(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function Dt(r,e,t){let n=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(n)||[]).map((i,a)=>(i.slice(-1)===`
|
|
14
|
-
`&&(i=i.slice(0,i.length-1)),(a>0&&t?Array(t+1).join(" "):"")+i.trimRight())).join(`
|
|
15
|
-
`)}function At(r,e,t){return r.match(/[\n]\s+/)||e<40?r:Dt(r,e,t)}function xt(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function qt(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function Lt(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function Nt(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?t=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],s=i[4]),t&&s!=="0"?`${t}=${n}:${parseInt(s)+1}`:e})}});var ve=f((_l,Pt)=>{var pi="2.0.0",di=Number.MAX_SAFE_INTEGER||9007199254740991,mi=16;Pt.exports={SEMVER_SPEC_VERSION:pi,MAX_LENGTH:256,MAX_SAFE_INTEGER:di,MAX_SAFE_COMPONENT_LENGTH:mi}});var _e=f((El,Ft)=>{var gi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Ft.exports=gi});var B=f((M,Ht)=>{var{MAX_SAFE_COMPONENT_LENGTH:et}=ve(),vi=_e();M=Ht.exports={};var _i=M.re=[],p=M.src=[],d=M.t={},Ei=0,_=(r,e,t)=>{let n=Ei++;vi(r,n,e),d[r]=n,p[n]=e,_i[n]=new RegExp(e,t?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*");_("NUMERICIDENTIFIERLOOSE","[0-9]+");_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");_("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`);_("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`);_("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`);_("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`);_("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`);_("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`);_("BUILDIDENTIFIER","[0-9A-Za-z-]+");_("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`);_("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`);_("FULL",`^${p[d.FULLPLAIN]}$`);_("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`);_("LOOSE",`^${p[d.LOOSEPLAIN]}$`);_("GTLT","((?:<|>)?=?)");_("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);_("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`);_("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`);_("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`);_("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`);_("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`);_("COERCE",`(^|[^\\d])(\\d{1,${et}})(?:\\.(\\d{1,${et}}))?(?:\\.(\\d{1,${et}}))?(?:$|[^\\d])`);_("COERCERTL",p[d.COERCE],!0);_("LONETILDE","(?:~>?)");_("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0);M.tildeTrimReplace="$1~";_("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`);_("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`);_("LONECARET","(?:\\^)");_("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0);M.caretTrimReplace="$1^";_("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`);_("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`);_("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`);_("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`);_("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0);M.comparatorTrimReplace="$1$2$3";_("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`);_("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`);_("STAR","(<|>)?=?\\s*\\*");_("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");_("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ee=f((yl,Gt)=>{var yi=["includePrerelease","loose","rtl"],bi=r=>r?typeof r!="object"?{loose:!0}:yi.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Gt.exports=bi});var qe=f((bl,kt)=>{var Mt=/^[0-9]+$/,Vt=(r,e)=>{let t=Mt.test(r),n=Mt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},wi=(r,e)=>Vt(e,r);kt.exports={compareIdentifiers:Vt,rcompareIdentifiers:wi}});var $=f((wl,Wt)=>{var Ne=_e(),{MAX_LENGTH:Ut,MAX_SAFE_INTEGER:De}=ve(),{re:Xt,t:Bt}=B(),Oi=Ee(),{compareIdentifiers:ne}=qe(),q=class{constructor(e,t){if(t=Oi(t),e instanceof q){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Ut)throw new TypeError(`version is longer than ${Ut} characters`);Ne("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Xt[Bt.LOOSE]:Xt[Bt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>De||this.major<0)throw new TypeError("Invalid major version");if(this.minor>De||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>De||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<De)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Ne("SemVer.compare",this.version,this.options,e),!(e instanceof q)){if(typeof e=="string"&&e===this.version)return 0;e=new q(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof q||(e=new q(e,this.options)),ne(this.major,e.major)||ne(this.minor,e.minor)||ne(this.patch,e.patch)}comparePre(e){if(e instanceof q||(e=new q(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Ne("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return ne(n,s)}while(++t)}compareBuild(e){e instanceof q||(e=new q(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Ne("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return ne(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(ne(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Wt.exports=q});var W=f((Ol,Jt)=>{var{MAX_LENGTH:Si}=ve(),{re:zt,t:Yt}=B(),Zt=$(),$i=Ee(),Ci=(r,e)=>{if(e=$i(e),r instanceof Zt)return r;if(typeof r!="string"||r.length>Si||!(e.loose?zt[Yt.LOOSE]:zt[Yt.FULL]).test(r))return null;try{return new Zt(r,e)}catch{return null}};Jt.exports=Ci});var Kt=f((Sl,Qt)=>{var Ii=W(),Ri=(r,e)=>{let t=Ii(r,e);return t?t.version:null};Qt.exports=Ri});var tr=f(($l,er)=>{var Ai=W(),xi=(r,e)=>{let t=Ai(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};er.exports=xi});var ir=f((Cl,nr)=>{var rr=$(),qi=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new rr(r instanceof rr?r.version:r,t).inc(e,n).version}catch{return null}};nr.exports=qi});var D=f((Il,or)=>{var sr=$(),Ni=(r,e,t)=>new sr(r,t).compare(new sr(e,t));or.exports=Ni});var Le=f((Rl,ar)=>{var Di=D(),Li=(r,e,t)=>Di(r,e,t)===0;ar.exports=Li});var ur=f((Al,cr)=>{var lr=W(),ji=Le(),Ti=(r,e)=>{if(ji(r,e))return null;{let t=lr(r),n=lr(e),s=t.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==n[l])return i+l;return a}};cr.exports=Ti});var fr=f((xl,hr)=>{var Pi=$(),Fi=(r,e)=>new Pi(r,e).major;hr.exports=Fi});var dr=f((ql,pr)=>{var Hi=$(),Gi=(r,e)=>new Hi(r,e).minor;pr.exports=Gi});var gr=f((Nl,mr)=>{var Mi=$(),Vi=(r,e)=>new Mi(r,e).patch;mr.exports=Vi});var _r=f((Dl,vr)=>{var ki=W(),Ui=(r,e)=>{let t=ki(r,e);return t&&t.prerelease.length?t.prerelease:null};vr.exports=Ui});var yr=f((Ll,Er)=>{var Xi=D(),Bi=(r,e,t)=>Xi(e,r,t);Er.exports=Bi});var wr=f((jl,br)=>{var Wi=D(),zi=(r,e)=>Wi(r,e,!0);br.exports=zi});var je=f((Tl,Sr)=>{var Or=$(),Yi=(r,e,t)=>{let n=new Or(r,t),s=new Or(e,t);return n.compare(s)||n.compareBuild(s)};Sr.exports=Yi});var Cr=f((Pl,$r)=>{var Zi=je(),Ji=(r,e)=>r.sort((t,n)=>Zi(t,n,e));$r.exports=Ji});var Rr=f((Fl,Ir)=>{var Qi=je(),Ki=(r,e)=>r.sort((t,n)=>Qi(n,t,e));Ir.exports=Ki});var ye=f((Hl,Ar)=>{var es=D(),ts=(r,e,t)=>es(r,e,t)>0;Ar.exports=ts});var Te=f((Gl,xr)=>{var rs=D(),ns=(r,e,t)=>rs(r,e,t)<0;xr.exports=ns});var tt=f((Ml,qr)=>{var is=D(),ss=(r,e,t)=>is(r,e,t)!==0;qr.exports=ss});var Pe=f((Vl,Nr)=>{var os=D(),as=(r,e,t)=>os(r,e,t)>=0;Nr.exports=as});var Fe=f((kl,Dr)=>{var ls=D(),cs=(r,e,t)=>ls(r,e,t)<=0;Dr.exports=cs});var rt=f((Ul,Lr)=>{var us=Le(),hs=tt(),fs=ye(),ps=Pe(),ds=Te(),ms=Fe(),gs=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return us(r,t,n);case"!=":return hs(r,t,n);case">":return fs(r,t,n);case">=":return ps(r,t,n);case"<":return ds(r,t,n);case"<=":return ms(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Lr.exports=gs});var Tr=f((Xl,jr)=>{var vs=$(),_s=W(),{re:He,t:Ge}=B(),Es=(r,e)=>{if(r instanceof vs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(He[Ge.COERCE]);else{let n;for(;(n=He[Ge.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),He[Ge.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;He[Ge.COERCERTL].lastIndex=-1}return t===null?null:_s(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};jr.exports=Es});var Fr=f((Bl,Pr)=>{"use strict";Pr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Gr=f((Wl,Hr)=>{"use strict";Hr.exports=E;E.Node=z;E.create=E;function E(r){var e=this;if(e instanceof E||(e=new E),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}E.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};E.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};E.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};E.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)bs(this,arguments[r]);return this.length};E.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)ws(this,arguments[r]);return this.length};E.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};E.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};E.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};E.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};E.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};E.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};E.prototype.map=function(r,e){e=e||this;for(var t=new E,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};E.prototype.mapReverse=function(r,e){e=e||this;for(var t=new E,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};E.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)t=r(t,n.value,s),n=n.next;return t};E.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)t=r(t,n.value,s),n=n.prev;return t};E.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};E.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};E.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)t.push(s.value);return t};E.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>r;n--,s=s.prev)t.push(s.value);return t};E.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<t.length;n++)s=ys(this,s,t[n]);return i};E.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function ys(r,e,t){var n=e===r.head?new z(t,null,e,r):new z(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function bs(r,e){r.tail=new z(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function ws(r,e){r.head=new z(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function z(r,e,t,n){if(!(this instanceof z))return new z(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Fr()(E)}catch{}});var Xr=f((zl,Ur)=>{"use strict";var Os=Gr(),Y=Symbol("max"),H=Symbol("length"),ie=Symbol("lengthCalculator"),we=Symbol("allowStale"),Z=Symbol("maxAge"),F=Symbol("dispose"),Mr=Symbol("noDisposeOnSet"),O=Symbol("lruList"),j=Symbol("cache"),kr=Symbol("updateAgeOnGet"),nt=()=>1,st=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Y]=e.max||1/0,n=e.length||nt;if(this[ie]=typeof n!="function"?nt:n,this[we]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Z]=e.maxAge||0,this[F]=e.dispose,this[Mr]=e.noDisposeOnSet||!1,this[kr]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Y]=e||1/0,be(this)}get max(){return this[Y]}set allowStale(e){this[we]=!!e}get allowStale(){return this[we]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Z]=e,be(this)}get maxAge(){return this[Z]}set lengthCalculator(e){typeof e!="function"&&(e=nt),e!==this[ie]&&(this[ie]=e,this[H]=0,this[O].forEach(t=>{t.length=this[ie](t.value,t.key),this[H]+=t.length})),be(this)}get lengthCalculator(){return this[ie]}get length(){return this[H]}get itemCount(){return this[O].length}rforEach(e,t){t=t||this;for(let n=this[O].tail;n!==null;){let s=n.prev;Vr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[O].head;n!==null;){let s=n.next;Vr(this,e,n,t),n=s}}keys(){return this[O].toArray().map(e=>e.key)}values(){return this[O].toArray().map(e=>e.value)}reset(){this[F]&&this[O]&&this[O].length&&this[O].forEach(e=>this[F](e.key,e.value)),this[j]=new Map,this[O]=new Os,this[H]=0}dump(){return this[O].map(e=>Me(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[O]}set(e,t,n){if(n=n||this[Z],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[ie](t,e);if(this[j].has(e)){if(i>this[Y])return se(this,this[j].get(e)),!1;let c=this[j].get(e).value;return this[F]&&(this[Mr]||this[F](e,c.value)),c.now=s,c.maxAge=n,c.value=t,this[H]+=i-c.length,c.length=i,this.get(e),be(this),!0}let a=new ot(e,t,i,s,n);return a.length>this[Y]?(this[F]&&this[F](e,t),!1):(this[H]+=a.length,this[O].unshift(a),this[j].set(e,this[O].head),be(this),!0)}has(e){if(!this[j].has(e))return!1;let t=this[j].get(e).value;return!Me(this,t)}get(e){return it(this,e,!0)}peek(e){return it(this,e,!1)}pop(){let e=this[O].tail;return e?(se(this,e),e.value):null}del(e){se(this,this[j].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-t;a>0&&this.set(s.k,s.v,a)}}}prune(){this[j].forEach((e,t)=>it(this,t,!1))}},it=(r,e,t)=>{let n=r[j].get(e);if(n){let s=n.value;if(Me(r,s)){if(se(r,n),!r[we])return}else t&&(r[kr]&&(n.value.now=Date.now()),r[O].unshiftNode(n));return s.value}},Me=(r,e)=>{if(!e||!e.maxAge&&!r[Z])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Z]&&t>r[Z]},be=r=>{if(r[H]>r[Y])for(let e=r[O].tail;r[H]>r[Y]&&e!==null;){let t=e.prev;se(r,e),e=t}},se=(r,e)=>{if(e){let t=e.value;r[F]&&r[F](t.key,t.value),r[H]-=t.length,r[j].delete(t.key),r[O].removeNode(e)}},ot=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},Vr=(r,e,t,n)=>{let s=t.value;Me(r,s)&&(se(r,t),r[we]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Ur.exports=st});var L=f((Yl,Yr)=>{var J=class{constructor(e,t){if(t=$s(t),e instanceof J)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new J(e.raw,t);if(e instanceof at)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Wr(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&xs(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=Br.get(n);if(s)return s;let i=this.options.loose,a=i?A[I.HYPHENRANGELOOSE]:A[I.HYPHENRANGE];e=e.replace(a,Gs(this.options.includePrerelease)),w("hyphen replace",e),e=e.replace(A[I.COMPARATORTRIM],Is),w("comparator trim",e),e=e.replace(A[I.TILDETRIM],Rs),e=e.replace(A[I.CARETTRIM],As),e=e.split(/\s+/).join(" ");let l=e.split(" ").map(h=>qs(h,this.options)).join(" ").split(/\s+/).map(h=>Hs(h,this.options));i&&(l=l.filter(h=>(w("loose invalid filter",h,this.options),!!h.match(A[I.COMPARATORLOOSE])))),w("range list",l);let c=new Map,o=l.map(h=>new at(h,this.options));for(let h of o){if(Wr(h))return[h];c.set(h.value,h)}c.size>1&&c.has("")&&c.delete("");let u=[...c.values()];return Br.set(n,u),u}intersects(e,t){if(!(e instanceof J))throw new TypeError("a Range is required");return this.set.some(n=>zr(n,t)&&e.set.some(s=>zr(s,t)&&n.every(i=>s.every(a=>i.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Cs(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ms(this.set[t],e,this.options))return!0;return!1}};Yr.exports=J;var Ss=Xr(),Br=new Ss({max:1e3}),$s=Ee(),at=Oe(),w=_e(),Cs=$(),{re:A,t:I,comparatorTrimReplace:Is,tildeTrimReplace:Rs,caretTrimReplace:As}=B(),Wr=r=>r.value==="<0.0.0-0",xs=r=>r.value==="",zr=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},qs=(r,e)=>(w("comp",r,e),r=Ls(r,e),w("caret",r),r=Ns(r,e),w("tildes",r),r=Ts(r,e),w("xrange",r),r=Fs(r,e),w("stars",r),r),R=r=>!r||r.toLowerCase()==="x"||r==="*",Ns=(r,e)=>r.trim().split(/\s+/).map(t=>Ds(t,e)).join(" "),Ds=(r,e)=>{let t=e.loose?A[I.TILDELOOSE]:A[I.TILDE];return r.replace(t,(n,s,i,a,l)=>{w("tilde",r,n,s,i,a,l);let c;return R(s)?c="":R(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:R(a)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(w("replaceTilde pr",l),c=`>=${s}.${i}.${a}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${a} <${s}.${+i+1}.0-0`,w("tilde return",c),c})},Ls=(r,e)=>r.trim().split(/\s+/).map(t=>js(t,e)).join(" "),js=(r,e)=>{w("caret",r,e);let t=e.loose?A[I.CARETLOOSE]:A[I.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,a,l,c)=>{w("caret",r,s,i,a,l,c);let o;return R(i)?o="":R(a)?o=`>=${i}.0.0${n} <${+i+1}.0.0-0`:R(l)?i==="0"?o=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`:c?(w("replaceCaret pr",c),i==="0"?a==="0"?o=`>=${i}.${a}.${l}-${c} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}-${c} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l}-${c} <${+i+1}.0.0-0`):(w("no pr"),i==="0"?a==="0"?o=`>=${i}.${a}.${l}${n} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l} <${+i+1}.0.0-0`),w("caret return",o),o})},Ts=(r,e)=>(w("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ps(t,e)).join(" ")),Ps=(r,e)=>{r=r.trim();let t=e.loose?A[I.XRANGELOOSE]:A[I.XRANGE];return r.replace(t,(n,s,i,a,l,c)=>{w("xRange",r,n,s,i,a,l,c);let o=R(i),u=o||R(a),h=u||R(l),v=h;return s==="="&&v&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&v?(u&&(a=0),l=0,s===">"?(s=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):s==="<="&&(s="<",u?i=+i+1:a=+a+1),s==="<"&&(c="-0"),n=`${s+i}.${a}.${l}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),w("xRange return",n),n})},Fs=(r,e)=>(w("replaceStars",r,e),r.trim().replace(A[I.STAR],"")),Hs=(r,e)=>(w("replaceGTE0",r,e),r.trim().replace(A[e.includePrerelease?I.GTE0PRE:I.GTE0],"")),Gs=r=>(e,t,n,s,i,a,l,c,o,u,h,v,m)=>(R(n)?t="":R(s)?t=`>=${n}.0.0${r?"-0":""}`:R(i)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,R(o)?c="":R(u)?c=`<${+o+1}.0.0-0`:R(h)?c=`<${o}.${+u+1}.0-0`:v?c=`<=${o}.${u}.${h}-${v}`:r?c=`<${o}.${u}.${+h+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Ms=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(w(r[n].semver),r[n].semver!==at.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Oe=f((Zl,en)=>{var Se=Symbol("SemVer ANY"),oe=class{static get ANY(){return Se}constructor(e,t){if(t=Vs(t),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}ct("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Se?this.value="":this.value=this.operator+this.semver.version,ct("comp",this)}parse(e){let t=this.options.loose?Zr[Jr.COMPARATORLOOSE]:Zr[Jr.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Qr(n[2],this.options.loose):this.semver=Se}toString(){return this.value}test(e){if(ct("Comparator.test",e,this.options.loose),this.semver===Se||e===Se)return!0;if(typeof e=="string")try{e=new Qr(e,this.options)}catch{return!1}return lt(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Kr(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new Kr(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=lt(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=lt(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};en.exports=oe;var Vs=Ee(),{re:Zr,t:Jr}=B(),lt=rt(),ct=_e(),Qr=$(),Kr=L()});var $e=f((Jl,tn)=>{var ks=L(),Us=(r,e,t)=>{try{e=new ks(e,t)}catch{return!1}return e.test(r)};tn.exports=Us});var nn=f((Ql,rn)=>{var Xs=L(),Bs=(r,e)=>new Xs(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));rn.exports=Bs});var on=f((Kl,sn)=>{var Ws=$(),zs=L(),Ys=(r,e,t)=>{let n=null,s=null,i=null;try{i=new zs(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Ws(n,t))}),n};sn.exports=Ys});var ln=f((ec,an)=>{var Zs=$(),Js=L(),Qs=(r,e,t)=>{let n=null,s=null,i=null;try{i=new Js(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Zs(n,t))}),n};an.exports=Qs});var hn=f((tc,un)=>{var ut=$(),Ks=L(),cn=ye(),eo=(r,e)=>{r=new Ks(r,e);let t=new ut("0.0.0");if(r.test(t)||(t=new ut("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(a=>{let l=new ut(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||cn(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||cn(t,i))&&(t=i)}return t&&r.test(t)?t:null};un.exports=eo});var pn=f((rc,fn)=>{var to=L(),ro=(r,e)=>{try{return new to(r,e).range||"*"}catch{return null}};fn.exports=ro});var Ve=f((nc,vn)=>{var no=$(),gn=Oe(),{ANY:io}=gn,so=L(),oo=$e(),dn=ye(),mn=Te(),ao=Fe(),lo=Pe(),co=(r,e,t,n)=>{r=new no(r,n),e=new so(e,n);let s,i,a,l,c;switch(t){case">":s=dn,i=ao,a=mn,l=">",c=">=";break;case"<":s=mn,i=lo,a=dn,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(oo(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],h=null,v=null;if(u.forEach(m=>{m.semver===io&&(m=new gn(">=0.0.0")),h=h||m,v=v||m,s(m.semver,h.semver,n)?h=m:a(m.semver,v.semver,n)&&(v=m)}),h.operator===l||h.operator===c||(!v.operator||v.operator===l)&&i(r,v.semver))return!1;if(v.operator===c&&a(r,v.semver))return!1}return!0};vn.exports=co});var En=f((ic,_n)=>{var uo=Ve(),ho=(r,e,t)=>uo(r,e,">",t);_n.exports=ho});var bn=f((sc,yn)=>{var fo=Ve(),po=(r,e,t)=>fo(r,e,"<",t);yn.exports=po});var Sn=f((oc,On)=>{var wn=L(),mo=(r,e,t)=>(r=new wn(r,t),e=new wn(e,t),r.intersects(e));On.exports=mo});var Cn=f((ac,$n)=>{var go=$e(),vo=D();$n.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,h)=>vo(u,h,t));for(let u of a)go(u,e,t)?(i=u,s||(s=u)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let l=[];for(let[u,h]of n)u===h?l.push(u):!h&&u===a[0]?l.push("*"):h?u===a[0]?l.push(`<=${h}`):l.push(`${u} - ${h}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var qn=f((lc,xn)=>{var In=L(),ke=Oe(),{ANY:ht}=ke,Ce=$e(),ft=D(),_o=(r,e,t={})=>{if(r===e)return!0;r=new In(r,t),e=new In(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=Eo(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Eo=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ht){if(e.length===1&&e[0].semver===ht)return!0;t.includePrerelease?r=[new ke(">=0.0.0-0")]:r=[new ke(">=0.0.0")]}if(e.length===1&&e[0].semver===ht){if(t.includePrerelease)return!0;e=[new ke(">=0.0.0")]}let n=new Set,s,i;for(let m of r)m.operator===">"||m.operator===">="?s=Rn(s,m,t):m.operator==="<"||m.operator==="<="?i=An(i,m,t):n.add(m.semver);if(n.size>1)return null;let a;if(s&&i){if(a=ft(s.semver,i.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let m of n){if(s&&!Ce(m,String(s),t)||i&&!Ce(m,String(i),t))return null;for(let ui of e)if(!Ce(m,String(ui),t))return!1;return!0}let l,c,o,u,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,v=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let m of e){if(u=u||m.operator===">"||m.operator===">=",o=o||m.operator==="<"||m.operator==="<=",s){if(v&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===v.major&&m.semver.minor===v.minor&&m.semver.patch===v.patch&&(v=!1),m.operator===">"||m.operator===">="){if(l=Rn(s,m,t),l===m&&l!==s)return!1}else if(s.operator===">="&&!Ce(s.semver,String(m),t))return!1}if(i){if(h&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===h.major&&m.semver.minor===h.minor&&m.semver.patch===h.patch&&(h=!1),m.operator==="<"||m.operator==="<="){if(c=An(i,m,t),c===m&&c!==i)return!1}else if(i.operator==="<="&&!Ce(i.semver,String(m),t))return!1}if(!m.operator&&(i||s)&&a!==0)return!1}return!(s&&o&&!i&&a!==0||i&&u&&!s&&a!==0||v||h)},Rn=(r,e,t)=>{if(!r)return e;let n=ft(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},An=(r,e,t)=>{if(!r)return e;let n=ft(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};xn.exports=_o});var Dn=f((cc,Nn)=>{var pt=B();Nn.exports={re:pt.re,src:pt.src,tokens:pt.t,SEMVER_SPEC_VERSION:ve().SEMVER_SPEC_VERSION,SemVer:$(),compareIdentifiers:qe().compareIdentifiers,rcompareIdentifiers:qe().rcompareIdentifiers,parse:W(),valid:Kt(),clean:tr(),inc:ir(),diff:ur(),major:fr(),minor:dr(),patch:gr(),prerelease:_r(),compare:D(),rcompare:yr(),compareLoose:wr(),compareBuild:je(),sort:Cr(),rsort:Rr(),gt:ye(),lt:Te(),eq:Le(),neq:tt(),gte:Pe(),lte:Fe(),cmp:rt(),coerce:Tr(),Comparator:Oe(),Range:L(),satisfies:$e(),toComparators:nn(),maxSatisfying:on(),minSatisfying:ln(),minVersion:hn(),validRange:pn(),outside:Ve(),gtr:En(),ltr:bn(),intersects:Sn(),simplifyRange:Cn(),subset:qn()}});var G=f(N=>{"use strict";var yo=N&&N.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),bo=N&&N.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),wo=N&&N.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&yo(e,r,t);return bo(e,r),e},Ln=N&&N.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(N,"__esModule",{value:!0});N.getCoreVersion=void 0;var jn=Ln(require("path")),Tn=Ln(require("fs")),dt=wo(require("@serverless-devs/core")),Oo=Dn(),Pn=jn.default.join(dt.getRootHome(),"cache","core"),mt=jn.default.join(Pn,"package.json");function So(){if(Tn.default.existsSync(mt)){var r=require("@serverless-devs/core/package.json").version,e=Fn();return Oo.gt(e,r)?require(Pn):dt}return dt}function Fn(){return Tn.default.existsSync(mt)?require(mt).version:void 0}N.getCoreVersion=Fn;N.default=So()});var Ue=f(Ie=>{"use strict";var $o=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0});var Co=$o(G()),Io=Co.default.Logger,gt=new Io("S-CLI");gt.success=function(r){return gt.log(r,"green")};Ie.default=gt});var Et=f(x=>{"use strict";var Ro=x&&x.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ao=x&&x.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Hn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.handlerProfileFile=x.getConfig=x.setConfig=void 0;var Gn=Hn(require("path")),_t=Hn(G()),T=_t.default.fse,Xe=_t.default.jsyaml,vt=_t.default.getRootHome;function xo(r){var e=Vn();T.writeFileSync(e,Xe.dump(r))}function Mn(){var r=Vn();if(!T.existsSync(r))return{};try{var e=Xe.load(T.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Vn(){var r=Gn.default.join(vt(),"set-config.yml");return T.existsSync(r)||T.createFileSync(r),r}function qo(r,e){var t=Mn();t[r]=e,xo(t)}x.setConfig=qo;function No(r,e){var t=Mn();return t[r]||e}x.getConfig=No;function Do(r){return Ro(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return Ao(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=Gn.default.join(vt(),e),n=T.existsSync(t),s={},n)return[3,5];i=vt(),c.label=1;case 1:return c.trys.push([1,2,,4]),T.statSync(i),[3,4];case 2:return a=c.sent(),[4,T.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=Xe.load(T.readFileSync(t,"utf8"))||{}}catch(o){throw o}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,T.writeFileSync(t,Xe.dump(s))]);case 7:return c.sent(),[2,s]}})})}x.handlerProfileFile=Do});var kn=f((pc,Lo)=>{Lo.exports={name:"@serverless-devs/s",version:"2.1.1-beta.9",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/special-command.test",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/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","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","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",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta","@serverless-devs/ui":"beta",tabtab:"^3.0.2"}}});var We=f(g=>{"use strict";var jo=g&&g.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),To=g&&g.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Po=g&&g.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&jo(e,r,t);return To(e,r),e},Q=g&&g.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},K=g&&g.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Be=g&&g.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(g,"__esModule",{value:!0});g.getYamlPath=g.specifyServiceHelp=g.getTempCommandStr=g.emoji=g.mark=g.replaceTemplate=g.replaceFun=g.getLang=g.printn=g.getFolderSize=g.getVersion=g.aiRequest=g.getCredentialWithAll=g.getCredentialWithExisted=g.getProcessArgv=g.bgRed=g.yellow=g.red=void 0;var Fo=Be(require("path")),Re=Be(require("fs")),Ho=Be(require("os")),S=Po(G()),Go=Et(),ae=Be(Ue()),Un=kn(),le=S.default.colors,Mo=S.default.got,Vo=S.default.isDocker,ko=S.default.isCiCdEnv,V=S.default.lodash,Xn=S.default.publishHelp,Uo=V.get,Xo=V.trim,Bo=V.assign,Wo=V.filter,Bn=V.includes,zo=V.omit,Yo=V.isPlainObject,Zo=V.isEmpty,Jo=le.underline,Qo=le.bold;g.red=le.hex("#fd5750");g.yellow=le.hex("#F3F99D");g.bgRed=le.hex("#000").bgHex("#fd5750");var Ko=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=S.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),Bo({},t,{noHelpArgv:process.argv.slice(0,2).concat(Wo(t._argsObj,function(n){return!Bn(["-h","--help"],n)}))})}catch{return{}}};g.getProcessArgv=Ko;var ea=function(r){return Q(void 0,void 0,void 0,function(){var e,t;return K(this,function(n){switch(n.label){case 0:return[4,S.default.getCredentialAliasList()];case 1:return e=n.sent(),Bn(e,r)?[4,S.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,t];case 3:return[2]}})})};g.getCredentialWithExisted=ea;var ta=function(){return Q(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return K(this,function(a){switch(a.label){case 0:return[4,S.default.getCredentialAliasList()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(s=n[t],[4,S.default.getCredential(s)]):[3,5];case 3:i=a.sent(),e[i.Alias]=zo(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};g.getCredentialWithAll=ta;var ra=function(r,e){return e===void 0&&(e="unknow"),Q(void 0,void 0,void 0,function(){var t,n,s,i;return K(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Go.getConfig)("analysis"),t!=="enable"?[2]:Vo()||ko()?[2]:[4,Mo("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),s=Uo(n.body,"shorturl"),s&&ae.default.log(`AI Tips:
|
|
16
|
-
You can try to solve the problem through: `.concat(le.underline(s),`
|
|
17
|
-
`)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};g.aiRequest=ra;function na(){var r=(0,S.getCoreVersion)(),e=["".concat(Un.name,": ").concat(Un.version),r?"core: ".concat(r):void 0,"s-home: ".concat(S.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}g.getVersion=na;function ia(r){return Q(this,void 0,void 0,function(){function e(s){return Q(this,void 0,void 0,function(){var i,a;return K(this,function(l){switch(l.label){case 0:return i=Re.default.lstatSync(s),typeof i!="object"?[2]:(t.set(i.ino,i.size),i.isDirectory()?(a=Re.default.readdirSync(s),typeof a!="object"?[2]:[4,Promise.all(a.map(function(c){return e(Fo.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,n;return K(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),n=Array.from(t.values()).reduce(function(i,a){return i+a},0),[2,n]}})})}g.getFolderSize=ia;function sa(r,e){e===void 0&&(e=" ");for(var t="",n=0;n<r;n++)t=t+e;return t}g.printn=sa;function oa(){return"en"}g.getLang=oa;function Wn(r,e){var t=/\{\{(.*?)\}\}/g,n=r.match(t);if(n)for(var s=0;s<n.length;s++){var i=n[s].replace(/{{|}}/g,""),a=Xo(i.split("|")[0]);e[a]&&(r=r.replace(n[s],e[a]))}return r}g.replaceFun=Wn;function aa(r,e){r.forEach(function(t){if(Re.default.existsSync(t)){var n=Re.default.readFileSync(t,"utf-8"),s=Wn(n,e);Re.default.writeFileSync(t,s,"utf-8")}})}g.replaceTemplate=aa;function la(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}g.mark=la;function yt(r,e){return Ho.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}g.emoji=yt;function zn(r,e){var t=r.length,n=new Array(e-t).fill(" ");return"".concat(r).concat(n.join("")," : ")}g.getTempCommandStr=zn;function ca(r){return Q(this,void 0,void 0,function(){var e,t,n,s,i,l,a,l;return K(this,function(c){switch(c.label){case 0:return[4,S.default.getYamlContent(r)];case 1:if(e=c.sent(),ae.default.log(`
|
|
18
|
-
`.concat(yt("\u{1F680}")," ").concat(e.Name,"@").concat(e.Version,": ").concat(e.Description,`
|
|
19
|
-
`)),t=e.Commands,t){n=Xn.maxLen(t),s=[],i={};for(l in t)a=t[l],Yo(a)?s.push(Xn.helpInfo(a,Jo(Qo(l)),n,4)):i[l]=a;if(s.length>0&&ae.default.log(s.join(`
|
|
20
|
-
`)),!Zo(i)){for(l in i)ae.default.log(" ".concat(zn(l,n)," ").concat(i[l]));ae.default.log("")}ae.default.log(e.HomePage?" ".concat(yt("\u{1F9ED}")," ").concat(S.default.makeUnderLine("More information: "+e.HomePage)," ")+`
|
|
21
|
-
`:"")}return[2]}})})}g.specifyServiceHelp=ca;function ua(r){return Q(this,void 0,void 0,function(){var e,t;return K(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,S.default.getTemplatePath(r)];case 1:return e=n.sent(),[4,S.default.transforYamlPath(e)];case 2:return[2,n.sent()];case 3:return t=n.sent(),[3,4];case 4:return[2]}})})}g.getYamlPath=ua});var Yn=f(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.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 Zn=f(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.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 Qn=f(Ae=>{"use strict";var Jn=Ae&&Ae.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ae,"__esModule",{value:!0});var ha=We(),fa=Jn(Yn()),pa=Jn(Zn()),Ot={en:pa.default,zh:fa.default},da=function(r){var e=(0,ha.getLang)(),t=Ot[e]?Ot[e][r]:Ot.en[r];return t||r};Ae.default=da});var ze=f(C=>{"use strict";var ma=C&&C.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Kn=C&&C.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ma(e,r,t)},St=C&&C.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(C,"__esModule",{value:!0});C.registerCommandChecker=C.i18n=C.logger=void 0;var ga=St(Ue());Kn(We(),C);Kn(Et(),C);var va=Ue();Object.defineProperty(C,"logger",{enumerable:!0,get:function(){return St(va).default}});var _a=Qn();Object.defineProperty(C,"i18n",{enumerable:!0,get:function(){return St(_a).default}});function Ea(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(ga.default.error(" error: unknown command ".concat(e[0])),r.help())})}C.registerCommandChecker=Ea});var ee=f(ce=>{"use strict";var ya=ce&&ce.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ce,"__esModule",{value:!0});ce.ServerlessError=void 0;var ba=ya(G()),wa=ba.default.Logger,Oa=new wa("S-CLI-ERROR"),Sa=function(){function r(e,t,n){Oa.error(e+": "+t,n),process.exit(1)}return r}();ce.ServerlessError=Sa});var ei=f(ue=>{"use strict";var $a=ue&&ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ue,"__esModule",{value:!0});ue.CommandError=void 0;var Ca=ee(),Ia=function(r){$a(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(Ca.ServerlessError);ue.CommandError=Ia});var ti=f(he=>{"use strict";var Ra=he&&he.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(he,"__esModule",{value:!0});he.ConfigDeleteError=void 0;var Aa=ee(),xa=function(r){Ra(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(Aa.ServerlessError);he.ConfigDeleteError=xa});var ri=f(fe=>{"use strict";var qa=fe&&fe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fe,"__esModule",{value:!0});fe.ConfigError=void 0;var Na=ee(),Da=function(r){qa(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(Na.ServerlessError);fe.ConfigError=Da});var ni=f(pe=>{"use strict";var La=pe&&pe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pe,"__esModule",{value:!0});pe.ConfigGetError=void 0;var ja=ee(),Ta=function(r){La(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(ja.ServerlessError);pe.ConfigGetError=Ta});var ii=f(de=>{"use strict";var Pa=de&&de.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(de,"__esModule",{value:!0});de.InitError=void 0;var Fa=ee(),Ha=function(r){Pa(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(Fa.ServerlessError);de.InitError=Ha});var oi=f(P=>{"use strict";var Ga=P&&P.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ma=P&&P.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Va=P&&P.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(P,"__esModule",{value:!0});P.HumanError=void 0;var si=Va(G()),Ye=ze(),ka=si.default.colors,Ua=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,Ye.logger.log(`
|
|
22
|
-
`.concat((0,Ye.bgRed)("ERROR:"))),Ye.logger.log("TypeError: ".concat(t,`
|
|
23
|
-
`)),n&&Ye.logger.log("".concat(ka.gray(n),`
|
|
24
|
-
`))}return r.prototype.report=function(e){return Ga(this,void 0,void 0,function(){var t;return Ma(this,function(n){switch(n.label){case 0:return t=e.error,[4,si.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(t.stack)})];case 1:return n.sent(),[2]}})})},r}();P.HumanError=Ua});var li=f(me=>{"use strict";var Xa=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(me,"__esModule",{value:!0});me.HumanWarning=void 0;var Ba=Xa(G()),$t=ze(),ai=Ba.default.colors,Wa=function(){function r(e){var t=e.warningMessage,n=e.tips;$t.logger.log(`
|
|
25
|
-
`.concat(ai.hex("#000").bgYellow("WARNING:"))),$t.logger.log("".concat(t,`
|
|
26
|
-
`)),n&&$t.logger.log("".concat(ai.gray(n),`
|
|
27
|
-
`))}return r}();me.HumanWarning=Wa});var ci=f(b=>{"use strict";var za=b&&b.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ya=b&&b.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Za=b&&b.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(b,"__esModule",{value:!0});b.HandleError=b.HumanWarning=b.HumanError=b.ServerlessError=b.InitError=b.ConfigGetError=b.ConfigError=b.ConfigDeleteError=b.CommandError=void 0;var y=ze(),xe=Za(G()),k=xe.default.colors,Ja=xe.default.report,Ct=xe.default.isDebugMode,Qa=xe.default.makeUnderLine,It=xe.default.isDocker,Ka=ei();Object.defineProperty(b,"CommandError",{enumerable:!0,get:function(){return Ka.CommandError}});var el=ti();Object.defineProperty(b,"ConfigDeleteError",{enumerable:!0,get:function(){return el.ConfigDeleteError}});var tl=ri();Object.defineProperty(b,"ConfigError",{enumerable:!0,get:function(){return tl.ConfigError}});var rl=ni();Object.defineProperty(b,"ConfigGetError",{enumerable:!0,get:function(){return rl.ConfigGetError}});var nl=ii();Object.defineProperty(b,"InitError",{enumerable:!0,get:function(){return nl.InitError}});var il=ee();Object.defineProperty(b,"ServerlessError",{enumerable:!0,get:function(){return il.ServerlessError}});var sl=oi();Object.defineProperty(b,"HumanError",{enumerable:!0,get:function(){return sl.HumanError}});var ol=li();Object.defineProperty(b,"HumanWarning",{enumerable:!0,get:function(){return ol.HumanWarning}});function Ze(r,e){return"".concat(k.gray(r)).concat(k.gray.underline(e))}var al=function(r){return za(void 0,void 0,void 0,function(){var e,t,n,s,i,a,l,c;return Ya(this,function(o){switch(o.label){case 0:e="Message:",t={traceId:"",catchableError:!1},n=r,s=(0,y.getConfig)("analysis"),s!=="disable"&&(t.traceId=process.env.serverless_devs_trace_id),i=r.message?r.message:"";try{a=JSON.parse(i)}catch{}return a&&a.tips?(l=a.message?"Message: ".concat(a.message,`
|
|
28
|
-
`):"",c=a.tips?"* ".concat(Qa(a.tips.replace(/\n/,`
|
|
29
|
-
* `))):"",y.logger.log(`
|
|
30
|
-
`.concat(k.hex("#000").bgYellow("WARNING:"),`
|
|
31
|
-
======================
|
|
32
|
-
`).concat(c,`
|
|
33
|
-
`),"yellow"),Ct()?y.logger.log(r.stack):y.logger.log(k.grey(l)),t.catchableError=!0,n=a,[3,5]):[3,1];case 1:return a&&a.code?(y.logger.log((0,y.red)("\u2716 ".concat(a.prefix||e,`
|
|
34
|
-
`))),y.logger.log("".concat((0,y.bgRed)("ERROR:"),`
|
|
35
|
-
`)),Ct()?y.logger.log("".concat(a.stack,`
|
|
36
|
-
`)):y.logger.log("".concat(a.message,`
|
|
37
|
-
`)),[4,(0,y.aiRequest)(a.message)]):[3,3];case 2:return o.sent(),n=a,[3,5];case 3:return y.logger.log((0,y.red)("\u2716 ".concat(e,`
|
|
38
|
-
`))),y.logger.log("".concat((0,y.bgRed)("ERROR:"),`
|
|
39
|
-
`)),y.logger.log(Ct()||It()?r.stack:"".concat(i,`
|
|
40
|
-
`)),[4,(0,y.aiRequest)(i)];case 4:o.sent(),o.label=5;case 5:return t.catchableError||(t.traceId&&y.logger.log(k.gray("TraceId: ".concat(t.traceId))),It()||(y.logger.log(k.gray("Environment: ".concat((0,y.getVersion)()))),y.logger.log(Ze("Documents: ","https://www.serverless-devs.com")),y.logger.log(Ze("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),y.logger.log(Ze("Issues: ","https://github.com/Serverless-Devs/Serverless-Devs/issues")),y.logger.log(Ze("Regsitry: ",`https://registry.serverless-devs.com
|
|
41
|
-
`)),t.traceId&&y.logger.log(k.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation."))))),!It()&&y.logger.log(k.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,Ja({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:t.traceId})]:[3,7];case 6:o.sent(),o.label=7;case 7:return process.exit(n.code||1),[2]}})})};b.HandleError=al});var ll=exports&&exports.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},cl=exports&&exports.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Rt=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var ul=Rt(Tt()),hl=ci(),fl=Rt(G()),pl=We(),dl=fl.default.colors,ml=Rt(require("tabtab")),gl=`Set analysis action.
|
|
42
|
-
|
|
43
|
-
Example:
|
|
44
|
-
$ s set analysis
|
|
45
|
-
$ s set analysis disable
|
|
46
|
-
|
|
47
|
-
`.concat((0,pl.emoji)("\u{1F4D6}")," Document: ").concat(dl.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/set.md"));ul.default.name("s set autocomplete").helpOption("-h, --help","Display help for command").addHelpCommand(!1).description(gl).parse(process.argv);(function(){return ll(void 0,void 0,void 0,function(){return cl(this,function(r){switch(r.label){case 0:return[4,ml.default.install({name:"s",completer:"s"})];case 1:return r.sent(),[2]}})})})().catch(function(r){throw new hl.CommandError(r.message)});
|
package/lib/tab/index.js
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
var tabtab_1 = __importDefault(require("tabtab"));
|
|
43
|
-
var core_1 = __importDefault(require("../utils/core"));
|
|
44
|
-
var utils_1 = require("../utils");
|
|
45
|
-
var path_1 = __importDefault(require("path"));
|
|
46
|
-
var lodash = core_1.default.lodash, fse = core_1.default.fse;
|
|
47
|
-
var get = lodash.get, keys = lodash.keys, isPlainObject = lodash.isPlainObject, includes = lodash.includes;
|
|
48
|
-
function getComponentPath(componentName) {
|
|
49
|
-
var filePath = path_1.default.join(core_1.default.getRootHome(), 'components', 'devsapp.cn', componentName);
|
|
50
|
-
if (!fse.existsSync(filePath)) {
|
|
51
|
-
filePath = path_1.default.join(core_1.default.getRootHome(), 'components', 'devsapp.cn', 'devsapp', componentName);
|
|
52
|
-
}
|
|
53
|
-
if (fse.existsSync(filePath)) {
|
|
54
|
-
return filePath;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var env, spath, yamlData, serviceList, tmp, data, _i, serviceList_1, key, component, filePath, publishPath, publishContent, commands, o, ele, i, component, filePath, publishPath, publishContent, commands, tmp, key, ele, i;
|
|
59
|
-
return __generator(this, function (_a) {
|
|
60
|
-
switch (_a.label) {
|
|
61
|
-
case 0:
|
|
62
|
-
env = tabtab_1.default.parseEnv(process.env);
|
|
63
|
-
if (!env.complete)
|
|
64
|
-
return [2 /*return*/];
|
|
65
|
-
return [4 /*yield*/, (0, utils_1.getYamlPath)()];
|
|
66
|
-
case 1:
|
|
67
|
-
spath = _a.sent();
|
|
68
|
-
if (!spath) return [3 /*break*/, 11];
|
|
69
|
-
return [4 /*yield*/, core_1.default.getYamlContent(spath)];
|
|
70
|
-
case 2:
|
|
71
|
-
yamlData = _a.sent();
|
|
72
|
-
serviceList = keys(get(yamlData, 'services'));
|
|
73
|
-
if (!(serviceList.length > 1)) return [3 /*break*/, 8];
|
|
74
|
-
tmp = [];
|
|
75
|
-
data = [];
|
|
76
|
-
_i = 0, serviceList_1 = serviceList;
|
|
77
|
-
_a.label = 3;
|
|
78
|
-
case 3:
|
|
79
|
-
if (!(_i < serviceList_1.length)) return [3 /*break*/, 7];
|
|
80
|
-
key = serviceList_1[_i];
|
|
81
|
-
component = get(yamlData, ['services', key, 'component']);
|
|
82
|
-
filePath = getComponentPath(component);
|
|
83
|
-
if (!filePath) return [3 /*break*/, 5];
|
|
84
|
-
publishPath = path_1.default.join(filePath, 'publish.yaml');
|
|
85
|
-
return [4 /*yield*/, core_1.default.getYamlContent(publishPath)];
|
|
86
|
-
case 4:
|
|
87
|
-
publishContent = _a.sent();
|
|
88
|
-
commands = publishContent.Commands;
|
|
89
|
-
if (commands) {
|
|
90
|
-
for (o in commands) {
|
|
91
|
-
ele = commands[o];
|
|
92
|
-
if (isPlainObject(ele)) {
|
|
93
|
-
for (i in ele) {
|
|
94
|
-
tmp.push(i);
|
|
95
|
-
data.push(i);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
tmp.push(o);
|
|
100
|
-
data.push(o);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
_a.label = 5;
|
|
105
|
-
case 5:
|
|
106
|
-
tmp.push({ name: key, description: "Specify service to operate." });
|
|
107
|
-
_a.label = 6;
|
|
108
|
-
case 6:
|
|
109
|
-
_i++;
|
|
110
|
-
return [3 /*break*/, 3];
|
|
111
|
-
case 7:
|
|
112
|
-
if (includes(serviceList, env.prev)) {
|
|
113
|
-
return [2 /*return*/, tabtab_1.default.log(data)];
|
|
114
|
-
}
|
|
115
|
-
tabtab_1.default.log(tmp);
|
|
116
|
-
return [3 /*break*/, 10];
|
|
117
|
-
case 8:
|
|
118
|
-
component = get(yamlData, ['services', serviceList[0], 'component']);
|
|
119
|
-
filePath = getComponentPath(component);
|
|
120
|
-
if (!filePath) return [3 /*break*/, 10];
|
|
121
|
-
publishPath = path_1.default.join(filePath, 'publish.yaml');
|
|
122
|
-
return [4 /*yield*/, core_1.default.getYamlContent(publishPath)];
|
|
123
|
-
case 9:
|
|
124
|
-
publishContent = _a.sent();
|
|
125
|
-
commands = publishContent.Commands;
|
|
126
|
-
if (commands) {
|
|
127
|
-
tmp = [];
|
|
128
|
-
for (key in commands) {
|
|
129
|
-
ele = commands[key];
|
|
130
|
-
if (isPlainObject(ele)) {
|
|
131
|
-
for (i in ele) {
|
|
132
|
-
tmp.push(i === 'deploy' ? { name: i, description: ele[i] } : i);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
tmp.push(key === 'deploy' ? { name: key, description: ele } : key);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
tabtab_1.default.log(tmp);
|
|
140
|
-
}
|
|
141
|
-
_a.label = 10;
|
|
142
|
-
case 10: return [3 /*break*/, 12];
|
|
143
|
-
case 11:
|
|
144
|
-
if (env.prev === 'config') {
|
|
145
|
-
return [2 /*return*/, tabtab_1.default.log(['add', 'get', 'delete'])];
|
|
146
|
-
}
|
|
147
|
-
if (env.prev === 'cli') {
|
|
148
|
-
return [2 /*return*/, tabtab_1.default.log(['fc'])];
|
|
149
|
-
}
|
|
150
|
-
if (env.prev === 'set') {
|
|
151
|
-
return [2 /*return*/, tabtab_1.default.log(['registry', 'analysis', 'workspace'])];
|
|
152
|
-
}
|
|
153
|
-
tabtab_1.default.log(['config', 'init', 'cli', 'verify', 'set', 'clean', 'component', 'edit']);
|
|
154
|
-
_a.label = 12;
|
|
155
|
-
case 12: return [2 /*return*/];
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}); })();
|
|
159
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvdGFiL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsa0RBQTRCO0FBQzVCLHVEQUFpQztBQUNqQyxrQ0FBdUM7QUFDdkMsOENBQXdCO0FBRWhCLElBQUEsTUFBTSxHQUFVLGNBQUksT0FBZCxFQUFFLEdBQUcsR0FBSyxjQUFJLElBQVQsQ0FBVTtBQUVyQixJQUFBLEdBQUcsR0FBb0MsTUFBTSxJQUExQyxFQUFFLElBQUksR0FBOEIsTUFBTSxLQUFwQyxFQUFFLGFBQWEsR0FBZSxNQUFNLGNBQXJCLEVBQUUsUUFBUSxHQUFLLE1BQU0sU0FBWCxDQUFZO0FBRXRELFNBQVMsZ0JBQWdCLENBQUMsYUFBcUI7SUFDN0MsSUFBSSxRQUFRLEdBQUcsY0FBSSxDQUFDLElBQUksQ0FBQyxjQUFJLENBQUMsV0FBVyxFQUFFLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSxhQUFhLENBQUMsQ0FBQztJQUN4RixJQUFJLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsRUFBRTtRQUM3QixRQUFRLEdBQUcsY0FBSSxDQUFDLElBQUksQ0FBQyxjQUFJLENBQUMsV0FBVyxFQUFFLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsYUFBYSxDQUFDLENBQUM7S0FDaEc7SUFDRCxJQUFJLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLEVBQUU7UUFDNUIsT0FBTyxRQUFRLENBQUM7S0FDakI7QUFDSCxDQUFDO0FBRUQsQ0FBQzs7Ozs7Z0JBQ08sR0FBRyxHQUFHLGdCQUFNLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztnQkFDekMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxRQUFRO29CQUFFLHNCQUFPO2dCQUVaLHFCQUFNLElBQUEsbUJBQVcsR0FBRSxFQUFBOztnQkFBM0IsS0FBSyxHQUFHLFNBQW1CO3FCQUM3QixLQUFLLEVBQUwseUJBQUs7Z0JBQ1UscUJBQU0sY0FBSSxDQUFDLGNBQWMsQ0FBQyxLQUFLLENBQUMsRUFBQTs7Z0JBQTNDLFFBQVEsR0FBRyxTQUFnQztnQkFDM0MsV0FBVyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsUUFBUSxFQUFFLFVBQVUsQ0FBQyxDQUFDLENBQUM7cUJBQ2hELENBQUEsV0FBVyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUEsRUFBdEIsd0JBQXNCO2dCQUNsQixHQUFHLEdBQUcsRUFBRSxDQUFDO2dCQUNULElBQUksR0FBRyxFQUFFLENBQUM7c0JBQ2EsRUFBWCwyQkFBVzs7O3FCQUFYLENBQUEseUJBQVcsQ0FBQTtnQkFBbEIsR0FBRztnQkFDTixTQUFTLEdBQUcsR0FBRyxDQUFDLFFBQVEsRUFBRSxDQUFDLFVBQVUsRUFBRSxHQUFHLEVBQUUsV0FBVyxDQUFDLENBQUMsQ0FBQztnQkFDMUQsUUFBUSxHQUFHLGdCQUFnQixDQUFDLFNBQVMsQ0FBQyxDQUFDO3FCQUN6QyxRQUFRLEVBQVIsd0JBQVE7Z0JBQ0osV0FBVyxHQUFHLGNBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLGNBQWMsQ0FBQyxDQUFDO2dCQUNqQyxxQkFBTSxjQUFJLENBQUMsY0FBYyxDQUFDLFdBQVcsQ0FBQyxFQUFBOztnQkFBdkQsY0FBYyxHQUFHLFNBQXNDO2dCQUN2RCxRQUFRLEdBQUcsY0FBYyxDQUFDLFFBQVEsQ0FBQztnQkFDekMsSUFBSSxRQUFRLEVBQUU7b0JBQ1osS0FBVyxDQUFDLElBQUksUUFBUSxFQUFFO3dCQUNsQixHQUFHLEdBQUcsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDO3dCQUN4QixJQUFJLGFBQWEsQ0FBQyxHQUFHLENBQUMsRUFBRTs0QkFDdEIsS0FBVyxDQUFDLElBQUksR0FBRyxFQUFFO2dDQUNuQixHQUFHLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO2dDQUNaLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7NkJBQ2Q7eUJBQ0Y7NkJBQU07NEJBQ0wsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQzs0QkFDWixJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO3lCQUNkO3FCQUNGO2lCQUNGOzs7Z0JBRUgsR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFLElBQUksRUFBRSxHQUFHLEVBQUUsV0FBVyxFQUFFLDZCQUE2QixFQUFFLENBQUMsQ0FBQzs7O2dCQXRCcEQsSUFBVyxDQUFBOzs7Z0JBd0I3QixJQUFJLFFBQVEsQ0FBQyxXQUFXLEVBQUUsR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFO29CQUNuQyxzQkFBTyxnQkFBTSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsRUFBQztpQkFDekI7Z0JBQ0QsZ0JBQU0sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7OztnQkFFVixTQUFTLEdBQUcsR0FBRyxDQUFDLFFBQVEsRUFBRSxDQUFDLFVBQVUsRUFBRSxXQUFXLENBQUMsQ0FBQyxDQUFDLEVBQUUsV0FBVyxDQUFDLENBQUMsQ0FBQztnQkFDckUsUUFBUSxHQUFHLGdCQUFnQixDQUFDLFNBQVMsQ0FBQyxDQUFDO3FCQUN6QyxRQUFRLEVBQVIseUJBQVE7Z0JBQ0osV0FBVyxHQUFHLGNBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLGNBQWMsQ0FBQyxDQUFDO2dCQUNqQyxxQkFBTSxjQUFJLENBQUMsY0FBYyxDQUFDLFdBQVcsQ0FBQyxFQUFBOztnQkFBdkQsY0FBYyxHQUFHLFNBQXNDO2dCQUN2RCxRQUFRLEdBQUcsY0FBYyxDQUFDLFFBQVEsQ0FBQztnQkFDekMsSUFBSSxRQUFRLEVBQUU7b0JBQ04sR0FBRyxHQUFHLEVBQUUsQ0FBQztvQkFDZixLQUFXLEdBQUcsSUFBSSxRQUFRLEVBQUU7d0JBQ3BCLEdBQUcsR0FBRyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUM7d0JBQzFCLElBQUksYUFBYSxDQUFDLEdBQUcsQ0FBQyxFQUFFOzRCQUN0QixLQUFXLENBQUMsSUFBSSxHQUFHLEVBQUU7Z0NBQ25CLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxFQUFFLFdBQVcsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7NkJBQ2pFO3lCQUNGOzZCQUFNOzRCQUNMLEdBQUcsQ0FBQyxJQUFJLENBQUMsR0FBRyxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRSxJQUFJLEVBQUUsR0FBRyxFQUFFLFdBQVcsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7eUJBQ3BFO3FCQUNGO29CQUNELGdCQUFNLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO2lCQUNqQjs7OztnQkFJTCxJQUFJLEdBQUcsQ0FBQyxJQUFJLEtBQUssUUFBUSxFQUFFO29CQUN6QixzQkFBTyxnQkFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsUUFBUSxDQUFDLENBQUMsRUFBQztpQkFDN0M7Z0JBQ0QsSUFBSSxHQUFHLENBQUMsSUFBSSxLQUFLLEtBQUssRUFBRTtvQkFDdEIsc0JBQU8sZ0JBQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxFQUFDO2lCQUMzQjtnQkFDRCxJQUFJLEdBQUcsQ0FBQyxJQUFJLEtBQUssS0FBSyxFQUFFO29CQUN0QixzQkFBTyxnQkFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLFVBQVUsRUFBRSxVQUFVLEVBQUUsV0FBVyxDQUFDLENBQUMsRUFBQztpQkFDMUQ7Z0JBQ0QsZ0JBQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxRQUFRLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQzs7Ozs7S0FFeEYsQ0FBQyxFQUFFLENBQUMifQ==
|
package/shell/postinstall.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
process.noDeprecation = true;
|
|
2
|
-
|
|
3
|
-
const core = require('@serverless-devs/core');
|
|
4
|
-
|
|
5
|
-
(async () => {
|
|
6
|
-
await core.loadComponent('devsapp/fc');
|
|
7
|
-
await core.loadComponent('devsapp/fc-base-sdk');
|
|
8
|
-
await core.loadComponent('devsapp/fc-build');
|
|
9
|
-
await core.loadComponent('devsapp/fc-common');
|
|
10
|
-
await core.loadComponent('devsapp/fc-default');
|
|
11
|
-
await core.loadComponent('devsapp/fc-deploy');
|
|
12
|
-
await core.loadComponent('devsapp/fc-domain');
|
|
13
|
-
await core.loadComponent('devsapp/fc-info');
|
|
14
|
-
await core.loadComponent('devsapp/stdout-formatter');
|
|
15
|
-
process.exit();
|
|
16
|
-
})().catch(() => {
|
|
17
|
-
process.exit(1);
|
|
18
|
-
});
|