@serverless-devs/s 3.1.10 → 3.1.11-ba8ee1a0

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/index.js CHANGED
@@ -336,7 +336,7 @@ ${" ".repeat(t)}`):"").join(`
336
336
  ${Kwt("ERROR:")}`),Et.write(`
337
337
  ${t}
338
338
  `),r&&Et.write(`${ht.gray(r)}
339
- `)}},VR=Bxe});var HR=I((gWu,hBn)=>{hBn.exports={name:"@serverless-devs/s",version:"3.1.10",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:"Apache 2.0",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",test:"jest --testTimeout 10000","test:watch":"jest --testTimeout 10000 --watchAll",format:"prettier --write src/ __tests__/**/*.test.ts",watch:"npm run build -- --watch",prebuild:"cross-os prebuild",build:"node ./scripts/build.js","build:ci":"node ./scripts/build.js",pkg:"pkg . --out-path releases",prepublishOnly:"npm run build",beta:"npm publish --tag=beta",canary:"npm publish --tag=canary",pub:"npm publish",eslint:"eslint . --ext .ts,.tsx","eslint:fix":"eslint . --ext .ts,.tsx --fix"},"cross-os":{prebuild:{darwin:"rm -rf node_modules && npm install --production false",linux:"rm -rf node_modules && npm install --production false",win32:"rmdir /s /q node_modules && npm install --production false"}},pkg:{scripts:["./lib/daemon/**/*.js"]},main:"./lib/index.js",bin:{s:"bin/s"},engines:{node:">=14.14.0"},devDependencies:{"@serverless-devs/core":"^0.1.67-beta.1","@serverless-devs/credential":"^0.0.10","@serverless-devs/engine":"^0.1.6-beta.4","@serverless-devs/load-application":"^0.0.16-beta.1","@serverless-devs/load-component":"^0.0.9","@serverless-devs/logger":"^0.0.6","@serverless-devs/parse-spec":"^0.0.30-beta.1","@serverless-devs/registry":"^0.0.12-beta.5","@serverless-devs/secret":"^0.0.3","@serverless-devs/utils":"^0.0.18","@types/fs-extra":"^11.0.4","@types/inquirer":"^9.0.7","@types/jest":"^29.5.8","@types/js-yaml":"^4.0.9","@types/lodash":"^4.14.201","@types/node":"^20.9.1","@types/semver":"^7.5.5","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1",ajv:"^8.17.1",axios:"^1.6.2",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0","cross-os":"^1.5.0",dotenv:"^16.3.1","dotenv-expand":"^10.0.0",esbuild:"^0.19.12",eslint:"^8.57.0","eslint-plugin-prettier":"^5.1.3","fs-extra":"^11.1.1","global-agent":"^3.0.0",inquirer:"^9.2.12","inquirer-autocomplete-prompt":"^3.0.1",jest:"^29.7.0","js-yaml":"^4.1.0","latest-version":"^7.0.0",leven:"^4.0.0",lodash:"^4.17.21","@yao-pkg/pkg":"^6.3.2",prettier:"^3.1.0",prettyjson:"^1.2.5",rimraf:"^5.0.5",semver:"^7.5.4","semver-diff":"^4.0.0","strip-ansi":"^7.1.0","table-layout":"^3.0.2","ts-jest":"^29.1.1","ts-node":"^10.9.1",typescript:"^5.2.2"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"}}});var X0,KR,YR,rSt,w3,Tee,Zwt,dBn,eSt,mBn,tSt,Kd,bv=bt(()=>{X0=nt(dr());Pn();hr();KR=nt(require("path")),YR=nt(ui());sn();rSt=nt(dr()),w3=nt(ur());Dv();Qwt();Tee=nt(dr()),Zwt=HR(),dBn=async(e,t={})=>{Et.unsilent();let{silent:r}=(0,rSt.parseArgv)(process.argv.slice(2)),n=KR.default.join((0,X0.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json");YR.default.ensureFileSync(n),YR.default.writeJSONSync(n,[],{spaces:2});let u=1;if((0,w3.isArray)(e))for(let i of e){eSt(i,t);let o=(0,w3.get)(i,"exitCode");o&&(u=o)}else{eSt(e,t);let i=(0,w3.get)(e,"exitCode");i&&(u=i)}Tee.getGlobalConfig("log")!=="disable"&&(Et.write(" "),Et.write(ht.gray(`A complete log of this run can be found in: ${ht.underline(KR.default.join(Tee.getRootHome(),"logs",process.env.serverless_devs_traceid))}`))),Et.write(" "),Et.write(ht.gray(wxe([{key:"Env:",value:`${Zwt.name}: ${Zwt.version}, ${process.platform}-${process.arch} node-${process.version}`},{key:"Logs:",value:ht.underline(KR.default.join((0,X0.getRootHome)(),"logs",process.env.serverless_devs_traceid))},{key:"Feedback:",value:ht.cyan.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")}]))),r&&Et.silent(),process.exitCode=u},eSt=(e,t={})=>{Zc("report.js",{argv:process.argv.slice(2),userAgent:(0,X0.getUserAgent)(),...t,type:(0,w3.get)(e,"trackerType"),message:e.message}),mBn(e),Et.write(" ");let r=e;if(r.CODE===X0.DevsError.CODE){let i=r.prefix?[`${ht.red("\u2716")} ${r.prefix}`,"===================="]:[];i.push(ht.red("Error Message:"),ht.red((0,X0.isDebugMode)()?r.stack:r.message)),r.tips&&i.push(`
339
+ `)}},VR=Bxe});var HR=I((gWu,hBn)=>{hBn.exports={name:"@serverless-devs/s",version:"3.1.11-ba8ee1a0",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:"Apache 2.0",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",test:"jest --testTimeout 10000","test:watch":"jest --testTimeout 10000 --watchAll",format:"prettier --write src/ __tests__/**/*.test.ts",watch:"npm run build -- --watch",prebuild:"cross-os prebuild",build:"node ./scripts/build.js","build:ci":"node ./scripts/build.js",pkg:"pkg . --out-path releases",prepublishOnly:"npm run build",beta:"npm publish --tag=beta",canary:"npm publish --tag=canary",pub:"npm publish",eslint:"eslint . --ext .ts,.tsx","eslint:fix":"eslint . --ext .ts,.tsx --fix"},"cross-os":{prebuild:{darwin:"rm -rf node_modules && npm install --production false",linux:"rm -rf node_modules && npm install --production false",win32:"rmdir /s /q node_modules && npm install --production false"}},pkg:{scripts:["./lib/daemon/**/*.js"]},main:"./lib/index.js",bin:{s:"bin/s"},engines:{node:">=14.14.0"},devDependencies:{"@serverless-devs/core":"^0.1.67-beta.1","@serverless-devs/credential":"^0.0.10","@serverless-devs/engine":"^0.1.6-beta.4","@serverless-devs/load-application":"^0.0.16-beta.1","@serverless-devs/load-component":"^0.0.9","@serverless-devs/logger":"^0.0.6","@serverless-devs/parse-spec":"^0.0.30-beta.1","@serverless-devs/registry":"^0.0.12-beta.6","@serverless-devs/secret":"^0.0.3","@serverless-devs/utils":"^0.0.18","@types/fs-extra":"^11.0.4","@types/inquirer":"^9.0.7","@types/jest":"^29.5.8","@types/js-yaml":"^4.0.9","@types/lodash":"^4.14.201","@types/node":"^20.9.1","@types/semver":"^7.5.5","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1",ajv:"^8.17.1",axios:"^1.6.2",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0","cross-os":"^1.5.0",dotenv:"^16.3.1","dotenv-expand":"^10.0.0",esbuild:"^0.19.12",eslint:"^8.57.0","eslint-plugin-prettier":"^5.1.3","fs-extra":"^11.1.1","global-agent":"^3.0.0",inquirer:"^9.2.12","inquirer-autocomplete-prompt":"^3.0.1",jest:"^29.7.0","js-yaml":"^4.1.0","latest-version":"^7.0.0",leven:"^4.0.0",lodash:"^4.17.21","@yao-pkg/pkg":"^6.3.2",prettier:"^3.1.0",prettyjson:"^1.2.5",rimraf:"^5.0.5",semver:"^7.5.4","semver-diff":"^4.0.0","strip-ansi":"^7.1.0","table-layout":"^3.0.2","ts-jest":"^29.1.1","ts-node":"^10.9.1",typescript:"^5.2.2"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"}}});var X0,KR,YR,rSt,w3,Tee,Zwt,dBn,eSt,mBn,tSt,Kd,bv=bt(()=>{X0=nt(dr());Pn();hr();KR=nt(require("path")),YR=nt(ui());sn();rSt=nt(dr()),w3=nt(ur());Dv();Qwt();Tee=nt(dr()),Zwt=HR(),dBn=async(e,t={})=>{Et.unsilent();let{silent:r}=(0,rSt.parseArgv)(process.argv.slice(2)),n=KR.default.join((0,X0.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json");YR.default.ensureFileSync(n),YR.default.writeJSONSync(n,[],{spaces:2});let u=1;if((0,w3.isArray)(e))for(let i of e){eSt(i,t);let o=(0,w3.get)(i,"exitCode");o&&(u=o)}else{eSt(e,t);let i=(0,w3.get)(e,"exitCode");i&&(u=i)}Tee.getGlobalConfig("log")!=="disable"&&(Et.write(" "),Et.write(ht.gray(`A complete log of this run can be found in: ${ht.underline(KR.default.join(Tee.getRootHome(),"logs",process.env.serverless_devs_traceid))}`))),Et.write(" "),Et.write(ht.gray(wxe([{key:"Env:",value:`${Zwt.name}: ${Zwt.version}, ${process.platform}-${process.arch} node-${process.version}`},{key:"Logs:",value:ht.underline(KR.default.join((0,X0.getRootHome)(),"logs",process.env.serverless_devs_traceid))},{key:"Feedback:",value:ht.cyan.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")}]))),r&&Et.silent(),process.exitCode=u},eSt=(e,t={})=>{Zc("report.js",{argv:process.argv.slice(2),userAgent:(0,X0.getUserAgent)(),...t,type:(0,w3.get)(e,"trackerType"),message:e.message}),mBn(e),Et.write(" ");let r=e;if(r.CODE===X0.DevsError.CODE){let i=r.prefix?[`${ht.red("\u2716")} ${r.prefix}`,"===================="]:[];i.push(ht.red("Error Message:"),ht.red((0,X0.isDebugMode)()?r.stack:r.message)),r.tips&&i.push(`
340
340
  \u{1F37C} Tips`,"====================",ht.yellow(`${r.tips}`)),Et.write(i.join(`
