From bb24f595c2cea975f2e9276452f3d3af66c2d435 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Sat, 9 May 2020 19:24:07 +0700 Subject: [PATCH] Add schema generator --- dist/index.js | 2 +- package.json | 4 +- pnpm-lock.yaml | 658 +++++++++++++++++- src/inputs/index.ts | 2 +- .../run-install-input.schema.autogen.json | 12 + src/inputs/run-install-input.schema.json | 39 ++ 6 files changed, 708 insertions(+), 9 deletions(-) create mode 100644 src/inputs/run-install-input.schema.autogen.json create mode 100644 src/inputs/run-install-input.schema.json diff --git a/dist/index.js b/dist/index.js index 96a6802..1dd407f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -module.exports=function(r,n){"use strict";var e={};function __webpack_require__(n){if(e[n]){return e[n].exports}var i=e[n]={i:n,l:false,exports:{}};r[n].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(803)}return startup()}({0:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.ref="301414cec74a2b6b63c95b42f2ad1790ccb980ed";n.url=`https://raw.githubusercontent.com/pnpm/self-installer/${n.ref}/install.js`;n.default=n.url},34:function(r){r.exports=require("https")},87:function(r){r.exports=require("os")},89:function(r,n,e){"use strict";var i=this&&this.__awaiter||function(r,n,e,i){function adopt(r){return r instanceof e?r:new e(function(n){n(r)})}return new(e||(e=Promise))(function(e,o){function fulfilled(r){try{step(i.next(r))}catch(r){o(r)}}function rejected(r){try{step(i["throw"](r))}catch(r){o(r)}}function step(r){r.done?e(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};var o=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var e in r)if(Object.hasOwnProperty.call(r,e))n[e]=r[e];n["default"]=r;return n};Object.defineProperty(n,"__esModule",{value:true});const u=e(486);const f=o(e(87));const t=o(e(622));var c;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(c=n.ExitCode||(n.ExitCode={}));function exportVariable(r,n){const e=u.toCommandValue(n);process.env[r]=e;u.issueCommand("set-env",{name:r},e)}n.exportVariable=exportVariable;function setSecret(r){u.issueCommand("add-mask",{},r)}n.setSecret=setSecret;function addPath(r){u.issueCommand("add-path",{},r);process.env["PATH"]=`${r}${t.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(r,n){const e=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!e){throw new Error(`Input required and not supplied: ${r}`)}return e.trim()}n.getInput=getInput;function setOutput(r,n){u.issueCommand("set-output",{name:r},n)}n.setOutput=setOutput;function setCommandEcho(r){u.issue("echo",r?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=c.Failure;error(r)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(r){u.issueCommand("debug",{},r)}n.debug=debug;function error(r){u.issue("error",r instanceof Error?r.toString():r)}n.error=error;function warning(r){u.issue("warning",r instanceof Error?r.toString():r)}n.warning=warning;function info(r){process.stdout.write(r+f.EOL)}n.info=info;function startGroup(r){u.issue("group",r)}n.startGroup=startGroup;function endGroup(){u.issue("endgroup")}n.endGroup=endGroup;function group(r,n){return i(this,void 0,void 0,function*(){startGroup(r);let e;try{e=yield n()}finally{endGroup()}return e})}n.group=group;function saveState(r,n){u.issueCommand("save-state",{name:r},n)}n.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}n.getState=getState},90:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptRegExp(r){if(r===null)return false;if(r.length===0)return false;var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];if(i.length>3)return false;if(n[n.length-i.length-1]!=="/")return false}return true}function constructJavascriptRegExp(r){var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];n=n.slice(1,n.length-i.length-1)}return new RegExp(n,i)}function representJavascriptRegExp(r){var n="/"+r.source+"/";if(r.global)n+="g";if(r.multiline)n+="m";if(r.ignoreCase)n+="i";return n}function isRegExp(r){return Object.prototype.toString.call(r)==="[object RegExp]"}r.exports=new i("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},129:function(r){r.exports=require("child_process")},147:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},191:function(r,n,e){"use strict";var i=e(87);if(typeof i.homedir!=="undefined"){r.exports=i.homedir}else{r.exports=e(394)}},203:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var i=_interopDefault(e(413));var o=_interopDefault(e(605));var u=_interopDefault(e(835));var f=_interopDefault(e(34));var t=_interopDefault(e(761));const c=i.Readable;const s=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const r=arguments[0];const n=arguments[1];const e=[];let i=0;if(r){const n=r;const o=Number(n.length);for(let r=0;r1&&arguments[1]!==undefined?arguments[1]:{},o=e.size;let u=o===undefined?0:o;var f=e.timeout;let t=f===undefined?0:f;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r)) ;else if(Buffer.isBuffer(r)) ;else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof i) ;else{r=Buffer.from(String(r))}this[a]={body:r,disturbed:false,error:null};this.size=u;this.timeout=t;if(r instanceof i){r.on("error",function(r){const e=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${n.url}: ${r.message}`,"system",r);n[a].error=e})}}Body.prototype={get body(){return this[a].body},get bodyUsed(){return this[a].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)})},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(n){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[s]:n})})},json(){var r=this;return consumeBody.call(this).then(function(n){try{return JSON.parse(n.toString())}catch(n){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${n.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(r){return r.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then(function(n){return convertBody(n,r.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const n of Object.getOwnPropertyNames(Body.prototype)){if(!(n in r)){const e=Object.getOwnPropertyDescriptor(Body.prototype,n);Object.defineProperty(r,n,e)}}};function consumeBody(){var r=this;if(this[a].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[a].disturbed=true;if(this[a].error){return Body.Promise.reject(this[a].error)}let n=this.body;if(n===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(n)){n=n.stream()}if(Buffer.isBuffer(n)){return Body.Promise.resolve(n)}if(!(n instanceof i)){return Body.Promise.resolve(Buffer.alloc(0))}let e=[];let o=0;let u=false;return new Body.Promise(function(i,f){let t;if(r.timeout){t=setTimeout(function(){u=true;f(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))},r.timeout)}n.on("error",function(n){if(n.name==="AbortError"){u=true;f(n)}else{f(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${n.message}`,"system",n))}});n.on("data",function(n){if(u||n===null){return}if(r.size&&o+n.length>r.size){u=true;f(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}o+=n.length;e.push(n)});n.on("end",function(){if(u){return}clearTimeout(t);try{i(Buffer.concat(e,o))}catch(n){f(new FetchError(`Could not create Buffer from response body for ${r.url}: ${n.message}`,"system",n))}})})}function convertBody(r,n){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const e=n.get("content-type");let i="utf-8";let o,u;if(e){o=/charset=([^;]*)/i.exec(e)}u=r.slice(0,1024).toString();if(!o&&u){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[d]=Object.create(null);if(r instanceof Headers){const n=r.raw();const e=Object.keys(n);for(const r of e){for(const e of n[r]){this.append(r,e)}}return}if(r==null) ;else if(typeof r==="object"){const n=r[Symbol.iterator];if(n!=null){if(typeof n!=="function"){throw new TypeError("Header pairs must be iterable")}const e=[];for(const n of r){if(typeof n!=="object"||typeof n[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}e.push(Array.from(n))}for(const r of e){if(r.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(r[0],r[1])}}else{for(const n of Object.keys(r)){const e=r[n];this.append(n,e)}}}else{throw new TypeError("Provided initializer must be an object")}}get(r){r=`${r}`;validateName(r);const n=find(this[d],r);if(n===undefined){return null}return this[d][n].join(", ")}forEach(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let e=getHeaders(this);let i=0;while(i1&&arguments[1]!==undefined?arguments[1]:"key+value";const e=Object.keys(r[d]).sort();return e.map(n==="key"?function(r){return r.toLowerCase()}:n==="value"?function(n){return r[d][n].join(", ")}:function(n){return[n.toLowerCase(),r[d][n].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(r,n){const e=Object.create(b);e[w]={target:r,kind:n,index:0};return e}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var r=this[w];const n=r.target,e=r.kind,i=r.index;const o=getHeaders(n,e);const u=o.length;if(i>=u){return{value:undefined,done:true}}this[w].index=i+1;return{value:o[i],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(r){const n=Object.assign({__proto__:null},r[d]);const e=find(r[d],"Host");if(e!==undefined){n[e]=n[e][0]}return n}function createHeadersLenient(r){const n=new Headers;for(const e of Object.keys(r)){if(m.test(e)){continue}if(Array.isArray(r[e])){for(const i of r[e]){if(g.test(i)){continue}if(n[d][e]===undefined){n[d][e]=[i]}else{n[d][e].push(i)}}}else if(!g.test(r[e])){n[d][e]=[r[e]]}}return n}const v=Symbol("Response internals");const S=o.STATUS_CODES;class Response{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,r,n);const e=n.status||200;const i=new Headers(n.headers);if(r!=null&&!i.has("Content-Type")){const n=extractContentType(r);if(n){i.append("Content-Type",n)}}this[v]={url:n.url,status:e,statusText:n.statusText||S[e],headers:i,counter:n.counter}}get url(){return this[v].url||""}get status(){return this[v].status}get ok(){return this[v].status>=200&&this[v].status<300}get redirected(){return this[v].counter>0}get statusText(){return this[v].statusText}get headers(){return this[v].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const A=Symbol("Request internals");const O=u.parse;const E=u.format;const F="destroy"in i.Readable.prototype;function isRequest(r){return typeof r==="object"&&typeof r[A]==="object"}function isAbortSignal(r){const n=r&&typeof r==="object"&&Object.getPrototypeOf(r);return!!(n&&n.constructor.name==="AbortSignal")}class Request{constructor(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let e;if(!isRequest(r)){if(r&&r.href){e=O(r.href)}else{e=O(`${r}`)}r={}}else{e=O(r.url)}let i=n.method||r.method||"GET";i=i.toUpperCase();if((n.body!=null||isRequest(r)&&r.body!==null)&&(i==="GET"||i==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let o=n.body!=null?n.body:isRequest(r)&&r.body!==null?clone(r):null;Body.call(this,o,{timeout:n.timeout||r.timeout||0,size:n.size||r.size||0});const u=new Headers(n.headers||r.headers||{});if(o!=null&&!u.has("Content-Type")){const r=extractContentType(o);if(r){u.append("Content-Type",r)}}let f=isRequest(r)?r.signal:null;if("signal"in n)f=n.signal;if(f!=null&&!isAbortSignal(f)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[A]={method:i,redirect:n.redirect||r.redirect||"follow",headers:u,parsedURL:e,signal:f};this.follow=n.follow!==undefined?n.follow:r.follow!==undefined?r.follow:20;this.compress=n.compress!==undefined?n.compress:r.compress!==undefined?r.compress:true;this.counter=n.counter||r.counter||0;this.agent=n.agent||r.agent}get method(){return this[A].method}get url(){return E(this[A].parsedURL)}get headers(){return this[A].headers}get redirect(){return this[A].redirect}get signal(){return this[A].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(r){const n=r[A].parsedURL;const e=new Headers(r[A].headers);if(!e.has("Accept")){e.set("Accept","*/*")}if(!n.protocol||!n.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(n.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(r.signal&&r.body instanceof i.Readable&&!F){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(r.body==null&&/^(POST|PUT)$/i.test(r.method)){o="0"}if(r.body!=null){const n=getTotalBytes(r);if(typeof n==="number"){o=String(n)}}if(o){e.set("Content-Length",o)}if(!e.has("User-Agent")){e.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(r.compress&&!e.has("Accept-Encoding")){e.set("Accept-Encoding","gzip,deflate")}let u=r.agent;if(typeof u==="function"){u=u(n)}if(!e.has("Connection")&&!u){e.set("Connection","close")}return Object.assign({},n,{method:r.method,headers:exportNodeCompatibleHeaders(e),agent:u})}function AbortError(r){Error.call(this,r);this.type="aborted";this.message=r;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const j=i.PassThrough;const B=u.resolve;function fetch(r,n){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(e,u){const c=new Request(r,n);const s=getNodeRequestOptions(c);const l=(s.protocol==="https:"?f:o).request;const p=c.signal;let a=null;const h=function abort(){let r=new AbortError("The user aborted a request.");u(r);if(c.body&&c.body instanceof i.Readable){c.body.destroy(r)}if(!a||!a.body)return;a.body.emit("error",r)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(s);let d;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(d)}if(c.timeout){g.once("socket",function(r){d=setTimeout(function(){u(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()},c.timeout)})}g.on("error",function(r){u(new FetchError(`request to ${c.url} failed, reason: ${r.message}`,"system",r));finalize()});g.on("response",function(r){clearTimeout(d);const n=createHeadersLenient(r.headers);if(fetch.isRedirect(r.statusCode)){const i=n.get("Location");const o=i===null?null:B(c.url,i);switch(c.redirect){case"error":u(new FetchError(`redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{n.set("Location",o)}catch(r){u(r)}}break;case"follow":if(o===null){break}if(c.counter>=c.follow){u(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const i={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout};if(r.statusCode!==303&&c.body&&getTotalBytes(c)===null){u(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(r.statusCode===303||(r.statusCode===301||r.statusCode===302)&&c.method==="POST"){i.method="GET";i.body=undefined;i.headers.delete("content-length")}e(fetch(new Request(o,i)));finalize();return}}r.once("end",function(){if(p)p.removeEventListener("abort",m)});let i=r.pipe(new j);const o={url:c.url,status:r.statusCode,statusText:r.statusMessage,headers:n,size:c.size,timeout:c.timeout,counter:c.counter};const f=n.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||f===null||r.statusCode===204||r.statusCode===304){a=new Response(i,o);e(a);return}const s={flush:t.Z_SYNC_FLUSH,finishFlush:t.Z_SYNC_FLUSH};if(f=="gzip"||f=="x-gzip"){i=i.pipe(t.createGunzip(s));a=new Response(i,o);e(a);return}if(f=="deflate"||f=="x-deflate"){const n=r.pipe(new j);n.once("data",function(r){if((r[0]&15)===8){i=i.pipe(t.createInflate())}else{i=i.pipe(t.createInflateRaw())}a=new Response(i,o);e(a)});return}if(f=="br"&&typeof t.createBrotliDecompress==="function"){i=i.pipe(t.createBrotliDecompress());a=new Response(i,o);e(a);return}a=new Response(i,o);e(a)});writeToStream(g,c)})}fetch.isRedirect=function(r){return r===301||r===302||r===303||r===307||r===308};fetch.Promise=global.Promise;r.exports=n=fetch;Object.defineProperty(n,"__esModule",{value:true});n.default=n;n.Headers=Headers;n.Request=Request;n.Response=Response;n.FetchError=FetchError},205:function(r,n,e){"use strict";var i=e(351);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var u=["scalar","sequence","mapping"];function compileStyleAliases(r){var n={};if(r!==null){Object.keys(r).forEach(function(e){r[e].forEach(function(r){n[String(r)]=e})})}return n}function Type(r,n){n=n||{};Object.keys(n).forEach(function(n){if(o.indexOf(n)===-1){throw new i('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}});this.tag=r;this.kind=n["kind"]||null;this.resolve=n["resolve"]||function(){return true};this.construct=n["construct"]||function(r){return r};this.instanceOf=n["instanceOf"]||null;this.predicate=n["predicate"]||null;this.represent=n["represent"]||null;this.defaultStyle=n["defaultStyle"]||null;this.styleAliases=compileStyleAliases(n["styleAliases"]||null);if(u.indexOf(this.kind)===-1){throw new i('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}r.exports=Type},211:function(r,n,e){"use strict";var i=e(205);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var n,e=r;for(n in e){if(o.call(e,n)){if(e[n]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new i("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},228:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});const i=e(129);const o=e(765);const u=e(839);async function runSelfInstaller(r){const n=i.spawn(o.execPath,{env:{PNPM_VERSION:r.version,PNPM_DEST:r.dest,PNPM_BIN_DEST:r.binDest,PNPM_REGISTRY:r.registry},stdio:["pipe","inherit","inherit"]});const e=await u.downloadSelfInstaller();e.body.pipe(n.stdin);return new Promise((r,e)=>{n.on("error",e);n.on("close",r)})}n.runSelfInstaller=runSelfInstaller;n.default=runSelfInstaller},237:function(r,n,e){"use strict";var i=e(447);r.exports=new i({explicit:[e(543),e(147),e(806)]})},261:function(r){"use strict";function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,n){var e,i,o,u;if(n){u=Object.keys(n);for(e=0,i=u.length;eu.default(o.getInput(r,t));n.getInputs=(()=>({version:o.getInput("version",t),dest:c("dest"),binDest:c("bin_dest"),registry:o.getInput("registry",t),runInstall:f.safeLoad(o.getInput("run_install",t))}));n.default=n.getInputs},300:function(r,n,e){"use strict";var i=e(261);var o=e(351);var u=e(478);var f=e(728);var t=Object.prototype.toString;var c=Object.prototype.hasOwnProperty;var s=9;var l=10;var p=32;var a=33;var h=34;var m=35;var g=37;var d=38;var w=39;var b=42;var v=44;var S=45;var A=58;var O=62;var E=63;var F=64;var j=91;var B=93;var C=96;var D=123;var P=124;var _=125;var Y={};Y[0]="\\0";Y[7]="\\a";Y[8]="\\b";Y[9]="\\t";Y[10]="\\n";Y[11]="\\v";Y[12]="\\f";Y[13]="\\r";Y[27]="\\e";Y[34]='\\"';Y[92]="\\\\";Y[133]="\\N";Y[160]="\\_";Y[8232]="\\L";Y[8233]="\\P";var $=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(r,n){var e,i,o,u,f,t,s;if(n===null)return{};e={};i=Object.keys(n);for(o=0,u=i.length;oi&&r[p+1]!==" ";p=u}}else if(!isPrintable(f)){return W}a=a&&isPlainSafe(f)}c=c||s&&(u-p-1>i&&r[p+1]!==" ")}if(!t&&!c){return a&&!o(r)?M:q}if(e>9&&needIndentIndicator(r)){return W}return c?H:U}function writeScalar(r,n,e,i){r.dump=function(){if(n.length===0){return"''"}if(!r.noCompatMode&&$.indexOf(n)!==-1){return"'"+n+"'"}var u=r.indent*Math.max(1,e);var f=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-u);var t=i||r.flowLevel>-1&&e>=r.flowLevel;function testAmbiguity(n){return testImplicitResolving(r,n)}switch(chooseScalarStyle(n,t,r.indent,f,testAmbiguity)){case M:return n;case q:return"'"+n.replace(/'/g,"''")+"'";case U:return"|"+blockHeader(n,r.indent)+dropEndingNewline(indentString(n,u));case H:return">"+blockHeader(n,r.indent)+dropEndingNewline(indentString(foldString(n,f),u));case W:return'"'+escapeString(n,f)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(r,n){var e=needIndentIndicator(r)?String(n):"";var i=r[r.length-1]==="\n";var o=i&&(r[r.length-2]==="\n"||r==="\n");var u=o?"+":i?"":"-";return e+u+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,n){var e=/(\n+)([^\n]*)/g;var i=function(){var i=r.indexOf("\n");i=i!==-1?i:r.length;e.lastIndex=i;return foldLine(r.slice(0,i),n)}();var o=r[0]==="\n"||r[0]===" ";var u;var f;while(f=e.exec(r)){var t=f[1],c=f[2];u=c[0]===" ";i+=t+(!o&&!u&&c!==""?"\n":"")+foldLine(c,n);o=u}return i}function foldLine(r,n){if(r===""||r[0]===" ")return r;var e=/ [^ ]/g;var i;var o=0,u,f=0,t=0;var c="";while(i=e.exec(r)){t=i.index;if(t-o>n){u=f>o?f:t;c+="\n"+r.slice(o,u);o=u+1}f=t}c+="\n";if(r.length-o>n&&f>o){c+=r.slice(o,f)+"\n"+r.slice(f+1)}else{c+=r.slice(o)}return c.slice(1)}function escapeString(r){var n="";var e,i;var o;for(var u=0;u=55296&&e<=56319){i=r.charCodeAt(u+1);if(i>=56320&&i<=57343){n+=encodeHex((e-55296)*1024+i-56320+65536);u++;continue}}o=Y[e];n+=!o&&isPrintable(e)?r[u]:o||encodeHex(e)}return n}function writeFlowSequence(r,n,e){var i="",o=r.tag,u,f;for(u=0,f=e.length;u1024)l+="? ";l+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,n,s,false,false)){continue}l+=r.dump;i+=l}r.tag=o;r.dump="{"+i+"}"}function writeBlockMapping(r,n,e,i){var u="",f=r.tag,t=Object.keys(e),c,s,p,a,h,m;if(r.sortKeys===true){t.sort()}else if(typeof r.sortKeys==="function"){t.sort(r.sortKeys)}else if(r.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(c=0,s=t.length;c1024;if(h){if(r.dump&&l===r.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=r.dump;if(h){m+=generateNextLine(r,n)}if(!writeNode(r,n+1,a,true,h)){continue}if(r.dump&&l===r.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=r.dump;u+=m}r.tag=f;r.dump=u||"{}"}function detectType(r,n,e){var i,u,f,s,l,p;u=e?r.explicitTypes:r.implicitTypes;for(f=0,s=u.length;f tag resolver accepts not "'+p+'" style')}r.dump=i}return true}}return false}function writeNode(r,n,e,i,u,f){r.tag=null;r.dump=e;if(!detectType(r,e,false)){detectType(r,e,true)}var c=t.call(r.dump);if(i){i=r.flowLevel<0||r.flowLevel>n}var s=c==="[object Object]"||c==="[object Array]",l,p;if(s){l=r.duplicates.indexOf(e);p=l!==-1}if(r.tag!==null&&r.tag!=="?"||p||r.indent!==2&&n>0){u=false}if(p&&r.usedDuplicates[l]){r.dump="*ref_"+l}else{if(s&&p&&!r.usedDuplicates[l]){r.usedDuplicates[l]=true}if(c==="[object Object]"){if(i&&Object.keys(r.dump).length!==0){writeBlockMapping(r,n,r.dump,u);if(p){r.dump="&ref_"+l+r.dump}}else{writeFlowMapping(r,n,r.dump);if(p){r.dump="&ref_"+l+" "+r.dump}}}else if(c==="[object Array]"){var a=r.noArrayIndent&&n>0?n-1:n;if(i&&r.dump.length!==0){writeBlockSequence(r,a,r.dump,u);if(p){r.dump="&ref_"+l+r.dump}}else{writeFlowSequence(r,a,r.dump);if(p){r.dump="&ref_"+l+" "+r.dump}}}else if(c==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,n,f)}}else{if(r.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+c)}if(r.tag!==null&&r.tag!=="?"){r.dump="!<"+r.tag+"> "+r.dump}}return true}function getDuplicateReferences(r,n){var e=[],i=[],o,u;inspectNode(r,e,i);for(o=0,u=i.length;o>10)+55296,(r-65536&1023)+56320)}var A=new Array(256);var O=new Array(256);for(var E=0;E<256;E++){A[E]=simpleEscapeSequence(E)?1:0;O[E]=simpleEscapeSequence(E)}function State(r,n){this.input=r;this.filename=n["filename"]||null;this.schema=n["schema"]||t;this.onWarning=n["onWarning"]||null;this.legacy=n["legacy"]||false;this.json=n["json"]||false;this.listener=n["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(r,n){return new o(n,new u(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function throwError(r,n){throw generateError(r,n)}function throwWarning(r,n){if(r.onWarning){r.onWarning.call(null,generateError(r,n))}}var F={YAML:function handleYamlDirective(r,n,e){var i,o,u;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(e.length!==1){throwError(r,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(e[0]);if(i===null){throwError(r,"ill-formed argument of the YAML directive")}o=parseInt(i[1],10);u=parseInt(i[2],10);if(o!==1){throwError(r,"unacceptable YAML version of the document")}r.version=e[0];r.checkLineBreaks=u<2;if(u!==1&&u!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,n,e){var i,o;if(e.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}i=e[0];o=e[1];if(!v.test(i)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(r.tagMap,i)){throwError(r,'there is a previously declared suffix for "'+i+'" tag handle')}if(!S.test(o)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}r.tagMap[i]=o}};function captureSegment(r,n,e,i){var o,u,f,t;if(n1){r.result+=i.repeat("\n",n-1)}}function readPlainScalar(r,n,e){var i,o,u,f,t,c,s,l,p=r.kind,a=r.result,h;h=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){return false}}r.kind="scalar";r.result="";u=f=r.position;t=false;while(h!==0){if(h===58){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){break}}else if(h===35){i=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(i)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||e&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=r.line;s=r.lineStart;l=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=n){t=true;h=r.input.charCodeAt(r.position);continue}else{r.position=f;r.line=c;r.lineStart=s;r.lineIndent=l;break}}if(t){captureSegment(r,u,f,false);writeFoldedLines(r,r.line-c);u=f=r.position;t=false}if(!is_WHITE_SPACE(h)){f=r.position+1}h=r.input.charCodeAt(++r.position)}captureSegment(r,u,f,false);if(r.result){return true}r.kind=p;r.result=a;return false}function readSingleQuotedScalar(r,n){var e,i,o;e=r.input.charCodeAt(r.position);if(e!==39){return false}r.kind="scalar";r.result="";r.position++;i=o=r.position;while((e=r.input.charCodeAt(r.position))!==0){if(e===39){captureSegment(r,i,r.position,true);e=r.input.charCodeAt(++r.position);if(e===39){i=r.position;r.position++;o=r.position}else{return true}}else if(is_EOL(e)){captureSegment(r,i,o,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));i=o=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;o=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,n){var e,i,o,u,f,t;t=r.input.charCodeAt(r.position);if(t!==34){return false}r.kind="scalar";r.result="";r.position++;e=i=r.position;while((t=r.input.charCodeAt(r.position))!==0){if(t===34){captureSegment(r,e,r.position,true);r.position++;return true}else if(t===92){captureSegment(r,e,r.position,true);t=r.input.charCodeAt(++r.position);if(is_EOL(t)){skipSeparationSpace(r,false,n)}else if(t<256&&A[t]){r.result+=O[t];r.position++}else if((f=escapedHexLen(t))>0){o=f;u=0;for(;o>0;o--){t=r.input.charCodeAt(++r.position);if((f=fromHexCode(t))>=0){u=(u<<4)+f}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(u);r.position++}else{throwError(r,"unknown escape sequence")}e=i=r.position}else if(is_EOL(t)){captureSegment(r,e,i,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));e=i=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;i=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,n){var e=true,i,o=r.tag,u,f=r.anchor,t,c,l,p,a,h={},m,g,d,w;w=r.input.charCodeAt(r.position);if(w===91){c=93;a=false;u=[]}else if(w===123){c=125;a=true;u={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=u}w=r.input.charCodeAt(++r.position);while(w!==0){skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===c){r.position++;r.tag=o;r.anchor=f;r.kind=a?"mapping":"sequence";r.result=u;return true}else if(!e){throwError(r,"missed comma between flow collection entries")}g=m=d=null;l=p=false;if(w===63){t=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(t)){l=p=true;r.position++;skipSeparationSpace(r,true,n)}}i=r.line;composeNode(r,n,s,false,true);g=r.tag;m=r.result;skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if((p||r.line===i)&&w===58){l=true;w=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,n);composeNode(r,n,s,false,true);d=r.result}if(a){storeMappingPair(r,u,h,g,m,d)}else if(l){u.push(storeMappingPair(r,null,h,g,m,d))}else{u.push(m)}skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===44){e=true;w=r.input.charCodeAt(++r.position)}else{e=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,n){var e,o,u=h,f=false,t=false,c=n,s=0,l=false,p,a;a=r.input.charCodeAt(r.position);if(a===124){o=false}else if(a===62){o=true}else{return false}r.kind="scalar";r.result="";while(a!==0){a=r.input.charCodeAt(++r.position);if(a===43||a===45){if(h===u){u=a===43?g:m}else{throwError(r,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(a))>=0){if(p===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!t){c=n+p-1;t=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(a)){do{a=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(a));if(a===35){do{a=r.input.charCodeAt(++r.position)}while(!is_EOL(a)&&a!==0)}}while(a!==0){readLineBreak(r);r.lineIndent=0;a=r.input.charCodeAt(r.position);while((!t||r.lineIndentc){c=r.lineIndent}if(is_EOL(a)){s++;continue}if(r.lineIndentn)&&c!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndentn){if(composeNode(r,n,a,true,o)){if(d){m=r.result}else{g=r.result}}if(!d){storeMappingPair(r,s,p,h,m,g,u,f);h=m=g=null}skipSeparationSpace(r,true,-1);b=r.input.charCodeAt(r.position)}if(r.lineIndent>n&&b!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndentn){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndentn){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndent tag; it should be "'+b.kind+'", not "'+r.kind+'"')}if(!b.resolve(r.result)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=b.construct(r.result);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else{throwError(r,"unknown tag !<"+r.tag+">")}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||g}function readDocument(r){var n=r.position,e,i,o,u=false,f;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap={};r.anchorMap={};while((f=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);f=r.input.charCodeAt(r.position);if(r.lineIndent>0||f!==37){break}u=true;f=r.input.charCodeAt(++r.position);e=r.position;while(f!==0&&!is_WS_OR_EOL(f)){f=r.input.charCodeAt(++r.position)}i=r.input.slice(e,r.position);o=[];if(i.length<1){throwError(r,"directive name must not be less than one character in length")}while(f!==0){while(is_WHITE_SPACE(f)){f=r.input.charCodeAt(++r.position)}if(f===35){do{f=r.input.charCodeAt(++r.position)}while(f!==0&&!is_EOL(f));break}if(is_EOL(f))break;e=r.position;while(f!==0&&!is_WS_OR_EOL(f)){f=r.input.charCodeAt(++r.position)}o.push(r.input.slice(e,r.position))}if(f!==0)readLineBreak(r);if(c.call(F,i)){F[i](r,i,o)}else{throwWarning(r,'unknown document directive "'+i+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(u){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,a,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&w.test(r.input.slice(n,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position64)continue;if(n<0)return false;i+=6}return i%8===0}function constructYamlBinary(r){var n,e,o=r.replace(/[\r\n=]/g,""),u=o.length,t=f,c=0,s=[];for(n=0;n>16&255);s.push(c>>8&255);s.push(c&255)}c=c<<6|t.indexOf(o.charAt(n))}e=u%4*6;if(e===0){s.push(c>>16&255);s.push(c>>8&255);s.push(c&255)}else if(e===18){s.push(c>>10&255);s.push(c>>2&255)}else if(e===12){s.push(c>>4&255)}if(i){return i.from?i.from(s):new i(s)}return s}function representYamlBinary(r){var n="",e=0,i,o,u=r.length,t=f;for(i=0;i>18&63];n+=t[e>>12&63];n+=t[e>>6&63];n+=t[e&63]}e=(e<<8)+r[i]}o=u%3;if(o===0){n+=t[e>>18&63];n+=t[e>>12&63];n+=t[e>>6&63];n+=t[e&63]}else if(o===2){n+=t[e>>10&63];n+=t[e>>4&63];n+=t[e<<2&63];n+=t[64]}else if(o===1){n+=t[e>>2&63];n+=t[e<<4&63];n+=t[64];n+=t[64]}return n}function isBinary(r){return i&&i.isBuffer(r)}r.exports=new u("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},387:function(r,n,e){"use strict";var i=e(261);function Mark(r,n,e,i,o){this.name=r;this.buffer=n;this.position=e;this.line=i;this.column=o}Mark.prototype.getSnippet=function getSnippet(r,n){var e,o,u,f,t;if(!this.buffer)return null;r=r||4;n=n||75;e="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>n/2-1){e=" ... ";o+=5;break}}u="";f=this.position;while(fn/2-1){u=" ... ";f-=5;break}}t=this.buffer.slice(o,f);return i.repeat(" ",r)+e+t+u+"\n"+i.repeat(" ",r+this.position-o+e.length)+"^"};Mark.prototype.toString=function toString(r){var n,e="";if(this.name){e+='in "'+this.name+'" '}e+="at line "+(this.line+1)+", column "+(this.column+1);if(!r){n=this.getSnippet();if(n){e+=":\n"+n}}return e};r.exports=Mark},394:function(r,n,e){"use strict";var i=e(747);var o=e(795);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var r=tryReadFileSync("/etc/passwd");var n=find(o(r),getuid());if(n){return n}var e=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!e){return null}if(process.platform==="darwin"){return"/Users/"+e}return"/home/"+e}function find(r,n){var e=r.length;for(var i=0;i0){r+=" ";let n=true;for(const e in this.properties){if(this.properties.hasOwnProperty(e)){const i=this.properties[e];if(i){if(n){n=false}else{r+=","}r+=`${e}=${escapeProperty(i)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}n.toCommandValue=toCommandValue;function escapeData(r){return toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},504:function(module){module.exports=eval("require")("encoding")},543:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},585:function(r,n,e){"use strict";var i=e(335);var o=e(300);function deprecated(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}r.exports.Type=e(205);r.exports.Schema=e(447);r.exports.FAILSAFE_SCHEMA=e(237);r.exports.JSON_SCHEMA=e(606);r.exports.CORE_SCHEMA=e(652);r.exports.DEFAULT_SAFE_SCHEMA=e(728);r.exports.DEFAULT_FULL_SCHEMA=e(478);r.exports.load=i.load;r.exports.loadAll=i.loadAll;r.exports.safeLoad=i.safeLoad;r.exports.safeLoadAll=i.safeLoadAll;r.exports.dump=o.dump;r.exports.safeDump=o.safeDump;r.exports.YAMLException=e(351);r.exports.MINIMAL_SCHEMA=e(237);r.exports.SAFE_SCHEMA=e(728);r.exports.DEFAULT_SCHEMA=e(478);r.exports.scan=deprecated("scan");r.exports.parse=deprecated("parse");r.exports.compose=deprecated("compose");r.exports.addConstructor=deprecated("addConstructor")},601:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(228));n.runSelfInstaller=u.default;async function install(r){const n=await u.default(r);if(n){return o.setFailed(`Something does wrong, self-installer exits with code ${n}`)}}n.install=install;n.default=install},605:function(r){r.exports=require("http")},606:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(237)],implicit:[e(674),e(797),e(632),e(989)]})},622:function(r){r.exports=require("path")},632:function(r,n,e){"use strict";var i=e(261);var o=e(205);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var n=r.length,e=0,i=false,o;if(!n)return false;o=r[e];if(o==="-"||o==="+"){o=r[++e]}if(o==="0"){if(e+1===n)return true;o=r[++e];if(o==="b"){e++;for(;e=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},652:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(606)]})},658:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=i(e(203));const u=i(e(0));n.downloadSelfInstaller=(()=>o.default(u.default));n.default=n.downloadSelfInstaller},674:function(r,n,e){"use strict";var i=e(205);function resolveYamlNull(r){if(r===null)return true;var n=r.length;return n===1&&r==="~"||n===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new i("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},716:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(r){return typeof r==="undefined"}r.exports=new i("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},728:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(652)],implicit:[e(808),e(799)],explicit:[e(367),e(327),e(403),e(211)]})},747:function(r){r.exports=require("fs")},761:function(r){r.exports=require("zlib")},765:function(r){r.exports=require("process")},795:function(r){"use strict";r.exports=function(r){if(typeof r!=="string"){throw new Error("expected a string")}return r.split("\n").map(user).filter(Boolean)};function user(r,n){if(!r||!r.length||r.charAt(0)==="#"){return null}var e=r.split(":");return{username:e[0],password:e[1],uid:e[2],gid:e[3],gecos:e[4],homedir:e[5],shell:e[6]}}},797:function(r,n,e){"use strict";var i=e(205);function resolveYamlBoolean(r){if(r===null)return false;var n=r.length;return n===4&&(r==="true"||r==="True"||r==="TRUE")||n===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}r.exports=new i("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})},799:function(r,n,e){"use strict";var i=e(205);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},803:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(271));const f=i(e(897));const t=i(e(601));async function main(){const r=u.default();await t.default(r);console.log("Installation Completed!");f.default(r)}main().catch(r=>{console.error(r);o.setFailed(r)})},806:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},808:function(r,n,e){"use strict";var i=e(205);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var u=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(o.exec(r)!==null)return true;if(u.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var n,e,i,f,t,c,s,l=0,p=null,a,h,m;n=o.exec(r);if(n===null)n=u.exec(r);if(n===null)throw new Error("Date resolve error");e=+n[1];i=+n[2]-1;f=+n[3];if(!n[4]){return new Date(Date.UTC(e,i,f))}t=+n[4];c=+n[5];s=+n[6];if(n[7]){l=n[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(n[9]){a=+n[10];h=+(n[11]||0);p=(a*60+h)*6e4;if(n[9]==="-")p=-p}m=new Date(Date.UTC(e,i,f,t,c,s,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(r){return r.toISOString()}r.exports=new i("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},835:function(r){r.exports=require("url")},839:function(r,n,e){"use strict";function __export(r){for(var e in r)if(!n.hasOwnProperty(e))n[e]=r[e]}Object.defineProperty(n,"__esModule",{value:true});__export(e(0));__export(e(658))},840:function(r,n,e){"use strict";var i=e(585);r.exports=i},897:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});const i=e(89);function setOutputs(r){i.addPath(r.binDest);i.setOutput("dest",r.dest);i.setOutput("bin_dest",r.binDest)}n.setOutputs=setOutputs;n.default=setOutputs},966:function(r,n,e){var i=e(191);var o=e(622);r.exports=function expandTilde(r){var n=i();if(r.charCodeAt(0)===126){if(r.charCodeAt(1)===43){return o.join(process.cwd(),r.slice(2))}return n?o.join(n,r.slice(1)):r}return r}},989:function(r,n,e){"use strict";var i=e(261);var o=e(205);var u=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!u.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var n,e,i,o;n=r.replace(/_/g,"").toLowerCase();e=n[0]==="-"?-1:1;o=[];if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return e===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}else if(n.indexOf(":")>=0){n.split(":").forEach(function(r){o.unshift(parseFloat(r,10))});n=0;i=1;o.forEach(function(r){n+=r*i;i*=60});return e*n}return e*parseFloat(n,10)}var f=/^[-+]?[0-9]+e/;function representYamlFloat(r,n){var e;if(isNaN(r)){switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(i.isNegativeZero(r)){return"-0.0"}e=r.toString(10);return f.test(e)?e.replace("e",".e"):e}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||i.isNegativeZero(r))}r.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})}}); \ No newline at end of file +module.exports=function(r,n){"use strict";var e={};function __webpack_require__(n){if(e[n]){return e[n].exports}var i=e[n]={i:n,l:false,exports:{}};r[n].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(803)}return startup()}({0:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.ref="301414cec74a2b6b63c95b42f2ad1790ccb980ed";n.url=`https://raw.githubusercontent.com/pnpm/self-installer/${n.ref}/install.js`;n.default=n.url},34:function(r){r.exports=require("https")},87:function(r){r.exports=require("os")},89:function(r,n,e){"use strict";var i=this&&this.__awaiter||function(r,n,e,i){function adopt(r){return r instanceof e?r:new e(function(n){n(r)})}return new(e||(e=Promise))(function(e,o){function fulfilled(r){try{step(i.next(r))}catch(r){o(r)}}function rejected(r){try{step(i["throw"](r))}catch(r){o(r)}}function step(r){r.done?e(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};var o=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var e in r)if(Object.hasOwnProperty.call(r,e))n[e]=r[e];n["default"]=r;return n};Object.defineProperty(n,"__esModule",{value:true});const u=e(486);const f=o(e(87));const t=o(e(622));var c;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(c=n.ExitCode||(n.ExitCode={}));function exportVariable(r,n){const e=u.toCommandValue(n);process.env[r]=e;u.issueCommand("set-env",{name:r},e)}n.exportVariable=exportVariable;function setSecret(r){u.issueCommand("add-mask",{},r)}n.setSecret=setSecret;function addPath(r){u.issueCommand("add-path",{},r);process.env["PATH"]=`${r}${t.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(r,n){const e=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!e){throw new Error(`Input required and not supplied: ${r}`)}return e.trim()}n.getInput=getInput;function setOutput(r,n){u.issueCommand("set-output",{name:r},n)}n.setOutput=setOutput;function setCommandEcho(r){u.issue("echo",r?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=c.Failure;error(r)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(r){u.issueCommand("debug",{},r)}n.debug=debug;function error(r){u.issue("error",r instanceof Error?r.toString():r)}n.error=error;function warning(r){u.issue("warning",r instanceof Error?r.toString():r)}n.warning=warning;function info(r){process.stdout.write(r+f.EOL)}n.info=info;function startGroup(r){u.issue("group",r)}n.startGroup=startGroup;function endGroup(){u.issue("endgroup")}n.endGroup=endGroup;function group(r,n){return i(this,void 0,void 0,function*(){startGroup(r);let e;try{e=yield n()}finally{endGroup()}return e})}n.group=group;function saveState(r,n){u.issueCommand("save-state",{name:r},n)}n.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}n.getState=getState},90:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptRegExp(r){if(r===null)return false;if(r.length===0)return false;var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];if(i.length>3)return false;if(n[n.length-i.length-1]!=="/")return false}return true}function constructJavascriptRegExp(r){var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];n=n.slice(1,n.length-i.length-1)}return new RegExp(n,i)}function representJavascriptRegExp(r){var n="/"+r.source+"/";if(r.global)n+="g";if(r.multiline)n+="m";if(r.ignoreCase)n+="i";return n}function isRegExp(r){return Object.prototype.toString.call(r)==="[object RegExp]"}r.exports=new i("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},129:function(r){r.exports=require("child_process")},147:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},191:function(r,n,e){"use strict";var i=e(87);if(typeof i.homedir!=="undefined"){r.exports=i.homedir}else{r.exports=e(394)}},203:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});function _interopDefault(r){return r&&typeof r==="object"&&"default"in r?r["default"]:r}var i=_interopDefault(e(413));var o=_interopDefault(e(605));var u=_interopDefault(e(835));var f=_interopDefault(e(34));var t=_interopDefault(e(761));const c=i.Readable;const s=Symbol("buffer");const l=Symbol("type");class Blob{constructor(){this[l]="";const r=arguments[0];const n=arguments[1];const e=[];let i=0;if(r){const n=r;const o=Number(n.length);for(let r=0;r1&&arguments[1]!==undefined?arguments[1]:{},o=e.size;let u=o===undefined?0:o;var f=e.timeout;let t=f===undefined?0:f;if(r==null){r=null}else if(isURLSearchParams(r)){r=Buffer.from(r.toString())}else if(isBlob(r)) ;else if(Buffer.isBuffer(r)) ;else if(Object.prototype.toString.call(r)==="[object ArrayBuffer]"){r=Buffer.from(r)}else if(ArrayBuffer.isView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(r instanceof i) ;else{r=Buffer.from(String(r))}this[a]={body:r,disturbed:false,error:null};this.size=u;this.timeout=t;if(r instanceof i){r.on("error",function(r){const e=r.name==="AbortError"?r:new FetchError(`Invalid response body while trying to fetch ${n.url}: ${r.message}`,"system",r);n[a].error=e})}}Body.prototype={get body(){return this[a].body},get bodyUsed(){return this[a].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(r){return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)})},blob(){let r=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(n){return Object.assign(new Blob([],{type:r.toLowerCase()}),{[s]:n})})},json(){var r=this;return consumeBody.call(this).then(function(n){try{return JSON.parse(n.toString())}catch(n){return Body.Promise.reject(new FetchError(`invalid json response body at ${r.url} reason: ${n.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(r){return r.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var r=this;return consumeBody.call(this).then(function(n){return convertBody(n,r.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(r){for(const n of Object.getOwnPropertyNames(Body.prototype)){if(!(n in r)){const e=Object.getOwnPropertyDescriptor(Body.prototype,n);Object.defineProperty(r,n,e)}}};function consumeBody(){var r=this;if(this[a].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[a].disturbed=true;if(this[a].error){return Body.Promise.reject(this[a].error)}let n=this.body;if(n===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(n)){n=n.stream()}if(Buffer.isBuffer(n)){return Body.Promise.resolve(n)}if(!(n instanceof i)){return Body.Promise.resolve(Buffer.alloc(0))}let e=[];let o=0;let u=false;return new Body.Promise(function(i,f){let t;if(r.timeout){t=setTimeout(function(){u=true;f(new FetchError(`Response timeout while trying to fetch ${r.url} (over ${r.timeout}ms)`,"body-timeout"))},r.timeout)}n.on("error",function(n){if(n.name==="AbortError"){u=true;f(n)}else{f(new FetchError(`Invalid response body while trying to fetch ${r.url}: ${n.message}`,"system",n))}});n.on("data",function(n){if(u||n===null){return}if(r.size&&o+n.length>r.size){u=true;f(new FetchError(`content size at ${r.url} over limit: ${r.size}`,"max-size"));return}o+=n.length;e.push(n)});n.on("end",function(){if(u){return}clearTimeout(t);try{i(Buffer.concat(e,o))}catch(n){f(new FetchError(`Could not create Buffer from response body for ${r.url}: ${n.message}`,"system",n))}})})}function convertBody(r,n){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const e=n.get("content-type");let i="utf-8";let o,u;if(e){o=/charset=([^;]*)/i.exec(e)}u=r.slice(0,1024).toString();if(!o&&u){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[d]=Object.create(null);if(r instanceof Headers){const n=r.raw();const e=Object.keys(n);for(const r of e){for(const e of n[r]){this.append(r,e)}}return}if(r==null) ;else if(typeof r==="object"){const n=r[Symbol.iterator];if(n!=null){if(typeof n!=="function"){throw new TypeError("Header pairs must be iterable")}const e=[];for(const n of r){if(typeof n!=="object"||typeof n[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}e.push(Array.from(n))}for(const r of e){if(r.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(r[0],r[1])}}else{for(const n of Object.keys(r)){const e=r[n];this.append(n,e)}}}else{throw new TypeError("Provided initializer must be an object")}}get(r){r=`${r}`;validateName(r);const n=find(this[d],r);if(n===undefined){return null}return this[d][n].join(", ")}forEach(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let e=getHeaders(this);let i=0;while(i1&&arguments[1]!==undefined?arguments[1]:"key+value";const e=Object.keys(r[d]).sort();return e.map(n==="key"?function(r){return r.toLowerCase()}:n==="value"?function(n){return r[d][n].join(", ")}:function(n){return[n.toLowerCase(),r[d][n].join(", ")]})}const w=Symbol("internal");function createHeadersIterator(r,n){const e=Object.create(b);e[w]={target:r,kind:n,index:0};return e}const b=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==b){throw new TypeError("Value of `this` is not a HeadersIterator")}var r=this[w];const n=r.target,e=r.kind,i=r.index;const o=getHeaders(n,e);const u=o.length;if(i>=u){return{value:undefined,done:true}}this[w].index=i+1;return{value:o[i],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(b,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(r){const n=Object.assign({__proto__:null},r[d]);const e=find(r[d],"Host");if(e!==undefined){n[e]=n[e][0]}return n}function createHeadersLenient(r){const n=new Headers;for(const e of Object.keys(r)){if(m.test(e)){continue}if(Array.isArray(r[e])){for(const i of r[e]){if(g.test(i)){continue}if(n[d][e]===undefined){n[d][e]=[i]}else{n[d][e].push(i)}}}else if(!g.test(r[e])){n[d][e]=[r[e]]}}return n}const v=Symbol("Response internals");const S=o.STATUS_CODES;class Response{constructor(){let r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,r,n);const e=n.status||200;const i=new Headers(n.headers);if(r!=null&&!i.has("Content-Type")){const n=extractContentType(r);if(n){i.append("Content-Type",n)}}this[v]={url:n.url,status:e,statusText:n.statusText||S[e],headers:i,counter:n.counter}}get url(){return this[v].url||""}get status(){return this[v].status}get ok(){return this[v].status>=200&&this[v].status<300}get redirected(){return this[v].counter>0}get statusText(){return this[v].statusText}get headers(){return this[v].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const A=Symbol("Request internals");const O=u.parse;const E=u.format;const F="destroy"in i.Readable.prototype;function isRequest(r){return typeof r==="object"&&typeof r[A]==="object"}function isAbortSignal(r){const n=r&&typeof r==="object"&&Object.getPrototypeOf(r);return!!(n&&n.constructor.name==="AbortSignal")}class Request{constructor(r){let n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let e;if(!isRequest(r)){if(r&&r.href){e=O(r.href)}else{e=O(`${r}`)}r={}}else{e=O(r.url)}let i=n.method||r.method||"GET";i=i.toUpperCase();if((n.body!=null||isRequest(r)&&r.body!==null)&&(i==="GET"||i==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let o=n.body!=null?n.body:isRequest(r)&&r.body!==null?clone(r):null;Body.call(this,o,{timeout:n.timeout||r.timeout||0,size:n.size||r.size||0});const u=new Headers(n.headers||r.headers||{});if(o!=null&&!u.has("Content-Type")){const r=extractContentType(o);if(r){u.append("Content-Type",r)}}let f=isRequest(r)?r.signal:null;if("signal"in n)f=n.signal;if(f!=null&&!isAbortSignal(f)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[A]={method:i,redirect:n.redirect||r.redirect||"follow",headers:u,parsedURL:e,signal:f};this.follow=n.follow!==undefined?n.follow:r.follow!==undefined?r.follow:20;this.compress=n.compress!==undefined?n.compress:r.compress!==undefined?r.compress:true;this.counter=n.counter||r.counter||0;this.agent=n.agent||r.agent}get method(){return this[A].method}get url(){return E(this[A].parsedURL)}get headers(){return this[A].headers}get redirect(){return this[A].redirect}get signal(){return this[A].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(r){const n=r[A].parsedURL;const e=new Headers(r[A].headers);if(!e.has("Accept")){e.set("Accept","*/*")}if(!n.protocol||!n.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(n.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(r.signal&&r.body instanceof i.Readable&&!F){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(r.body==null&&/^(POST|PUT)$/i.test(r.method)){o="0"}if(r.body!=null){const n=getTotalBytes(r);if(typeof n==="number"){o=String(n)}}if(o){e.set("Content-Length",o)}if(!e.has("User-Agent")){e.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(r.compress&&!e.has("Accept-Encoding")){e.set("Accept-Encoding","gzip,deflate")}let u=r.agent;if(typeof u==="function"){u=u(n)}if(!e.has("Connection")&&!u){e.set("Connection","close")}return Object.assign({},n,{method:r.method,headers:exportNodeCompatibleHeaders(e),agent:u})}function AbortError(r){Error.call(this,r);this.type="aborted";this.message=r;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const j=i.PassThrough;const B=u.resolve;function fetch(r,n){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(e,u){const c=new Request(r,n);const s=getNodeRequestOptions(c);const l=(s.protocol==="https:"?f:o).request;const p=c.signal;let a=null;const h=function abort(){let r=new AbortError("The user aborted a request.");u(r);if(c.body&&c.body instanceof i.Readable){c.body.destroy(r)}if(!a||!a.body)return;a.body.emit("error",r)};if(p&&p.aborted){h();return}const m=function abortAndFinalize(){h();finalize()};const g=l(s);let d;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(d)}if(c.timeout){g.once("socket",function(r){d=setTimeout(function(){u(new FetchError(`network timeout at: ${c.url}`,"request-timeout"));finalize()},c.timeout)})}g.on("error",function(r){u(new FetchError(`request to ${c.url} failed, reason: ${r.message}`,"system",r));finalize()});g.on("response",function(r){clearTimeout(d);const n=createHeadersLenient(r.headers);if(fetch.isRedirect(r.statusCode)){const i=n.get("Location");const o=i===null?null:B(c.url,i);switch(c.redirect){case"error":u(new FetchError(`redirect mode is set to error: ${c.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{n.set("Location",o)}catch(r){u(r)}}break;case"follow":if(o===null){break}if(c.counter>=c.follow){u(new FetchError(`maximum redirect reached at: ${c.url}`,"max-redirect"));finalize();return}const i={headers:new Headers(c.headers),follow:c.follow,counter:c.counter+1,agent:c.agent,compress:c.compress,method:c.method,body:c.body,signal:c.signal,timeout:c.timeout};if(r.statusCode!==303&&c.body&&getTotalBytes(c)===null){u(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(r.statusCode===303||(r.statusCode===301||r.statusCode===302)&&c.method==="POST"){i.method="GET";i.body=undefined;i.headers.delete("content-length")}e(fetch(new Request(o,i)));finalize();return}}r.once("end",function(){if(p)p.removeEventListener("abort",m)});let i=r.pipe(new j);const o={url:c.url,status:r.statusCode,statusText:r.statusMessage,headers:n,size:c.size,timeout:c.timeout,counter:c.counter};const f=n.get("Content-Encoding");if(!c.compress||c.method==="HEAD"||f===null||r.statusCode===204||r.statusCode===304){a=new Response(i,o);e(a);return}const s={flush:t.Z_SYNC_FLUSH,finishFlush:t.Z_SYNC_FLUSH};if(f=="gzip"||f=="x-gzip"){i=i.pipe(t.createGunzip(s));a=new Response(i,o);e(a);return}if(f=="deflate"||f=="x-deflate"){const n=r.pipe(new j);n.once("data",function(r){if((r[0]&15)===8){i=i.pipe(t.createInflate())}else{i=i.pipe(t.createInflateRaw())}a=new Response(i,o);e(a)});return}if(f=="br"&&typeof t.createBrotliDecompress==="function"){i=i.pipe(t.createBrotliDecompress());a=new Response(i,o);e(a);return}a=new Response(i,o);e(a)});writeToStream(g,c)})}fetch.isRedirect=function(r){return r===301||r===302||r===303||r===307||r===308};fetch.Promise=global.Promise;r.exports=n=fetch;Object.defineProperty(n,"__esModule",{value:true});n.default=n;n.Headers=Headers;n.Request=Request;n.Response=Response;n.FetchError=FetchError},205:function(r,n,e){"use strict";var i=e(351);var o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var u=["scalar","sequence","mapping"];function compileStyleAliases(r){var n={};if(r!==null){Object.keys(r).forEach(function(e){r[e].forEach(function(r){n[String(r)]=e})})}return n}function Type(r,n){n=n||{};Object.keys(n).forEach(function(n){if(o.indexOf(n)===-1){throw new i('Unknown option "'+n+'" is met in definition of "'+r+'" YAML type.')}});this.tag=r;this.kind=n["kind"]||null;this.resolve=n["resolve"]||function(){return true};this.construct=n["construct"]||function(r){return r};this.instanceOf=n["instanceOf"]||null;this.predicate=n["predicate"]||null;this.represent=n["represent"]||null;this.defaultStyle=n["defaultStyle"]||null;this.styleAliases=compileStyleAliases(n["styleAliases"]||null);if(u.indexOf(this.kind)===-1){throw new i('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}r.exports=Type},211:function(r,n,e){"use strict";var i=e(205);var o=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var n,e=r;for(n in e){if(o.call(e,n)){if(e[n]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new i("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},228:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});const i=e(129);const o=e(765);const u=e(839);async function runSelfInstaller(r){const n=i.spawn(o.execPath,{env:{PNPM_VERSION:r.version,PNPM_DEST:r.dest,PNPM_BIN_DEST:r.binDest,PNPM_REGISTRY:r.registry},stdio:["pipe","inherit","inherit"]});const e=await u.downloadSelfInstaller();e.body.pipe(n.stdin);return new Promise((r,e)=>{n.on("error",e);n.on("close",r)})}n.runSelfInstaller=runSelfInstaller;n.default=runSelfInstaller},237:function(r,n,e){"use strict";var i=e(447);r.exports=new i({explicit:[e(543),e(147),e(806)]})},261:function(r){"use strict";function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,n){var e,i,o,u;if(n){u=Object.keys(n);for(e=0,i=u.length;eu.default(o.getInput(r,t));function parseRunInstall(r){const n=f.safeLoad(o.getInput(r,t));if(!n)return[];if(n===true)return[{recursive:true}];if(Array.isArray(n))return n;return[n]}n.getInputs=(()=>({version:o.getInput("version",t),dest:c("dest"),binDest:c("bin_dest"),registry:o.getInput("registry",t),runInstall:parseRunInstall("run_install")}));n.default=n.getInputs},300:function(r,n,e){"use strict";var i=e(261);var o=e(351);var u=e(478);var f=e(728);var t=Object.prototype.toString;var c=Object.prototype.hasOwnProperty;var s=9;var l=10;var p=32;var a=33;var h=34;var m=35;var g=37;var d=38;var w=39;var b=42;var v=44;var S=45;var A=58;var O=62;var E=63;var F=64;var j=91;var B=93;var C=96;var D=123;var P=124;var _=125;var Y={};Y[0]="\\0";Y[7]="\\a";Y[8]="\\b";Y[9]="\\t";Y[10]="\\n";Y[11]="\\v";Y[12]="\\f";Y[13]="\\r";Y[27]="\\e";Y[34]='\\"';Y[92]="\\\\";Y[133]="\\N";Y[160]="\\_";Y[8232]="\\L";Y[8233]="\\P";var $=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(r,n){var e,i,o,u,f,t,s;if(n===null)return{};e={};i=Object.keys(n);for(o=0,u=i.length;oi&&r[p+1]!==" ";p=u}}else if(!isPrintable(f)){return W}a=a&&isPlainSafe(f)}c=c||s&&(u-p-1>i&&r[p+1]!==" ")}if(!t&&!c){return a&&!o(r)?M:q}if(e>9&&needIndentIndicator(r)){return W}return c?H:U}function writeScalar(r,n,e,i){r.dump=function(){if(n.length===0){return"''"}if(!r.noCompatMode&&$.indexOf(n)!==-1){return"'"+n+"'"}var u=r.indent*Math.max(1,e);var f=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-u);var t=i||r.flowLevel>-1&&e>=r.flowLevel;function testAmbiguity(n){return testImplicitResolving(r,n)}switch(chooseScalarStyle(n,t,r.indent,f,testAmbiguity)){case M:return n;case q:return"'"+n.replace(/'/g,"''")+"'";case U:return"|"+blockHeader(n,r.indent)+dropEndingNewline(indentString(n,u));case H:return">"+blockHeader(n,r.indent)+dropEndingNewline(indentString(foldString(n,f),u));case W:return'"'+escapeString(n,f)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function blockHeader(r,n){var e=needIndentIndicator(r)?String(n):"";var i=r[r.length-1]==="\n";var o=i&&(r[r.length-2]==="\n"||r==="\n");var u=o?"+":i?"":"-";return e+u+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,n){var e=/(\n+)([^\n]*)/g;var i=function(){var i=r.indexOf("\n");i=i!==-1?i:r.length;e.lastIndex=i;return foldLine(r.slice(0,i),n)}();var o=r[0]==="\n"||r[0]===" ";var u;var f;while(f=e.exec(r)){var t=f[1],c=f[2];u=c[0]===" ";i+=t+(!o&&!u&&c!==""?"\n":"")+foldLine(c,n);o=u}return i}function foldLine(r,n){if(r===""||r[0]===" ")return r;var e=/ [^ ]/g;var i;var o=0,u,f=0,t=0;var c="";while(i=e.exec(r)){t=i.index;if(t-o>n){u=f>o?f:t;c+="\n"+r.slice(o,u);o=u+1}f=t}c+="\n";if(r.length-o>n&&f>o){c+=r.slice(o,f)+"\n"+r.slice(f+1)}else{c+=r.slice(o)}return c.slice(1)}function escapeString(r){var n="";var e,i;var o;for(var u=0;u=55296&&e<=56319){i=r.charCodeAt(u+1);if(i>=56320&&i<=57343){n+=encodeHex((e-55296)*1024+i-56320+65536);u++;continue}}o=Y[e];n+=!o&&isPrintable(e)?r[u]:o||encodeHex(e)}return n}function writeFlowSequence(r,n,e){var i="",o=r.tag,u,f;for(u=0,f=e.length;u1024)l+="? ";l+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,n,s,false,false)){continue}l+=r.dump;i+=l}r.tag=o;r.dump="{"+i+"}"}function writeBlockMapping(r,n,e,i){var u="",f=r.tag,t=Object.keys(e),c,s,p,a,h,m;if(r.sortKeys===true){t.sort()}else if(typeof r.sortKeys==="function"){t.sort(r.sortKeys)}else if(r.sortKeys){throw new o("sortKeys must be a boolean or a function")}for(c=0,s=t.length;c1024;if(h){if(r.dump&&l===r.dump.charCodeAt(0)){m+="?"}else{m+="? "}}m+=r.dump;if(h){m+=generateNextLine(r,n)}if(!writeNode(r,n+1,a,true,h)){continue}if(r.dump&&l===r.dump.charCodeAt(0)){m+=":"}else{m+=": "}m+=r.dump;u+=m}r.tag=f;r.dump=u||"{}"}function detectType(r,n,e){var i,u,f,s,l,p;u=e?r.explicitTypes:r.implicitTypes;for(f=0,s=u.length;f tag resolver accepts not "'+p+'" style')}r.dump=i}return true}}return false}function writeNode(r,n,e,i,u,f){r.tag=null;r.dump=e;if(!detectType(r,e,false)){detectType(r,e,true)}var c=t.call(r.dump);if(i){i=r.flowLevel<0||r.flowLevel>n}var s=c==="[object Object]"||c==="[object Array]",l,p;if(s){l=r.duplicates.indexOf(e);p=l!==-1}if(r.tag!==null&&r.tag!=="?"||p||r.indent!==2&&n>0){u=false}if(p&&r.usedDuplicates[l]){r.dump="*ref_"+l}else{if(s&&p&&!r.usedDuplicates[l]){r.usedDuplicates[l]=true}if(c==="[object Object]"){if(i&&Object.keys(r.dump).length!==0){writeBlockMapping(r,n,r.dump,u);if(p){r.dump="&ref_"+l+r.dump}}else{writeFlowMapping(r,n,r.dump);if(p){r.dump="&ref_"+l+" "+r.dump}}}else if(c==="[object Array]"){var a=r.noArrayIndent&&n>0?n-1:n;if(i&&r.dump.length!==0){writeBlockSequence(r,a,r.dump,u);if(p){r.dump="&ref_"+l+r.dump}}else{writeFlowSequence(r,a,r.dump);if(p){r.dump="&ref_"+l+" "+r.dump}}}else if(c==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,n,f)}}else{if(r.skipInvalid)return false;throw new o("unacceptable kind of an object to dump "+c)}if(r.tag!==null&&r.tag!=="?"){r.dump="!<"+r.tag+"> "+r.dump}}return true}function getDuplicateReferences(r,n){var e=[],i=[],o,u;inspectNode(r,e,i);for(o=0,u=i.length;o>10)+55296,(r-65536&1023)+56320)}var A=new Array(256);var O=new Array(256);for(var E=0;E<256;E++){A[E]=simpleEscapeSequence(E)?1:0;O[E]=simpleEscapeSequence(E)}function State(r,n){this.input=r;this.filename=n["filename"]||null;this.schema=n["schema"]||t;this.onWarning=n["onWarning"]||null;this.legacy=n["legacy"]||false;this.json=n["json"]||false;this.listener=n["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(r,n){return new o(n,new u(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function throwError(r,n){throw generateError(r,n)}function throwWarning(r,n){if(r.onWarning){r.onWarning.call(null,generateError(r,n))}}var F={YAML:function handleYamlDirective(r,n,e){var i,o,u;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(e.length!==1){throwError(r,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(e[0]);if(i===null){throwError(r,"ill-formed argument of the YAML directive")}o=parseInt(i[1],10);u=parseInt(i[2],10);if(o!==1){throwError(r,"unacceptable YAML version of the document")}r.version=e[0];r.checkLineBreaks=u<2;if(u!==1&&u!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,n,e){var i,o;if(e.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}i=e[0];o=e[1];if(!v.test(i)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(r.tagMap,i)){throwError(r,'there is a previously declared suffix for "'+i+'" tag handle')}if(!S.test(o)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}r.tagMap[i]=o}};function captureSegment(r,n,e,i){var o,u,f,t;if(n1){r.result+=i.repeat("\n",n-1)}}function readPlainScalar(r,n,e){var i,o,u,f,t,c,s,l,p=r.kind,a=r.result,h;h=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){return false}}r.kind="scalar";r.result="";u=f=r.position;t=false;while(h!==0){if(h===58){o=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(o)||e&&is_FLOW_INDICATOR(o)){break}}else if(h===35){i=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(i)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||e&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=r.line;s=r.lineStart;l=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=n){t=true;h=r.input.charCodeAt(r.position);continue}else{r.position=f;r.line=c;r.lineStart=s;r.lineIndent=l;break}}if(t){captureSegment(r,u,f,false);writeFoldedLines(r,r.line-c);u=f=r.position;t=false}if(!is_WHITE_SPACE(h)){f=r.position+1}h=r.input.charCodeAt(++r.position)}captureSegment(r,u,f,false);if(r.result){return true}r.kind=p;r.result=a;return false}function readSingleQuotedScalar(r,n){var e,i,o;e=r.input.charCodeAt(r.position);if(e!==39){return false}r.kind="scalar";r.result="";r.position++;i=o=r.position;while((e=r.input.charCodeAt(r.position))!==0){if(e===39){captureSegment(r,i,r.position,true);e=r.input.charCodeAt(++r.position);if(e===39){i=r.position;r.position++;o=r.position}else{return true}}else if(is_EOL(e)){captureSegment(r,i,o,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));i=o=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;o=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,n){var e,i,o,u,f,t;t=r.input.charCodeAt(r.position);if(t!==34){return false}r.kind="scalar";r.result="";r.position++;e=i=r.position;while((t=r.input.charCodeAt(r.position))!==0){if(t===34){captureSegment(r,e,r.position,true);r.position++;return true}else if(t===92){captureSegment(r,e,r.position,true);t=r.input.charCodeAt(++r.position);if(is_EOL(t)){skipSeparationSpace(r,false,n)}else if(t<256&&A[t]){r.result+=O[t];r.position++}else if((f=escapedHexLen(t))>0){o=f;u=0;for(;o>0;o--){t=r.input.charCodeAt(++r.position);if((f=fromHexCode(t))>=0){u=(u<<4)+f}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(u);r.position++}else{throwError(r,"unknown escape sequence")}e=i=r.position}else if(is_EOL(t)){captureSegment(r,e,i,true);writeFoldedLines(r,skipSeparationSpace(r,false,n));e=i=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;i=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,n){var e=true,i,o=r.tag,u,f=r.anchor,t,c,l,p,a,h={},m,g,d,w;w=r.input.charCodeAt(r.position);if(w===91){c=93;a=false;u=[]}else if(w===123){c=125;a=true;u={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=u}w=r.input.charCodeAt(++r.position);while(w!==0){skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===c){r.position++;r.tag=o;r.anchor=f;r.kind=a?"mapping":"sequence";r.result=u;return true}else if(!e){throwError(r,"missed comma between flow collection entries")}g=m=d=null;l=p=false;if(w===63){t=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(t)){l=p=true;r.position++;skipSeparationSpace(r,true,n)}}i=r.line;composeNode(r,n,s,false,true);g=r.tag;m=r.result;skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if((p||r.line===i)&&w===58){l=true;w=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,n);composeNode(r,n,s,false,true);d=r.result}if(a){storeMappingPair(r,u,h,g,m,d)}else if(l){u.push(storeMappingPair(r,null,h,g,m,d))}else{u.push(m)}skipSeparationSpace(r,true,n);w=r.input.charCodeAt(r.position);if(w===44){e=true;w=r.input.charCodeAt(++r.position)}else{e=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,n){var e,o,u=h,f=false,t=false,c=n,s=0,l=false,p,a;a=r.input.charCodeAt(r.position);if(a===124){o=false}else if(a===62){o=true}else{return false}r.kind="scalar";r.result="";while(a!==0){a=r.input.charCodeAt(++r.position);if(a===43||a===45){if(h===u){u=a===43?g:m}else{throwError(r,"repeat of a chomping mode identifier")}}else if((p=fromDecimalCode(a))>=0){if(p===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!t){c=n+p-1;t=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(a)){do{a=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(a));if(a===35){do{a=r.input.charCodeAt(++r.position)}while(!is_EOL(a)&&a!==0)}}while(a!==0){readLineBreak(r);r.lineIndent=0;a=r.input.charCodeAt(r.position);while((!t||r.lineIndentc){c=r.lineIndent}if(is_EOL(a)){s++;continue}if(r.lineIndentn)&&c!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndentn){if(composeNode(r,n,a,true,o)){if(d){m=r.result}else{g=r.result}}if(!d){storeMappingPair(r,s,p,h,m,g,u,f);h=m=g=null}skipSeparationSpace(r,true,-1);b=r.input.charCodeAt(r.position)}if(r.lineIndent>n&&b!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndentn){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndentn){h=1}else if(r.lineIndent===n){h=0}else if(r.lineIndent tag; it should be "'+b.kind+'", not "'+r.kind+'"')}if(!b.resolve(r.result)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=b.construct(r.result);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else{throwError(r,"unknown tag !<"+r.tag+">")}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||g}function readDocument(r){var n=r.position,e,i,o,u=false,f;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap={};r.anchorMap={};while((f=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);f=r.input.charCodeAt(r.position);if(r.lineIndent>0||f!==37){break}u=true;f=r.input.charCodeAt(++r.position);e=r.position;while(f!==0&&!is_WS_OR_EOL(f)){f=r.input.charCodeAt(++r.position)}i=r.input.slice(e,r.position);o=[];if(i.length<1){throwError(r,"directive name must not be less than one character in length")}while(f!==0){while(is_WHITE_SPACE(f)){f=r.input.charCodeAt(++r.position)}if(f===35){do{f=r.input.charCodeAt(++r.position)}while(f!==0&&!is_EOL(f));break}if(is_EOL(f))break;e=r.position;while(f!==0&&!is_WS_OR_EOL(f)){f=r.input.charCodeAt(++r.position)}o.push(r.input.slice(e,r.position))}if(f!==0)readLineBreak(r);if(c.call(F,i)){F[i](r,i,o)}else{throwWarning(r,'unknown document directive "'+i+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(u){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,a,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&w.test(r.input.slice(n,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position64)continue;if(n<0)return false;i+=6}return i%8===0}function constructYamlBinary(r){var n,e,o=r.replace(/[\r\n=]/g,""),u=o.length,t=f,c=0,s=[];for(n=0;n>16&255);s.push(c>>8&255);s.push(c&255)}c=c<<6|t.indexOf(o.charAt(n))}e=u%4*6;if(e===0){s.push(c>>16&255);s.push(c>>8&255);s.push(c&255)}else if(e===18){s.push(c>>10&255);s.push(c>>2&255)}else if(e===12){s.push(c>>4&255)}if(i){return i.from?i.from(s):new i(s)}return s}function representYamlBinary(r){var n="",e=0,i,o,u=r.length,t=f;for(i=0;i>18&63];n+=t[e>>12&63];n+=t[e>>6&63];n+=t[e&63]}e=(e<<8)+r[i]}o=u%3;if(o===0){n+=t[e>>18&63];n+=t[e>>12&63];n+=t[e>>6&63];n+=t[e&63]}else if(o===2){n+=t[e>>10&63];n+=t[e>>4&63];n+=t[e<<2&63];n+=t[64]}else if(o===1){n+=t[e>>2&63];n+=t[e<<4&63];n+=t[64];n+=t[64]}return n}function isBinary(r){return i&&i.isBuffer(r)}r.exports=new u("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},387:function(r,n,e){"use strict";var i=e(261);function Mark(r,n,e,i,o){this.name=r;this.buffer=n;this.position=e;this.line=i;this.column=o}Mark.prototype.getSnippet=function getSnippet(r,n){var e,o,u,f,t;if(!this.buffer)return null;r=r||4;n=n||75;e="";o=this.position;while(o>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1))===-1){o-=1;if(this.position-o>n/2-1){e=" ... ";o+=5;break}}u="";f=this.position;while(fn/2-1){u=" ... ";f-=5;break}}t=this.buffer.slice(o,f);return i.repeat(" ",r)+e+t+u+"\n"+i.repeat(" ",r+this.position-o+e.length)+"^"};Mark.prototype.toString=function toString(r){var n,e="";if(this.name){e+='in "'+this.name+'" '}e+="at line "+(this.line+1)+", column "+(this.column+1);if(!r){n=this.getSnippet();if(n){e+=":\n"+n}}return e};r.exports=Mark},394:function(r,n,e){"use strict";var i=e(747);var o=e(795);function homedir(){if(process.platform==="win32"){if(process.env.USERPROFILE){return process.env.USERPROFILE}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){return process.env.HOMEDRIVE+process.env.HOMEPATH}if(process.env.HOME){return process.env.HOME}return null}if(process.env.HOME){return process.env.HOME}var r=tryReadFileSync("/etc/passwd");var n=find(o(r),getuid());if(n){return n}var e=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(!e){return null}if(process.platform==="darwin"){return"/Users/"+e}return"/home/"+e}function find(r,n){var e=r.length;for(var i=0;i0){r+=" ";let n=true;for(const e in this.properties){if(this.properties.hasOwnProperty(e)){const i=this.properties[e];if(i){if(n){n=false}else{r+=","}r+=`${e}=${escapeProperty(i)}`}}}}r+=`${u}${escapeData(this.message)}`;return r}}function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}n.toCommandValue=toCommandValue;function escapeData(r){return toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},504:function(module){module.exports=eval("require")("encoding")},543:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},585:function(r,n,e){"use strict";var i=e(335);var o=e(300);function deprecated(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}r.exports.Type=e(205);r.exports.Schema=e(447);r.exports.FAILSAFE_SCHEMA=e(237);r.exports.JSON_SCHEMA=e(606);r.exports.CORE_SCHEMA=e(652);r.exports.DEFAULT_SAFE_SCHEMA=e(728);r.exports.DEFAULT_FULL_SCHEMA=e(478);r.exports.load=i.load;r.exports.loadAll=i.loadAll;r.exports.safeLoad=i.safeLoad;r.exports.safeLoadAll=i.safeLoadAll;r.exports.dump=o.dump;r.exports.safeDump=o.safeDump;r.exports.YAMLException=e(351);r.exports.MINIMAL_SCHEMA=e(237);r.exports.SAFE_SCHEMA=e(728);r.exports.DEFAULT_SCHEMA=e(478);r.exports.scan=deprecated("scan");r.exports.parse=deprecated("parse");r.exports.compose=deprecated("compose");r.exports.addConstructor=deprecated("addConstructor")},601:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(228));n.runSelfInstaller=u.default;async function install(r){const n=await u.default(r);if(n){return o.setFailed(`Something does wrong, self-installer exits with code ${n}`)}}n.install=install;n.default=install},605:function(r){r.exports=require("http")},606:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(237)],implicit:[e(674),e(797),e(632),e(989)]})},622:function(r){r.exports=require("path")},632:function(r,n,e){"use strict";var i=e(261);var o=e(205);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var n=r.length,e=0,i=false,o;if(!n)return false;o=r[e];if(o==="-"||o==="+"){o=r[++e]}if(o==="0"){if(e+1===n)return true;o=r[++e];if(o==="b"){e++;for(;e=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},652:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(606)]})},658:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=i(e(203));const u=i(e(0));n.downloadSelfInstaller=(()=>o.default(u.default));n.default=n.downloadSelfInstaller},674:function(r,n,e){"use strict";var i=e(205);function resolveYamlNull(r){if(r===null)return true;var n=r.length;return n===1&&r==="~"||n===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new i("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},716:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(r){return typeof r==="undefined"}r.exports=new i("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},728:function(r,n,e){"use strict";var i=e(447);r.exports=new i({include:[e(652)],implicit:[e(808),e(799)],explicit:[e(367),e(327),e(403),e(211)]})},747:function(r){r.exports=require("fs")},761:function(r){r.exports=require("zlib")},765:function(r){r.exports=require("process")},795:function(r){"use strict";r.exports=function(r){if(typeof r!=="string"){throw new Error("expected a string")}return r.split("\n").map(user).filter(Boolean)};function user(r,n){if(!r||!r.length||r.charAt(0)==="#"){return null}var e=r.split(":");return{username:e[0],password:e[1],uid:e[2],gid:e[3],gecos:e[4],homedir:e[5],shell:e[6]}}},797:function(r,n,e){"use strict";var i=e(205);function resolveYamlBoolean(r){if(r===null)return false;var n=r.length;return n===4&&(r==="true"||r==="True"||r==="TRUE")||n===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}r.exports=new i("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})},799:function(r,n,e){"use strict";var i=e(205);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},803:function(r,n,e){"use strict";var i=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});const o=e(89);const u=i(e(271));const f=i(e(897));const t=i(e(601));async function main(){const r=u.default();await t.default(r);console.log("Installation Completed!");f.default(r)}main().catch(r=>{console.error(r);o.setFailed(r)})},806:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},808:function(r,n,e){"use strict";var i=e(205);var o=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var u=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(o.exec(r)!==null)return true;if(u.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var n,e,i,f,t,c,s,l=0,p=null,a,h,m;n=o.exec(r);if(n===null)n=u.exec(r);if(n===null)throw new Error("Date resolve error");e=+n[1];i=+n[2]-1;f=+n[3];if(!n[4]){return new Date(Date.UTC(e,i,f))}t=+n[4];c=+n[5];s=+n[6];if(n[7]){l=n[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(n[9]){a=+n[10];h=+(n[11]||0);p=(a*60+h)*6e4;if(n[9]==="-")p=-p}m=new Date(Date.UTC(e,i,f,t,c,s,l));if(p)m.setTime(m.getTime()-p);return m}function representYamlTimestamp(r){return r.toISOString()}r.exports=new i("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},835:function(r){r.exports=require("url")},839:function(r,n,e){"use strict";function __export(r){for(var e in r)if(!n.hasOwnProperty(e))n[e]=r[e]}Object.defineProperty(n,"__esModule",{value:true});__export(e(0));__export(e(658))},840:function(r,n,e){"use strict";var i=e(585);r.exports=i},897:function(r,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:true});const i=e(89);function setOutputs(r){i.addPath(r.binDest);i.setOutput("dest",r.dest);i.setOutput("bin_dest",r.binDest)}n.setOutputs=setOutputs;n.default=setOutputs},966:function(r,n,e){var i=e(191);var o=e(622);r.exports=function expandTilde(r){var n=i();if(r.charCodeAt(0)===126){if(r.charCodeAt(1)===43){return o.join(process.cwd(),r.slice(2))}return n?o.join(n,r.slice(1)):r}return r}},989:function(r,n,e){"use strict";var i=e(261);var o=e(205);var u=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!u.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var n,e,i,o;n=r.replace(/_/g,"").toLowerCase();e=n[0]==="-"?-1:1;o=[];if("+-".indexOf(n[0])>=0){n=n.slice(1)}if(n===".inf"){return e===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(n===".nan"){return NaN}else if(n.indexOf(":")>=0){n.split(":").forEach(function(r){o.unshift(parseFloat(r,10))});n=0;i=1;o.forEach(function(r){n+=r*i;i*=60});return e*n}return e*parseFloat(n,10)}var f=/^[-+]?[0-9]+e/;function representYamlFloat(r,n){var e;if(isNaN(r)){switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(i.isNegativeZero(r)){return"-0.0"}e=r.toString(10);return f.test(e)?e.replace("e",".e"):e}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||i.isNegativeZero(r))}r.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})}}); \ No newline at end of file diff --git a/package.json b/package.json index 020857e..89ef23d 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "private": true, "scripts": { + "build:schemas": "ts-schema-autogen generate", "build:ncc": "ncc build --minify --no-source-map-register --no-cache dist/tsc/index.js --out dist/", - "build": "tsc && pnpm run build:ncc", + "build": "pnpm run build:schemas && tsc && pnpm run build:ncc", "start": "pnpm run build && sh ./run.sh" }, "dependencies": { @@ -17,6 +18,7 @@ }, "devDependencies": { "typescript": "^3.8.3", + "@ts-schema-autogen/cli": "^0.1.2", "@zeit/ncc": "^0.22.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fb3c880..3cc7d9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,7 @@ dependencies: js-yaml: 3.13.1 node-fetch: 2.6.0 devDependencies: + '@ts-schema-autogen/cli': 0.1.2 '@zeit/ncc': 0.22.1 typescript: 3.8.3 lockfileVersion: 5.1 @@ -16,14 +17,170 @@ packages: dev: false resolution: integrity: sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg== + /@ts-schema-autogen/cli/0.1.2: + dependencies: + '@ts-schema-autogen/main': 0.1.1 + '@types/fs-extra': 8.1.0 + '@types/node': 13.13.5 + '@types/yargs': 15.0.4 + fs-extra: 8.1.0 + tslib: 1.11.2 + typescript-json-schema: 0.42.0 + yargs: 15.3.1 + dev: true + hasBin: true + resolution: + integrity: sha512-61aIkJh7RDDNLCQJtp++1pL/LWlPAI9dxgWyhXycyRm4TRaTVaRBOoxTVnN0IVT+akdhWeiXkhNkCzG6Vd5zAw== + /@ts-schema-autogen/lib/0.1.1: + dependencies: + '@ts-schema-autogen/status': 0.1.1 + '@ts-schema-autogen/types': 0.1.1 + '@ts-schema-autogen/utils': 0.0.1 + '@ts-schema-autogen/validate': 0.1.1 + '@tsfun/object': 0.0.17 + '@tsfun/result': 0.0.16 + '@types/js-yaml': 3.12.3 + '@types/node': 13.13.5 + better-path-join: 0.0.1 + fast-traverse: 0.1.6 + js-yaml: 3.13.1 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-1oOQ9lbGnA3RVfIMiX1thvC0OEvTpvuTyLC6kwaBm8CnOBSFsxWUtoQ9ceyVe/otOqZL4SoucMmbJ3kOUnK7EQ== + /@ts-schema-autogen/main/0.1.1: + dependencies: + '@ts-schema-autogen/lib': 0.1.1 + '@ts-schema-autogen/status': 0.1.1 + '@ts-schema-autogen/types': 0.1.1 + '@ts-schema-autogen/utils': 0.0.1 + '@tsfun/object': 0.0.17 + '@tsfun/pipe': 0.0.11 + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-IC193iebvbbERdx2DGugDq97ne4Fn+zXNVqTc40QuyTbzTGBES6+DnSfI3t1e2f/jX0xGT1e6pDMN8DbdrK1Hw== + /@ts-schema-autogen/schemas/0.1.1: + dependencies: + '@ts-schema-autogen/types': 0.1.1 + '@types/node': 13.13.5 + exec-once: 0.1.6 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-cHzhHPJsCQbZCYetSpxRcIEB17MLDOUnuxZiuZ0Yn1BRS72qMwgXqCDckMgGuf9TAsfbkBxUiOIT0C8S7FPYyw== + /@ts-schema-autogen/status/0.1.1: + dependencies: + '@ts-schema-autogen/types': 0.1.1 + '@ts-schema-autogen/utils': 0.0.1 + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-zN5KSkk9HjrsgCRFiENYUL7K/fZvK/afQolfSDrqj3nnyuYzRazIn/i2fV5pgTrdEKG3fK/95Zznko7evtK2ow== + /@ts-schema-autogen/types/0.1.1: + dependencies: + '@ts-schema-autogen/utils': 0.0.1 + '@types/node': 13.13.5 + tslib: 1.11.2 + typescript-json-schema: 0.42.0 + dev: true + resolution: + integrity: sha512-ePh2vU49xe8Tb4gXytOFDtI/dtSVzQpT1fp5WlyS4KwADZH4Gplj5c3M9t0m7bXl07qUVw5HnF7O6G7iliQ/XQ== + /@ts-schema-autogen/utils/0.0.1: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-ASFLu03+zcRBaVAeRCTP84WvuHxmpGiksORB8QpE3nOmWC9m+f/dDRTvgTq/t3bNIYVSe1vKs4LutXX5pjhdjA== + /@ts-schema-autogen/validate/0.1.1: + dependencies: + '@ts-schema-autogen/schemas': 0.1.1 + '@ts-schema-autogen/types': 0.1.1 + '@tsfun/result': 0.0.16 + '@types/node': 13.13.5 + ajv: 6.12.0 + exec-once: 0.1.6 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-5h1xEHsCBk4JZeecLATpEDvCzuQifqA6YzmlEu2C1u8zEMNpv6Y49Yw7ABDGOnam8HQVdnCG6QggKVjVE4GyJQ== + /@tsfun/object/0.0.17: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + utility-types: 3.10.0 + dev: true + resolution: + integrity: sha512-H/hRAlGWkoui1ZqIX2iPSQdK07mUF7QZwIkyY5SzwBIe1jVkSRNXmHtm9WvWMuoaGCr3peCZGXphximX3DEzig== + /@tsfun/pipe/0.0.11: + dependencies: + '@tsfun/tap': 0.0.10 + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + engines: + node: '>= 8.9.0' + resolution: + integrity: sha512-jL88eyhDR/Pena+eBzY9bw8SOED9nET2QPNSgvXpz4XK9t2CBmwtu6YUPzdZCBG6RTSZoQV5VKmsXu4255qVaA== + /@tsfun/prv-option-result-common/0.0.11: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + engines: + node: '>= 8.9.0' + resolution: + integrity: sha512-AIp2Oygr9WD12BG4p+fUEhyGtPnchRVALahzDab2eobkD2IhxRnHsKZh4J3v84faEIuXbnpdfALwGkzaOcgkPA== + /@tsfun/prv-types/0.0.6: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-s97gvRX2SjGTdU+Odsi6RgsVFi+xNOx3T6Jew2mo7m7Wj6eJmM0HB0HlFPmwIIi2MtXIpSr71TZmRVcMeU3Atw== + /@tsfun/result/0.0.16: + dependencies: + '@tsfun/prv-option-result-common': 0.0.11 + '@tsfun/prv-types': 0.0.6 + '@tsfun/tap': 0.0.10 + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + engines: + node: '>= 8.9.0' + resolution: + integrity: sha512-lUpVISAm0RUxRdyVUuAOLBe7ArdrQkepdLz4nML0a/2/WvrDsAIn2PIdRL3eZXqqdyhS2dy+ot5E5vc/RNWOEQ== + /@tsfun/tap/0.0.10: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-ArfW5g+1BxUXhqWOCOceiR3iviWn6PvDjOHzSBCCw3luYlVJ8JwYMcvj9ZXITBbP33uM8NKbxwzjRGGVckXLdg== + /@types/color-name/1.1.1: + dev: true + resolution: + integrity: sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== /@types/expand-tilde/2.0.0: dev: false resolution: integrity: sha512-17h/6MRHoetV2QVUVnUfrmaFCXNIFJ3uDJmXlklX2xDtlEb1W0OXLgP+qwND2Ibg/PtQfQi0vx19KGuPayjLiw== + /@types/fs-extra/8.1.0: + dependencies: + '@types/node': 13.13.5 + dev: true + resolution: + integrity: sha512-UoOfVEzAUpeSPmjm7h1uk5MH6KZma2z2O7a75onTGjnNvAvMVrPzPL/vBbT65iIGHWj6rokwfmYcmxmlSf2uwg== /@types/js-yaml/3.12.3: - dev: false resolution: integrity: sha512-otRe77JNNWzoVGLKw8TCspKswRoQToys4tuL6XYVBFxjgeM0RUrx7m3jkaTdxILxeGry3zM8mGYkGXMeQ02guA== + /@types/json-schema/7.0.4: + dev: true + resolution: + integrity: sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA== /@types/node-fetch/2.5.7: dependencies: '@types/node': 13.13.5 @@ -32,24 +189,132 @@ packages: resolution: integrity: sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw== /@types/node/13.13.5: - dev: false resolution: integrity: sha512-3ySmiBYJPqgjiHA7oEaIo2Rzz0HrOZ7yrNO5HWyaE5q0lQ3BppDZ3N53Miz8bw2I7gh1/zir2MGVZBvpb1zq9g== + /@types/yargs-parser/15.0.0: + dev: true + resolution: + integrity: sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw== + /@types/yargs/15.0.4: + dependencies: + '@types/yargs-parser': 15.0.0 + dev: true + resolution: + integrity: sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg== /@zeit/ncc/0.22.1: dev: true hasBin: true resolution: integrity: sha512-Qq3bMuonkcnV/96jhy9SQYdh39NXHxNMJ1O31ZFzWG9n52fR2DLtgrNzhj/ahlEjnBziMLGVWDbaS9sf03/fEw== + /ajv/6.12.0: + dependencies: + fast-deep-equal: 3.1.1 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.2.2 + dev: true + resolution: + integrity: sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw== + /ansi-regex/4.1.0: + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== + /ansi-regex/5.0.0: + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + /ansi-styles/3.2.1: + dependencies: + color-convert: 1.9.3 + dev: true + engines: + node: '>=4' + resolution: + integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + /ansi-styles/4.2.1: + dependencies: + '@types/color-name': 1.1.1 + color-convert: 2.0.1 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== /argparse/1.0.10: dependencies: sprintf-js: 1.0.3 - dev: false resolution: integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== /asynckit/0.4.0: dev: false resolution: integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k= + /balanced-match/1.0.0: + dev: true + resolution: + integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + /better-path-join/0.0.1: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-JIv4V7rh19/Hg0O5I0l8eSobC3F+aUWaL9D9QQKAKFw4Qj+whdRrlRejrYICPS2NEJ/2vsDjhKur3iFhQf49QQ== + /brace-expansion/1.1.11: + dependencies: + balanced-match: 1.0.0 + concat-map: 0.0.1 + dev: true + resolution: + integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + /camelcase/5.3.1: + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + /cliui/5.0.0: + dependencies: + string-width: 3.1.0 + strip-ansi: 5.2.0 + wrap-ansi: 5.1.0 + dev: true + resolution: + integrity: sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== + /cliui/6.0.0: + dependencies: + string-width: 4.2.0 + strip-ansi: 6.0.0 + wrap-ansi: 6.2.0 + dev: true + resolution: + integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + /color-convert/1.9.3: + dependencies: + color-name: 1.1.3 + dev: true + resolution: + integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + /color-convert/2.0.1: + dependencies: + color-name: 1.1.4 + dev: true + engines: + node: '>=7.0.0' + resolution: + integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + /color-name/1.1.3: + dev: true + resolution: + integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + /color-name/1.1.4: + dev: true + resolution: + integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== /combined-stream/1.0.8: dependencies: delayed-stream: 1.0.0 @@ -58,19 +323,43 @@ packages: node: '>= 0.8' resolution: integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + /concat-map/0.0.1: + dev: true + resolution: + integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + /decamelize/1.2.0: + dev: true + engines: + node: '>=0.10.0' + resolution: + integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= /delayed-stream/1.0.0: dev: false engines: node: '>=0.4.0' resolution: integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + /emoji-regex/7.0.3: + dev: true + resolution: + integrity: sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + /emoji-regex/8.0.0: + dev: true + resolution: + integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== /esprima/4.0.1: - dev: false engines: node: '>=4' hasBin: true resolution: integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + /exec-once/0.1.6: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-DMCRTmVoGgGJLS+Z7NfaV53QiQTi8XedoBNVWsl5S7ZQGgt587MOKqlu8k/ybtkEEVjkl4RjO4REOJv4v2ZBxw== /expand-tilde/2.0.2: dependencies: homedir-polyfill: 1.0.3 @@ -79,6 +368,38 @@ packages: node: '>=0.10.0' resolution: integrity: sha1-l+gBqgUt8CRU3kawK/YhZCzchQI= + /fast-deep-equal/3.1.1: + dev: true + resolution: + integrity: sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== + /fast-json-stable-stringify/2.1.0: + dev: true + resolution: + integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + /fast-traverse/0.1.6: + dependencies: + '@types/node': 13.13.5 + tslib: 1.11.2 + dev: true + resolution: + integrity: sha512-/5Ati6Qr9r++gG4R6ANxYH8RxQkZTrUDQF6EuSShgJCIrluPrvVSQRDpVl6SA4V/5nFALlF15OfXG1A3U3U6Mw== + /find-up/3.0.0: + dependencies: + locate-path: 3.0.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + /find-up/4.1.0: + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== /form-data/3.0.0: dependencies: asynckit: 0.4.0 @@ -89,6 +410,41 @@ packages: node: '>= 6' resolution: integrity: sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg== + /fs-extra/8.1.0: + dependencies: + graceful-fs: 4.2.3 + jsonfile: 4.0.0 + universalify: 0.1.2 + dev: true + engines: + node: '>=6 <7 || >=8' + resolution: + integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + /fs.realpath/1.0.0: + dev: true + resolution: + integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + /get-caller-file/2.0.5: + dev: true + engines: + node: 6.* || 8.* || >= 10.* + resolution: + integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + /glob/7.1.6: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.0.4 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + resolution: + integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + /graceful-fs/4.2.3: + dev: true + resolution: + integrity: sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ== /homedir-polyfill/1.0.3: dependencies: parse-passwd: 1.0.0 @@ -97,14 +453,73 @@ packages: node: '>=0.10.0' resolution: integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== + /inflight/1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + resolution: + integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + /inherits/2.0.4: + dev: true + resolution: + integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + /is-fullwidth-code-point/2.0.0: + dev: true + engines: + node: '>=4' + resolution: + integrity: sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + /is-fullwidth-code-point/3.0.0: + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== /js-yaml/3.13.1: dependencies: argparse: 1.0.10 esprima: 4.0.1 - dev: false hasBin: true resolution: integrity: sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + /json-schema-traverse/0.4.1: + dev: true + resolution: + integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + /json-stable-stringify/1.0.1: + dependencies: + jsonify: 0.0.0 + dev: true + resolution: + integrity: sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8= + /jsonfile/4.0.0: + dev: true + optionalDependencies: + graceful-fs: 4.2.3 + resolution: + integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + /jsonify/0.0.0: + dev: true + resolution: + integrity: sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM= + /locate-path/3.0.0: + dependencies: + p-locate: 3.0.0 + path-exists: 3.0.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + /locate-path/5.0.0: + dependencies: + p-locate: 4.1.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== /mime-db/1.44.0: dev: false engines: @@ -119,22 +534,152 @@ packages: node: '>= 0.6' resolution: integrity: sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w== + /minimatch/3.0.4: + dependencies: + brace-expansion: 1.1.11 + dev: true + resolution: + integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== /node-fetch/2.6.0: dev: false engines: node: 4.x || >=6.0.0 resolution: integrity: sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA== + /once/1.4.0: + dependencies: + wrappy: 1.0.2 + dev: true + resolution: + integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + /p-limit/2.3.0: + dependencies: + p-try: 2.2.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + /p-locate/3.0.0: + dependencies: + p-limit: 2.3.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + /p-locate/4.1.0: + dependencies: + p-limit: 2.3.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + /p-try/2.2.0: + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== /parse-passwd/1.0.0: dev: false engines: node: '>=0.10.0' resolution: integrity: sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= + /path-exists/3.0.0: + dev: true + engines: + node: '>=4' + resolution: + integrity: sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + /path-exists/4.0.0: + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + /path-is-absolute/1.0.1: + dev: true + engines: + node: '>=0.10.0' + resolution: + integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + /punycode/2.1.1: + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + /require-directory/2.1.1: + dev: true + engines: + node: '>=0.10.0' + resolution: + integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + /require-main-filename/2.0.0: + dev: true + resolution: + integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + /set-blocking/2.0.0: + dev: true + resolution: + integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc= /sprintf-js/1.0.3: - dev: false resolution: integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + /string-width/3.1.0: + dependencies: + emoji-regex: 7.0.3 + is-fullwidth-code-point: 2.0.0 + strip-ansi: 5.2.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + /string-width/4.2.0: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + /strip-ansi/5.2.0: + dependencies: + ansi-regex: 4.1.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + /strip-ansi/6.0.0: + dependencies: + ansi-regex: 5.0.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + /tslib/1.11.2: + dev: true + resolution: + integrity: sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg== + /typescript-json-schema/0.42.0: + dependencies: + '@types/json-schema': 7.0.4 + glob: 7.1.6 + json-stable-stringify: 1.0.1 + typescript: 3.8.3 + yargs: 14.2.3 + dev: true + hasBin: true + resolution: + integrity: sha512-9WO+lVmlph7Ecb7lPd9tU84XFUQh44kpAf3cWe/Ym4G5EKw/SS6XGpi1DZDthvxqkIdNSDlWi7FhKfxuIV/3yw== /typescript/3.8.3: dev: true engines: @@ -142,8 +687,109 @@ packages: hasBin: true resolution: integrity: sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w== + /universalify/0.1.2: + dev: true + engines: + node: '>= 4.0.0' + resolution: + integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + /uri-js/4.2.2: + dependencies: + punycode: 2.1.1 + dev: true + resolution: + integrity: sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + /utility-types/3.10.0: + dev: true + engines: + node: '>= 4' + resolution: + integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg== + /which-module/2.0.0: + dev: true + resolution: + integrity: sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + /wrap-ansi/5.1.0: + dependencies: + ansi-styles: 3.2.1 + string-width: 3.1.0 + strip-ansi: 5.2.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== + /wrap-ansi/6.2.0: + dependencies: + ansi-styles: 4.2.1 + string-width: 4.2.0 + strip-ansi: 6.0.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + /wrappy/1.0.2: + dev: true + resolution: + integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + /y18n/4.0.0: + dev: true + resolution: + integrity: sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + /yargs-parser/15.0.1: + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + dev: true + resolution: + integrity: sha512-0OAMV2mAZQrs3FkNpDQcBk1x5HXb8X4twADss4S0Iuk+2dGnLOE/fRHrsYm542GduMveyA77OF4wrNJuanRCWw== + /yargs-parser/18.1.3: + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + dev: true + engines: + node: '>=6' + resolution: + integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + /yargs/14.2.3: + dependencies: + cliui: 5.0.0 + decamelize: 1.2.0 + find-up: 3.0.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 3.1.0 + which-module: 2.0.0 + y18n: 4.0.0 + yargs-parser: 15.0.1 + dev: true + resolution: + integrity: sha512-ZbotRWhF+lkjijC/VhmOT9wSgyBQ7+zr13+YLkhfsSiTriYsMzkTUFP18pFhWwBeMa5gUc1MzbhrO6/VB7c9Xg== + /yargs/15.3.1: + dependencies: + cliui: 6.0.0 + decamelize: 1.2.0 + find-up: 4.1.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 4.2.0 + which-module: 2.0.0 + y18n: 4.0.0 + yargs-parser: 18.1.3 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA== specifiers: '@actions/core': ^1.2.4 + '@ts-schema-autogen/cli': ^0.1.2 '@types/expand-tilde': ^2.0.0 '@types/js-yaml': ^3.12.3 '@types/node': ^13.13.5 diff --git a/src/inputs/index.ts b/src/inputs/index.ts index c99b619..44da578 100644 --- a/src/inputs/index.ts +++ b/src/inputs/index.ts @@ -8,7 +8,7 @@ interface RunInstall { readonly args?: readonly string[] } -type RunInstallInput = +export type RunInstallInput = | null | boolean | RunInstall diff --git a/src/inputs/run-install-input.schema.autogen.json b/src/inputs/run-install-input.schema.autogen.json new file mode 100644 index 0000000..f9f9305 --- /dev/null +++ b/src/inputs/run-install-input.schema.autogen.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://raw.githubusercontent.com/ksxnodeapps/ts-schema-autogen/master/packages/schemas/config.schema.json", + "instruction": { + "compilerOptions": { + "strict": true, + "esModuleInterop": true + }, + "input": "index.ts", + "symbol": "RunInstallInput", + "output": "run-install-input.schema.json" + } +} diff --git a/src/inputs/run-install-input.schema.json b/src/inputs/run-install-input.schema.json new file mode 100644 index 0000000..4a84219 --- /dev/null +++ b/src/inputs/run-install-input.schema.json @@ -0,0 +1,39 @@ +{ + "anyOf": [ + { + "$ref": "#/definitions/RunInstall" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/RunInstall" + } + }, + { + "type": [ + "null", + "boolean" + ] + } + ], + "definitions": { + "RunInstall": { + "type": "object", + "properties": { + "recursive": { + "type": "boolean" + }, + "cwd": { + "type": "string" + }, + "args": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" +}