341
341
  `)),tSt(r.stack);return}let n=e,u=[ht.red("Error Message:"),ht.red((0,X0.isDebugMode)()?n.stack:n.message)];Et.write(u.join(`
342
342
  `)),tSt(n.stack)},mBn=e=>{let t=u=>{let i=(0,w3.get)(u,"data");if(i)return i;let o=u;return o.CODE===X0.DevsError.CODE?{prefix:o.prefix,message:o.message,exitCode:o.exitCode,tips:o.tips}:{message:o.message}},r=KR.default.join((0,X0.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json"),n=YR.default.readJSONSync(r);n.push(t(e)),YR.default.writeJSONSync(r,n,{spaces:2})},tSt=e=>{(0,X0.isDebugMode)()||Et.debug(e)},Kd=dBn});function vBn(){let{version:e}=Sxe.default.minVersion(gBn.engines.node);Sxe.default.gte(process.versions.node,e)||(new VR(`Node.js version must be greater than or equal to ${e}`,`Your current Node.js version is ${process.versions.node}, please upgrade your Node.js version at ${ht.underline("https://nodejs.org/en")}.`),process.exit(1))}var Sxe,gBn,Pee,nSt=bt(()=>{bv();hr();Sxe=nt(_3()),gBn=HR();Pee=vBn});var uSt=I(kee=>{"use strict";Object.defineProperty(kee,"__esModule",{value:!0});kee.boolean=void 0;var yBn=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1"].includes(e.trim().toLowerCase());case"[object Number]":return e.valueOf()===1;case"[object Boolean]":return e.valueOf();default:return!1}};kee.boolean=yBn});var iSt=I(Ree=>{"use strict";Object.defineProperty(Ree,"__esModule",{value:!0});Ree.isBooleanable=void 0;var DBn=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(e.trim().toLowerCase());case"[object Number]":return[0,1].includes(e.valueOf());case"[object Boolean]":return!0;default:return!1}};Ree.isBooleanable=DBn});var Iee=I(wA=>{"use strict";Object.defineProperty(wA,"__esModule",{value:!0});wA.isBooleanable=wA.boolean=void 0;var EBn=uSt();Object.defineProperty(wA,"boolean",{enumerable:!0,get:function(){return EBn.boolean}});var bBn=iSt();Object.defineProperty(wA,"isBooleanable",{enumerable:!0,get:function(){return bBn.isBooleanable}})});var jee=I((SWu,oSt)=>{oSt.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Oxe=I((OWu,aSt)=>{"use strict";var sSt=Object.prototype.toString;aSt.exports=function(t){var r=sSt.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&sSt.call(t.callee)==="[object Function]"),n}});var vSt=I((TWu,gSt)=>{"use strict";var mSt;Object.keys||(XR=Object.prototype.hasOwnProperty,Txe=Object.prototype.toString,cSt=Oxe(),Pxe=Object.prototype.propertyIsEnumerable,lSt=!Pxe.call({toString:null},"toString"),fSt=Pxe.call(function(){},"prototype"),JR=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Lee=function(e){var t=e.constructor;return t&&t.prototype===e},pSt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hSt=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!pSt["$"+e]&&XR.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Lee(window[e])}catch{return!0}}catch{return!0}return!1}(),dSt=function(e){if(typeof window>"u"||!hSt)return Lee(e);try{return Lee(e)}catch{return!1}},mSt=function(t){var r=t!==null&&typeof t=="object",n=Txe.call(t)==="[object Function]",u=cSt(t),i=r&&Txe.call(t)==="[object String]",o=[];if(!r&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var s=fSt&&n;if(i&&t.length>0&&!XR.call(t,0))for(var a=0;a<t.length;++a)o.push(String(a));if(u&&t.length>0)for(var c=0;c<t.length;++c)o.push(String(c));else for(var l in t)!(s&&l==="prototype")&&XR.call(t,l)&&o.push(String(l));if(lSt)for(var f=dSt(t),p=0;p<JR.length;++p)!(f&&JR[p]==="constructor")&&XR.call(t,JR[p])&&o.push(JR[p]);return o});var XR,Txe,cSt,Pxe,lSt,fSt,JR,Lee,pSt,hSt,dSt;gSt.exports=mSt});var bSt=I((PWu,ESt)=>{"use strict";var CBn=Array.prototype.slice,xBn=Oxe(),ySt=Object.keys,Nee=ySt?function(t){return ySt(t)}:vSt(),DSt=Object.keys;Nee.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return xBn(n)?DSt(CBn.call(n)):DSt(n)})}else Object.keys=Nee;return Object.keys||Nee};ESt.exports=Nee});var xSt=I((kWu,CSt)=>{"use strict";CSt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;t[r]=u;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==u||o.enumerable!==!0)return!1}return!0}});var _St=I((RWu,FSt)=>{"use strict";var ASt=typeof Symbol<"u"&&Symbol,ABn=xSt();FSt.exports=function(){return typeof ASt!="function"||typeof Symbol!="function"||typeof ASt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ABn()}});var SSt=I((IWu,wSt)=>{"use strict";var BSt={foo:{}},FBn=Object;wSt.exports=function(){return{__proto__:BSt}.foo===BSt.foo&&!({__proto__:null}instanceof FBn)}});var PSt=I((jWu,TSt)=>{"use strict";var _Bn="Function.prototype.bind called on incompatible ",BBn=Object.prototype.toString,wBn=Math.max,SBn="[object Function]",OSt=function(t,r){for(var n=[],u=0;u<t.length;u+=1)n[u]=t[u];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},OBn=function(t,r){for(var n=[],u=r||0,i=0;u<t.length;u+=1,i+=1)n[i]=t[u];return n},TBn=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};TSt.exports=function(t){var r=this;if(typeof r!="function"||BBn.apply(r)!==SBn)throw new TypeError(_Bn+r);for(var n=OBn(arguments,1),u,i=function(){if(this instanceof u){var l=r.apply(this,OSt(n,arguments));return Object(l)===l?l:this}return r.apply(t,OSt(n,arguments))},o=wBn(0,r.length-n.length),s=[],a=0;a<o;a++)s[a]="$"+a;if(u=Function("binder","return function ("+TBn(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,u.prototype=new c,c.prototype=null}return u}});var qee=I((LWu,kSt)=>{"use strict";var PBn=PSt();kSt.exports=Function.prototype.bind||PBn});var ISt=I((NWu,RSt)=>{"use strict";var kBn=Function.prototype.call,RBn=Object.prototype.hasOwnProperty,IBn=qee();RSt.exports=IBn.call(kBn,RBn)});var kA=I((qWu,MSt)=>{"use strict";var iu,PA=SyntaxError,qSt=Function,TA=TypeError,kxe=function(e){try{return qSt('"use strict"; return ('+e+").constructor;")()}catch{}},S3=Object.getOwnPropertyDescriptor;if(S3)try{S3({},"")}catch{S3=null}var Rxe=function(){throw new TA},jBn=S3?function(){try{return arguments.callee,Rxe}catch{try{return S3(arguments,"callee").get}catch{return Rxe}}}():Rxe,SA=_St()(),LBn=SSt()(),la=Object.getPrototypeOf||(LBn?function(e){return e.__proto__}:null),OA={},NBn=typeof Uint8Array>"u"||!la?iu:la(Uint8Array),O3={"%AggregateError%":typeof AggregateError>"u"?iu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?iu:ArrayBuffer,"%ArrayIteratorPrototype%":SA&&la?la([][Symbol.iterator]()):iu,"%AsyncFromSyncIteratorPrototype%":iu,"%AsyncFunction%":OA,"%AsyncGenerator%":OA,"%AsyncGeneratorFunction%":OA,"%AsyncIteratorPrototype%":OA,"%Atomics%":typeof Atomics>"u"?iu:Atomics,"%BigInt%":typeof BigInt>"u"?iu:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?iu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?iu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?iu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?iu:Float32Array,"%Float64Array%":typeof Float64Array>"u"?iu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?iu:FinalizationRegistry,"%Function%":qSt,"%GeneratorFunction%":OA,"%Int8Array%":typeof Int8Array>"u"?iu:Int8Array,"%Int16Array%":typeof Int16Array>"u"?iu:Int16Array,"%Int32Array%":typeof Int32Array>"u"?iu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":SA&&la?la(la([][Symbol.iterator]())):iu,"%JSON%":typeof JSON=="object"?JSON:iu,"%Map%":typeof Map>"u"?iu:Map,"%MapIteratorPrototype%":typeof Map>"u"||!SA||!la?iu:la(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?iu:Promise,"%Proxy%":typeof Proxy>"u"?iu:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?iu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?iu:Set,"%SetIteratorPrototype%":typeof Set>"u"||!SA||!la?iu:la(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?iu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":SA&&la?la(""[Symbol.iterator]()):iu,"%Symbol%":SA?Symbol:iu,"%SyntaxError%":PA,"%ThrowTypeError%":jBn,"%TypedArray%":NBn,"%TypeError%":TA,"%Uint8Array%":typeof Uint8Array>"u"?iu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?iu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?iu:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?iu:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?iu:WeakMap,"%WeakRef%":typeof WeakRef>"u"?iu:WeakRef,"%WeakSet%":typeof WeakSet>"u"?iu:WeakSet};if(la)try{null.error}catch(e){jSt=la(la(e)),O3["%Error.prototype%"]=jSt}var jSt,qBn=function e(t){var r;if(t==="%AsyncFunction%")r=kxe("async function () {}");else if(t==="%GeneratorFunction%")r=kxe("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=kxe("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&la&&(r=la(u.prototype))}return O3[t]=r,r},LSt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},QR=qee(),Mee=ISt(),MBn=QR.call(Function.call,Array.prototype.concat),UBn=QR.call(Function.apply,Array.prototype.splice),NSt=QR.call(Function.call,String.prototype.replace),Uee=QR.call(Function.call,String.prototype.slice),$Bn=QR.call(Function.call,RegExp.prototype.exec),zBn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,GBn=/\\(\\)?/g,WBn=function(t){var r=Uee(t,0,1),n=Uee(t,-1);if(r==="%"&&n!=="%")throw new PA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new PA("invalid intrinsic syntax, expected opening `%`");var u=[];return NSt(t,zBn,function(i,o,s,a){u[u.length]=s?NSt(a,GBn,"$1"):o||i}),u},VBn=function(t,r){var n=t,u;if(Mee(LSt,n)&&(u=LSt[n],n="%"+u[0]+"%"),Mee(O3,n)){var i=O3[n];if(i===OA&&(i=qBn(n)),typeof i>"u"&&!r)throw new TA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:i}}throw new PA("intrinsic "+t+" does not exist!")};MSt.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new TA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new TA('"allowMissing" argument must be a boolean');if($Bn(/^%?[^%]*%?$/,t)===null)throw new PA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=WBn(t),u=n.length>0?n[0]:"",i=VBn("%"+u+"%",r),o=i.name,s=i.value,a=!1,c=i.alias;c&&(u=c[0],UBn(n,MBn([0,1],c)));for(var l=1,f=!0;l<n.length;l+=1){var p=n[l],h=Uee(p,0,1),d=Uee(p,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new PA("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(a=!0),u+="."+p,o="%"+u+"%",Mee(O3,o))s=O3[o];else if(s!=null){if(!(p in s)){if(!r)throw new TA("base intrinsic for "+t+" exists, but the property is not available.");return}if(S3&&l+1>=n.length){var m=S3(s,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else f=Mee(s,p),s=s[p];f&&!a&&(O3[o]=s)}}return s}});var $ee=I((MWu,USt)=>{"use strict";var HBn=kA(),Ixe=HBn("%Object.defineProperty%",!0),jxe=function(){if(Ixe)try{return Ixe({},"a",{value:1}),!0}catch{return!1}return!1};jxe.hasArrayLengthDefineBug=function(){if(!jxe())return null;try{return Ixe([],"length",{value:1}).length!==1}catch{return!0}};USt.exports=jxe});var Lxe=I((UWu,$St)=>{"use strict";var KBn=kA(),zee=KBn("%Object.getOwnPropertyDescriptor%",!0);if(zee)try{zee([],"length")}catch{zee=null}$St.exports=zee});var qxe=I(($Wu,GSt)=>{"use strict";var YBn=$ee()(),Nxe=kA(),ZR=YBn&&Nxe("%Object.defineProperty%",!0);if(ZR)try{ZR({},"a",{value:1})}catch{ZR=!1}var XBn=Nxe("%SyntaxError%"),RA=Nxe("%TypeError%"),zSt=Lxe();GSt.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new RA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new RA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new RA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new RA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new RA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new RA("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,a=!!zSt&&zSt(t,r);if(ZR)ZR(t,r,{configurable:o===null&&a?a.configurable:!o,enumerable:u===null&&a?a.enumerable:!u,value:n,writable:i===null&&a?a.writable:!i});else if(s||!u&&!i&&!o)t[r]=n;else throw new XBn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Mxe=I((zWu,KSt)=>{"use strict";var JBn=bSt(),QBn=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ZBn=Object.prototype.toString,ewn=Array.prototype.concat,WSt=qxe(),twn=function(e){return typeof e=="function"&&ZBn.call(e)==="[object Function]"},VSt=$ee()(),rwn=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!twn(n)||!n())return}VSt?WSt(e,t,r,!0):WSt(e,t,r)},HSt=function(e,t){var r=arguments.length>2?arguments[2]:{},n=JBn(t);QBn&&(n=ewn.call(n,Object.getOwnPropertySymbols(t)));for(var u=0;u<n.length;u+=1)rwn(e,n[u],t[n[u]],r[n[u]])};HSt.supportsDescriptors=!!VSt;KSt.exports=HSt});var Uxe=I((GWu,YSt)=>{"use strict";YSt.exports=global});var $xe=I((WWu,XSt)=>{"use strict";var nwn=Uxe();XSt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?nwn:global}});var QSt=I((VWu,JSt)=>{"use strict";var uwn=Mxe(),iwn=$xe();JSt.exports=function(){var t=iwn();if(uwn.supportsDescriptors){var r=Object.getOwnPropertyDescriptor(t,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else(typeof globalThis!="object"||globalThis!==t)&&(t.globalThis=t);return t}});var zxe=I((HWu,tOt)=>{"use strict";var own=Mxe(),swn=Uxe(),ZSt=$xe(),awn=QSt(),cwn=ZSt(),eOt=function(){return cwn};own(eOt,{getPolyfill:ZSt,implementation:swn,shim:awn});tOt.exports=eOt});var uOt=I((Gxe,nOt)=>{Gxe=nOt.exports=lwn;Gxe.getSerialize=rOt;function lwn(e,t,r,n){return JSON.stringify(e,rOt(t,n),r)}function rOt(e,t){var r=[],n=[];return t==null&&(t=function(u,i){return r[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(i)).join(".")+"]"}),function(u,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,u):n.push(u),~r.indexOf(i)&&(i=t.call(this,u,i))}else r.push(i);return e==null?i:e.call(this,u,i)}}});var iOt=I(Gee=>{(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(o){return n(i(o),arguments)}function r(o,s){return t.apply(null,[o].concat(s||[]))}function n(o,s){var a=1,c=o.length,l,f="",p,h,d,m,v,D,g,y;for(p=0;p<c;p++)if(typeof o[p]=="string")f+=o[p];else if(typeof o[p]=="object"){if(d=o[p],d.keys)for(l=s[a],h=0;h<d.keys.length;h++){if(l==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',d.keys[h],d.keys[h-1]));l=l[d.keys[h]]}else d.param_no?l=s[d.param_no]:l=s[a++];if(e.not_type.test(d.type)&&e.not_primitive.test(d.type)&&l instanceof Function&&(l=l()),e.numeric_arg.test(d.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(t("[sprintf] expecting number but found %T",l));switch(e.number.test(d.type)&&(g=l>=0),d.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,d.width?parseInt(d.width):0);break;case"e":l=d.precision?parseFloat(l).toExponential(d.precision):parseFloat(l).toExponential();break;case"f":l=d.precision?parseFloat(l).toFixed(d.precision):parseFloat(l);break;case"g":l=d.precision?String(Number(l.toPrecision(d.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=d.precision?l.substring(0,d.precision):l;break;case"t":l=String(!!l),l=d.precision?l.substring(0,d.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=d.precision?l.substring(0,d.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=d.precision?l.substring(0,d.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}e.json.test(d.type)?f+=l:(e.number.test(d.type)&&(!g||d.sign)?(y=g?"+":"-",l=l.toString().replace(e.sign,"")):y="",v=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",D=d.width-(y+l).length,m=d.width&&D>0?v.repeat(D):"",f+=d.align?y+l+m:v==="0"?y+m+l:m+y+l)}return f}var u=Object.create(null);function i(o){if(u[o])return u[o];for(var s=o,a,c=[],l=0;s;){if((a=e.text.exec(s))!==null)c.push(a[0]);else if((a=e.modulo.exec(s))!==null)c.push("%");else if((a=e.placeholder.exec(s))!==null){if(a[2]){l|=1;var f=[],p=a[2],h=[];if((h=e.key.exec(p))!==null)for(f.push(h[1]);(p=p.substring(h[0].length))!=="";)if((h=e.key_access.exec(p))!==null)f.push(h[1]);else if((h=e.index_access.exec(p))!==null)f.push(h[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");a[2]=f}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");c.push({placeholder:a[0],param_no:a[1],keys:a[2],sign:a[3],pad_char:a[4],align:a[5],width:a[6],precision:a[7],type:a[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");s=s.substring(a[0].length)}return u[o]=c}typeof Gee<"u"&&(Gee.sprintf=t,Gee.vsprintf=r),typeof window<"u"&&(window.sprintf=t,window.vsprintf=r,typeof define=="function"&&define.amd&&define(function(){return{sprintf:t,vsprintf:r}}))})()});var Wxe=I(Wee=>{"use strict";Object.defineProperty(Wee,"__esModule",{value:!0});Wee.logLevels=void 0;var fwn={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};Wee.logLevels=fwn});var aOt=I(Hee=>{"use strict";Object.defineProperty(Hee,"__esModule",{value:!0});Hee.default=void 0;var pwn=Yxe(jee()),hwn=Yxe(zxe()),dwn=Yxe(uOt()),Vxe=iOt(),oOt=Wxe();function Yxe(e){return e&&e.__esModule?e:{default:e}}function Hxe(){return Hxe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hxe.apply(this,arguments)}function sOt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sOt(Object(r),!0).forEach(function(n){mwn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sOt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mwn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gwn=(0,hwn.default)(),eI;pwn.default&&(eI=require("domain"));var vwn=()=>{if(!eI)return{};let e=[],t=process.domain;if(!t||!t.parentDomain)return{};for(;t&&t.parentDomain;)t=t.parentDomain,t.roarr&&t.roarr.context&&e.push(t.roarr.context);let r={};for(let n of e)r=Gf(Gf({},r),n);return r},Vee=()=>{if(!eI)return{};let e=process.domain;if(e&&e.roarr&&e.roarr.context)return e.roarr.context;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)if(e=e.parentDomain,e.roarr&&e.roarr.context)return e.roarr.context;return{}},Kxe=(e,t)=>{let r=(n,u,i,o,s,a,c,l,f,p)=>{let h=Date.now(),d=gwn.ROARR.sequence++,m,v;if(typeof n=="string"){m=Gf(Gf({},Vee()),t||{});let D=Hxe({},{a:n,b:u,c:i,d:o,e:s,f:a,g:c,h:l,i:f,k:p});v=Object.keys(D).map(E=>D[E]).reduce((E,b)=>E+=typeof b>"u"?0:1,0)===1?(0,Vxe.sprintf)("%s",n):(0,Vxe.sprintf)(n,u,i,o,s,a,c,l,f,p)}else{if(typeof u!="string")throw new TypeError("Message must be a string.");m=JSON.parse((0,dwn.default)(Gf(Gf(Gf({},Vee()),t||{}),n))),v=(0,Vxe.sprintf)(u,i,o,s,a,c,l,f,p)}e({context:m,message:v,sequence:d,time:h,version:"1.0.0"})};r.child=n=>typeof n=="function"?Kxe(u=>{if(typeof n!="function")throw new TypeError("Unexpected state.");e(n(u))},t):Kxe(e,Gf(Gf(Gf({},Vee()),t),n)),r.getContext=()=>Gf(Gf({},Vee()),t||{}),r.adopt=async(n,u)=>{if(!eI)return n();let i=eI.create();return i.run(()=>(i.roarr={context:Gf(Gf({},vwn()),u)},n()))};for(let n of Object.keys(oOt.logLevels))r[n]=(u,i,o,s,a,c,l,f,p,h)=>r.child({logLevel:oOt.logLevels[n]})(u,i,o,s,a,c,l,f,p,h);return r},ywn=Kxe;Hee.default=ywn});var fOt=I(Kee=>{"use strict";Object.defineProperty(Kee,"__esModule",{value:!0});Kee.default=void 0;var cOt=Wxe(),lOt=(e,t)=>{let r=(n,u,i,o,s,a,c,l,f,p)=>{};r.adopt=async n=>n(),r.child=n=>lOt(e,t),r.getContext=()=>({});for(let n of Object.keys(cOt.logLevels))r[n]=(u,i,o,s,a,c,l,f,p,h)=>r.child({logLevel:cOt.logLevels[n]})(u,i,o,s,a,c,l,f,p,h);return r},Dwn=lOt;Kee.default=Dwn});var hOt=I((QWu,pOt)=>{pOt.exports=function(t,r){for(var n=t.split("."),u=r.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(u[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}});var dOt=I((ZWu,Ewn)=>{Ewn.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var mOt=I(Yee=>{"use strict";Object.defineProperty(Yee,"__esModule",{value:!0});Yee.default=void 0;var bwn=e=>({write:t=>{e.write(t+`
@@ -1191,7 +1191,7 @@ globstar while`,t,f,r,p,h),this.matchOne(t.slice(f),r.slice(p),n))return this.de
1191
1191
  `)+r,u=n+1,n=e.indexOf(`
1192
1192
  `,u)}while(n!==-1);return i+=e.substr(u),i};Lor.exports={stringReplaceAll:Wvu,stringEncaseCRLFWithFirstIndex:Vvu}});var zor=I((bli,$or)=>{"use strict";var Hvu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,qor=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Kvu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Yvu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Xvu=new Map([["n",`
1193
1193
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Uor(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Xvu.get(e)||e}function Jvu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),u;for(let i of n){let o=Number(i);if(!Number.isNaN(o))r.push(o);else if(u=i.match(Kvu))r.push(u[2].replace(Yvu,(s,a,c)=>a?Uor(a):c));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function Qvu(e){qor.lastIndex=0;let t=[],r;for(;(r=qor.exec(e))!==null;){let n=r[1];if(r[2]){let u=Jvu(n,r[2]);t.push([n].concat(u))}else t.push([n])}return t}function Mor(e,t){let r={};for(let u of t)for(let i of u.styles)r[i[0]]=u.inverse?null:i.slice(1);let n=e;for(let[u,i]of Object.entries(r))if(Array.isArray(i)){if(!(u in n))throw new Error(`Unknown Chalk style: ${u}`);n=i.length>0?n[u](...i):n[u]}return n}$or.exports=(e,t)=>{let r=[],n=[],u=[];if(t.replace(Hvu,(i,o,s,a,c,l)=>{if(o)u.push(Uor(o));else if(a){let f=u.join("");u=[],n.push(r.length===0?f:Mor(e,r)(f)),r.push({inverse:s,styles:Qvu(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Mor(e,r)(u.join(""))),u=[],r.pop()}else u.push(l)}),n.push(u.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Xor=I((Cli,Yor)=>{"use strict";var yM=jor(),{stdout:fNe,stderr:pNe}=j0(),{stringReplaceAll:Zvu,stringEncaseCRLFWithFirstIndex:eyu}=Nor(),{isArray:Tae}=Array,Wor=["ansi","ansi","ansi256","ansi16m"],IB=Object.create(null),tyu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=fNe?fNe.level:0;e.level=t.level===void 0?r:t.level},hNe=class{constructor(t){return Vor(t)}},Vor=e=>{let t={};return tyu(t,e),t.template=(...r)=>Kor(t.template,...r),Object.setPrototypeOf(t,Pae.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=hNe,t.template};function Pae(e){return Vor(e)}for(let[e,t]of Object.entries(yM))IB[e]={get(){let r=kae(this,dNe(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};IB.visible={get(){let e=kae(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Hor=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Hor)IB[e]={get(){let{level:t}=this;return function(...r){let n=dNe(yM.color[Wor[t]][e](...r),yM.color.close,this._styler);return kae(this,n,this._isEmpty)}}};for(let e of Hor){let t="bg"+e[0].toUpperCase()+e.slice(1);IB[t]={get(){let{level:r}=this;return function(...n){let u=dNe(yM.bgColor[Wor[r]][e](...n),yM.bgColor.close,this._styler);return kae(this,u,this._isEmpty)}}}}var ryu=Object.defineProperties(()=>{},{...IB,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),dNe=(e,t,r)=>{let n,u;return r===void 0?(n=e,u=t):(n=r.openAll+e,u=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:u,parent:r}},kae=(e,t,r)=>{let n=(...u)=>Tae(u[0])&&Tae(u[0].raw)?Gor(n,Kor(n,...u)):Gor(n,u.length===1?""+u[0]:u.join(" "));return Object.setPrototypeOf(n,ryu),n._generator=e,n._styler=t,n._isEmpty=r,n},Gor=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:u}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Zvu(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
1194
- `);return i!==-1&&(t=eyu(t,u,n,i)),n+t+u},lNe,Kor=(e,...t)=>{let[r]=t;if(!Tae(r)||!Tae(r.raw))return t.join(" ");let n=t.slice(1),u=[r.raw[0]];for(let i=1;i<r.length;i++)u.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return lNe===void 0&&(lNe=zor()),lNe(e,u.join(""))};Object.defineProperties(Pae.prototype,IB);var Rae=Pae();Rae.supportsColor=fNe;Rae.stderr=Pae({level:pNe?pNe.level:0});Rae.stderr.supportsColor=pNe;Yor.exports=Rae});var Jor=I(Vy=>{"use strict";var nyu=Vy&&Vy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.ProgressType=void 0;var uyu=nyu(Cor()),Iae=Xor(),l9;(function(e){e[e.Bar=0]="Bar",e[e.Loading=1]="Loading"})(l9=Vy.ProgressType||(Vy.ProgressType={}));var iyu=`Loading ${(0,Iae.green)(":loading")} ((:bar)) :current/:total(Bytes) :percent :etas`,oyu=`Loading ${(0,Iae.green)(":loading")} ((:bar)) :etas`,mNe=class e{constructor(t,r,n){this.type=t,this.options=r,t===l9.Loading&&(r||(r={}),r!=null&&r.total||(r.total=100));let u=e.initProgressBarOptions(t,r),i=e.initFormat(t,n);this.progressType=t;let o=new uyu.default(i,u),s=["\u28F4","\u28C6","\u28BB","\u28AA","\u28AB"],a=o.tick;o.tick=(c,l)=>{let f=Object.assign({loading:s[parseInt(String(Math.random()*5))]},l);a.call(o,c,f)},this.bar=o}static initFormat(t,r){return r||(t===l9.Bar?r=iyu:t===l9.Loading&&(r=oyu)),r}static initProgressBarOptions(t,r){return r.width||(r.width=30),r.complete||(r.complete=(0,Iae.green)("\u2588")),r.incomplete||(t===l9.Loading?r.incomplete="\u2591":r.incomplete=(0,Iae.white)("\u2591")),r.clear||(r.clear=!0),r}update(t){if(this.progressType===l9.Bar){let r=t-this.bar.curr;this.bar.tick(r)}else this.progressType===l9.Loading&&this.bar.tick(t||0)}terminate(){this.bar.terminate()}complete(){return this.bar.complete}curr(){return this.bar.curr}total(){return this.bar.total}interrupt(t){this.bar.interrupt(t||"")}};Vy.default=mNe});var esr=I(xp=>{"use strict";var syu=xp&&xp.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ayu=xp&&xp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cyu=xp&&xp.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&syu(t,e,r);return ayu(t,e),t},jae=xp&&xp.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},jB=xp&&xp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xp,"__esModule",{value:!0});var f9=jB(ui()),p9=jB(ur()),d6=jB(require("path")),lyu=jB(cor()),fyu=jB(require("readline")),pyu=jB(vor()),Qor=cyu(Jor()),Zor=process.platform==="win32",gNe=class{constructor(t){this.codeUri=t.codeUri,this.ignoreFiles=t.ignoreFiles,this.includes=t.includes,this.outputFileName=t.outputFileName||`${Date.now()}.zip`,this.outputFilePath=t.outputFilePath||process.cwd(),this.level=t.level||9,this.prefix=t.prefix,this.logger=t.logger||console,this.checkOptions()}checkOptions(){if(p9.default.isEmpty(this.codeUri)&&!p9.default.isString(this.codeUri))throw new Error(`CodeUri incorrect format, expected to be string: ${this.codeUri}`);if(!f9.default.pathExistsSync(this.codeUri))throw new Error(`CodeUri: ${this.codeUri} is not exist`);p9.default.isEmpty(this.includes)||p9.default.forIn(this.includes,t=>{if(!f9.default.pathExistsSync(t))throw new Error(`Include codeUri: ${t} is not exist`)})}run(){return jae(this,void 0,void 0,function*(){let t=d6.default.join(this.outputFilePath,this.outputFileName);yield f9.default.ensureDir(this.outputFilePath);let r=f9.default.createWriteStream(t),n=(0,lyu.default)("zip",{zlib:{level:this.level}}).on("warning",i=>this.logger.warn(i)).on("error",i=>{throw i});n.pipe(r);let u=yield this.zipTo(n,this.codeUri);if(this.includes)for(let i of this.includes){let o=yield this.zipTo(n,i)}return yield new Promise((i,o)=>{let s;n.on("progress",a=>{let{total:c,size:l,level:f}=this.bytesToSize(p9.default.get(a,"fs.totalBytes"));if(s||(s=new Qor.default(Qor.ProgressType.Bar,{total:Number(c)},`Zipping ((:bar)) :current/:total(${l}) :percent :etas`)),p9.default.get(a,"fs.processedBytes")){let{total:p}=this.bytesToSize(p9.default.get(a,"fs.processedBytes"),f);s.update(p)}}),r.on("close",()=>{let a=n.pointer();this.logger.debug("Package complete."),i({count:u,compressedSize:a,outputFile:t})});try{n.finalize()}catch(a){o(a)}})})}bytesToSize(t,r){let n=["Bytes","KB","MB","GB","TB"];if(t==0)return{total:0,size:"Bytes",level:0};let u=r||Math.floor(Math.log(t)/Math.log(1024));return{total:Math.round(t/Math.pow(1024,u)),size:n[u],level:u}}zipTo(t,r){return jae(this,void 0,void 0,function*(){let n=d6.default.resolve(r),u=f9.default.statSync(r);if(u.isFile()){let s=this.isBootstrapPath(n,d6.default.dirname(n));return t.file(n,{prefix:this.prefix,name:d6.default.basename(r),mode:s?u.mode|73:u.mode}),1}let i=pyu.default.sync({ignoreFiles:this.ignoreFiles,path:r,includeEmpty:!0}),o=new Date("2023-11-01");for(let s of i){let a=d6.default.join(r,s),c;try{c=yield f9.default.lstat(a),c.mtime=o}catch(h){this.logger.warn(`Before zip: could not found fPath ${a}, absolute fPath is ${d6.default.resolve(a)}, exception is ${h}, skipping`);continue}let l=d6.default.resolve(a),f=d6.default.relative(n,l),p=this.isBootstrapPath(l,n);if(c.size===1067){let h=yield this.readLines(a);if(h[0]==="XSym"&&h.length===5){let d=h[3];t.symlink(f,d,p||Zor?c.mode|73:c.mode);continue}}t.file(a,{prefix:this.prefix,name:f,mode:p||Zor?c.mode|73:c.mode,stats:c})}return i.length})}isBootstrapPath(t,r){return d6.default.join(r,"bootstrap")===t}readLines(t){return jae(this,void 0,void 0,function*(){return new Promise((r,n)=>{let u=[];fyu.default.createInterface({input:f9.default.createReadStream(t)}).on("line",i=>u.push(i)).on("close",()=>r(u)).on("error",n)})})}};xp.default=e=>jae(void 0,void 0,void 0,function*(){return yield new gNe(e).run()})});var tsr=I(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});LB.STANDARD_DIR_STRUCTURE=LB.publishSchema=void 0;LB.publishSchema={type:"object",required:["Edition","Type","Name","Provider","Version","Description","Category","Service","Effective","Parameters"],properties:{Edition:{type:"string",enum:["3.0.0"]},Type:{type:"string",enum:["Component","Plugin","Project"]},Name:{type:"string"},Provider:{type:"array",items:{type:"string",enum:["\u963F\u91CC\u4E91","\u817E\u8BAF\u4E91","\u534E\u4E3A\u4E91","\u767E\u5EA6\u667A\u80FD\u4E91","AWS","Azure","Google Cloud Platform","\u4E13\u6709\u4E91","\u5176\u5B83","\u706B\u5C71\u5F15\u64CE","Alibaba Cloud","Tencent Cloud","Huawei Cloud","Baidu Cloud","Private Cloud","Others"]}},Version:{type:"string"},Description:{type:"string"},HomePage:{type:"string"},Tags:{type:"array",items:{type:"string"}},Category:{type:"string"},Service:{type:"object"},Organization:{type:"string"},Effective:{type:"string",enum:["Public","Private","Organization"]},Parameters:{type:"object",properties:{type:{type:"string"},additionalProperties:{type:"boolean"},required:{type:"array"},properties:{type:"object"}}}}};LB.STANDARD_DIR_STRUCTURE=`
1194
+ `);return i!==-1&&(t=eyu(t,u,n,i)),n+t+u},lNe,Kor=(e,...t)=>{let[r]=t;if(!Tae(r)||!Tae(r.raw))return t.join(" ");let n=t.slice(1),u=[r.raw[0]];for(let i=1;i<r.length;i++)u.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return lNe===void 0&&(lNe=zor()),lNe(e,u.join(""))};Object.defineProperties(Pae.prototype,IB);var Rae=Pae();Rae.supportsColor=fNe;Rae.stderr=Pae({level:pNe?pNe.level:0});Rae.stderr.supportsColor=pNe;Yor.exports=Rae});var Jor=I(Vy=>{"use strict";var nyu=Vy&&Vy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.ProgressType=void 0;var uyu=nyu(Cor()),Iae=Xor(),l9;(function(e){e[e.Bar=0]="Bar",e[e.Loading=1]="Loading"})(l9=Vy.ProgressType||(Vy.ProgressType={}));var iyu=`Loading ${(0,Iae.green)(":loading")} ((:bar)) :current/:total(Bytes) :percent :etas`,oyu=`Loading ${(0,Iae.green)(":loading")} ((:bar)) :etas`,mNe=class e{constructor(t,r,n){this.type=t,this.options=r,t===l9.Loading&&(r||(r={}),r!=null&&r.total||(r.total=100));let u=e.initProgressBarOptions(t,r),i=e.initFormat(t,n);this.progressType=t;let o=new uyu.default(i,u),s=["\u28F4","\u28C6","\u28BB","\u28AA","\u28AB"],a=o.tick;o.tick=(c,l)=>{let f=Object.assign({loading:s[parseInt(String(Math.random()*5))]},l);a.call(o,c,f)},this.bar=o}static initFormat(t,r){return r||(t===l9.Bar?r=iyu:t===l9.Loading&&(r=oyu)),r}static initProgressBarOptions(t,r){return r.width||(r.width=30),r.complete||(r.complete=(0,Iae.green)("\u2588")),r.incomplete||(t===l9.Loading?r.incomplete="\u2591":r.incomplete=(0,Iae.white)("\u2591")),r.clear||(r.clear=!0),r}update(t){if(this.progressType===l9.Bar){let r=t-this.bar.curr;this.bar.tick(r)}else this.progressType===l9.Loading&&this.bar.tick(t||0)}terminate(){this.bar.terminate()}complete(){return this.bar.complete}curr(){return this.bar.curr}total(){return this.bar.total}interrupt(t){this.bar.interrupt(t||"")}};Vy.default=mNe});var esr=I(xp=>{"use strict";var syu=xp&&xp.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var u=Object.getOwnPropertyDescriptor(t,r);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,u)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ayu=xp&&xp.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cyu=xp&&xp.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&syu(t,e,r);return ayu(t,e),t},jae=xp&&xp.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},jB=xp&&xp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xp,"__esModule",{value:!0});var f9=jB(ui()),p9=jB(ur()),d6=jB(require("path")),lyu=jB(cor()),fyu=jB(require("readline")),pyu=jB(vor()),Qor=cyu(Jor()),Zor=process.platform==="win32",gNe=class{constructor(t){this.codeUri=t.codeUri,this.ignoreFiles=t.ignoreFiles,this.includes=t.includes,this.outputFileName=t.outputFileName||`${Date.now()}.zip`,this.outputFilePath=t.outputFilePath||process.cwd(),this.level=t.level||9,this.prefix=t.prefix,this.logger=t.logger||console,this.checkOptions()}checkOptions(){if(p9.default.isEmpty(this.codeUri)&&!p9.default.isString(this.codeUri))throw new Error(`CodeUri incorrect format, expected to be string: ${this.codeUri}`);if(!f9.default.pathExistsSync(this.codeUri))throw new Error(`CodeUri: ${this.codeUri} is not exist`);p9.default.isEmpty(this.includes)||p9.default.forIn(this.includes,t=>{if(!f9.default.pathExistsSync(t))throw new Error(`Include codeUri: ${t} is not exist`)})}run(){return jae(this,void 0,void 0,function*(){let t=d6.default.join(this.outputFilePath,this.outputFileName);yield f9.default.ensureDir(this.outputFilePath);let r=f9.default.createWriteStream(t),n=(0,lyu.default)("zip",{zlib:{level:this.level}}).on("warning",i=>this.logger.warn(i)).on("error",i=>{throw i});n.pipe(r);let u=yield this.zipTo(n,this.codeUri);if(this.includes)for(let i of this.includes){let o=yield this.zipTo(n,i)}return yield new Promise((i,o)=>{let s;n.on("progress",a=>{let{total:c,size:l,level:f}=this.bytesToSize(p9.default.get(a,"fs.totalBytes"));if(s||(s=new Qor.default(Qor.ProgressType.Bar,{total:Number(c)},`Zipping ((:bar)) :current/:total(${l}) :percent :etas`)),p9.default.get(a,"fs.processedBytes")){let{total:p}=this.bytesToSize(p9.default.get(a,"fs.processedBytes"),f);s.update(p)}}),r.on("close",()=>{let a=n.pointer();this.logger.debug("Package complete."),i({count:u,compressedSize:a,outputFile:t})});try{n.finalize()}catch(a){o(a)}})})}bytesToSize(t,r){let n=["Bytes","KB","MB","GB","TB"];if(t==0)return{total:0,size:"Bytes",level:0};let u=r||Math.floor(Math.log(t)/Math.log(1024));return{total:Math.round(t/Math.pow(1024,u)),size:n[u],level:u}}zipTo(t,r){return jae(this,void 0,void 0,function*(){let n=d6.default.resolve(r),u=f9.default.statSync(r);if(u.isFile()){let s=this.isBootstrapPath(n,d6.default.dirname(n));return t.file(n,{prefix:this.prefix,name:d6.default.basename(r),mode:s?u.mode|73:u.mode}),1}let i=pyu.default.sync({ignoreFiles:this.ignoreFiles,path:r,includeEmpty:!0}),o=new Date("2023-11-01");for(let s of i){let a=d6.default.join(r,s),c;try{c=yield f9.default.lstat(a),c.mtime=o}catch(h){this.logger.warn(`Before zip: could not found fPath ${a}, absolute fPath is ${d6.default.resolve(a)}, exception is ${h}, skipping`);continue}let l=d6.default.resolve(a),f=d6.default.relative(n,l),p=this.isBootstrapPath(l,n);if(c.size===1067){let h=yield this.readLines(a);if(h[0]==="XSym"&&h.length===5){let d=h[3];t.symlink(f,d,p||Zor?c.mode|73:c.mode);continue}}t.file(a,{prefix:this.prefix,name:f,mode:p||Zor?c.mode|73:c.mode,stats:c})}return i.length})}isBootstrapPath(t,r){return d6.default.join(r,"bootstrap")===t}readLines(t){return jae(this,void 0,void 0,function*(){return new Promise((r,n)=>{let u=[];fyu.default.createInterface({input:f9.default.createReadStream(t)}).on("line",i=>u.push(i)).on("close",()=>r(u)).on("error",n)})})}};xp.default=e=>jae(void 0,void 0,void 0,function*(){return yield new gNe(e).run()})});var tsr=I(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});LB.STANDARD_DIR_STRUCTURE=LB.publishSchema=void 0;LB.publishSchema={type:"object",required:["Edition","Type","Name","Provider","Version","Description","Category","Service","Effective","Parameters"],properties:{Edition:{type:"string",enum:["3.0.0"]},Type:{type:"string",enum:["Component","Plugin","Project"]},Name:{type:"string"},Provider:{type:"array",items:{type:"string"}},Version:{type:"string"},Description:{type:"string"},HomePage:{type:"string"},Tags:{type:"array",items:{type:"string"}},Category:{type:"string"},Service:{type:"object"},Organization:{type:"string"},Effective:{type:"string",enum:["Public","Private","Organization"]},Parameters:{type:"object",properties:{type:{type:"string"},additionalProperties:{type:"boolean"},required:{type:"array"},properties:{type:"object"}}}}};LB.STANDARD_DIR_STRUCTURE=`
1195
1195
  A standard directory structure can be like this:
1196
1196
  \u251C\u2500\u2500 publish.yaml
1197
1197
  \u251C\u2500\u2500 readme.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serverless-devs/s",
3
- "version": "3.1.10",
3
+ "version": "3.1.11-ba8ee1a0",
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": [
@@ -71,7 +71,7 @@
71
71
  "@serverless-devs/load-component": "^0.0.9",
72
72
  "@serverless-devs/logger": "^0.0.6",
73
73
  "@serverless-devs/parse-spec": "^0.0.30-beta.1",
74
- "@serverless-devs/registry": "^0.0.12-beta.5",
74
+ "@serverless-devs/registry": "^0.0.12-beta.6",
75
75
  "@serverless-devs/secret": "^0.0.3",
76
76
  "@serverless-devs/utils": "^0.0.18",
77
77
  "@types/fs-extra": "^11.0.4",