mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2026-11-03 11:40:17 -07:00
chore: update generated content
This commit is contained in:
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
import './sourcemap-register.cjs';import{createRequire as e}from"module";var A={4914:function(e,A,s){var r=this&&this.__createBinding||(Object.create?function(e,A,s,r){if(r===undefined)r=s;var i=Object.getOwnPropertyDescriptor(A,s);if(!i||("get"in i?!A.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return A[s]}}}Object.defineProperty(e,r,i)}:function(e,A,s,r){if(r===undefined)r=s;e[r]=A[s]});var i=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))r(A,e,s);i(A,e);return A};Object.defineProperty(A,"__esModule",{value:true});A.issue=A.issueCommand=void 0;const o=n(s(857));const l=s(302);function issueCommand(e,A,s){const r=new Command(e,A,s);process.stdout.write(r.toString()+o.EOL)}A.issueCommand=issueCommand;function issue(e,A=""){issueCommand(e,{},A)}A.issue=issue;const u="::";class Command{constructor(e,A,s){if(!e){e="missing.command"}this.command=e;this.properties=A;this.message=s}toString(){let e=u+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let A=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const r=this.properties[s];if(r){if(A){A=false}else{e+=","}e+=`${s}=${escapeProperty(r)}`}}}}e+=`${u}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,l.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,l.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7484:function(e,A,s){var r=this&&this.__createBinding||(Object.create?function(e,A,s,r){if(r===undefined)r=s;var i=Object.getOwnPropertyDescriptor(A,s);if(!i||("get"in i?!A.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return A[s]}}}Object.defineProperty(e,r,i)}:function(e,A,s,r){if(r===undefined)r=s;e[r]=A[s]});var i=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(e!=null)for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s))r(A,e,s);i(A,e);return A};var o=this&&this.__awaiter||function(e,A,s,r){function adopt(e){return e instanceof s?e:new s((function(A){A(e)}))}return new(s||(s=Promise))((function(s,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){i(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,A||[])).next())}))};Object.defineProperty(A,"__esModule",{value:true});A.platform=A.toPlatformPath=A.toWin32Path=A.toPosixPath=A.markdownSummary=A.summary=A.getIDToken=A.getState=A.saveState=A.group=A.endGroup=A.startGroup=A.info=A.notice=A.warning=A.error=A.debug=A.isDebug=A.setFailed=A.setCommandEcho=A.setOutput=A.getBooleanInput=A.getMultilineInput=A.getInput=A.addPath=A.setSecret=A.exportVariable=A.ExitCode=void 0;const l=s(4914);const u=s(4753);const g=s(302);const E=n(s(857));const Q=n(s(6928));const C=s(5306);var B;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(B||(A.ExitCode=B={}));function exportVariable(e,A){const s=(0,g.toCommandValue)(A);process.env[e]=s;const r=process.env["GITHUB_ENV"]||"";if(r){return(0,u.issueFileCommand)("ENV",(0,u.prepareKeyValueMessage)(e,A))}(0,l.issueCommand)("set-env",{name:e},s)}A.exportVariable=exportVariable;function setSecret(e){(0,l.issueCommand)("add-mask",{},e)}A.setSecret=setSecret;function addPath(e){const A=process.env["GITHUB_PATH"]||"";if(A){(0,u.issueFileCommand)("PATH",e)}else{(0,l.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${Q.delimiter}${process.env["PATH"]}`}A.addPath=addPath;function getInput(e,A){const s=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(A&&A.required&&!s){throw new Error(`Input required and not supplied: ${e}`)}if(A&&A.trimWhitespace===false){return s}return s.trim()}A.getInput=getInput;function getMultilineInput(e,A){const s=getInput(e,A).split("\n").filter((e=>e!==""));if(A&&A.trimWhitespace===false){return s}return s.map((e=>e.trim()))}A.getMultilineInput=getMultilineInput;function getBooleanInput(e,A){const s=["true","True","TRUE"];const r=["false","False","FALSE"];const i=getInput(e,A);if(s.includes(i))return true;if(r.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}A.getBooleanInput=getBooleanInput;function setOutput(e,A){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return(0,u.issueFileCommand)("OUTPUT",(0,u.prepareKeyValueMessage)(e,A))}procesLine truncated
|
import './sourcemap-register.cjs';import{createRequire as e}from"module";var A={5207:function(e,A,s){var r=this&&this.__createBinding||(Object.create?function(e,A,s,r){if(r===undefined)r=s;Object.defineProperty(e,r,{enumerable:true,get:function(){return A[s]}})}:function(e,A,s,r){if(r===undefined)r=s;e[r]=A[s]});var n=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))r(A,e,s);n(A,e);return A};var o=this&&this.__awaiter||function(e,A,s,r){function adopt(e){return e instanceof s?e:new s((function(A){A(e)}))}return new(s||(s=Promise))((function(s,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,A||[])).next())}))};var l;Object.defineProperty(A,"__esModule",{value:true});A.getCmdPath=A.tryGetExecutablePath=A.isRooted=A.isDirectory=A.exists=A.IS_WINDOWS=A.unlink=A.symlink=A.stat=A.rmdir=A.rename=A.readlink=A.readdir=A.mkdir=A.lstat=A.copyFile=A.chmod=void 0;const u=i(s(9896));const g=i(s(6928));l=u.promises,A.chmod=l.chmod,A.copyFile=l.copyFile,A.lstat=l.lstat,A.mkdir=l.mkdir,A.readdir=l.readdir,A.readlink=l.readlink,A.rename=l.rename,A.rmdir=l.rmdir,A.stat=l.stat,A.symlink=l.symlink,A.unlink=l.unlink;A.IS_WINDOWS=process.platform==="win32";function exists(e){return o(this,void 0,void 0,(function*(){try{yield A.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}A.exists=exists;function isDirectory(e,s=false){return o(this,void 0,void 0,(function*(){const r=s?yield A.stat(e):yield A.lstat(e);return r.isDirectory()}))}A.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(A.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}A.isRooted=isRooted;function tryGetExecutablePath(e,s){return o(this,void 0,void 0,(function*(){let r=undefined;try{r=yield A.stat(e)}catch(A){if(A.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${A}`)}}if(r&&r.isFile()){if(A.IS_WINDOWS){const A=g.extname(e).toUpperCase();if(s.some((e=>e.toUpperCase()===A))){return e}}else{if(isUnixExecutable(r)){return e}}}const n=e;for(const i of s){e=n+i;r=undefined;try{r=yield A.stat(e)}catch(A){if(A.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${A}`)}}if(r&&r.isFile()){if(A.IS_WINDOWS){try{const s=g.dirname(e);const r=g.basename(e).toUpperCase();for(const n of yield A.readdir(s)){if(r===n.toUpperCase()){e=g.join(s,n);break}}}catch(A){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${A}`)}return e}else{if(isUnixExecutable(r)){return e}}}}return""}))}A.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(A.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}A.getCmdPath=getCmdPath},4994:function(e,A,s){var r=this&&this.__createBinding||(Object.create?function(e,A,s,r){if(r===undefined)r=s;Object.defineProperty(e,r,{enumerable:true,get:function(){return A[s]}})}:function(e,A,s,r){if(r===undefined)r=s;e[r]=A[s]});var n=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(e!=null)for(var s in e)if(s!=="default"&&Object.hasOwnProperty.call(e,s))r(A,e,s);n(A,e);return A};var o=this&&this.__awaiter||function(e,A,s,r){function adopt(e){return e instanceof s?e:new s((function(A){A(e)}))}return new(s||(s=Promise))((function(s,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,A||[])).next())}))};Object.defineProperty(A,"__esModule",{value:true});A.findInPath=A.which=A.mkdirP=A.rmRF=A.mv=A.cp=void 0;const l=s(2613);const u=i(s(5317));const g=i(s(6928));const E=s(9023);const Q=i(s(5207));const C=E.promisify(u.exec);const B=E.promisify(u.execFile);function cp(e,A,s={}){return o(this,void 0,void 0,(function*(){const{force:r,recursive:n,copySourceDirectory:i}=readCopyOptions(s);const o=(yield Q.exists(A))?yield Q.stat(A):null;if(o&&o.isFile()&&!r){return}const l=o&&o.isDirectory()&&i?g.join(A,g.basename(e)):A;if(!(yield Q.exisLine truncated
|
||||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const r=[];const i=new Uint8Array([13,10]);E=0;let n=false;for(const[A,o]of e){if(typeof o==="string"){const e=N.encode(s+`; name="${escape(normalizeLinefeeds(A))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);r.push(e);E+=e.byteLength}else{const e=N.encode(`${s}; name="${escape(normalizeLinefeeds(A))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);r.push(e,o,i);if(typeof o.size==="number"){E+=e.byteLength+o.size+i.byteLength}else{n=true}}}const o=N.encode(`--${A}--\r\n`);r.push(o);E+=o.byteLength;if(n){E=null}g=e;u=async function*(){for(const e of r){if(e.stream){yield*e.stream()}else{yield e}}};Q=`multipart/form-data; boundary=${A}`}else if(n(e)){g=e;E=e.size;if(e.type){Q=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(A){throw new TypeError("keepalive")}if(r.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=e instanceof ReadableStream?e:i(e)}if(typeof g==="string"||r.isBuffer(g)){E=Buffer.byteLength(g)}if(u!=null){let A;s=new ReadableStream({async start(){A=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:i}=await A.next();if(i){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!R(s)){const A=new Uint8Array(r);if(A.byteLength){e.enqueue(A)}}}return e.desiredSize>0},async cancel(e){await A.return()},type:"bytes"})}const C={stream:s,source:g,length:E};return[C,Q]}function safelyExtractBody(e,A=false){if(e instanceof ReadableStream){w(!r.isDisturbed(e),"The body has already been consumed.");w(!e.locked,"The stream is locked.")}return extractBody(e,A)}function cloneBody(e,A){const[s,r]=A.stream.tee();A.stream=s;return{stream:r,length:A.length,source:A.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const A={blob(){return consumeBody(this,(e=>{let A=bodyMimeType(this);if(A===null){A=""}else if(A){A=S(A)}return new p([e],{type:A})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,Q,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const A=bodyMimeType(this);if(A!==null){switch(A.essence){case"multipart/form-data":{const s=k(e,A);if(s==="failure"){throw new TypeError("Failed to parse body as FormData.")}const r=new C;r[B]=s;return r}case"application/x-www-form-urlencoded":{const A=new URLSearchParams(e.toString());const s=new C;for(const[e,r]of A){s.append(e,r)}return s}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return A}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,A,s){I.brandCheck(e,s);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[B]);const r=u();const errorSteps=e=>r.reject(e);const successSteps=e=>{try{r.resolve(A(e))}catch(e){errorSteps(e)}};if(e[B].body==null){successSteps(Buffer.allocUnsafe(0));return r.promise}await g(e[B].body,successSteps,errorSteps);return r.promise}function bodyUnusable(e){const A=e[B].body;return A!=null&&(A.stream.locked||r.isDisturbed(A.stream))}function parseJSONFromBytes(e){return JSON.parse(Q(e))}function bodyMimeType(e){const A=e[B].headersList;const s=E(A);if(s==="failure"){return null}return s}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:v,hasFinalizationRegistry:M,bodyUnusable:bodyUnusable}},4495:e=>{const A=["GET","HEAD","POST"];const s=new Set(A);const r=[101,204,205,304];const i=[301,302,303,307,308];const n=new Set(i);const o=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const l=new Set(o);const u=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const g=new Set(u);const E=["follow","manual","error"];const Q=["GET","HEAD","OPTIONS","TRACE"];const C=new Set(Q);const B=["navigate","same-origin","no-cors","cors"];const I=["omit","same-origin","include"];const p=["default","no-store","reload","no-cache","force-cLine truncated
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const r=[];const n=new Uint8Array([13,10]);E=0;let i=false;for(const[A,o]of e){if(typeof o==="string"){const e=N.encode(s+`; name="${escape(normalizeLinefeeds(A))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);r.push(e);E+=e.byteLength}else{const e=N.encode(`${s}; name="${escape(normalizeLinefeeds(A))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);r.push(e,o,n);if(typeof o.size==="number"){E+=e.byteLength+o.size+n.byteLength}else{i=true}}}const o=N.encode(`--${A}--\r\n`);r.push(o);E+=o.byteLength;if(i){E=null}g=e;u=async function*(){for(const e of r){if(e.stream){yield*e.stream()}else{yield e}}};Q=`multipart/form-data; boundary=${A}`}else if(i(e)){g=e;E=e.size;if(e.type){Q=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(A){throw new TypeError("keepalive")}if(r.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=e instanceof ReadableStream?e:n(e)}if(typeof g==="string"||r.isBuffer(g)){E=Buffer.byteLength(g)}if(u!=null){let A;s=new ReadableStream({async start(){A=u(e)[Symbol.asyncIterator]()},async pull(e){const{value:r,done:n}=await A.next();if(n){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!R(s)){const A=new Uint8Array(r);if(A.byteLength){e.enqueue(A)}}}return e.desiredSize>0},async cancel(e){await A.return()},type:"bytes"})}const C={stream:s,source:g,length:E};return[C,Q]}function safelyExtractBody(e,A=false){if(e instanceof ReadableStream){w(!r.isDisturbed(e),"The body has already been consumed.");w(!e.locked,"The stream is locked.")}return extractBody(e,A)}function cloneBody(e,A){const[s,r]=A.stream.tee();A.stream=s;return{stream:r,length:A.length,source:A.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const A={blob(){return consumeBody(this,(e=>{let A=bodyMimeType(this);if(A===null){A=""}else if(A){A=k(A)}return new p([e],{type:A})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,Q,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const A=bodyMimeType(this);if(A!==null){switch(A.essence){case"multipart/form-data":{const s=S(e,A);if(s==="failure"){throw new TypeError("Failed to parse body as FormData.")}const r=new C;r[B]=s;return r}case"application/x-www-form-urlencoded":{const A=new URLSearchParams(e.toString());const s=new C;for(const[e,r]of A){s.append(e,r)}return s}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return A}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,A,s){I.brandCheck(e,s);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[B]);const r=u();const errorSteps=e=>r.reject(e);const successSteps=e=>{try{r.resolve(A(e))}catch(e){errorSteps(e)}};if(e[B].body==null){successSteps(Buffer.allocUnsafe(0));return r.promise}await g(e[B].body,successSteps,errorSteps);return r.promise}function bodyUnusable(e){const A=e[B].body;return A!=null&&(A.stream.locked||r.isDisturbed(A.stream))}function parseJSONFromBytes(e){return JSON.parse(Q(e))}function bodyMimeType(e){const A=e[B].headersList;const s=E(A);if(s==="failure"){return null}return s}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:T,hasFinalizationRegistry:M,bodyUnusable:bodyUnusable}},4495:e=>{const A=["GET","HEAD","POST"];const s=new Set(A);const r=[101,204,205,304];const n=[301,302,303,307,308];const i=new Set(n);const o=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const l=new Set(o);const u=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const g=new Set(u);const E=["follow","manual","error"];const Q=["GET","HEAD","OPTIONS","TRACE"];const C=new Set(Q);const B=["navigate","same-origin","no-cors","cors"];const I=["omit","same-origin","include"];const p=["default","no-store","reload","no-cache","force-cLine truncated
|
||||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[o-4]=s[0];l[o-3]=s[1];l[o-2]=s[2];l[o-1]=s[3];l[1]=n;if(n===126){l.writeUInt16BE(i,2)}else if(n===127){l[2]=l[3]=0;l.writeUIntBE(i,4,6)}l[1]|=128;for(let e=0;e<i;++e){l[o+e]=A[e]^s[e&3]}return l}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,A,s)=>{const{createInflateRaw:r,Z_DEFAULT_WINDOWBITS:i}=s(8522);const{isValidClientWindowBits:n}=s(8625);const o=Buffer.from([0,0,255,255]);const l=Symbol("kBuffer");const u=Symbol("kLength");class PerMessageDeflate{#Z;#g={};constructor(e){this.#g.serverNoContextTakeover=e.has("server_no_context_takeover");this.#g.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,A,s){if(!this.#Z){let e=i;if(this.#g.serverMaxWindowBits){if(!n(this.#g.serverMaxWindowBits)){s(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#g.serverMaxWindowBits)}this.#Z=r({windowBits:e});this.#Z[l]=[];this.#Z[u]=0;this.#Z.on("data",(e=>{this.#Z[l].push(e);this.#Z[u]+=e.length}));this.#Z.on("error",(e=>{this.#Z=null;s(e)}))}this.#Z.write(e);if(A){this.#Z.write(o)}this.#Z.flush((()=>{const e=Buffer.concat(this.#Z[l],this.#Z[u]);this.#Z[l].length=0;this.#Z[u]=0;s(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,A,s)=>{const{Writable:r}=s(7075);const i=s(4589);const{parserStates:n,opcodes:o,states:l,emptyBuffer:u,sentCloseFrameState:g}=s(736);const{kReadyState:E,kSentClose:Q,kResponse:C,kReceivedClose:B}=s(1216);const{channels:I}=s(2414);const{isValidStatusCode:p,isValidOpcode:w,failWebsocketConnection:R,websocketMessageReceived:b,utf8Decode:D,isControlFrame:S,isTextBinaryFrame:k,isContinuationFrame:F}=s(8625);const{WebsocketFrameSend:N}=s(3264);const{closeWebSocketConnection:M}=s(6897);const{PerMessageDeflate:v}=s(9469);class ByteParser extends r{#X=[];#K=0;#$=false;#I=n.INFO;#ee={};#te=[];#Ae;constructor(e,A){super();this.ws=e;this.#Ae=A==null?new Map:A;if(this.#Ae.has("permessage-deflate")){this.#Ae.set("permessage-deflate",new v(A))}}_write(e,A,s){this.#X.push(e);this.#K+=e.length;this.#$=true;this.run(s)}run(e){while(this.#$){if(this.#I===n.INFO){if(this.#K<2){return e()}const A=this.consume(2);const s=(A[0]&128)!==0;const r=A[0]&15;const i=(A[1]&128)===128;const l=!s&&r!==o.CONTINUATION;const u=A[1]&127;const g=A[0]&64;const E=A[0]&32;const Q=A[0]&16;if(!w(r)){R(this.ws,"Invalid opcode received");return e()}if(i){R(this.ws,"Frame cannot be masked");return e()}if(g!==0&&!this.#Ae.has("permessage-deflate")){R(this.ws,"Expected RSV1 to be clear.");return}if(E!==0||Q!==0){R(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(l&&!k(r)){R(this.ws,"Invalid frame type was fragmented.");return}if(k(r)&&this.#te.length>0){R(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&l){R(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((u>125||l)&&S(r)){R(this.ws,"Control frame either too large or fragmented");return}if(F(r)&&this.#te.length===0&&!this.#ee.compressed){R(this.ws,"Unexpected continuation frame");return}if(u<=125){this.#ee.payloadLength=u;this.#I=n.READ_DATA}else if(u===126){this.#I=n.PAYLOADLENGTH_16}else if(u===127){this.#I=n.PAYLOADLENGTH_64}if(k(r)){this.#ee.binaryType=r;this.#ee.compressed=g!==0}this.#ee.opcode=r;this.#ee.masked=i;this.#ee.fin=s;this.#ee.fragmented=l}else if(this.#I===n.PAYLOADLENGTH_16){if(this.#K<2){return e()}const A=this.consume(2);this.#ee.payloadLength=A.readUInt16BE(0);this.#I=n.READ_DATA}else if(this.#I===n.PAYLOADLENGTH_64){if(this.#K<8){return e()}const A=this.consume(8);const s=A.readUInt32BE(0);if(s>2**31-1){R(this.ws,"Received payload length > 2^31 bytes.");return}const r=A.readUInt32BE(4);this.#ee.payloadLength=(s<<8)+r;this.#I=n.READ_DATA}else if(this.#I===n.READ_DATA){if(this.#K<this.#ee.payloadLength){return e()}const A=this.consume(this.#ee.payloadLength);if(S(this.#ee.opcode)){this.#$=this.parseControlFrame(A);this.#I=n.INFO}else{if(!this.#ee.compressed){this.#te.push(A);if(!this.#ee.fragmented&&this.#ee.fin){const e=Buffer.concat(this.#te);b(this.ws,this.#ee.binaryType,e);this.#te.length=0}this.#I=n.INFO}else{this.#Ae.get("permessage-deflate").decompress(A,this.#ee.fin,((A,s)=>{if(A){M(this.ws,1007,A.message,A.message.length);return}this.#te.push(s);if(!this.#ee.fin){this.#I=n.INFO;this.#$=true;this.run(e);return}b(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#$=true;this.#I=n.INFO;this.#te.length=0;this.run(e)}));this.#$=false;break}}}}}consume(e){if(e>this.#K){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return u}if(this.#X[0].length===e){this.#K-=this.#X[0].length;return this.#X.shift()}const A=Buffer.allocUnsafe(e);let s=0;while(s!==e){const r=this.#X[0];const{length:i}=r;if(i+s===e){A.set(this.#X.shift(),s);break}else if(i+s>e){A.set(r.subarray(0,e-s),s);this.#X[0]=r.subarray(e-s);break}else{A.set(this.#X.shift(),s);s+=r.length}}this.#K-=e;return A}parseCloseBody(e){i(e.length!==1);let A;if(e.length>=2){A=e.readUInt16BE(0)}if(A!==undefined&&!p(A)){retuLine truncated
|
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */l[o-4]=s[0];l[o-3]=s[1];l[o-2]=s[2];l[o-1]=s[3];l[1]=i;if(i===126){l.writeUInt16BE(n,2)}else if(i===127){l[2]=l[3]=0;l.writeUIntBE(n,4,6)}l[1]|=128;for(let e=0;e<n;++e){l[o+e]=A[e]^s[e&3]}return l}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,A,s)=>{const{createInflateRaw:r,Z_DEFAULT_WINDOWBITS:n}=s(8522);const{isValidClientWindowBits:i}=s(8625);const o=Buffer.from([0,0,255,255]);const l=Symbol("kBuffer");const u=Symbol("kLength");class PerMessageDeflate{#Z;#g={};constructor(e){this.#g.serverNoContextTakeover=e.has("server_no_context_takeover");this.#g.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,A,s){if(!this.#Z){let e=n;if(this.#g.serverMaxWindowBits){if(!i(this.#g.serverMaxWindowBits)){s(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#g.serverMaxWindowBits)}this.#Z=r({windowBits:e});this.#Z[l]=[];this.#Z[u]=0;this.#Z.on("data",(e=>{this.#Z[l].push(e);this.#Z[u]+=e.length}));this.#Z.on("error",(e=>{this.#Z=null;s(e)}))}this.#Z.write(e);if(A){this.#Z.write(o)}this.#Z.flush((()=>{const e=Buffer.concat(this.#Z[l],this.#Z[u]);this.#Z[l].length=0;this.#Z[u]=0;s(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,A,s)=>{const{Writable:r}=s(7075);const n=s(4589);const{parserStates:i,opcodes:o,states:l,emptyBuffer:u,sentCloseFrameState:g}=s(736);const{kReadyState:E,kSentClose:Q,kResponse:C,kReceivedClose:B}=s(1216);const{channels:I}=s(2414);const{isValidStatusCode:p,isValidOpcode:w,failWebsocketConnection:R,websocketMessageReceived:b,utf8Decode:D,isControlFrame:k,isTextBinaryFrame:S,isContinuationFrame:F}=s(8625);const{WebsocketFrameSend:N}=s(3264);const{closeWebSocketConnection:M}=s(6897);const{PerMessageDeflate:T}=s(9469);class ByteParser extends r{#X=[];#K=0;#$=false;#I=i.INFO;#ee={};#te=[];#Ae;constructor(e,A){super();this.ws=e;this.#Ae=A==null?new Map:A;if(this.#Ae.has("permessage-deflate")){this.#Ae.set("permessage-deflate",new T(A))}}_write(e,A,s){this.#X.push(e);this.#K+=e.length;this.#$=true;this.run(s)}run(e){while(this.#$){if(this.#I===i.INFO){if(this.#K<2){return e()}const A=this.consume(2);const s=(A[0]&128)!==0;const r=A[0]&15;const n=(A[1]&128)===128;const l=!s&&r!==o.CONTINUATION;const u=A[1]&127;const g=A[0]&64;const E=A[0]&32;const Q=A[0]&16;if(!w(r)){R(this.ws,"Invalid opcode received");return e()}if(n){R(this.ws,"Frame cannot be masked");return e()}if(g!==0&&!this.#Ae.has("permessage-deflate")){R(this.ws,"Expected RSV1 to be clear.");return}if(E!==0||Q!==0){R(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(l&&!S(r)){R(this.ws,"Invalid frame type was fragmented.");return}if(S(r)&&this.#te.length>0){R(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&l){R(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((u>125||l)&&k(r)){R(this.ws,"Control frame either too large or fragmented");return}if(F(r)&&this.#te.length===0&&!this.#ee.compressed){R(this.ws,"Unexpected continuation frame");return}if(u<=125){this.#ee.payloadLength=u;this.#I=i.READ_DATA}else if(u===126){this.#I=i.PAYLOADLENGTH_16}else if(u===127){this.#I=i.PAYLOADLENGTH_64}if(S(r)){this.#ee.binaryType=r;this.#ee.compressed=g!==0}this.#ee.opcode=r;this.#ee.masked=n;this.#ee.fin=s;this.#ee.fragmented=l}else if(this.#I===i.PAYLOADLENGTH_16){if(this.#K<2){return e()}const A=this.consume(2);this.#ee.payloadLength=A.readUInt16BE(0);this.#I=i.READ_DATA}else if(this.#I===i.PAYLOADLENGTH_64){if(this.#K<8){return e()}const A=this.consume(8);const s=A.readUInt32BE(0);if(s>2**31-1){R(this.ws,"Received payload length > 2^31 bytes.");return}const r=A.readUInt32BE(4);this.#ee.payloadLength=(s<<8)+r;this.#I=i.READ_DATA}else if(this.#I===i.READ_DATA){if(this.#K<this.#ee.payloadLength){return e()}const A=this.consume(this.#ee.payloadLength);if(k(this.#ee.opcode)){this.#$=this.parseControlFrame(A);this.#I=i.INFO}else{if(!this.#ee.compressed){this.#te.push(A);if(!this.#ee.fragmented&&this.#ee.fin){const e=Buffer.concat(this.#te);b(this.ws,this.#ee.binaryType,e);this.#te.length=0}this.#I=i.INFO}else{this.#Ae.get("permessage-deflate").decompress(A,this.#ee.fin,((A,s)=>{if(A){M(this.ws,1007,A.message,A.message.length);return}this.#te.push(s);if(!this.#ee.fin){this.#I=i.INFO;this.#$=true;this.run(e);return}b(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#$=true;this.#I=i.INFO;this.#te.length=0;this.run(e)}));this.#$=false;break}}}}}consume(e){if(e>this.#K){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return u}if(this.#X[0].length===e){this.#K-=this.#X[0].length;return this.#X.shift()}const A=Buffer.allocUnsafe(e);let s=0;while(s!==e){const r=this.#X[0];const{length:n}=r;if(n+s===e){A.set(this.#X.shift(),s);break}else if(n+s>e){A.set(r.subarray(0,e-s),s);this.#X[0]=r.subarray(e-s);break}else{A.set(this.#X.shift(),s);s+=r.length}}this.#K-=e;return A}parseCloseBody(e){n(e.length!==1);let A;if(e.length>=2){A=e.readUInt16BE(0)}if(A!==undefined&&!p(A)){retuLine truncated
|
||||||
//# sourceMappingURL=index.js.map
|
//# sourceMappingURL=index.js.map
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","v","value","__importStar","mod","result","prototype","hasOwnProperty","call","exports","issue","issueCommand","os","__webpack_require__","utils_1","command","properties","message","cmd","Command","process","stdout","write","toString","EOL","name","CMD_STRING","constructor","cmdStr","keys","length","first","key","val","escapeProperty","escapeData","s","toCommandValue","replace","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","done","then","apply","platform","toPlatformPath","toWin32Path","toPosixPath","markdownSummary","summary","getIDToken","getState","saveState","group","endGroup","startGroup","info","notice","warning","error","debug","isDebug","setFailed","setCommandEcho","setOutput","getBooleanInput","getMultilineInput","getInput","addPath","setSecret","exportVariable","ExitCode","command_1","file_command_1","path","oidc_utils_1","convertedVal","env","filePath","issueFileCommand","prepareKeyValueMessage","secret","inputPath","delimiter","options","toUpperCase","required","Error","trimWhitespace","trim","inputs","split","filter","x","map","input","trueValue","falseValue","includes","TypeError","enabled","exitCode","Failure","toCommandProperties","fn","aud","OidcClient","summary_1","summary_2","path_utils_1","crypto","fs","existsSync","appendFileSync","encoding","randomUUID","convertedValue","http_client_1","auth_1","core_1","createHttpClient","allowRetry","maxRetry","requestOptions","allowRetries","maxRetries","HttpClient","BearerCredentialHandler","getRequestToken","token","getIDTokenUrl","runtimeUrl","getCall","id_token_url","_a","httpclient","res","getJson","catch","statusCode","id_token","audience","encodedAudience","encodeURIComponent","pth","sep","__importDefault","default","getDetails","isLinux","isMacOS","isWindows","arch","os_1","exec","getWindowsInfo","version","getExecOutput","silent","getMacOsInfo","_b","_c","_d","match","getLinuxInfo","assign","SUMMARY_DOCS_URL","SUMMARY_ENV_VAR","fs_1","access","appendFile","writeFile","promises","Summary","_buffer","_filePath","pathFromEnv","constants","R_OK","W_OK","wrap","tag","content","attrs","htmlAttrs","entries","join","overwrite","writeFunc","emptyBuffer","clear","stringify","isEmptyBuffer","addRaw","text","addEOL","addCodeBlock","code","lang","element","addList","items","ordered","listItems","item","addTable","rows","tableBody","row","cells","cell","header","data","colspan","rowspan","addDetails","label","addImage","src","alt","width","height","addHeading","level","allowedTag","addSeparator","addBreak","addQuote","cite","addLink","href","_summary","String","JSON","annotationProperties","title","file","line","startLine","endLine","col","startColumn","endColumn","string_decoder_1","tr","commandLine","args","commandArgs","argStringToArray","toolPath","slice","concat","runner","ToolRunner","stderr","stdoutDecoder","StringDecoder","stderrDecoder","originalStdoutListener","listeners","originalStdErrListener","stdErrListener","stdOutListener","end","events","child","io","ioUtil","timers_1","IS_WINDOWS","EventEmitter","super","_debug","_getCommandString","noPrefix","_getSpawnFileName","_getSpawnArgs","_isCmdFile","a","windowsVerbatimArguments","_windowsQuoteCmdArg","_processLineBuffer","strBuffer","onLine","n","indexOf","substring","err","argline","_endsWith","str","endsWith","upperToolPath","arg","_uvQuoteCmdArg","cmdSpecialChars","needsQuotes","char","some","reverse","quoteHit","i","_cloneExecOptions","cwd","failOnStdErr","ignoreReturnCode","delay","outStream","errStream","_getSpawnOptions","argv0","isRooted","which","optionsNonNull","state","ExecState","on","exists","fileName","cp","spawn","stdbuffer","stdline","errbuffer","processStderr","errline","processError","processExited","processClosed","CheckComplete","processExitCode","emit","removeAllListeners","stdin","argString","inQuotes","escaped","append","c","charAt","push","timeout","_setResult","setTimeout","HandleTimeout","clearTimeout","PersonalAccessTokenCredentialHandler","BasicCredentialHandler","username","password","prepareRequest","headers","Buffer","from","canHandleAuthentication","handleAuthentication","isHttps","HttpClientResponse","HttpClientError","getProxyUrl","MediaTypes","Headers","HttpCodes","http","https","pm","tunnel","serverUrl","proxyUrl","URL","HttpRedirectCodes","MovedPermanently","ResourceMoved","SeeOther","TemporaryRedirect","PermanentRedirect","HttpResponseRetryCodes","BadGateway","ServiceUnavailable","GatewayTimeout","RetryableHttpVerbs","ExponentialBackoffCeiling","ExponentialBackoffTimeSlice","setPrototypeOf","readBody","output","alloc","chunk","readBodyBuffer","chunks","requestUrl","parsedUrl","protocol","userAgent","handlers","_ignoreSslError","_allowReLine truncated
|
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","defineProperty","enumerable","get","__setModuleDefault","v","value","__importStar","mod","__esModule","result","hasOwnProperty","call","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","done","then","apply","_a","exports","getCmdPath","tryGetExecutablePath","isRooted","isDirectory","exists","IS_WINDOWS","unlink","symlink","stat","rmdir","rename","readlink","readdir","mkdir","lstat","copyFile","chmod","fs","__webpack_require__","path","promises","process","platform","fsPath","err","code","useStat","stats","p","normalizeSeparators","Error","startsWith","test","filePath","extensions","console","log","isFile","upperExt","extname","toUpperCase","some","validExt","isUnixExecutable","originalFilePath","extension","directory","dirname","upperName","basename","actualName","join","replace","mode","gid","getgid","uid","getuid","env","findInPath","which","mkdirP","rmRF","mv","cp","assert_1","childProcess","util_1","ioUtil","exec","promisify","execFile","source","dest","options","force","recursive","copySourceDirectory","readCopyOptions","destStat","newDest","sourceStat","cpDirRecursive","relative","destExists","inputPath","cmdPath","isDir","ok","tool","check","matches","length","split","delimiter","push","includes","sep","directories","PATH","Boolean","sourceDir","destDir","currentDepth","files","fileName","srcFile","destFile","srcFileStat","isSymbolicLink","symlinkFull","desc","getOwnPropertyDescriptor","writable","configurable","prototype","_readLinuxVersionFile","_getOsVersion","_findMatch","semver","core_1","os","versionSpec","stable","candidates","archFilter","platFilter","match","file","candidate","version","debug","satisfies","find","item","arch","chk","platform_version","osVersion","module","assign","plat","execSync","toString","lsbContents","lines","line","parts","trim","lsbReleaseFile","osReleaseFile","contents","existsSync","readFileSync","RetryHelper","core","constructor","maxAttempts","minSeconds","maxSeconds","Math","floor","execute","action","isRetryable","attempt","info","message","seconds","getSleepAmount","sleep","random","setTimeout","evaluateVersions","isExplicitVersion","findFromManifest","getManifestFromRepo","findAllVersions","cacheFile","cacheDir","extractZip","extractXar","extractTar","extract7z","downloadTool","HTTPError","io","crypto","mm","httpm","stream","util","exec_1","retry_helper_1","httpStatusCode","super","setPrototypeOf","IS_MAC","userAgent","url","auth","headers","_getTempDirectory","randomUUID","_getGlobal","retryHelper","downloadToolAttempt","http","HttpClient","allowRetries","authorization","response","statusCode","statusMessage","pipeline","responseMessageFactory","readStream","succeeded","createWriteStream","_7zPath","_createExtractFolder","originalCwd","cwd","chdir","logLevel","isDebug","args","silent","escapedScript","__dirname","escapedFile","escapedTarget","command","powershellPath","flags","versionOutput","ignoreReturnCode","listeners","stdout","data","stderr","isGnuTar","Array","destArg","fileArg","xarPath","_unique","extractZipWin","extractZipNix","escapedDest","pwshPath","pwshCommand","powershellCommand","unzipPath","unshift","clean","statSync","destPath","_createToolPath","itemName","readdirSync","s","_completeToolPath","sourceFile","targetFile","destFolder","toolName","localVersions","toolPath","cachePath","_getCacheDirectory","versions","children","child","fullPath","owner","repo","branch","releases","treeUrl","getJson","manifestUrl","tree","versionsRaw","readBody","JSON","parse","manifest","folderPath","markerPath","writeFileSync","c","valid","sort","a","b","gt","i","potential","satisfied","cacheDirectory","tempDirectory","key","defaultValue","global","values","from","Set","issue","issueCommand","utils_1","properties","cmd","Command","write","EOL","name","CMD_STRING","cmdStr","keys","first","val","escapeProperty","escapeData","toCommandValue","toPlatformPath","toWin32Path","toPosixPath","markdownSummary","summary","getIDToken","getState","saveState","group","endGroup","startGroup","notice","warning","error","setFailed","setCommandEcho","setOutput","getBooleanInput","getMultilineInput","getInput","addPath","setSecret","exportVariable","ExitCode","command_1","file_command_1","oidc_utils_1","convertedVal","issueFileCommand","prepareKeyValueMessage","secret","required","trimWhitespace","inputs","filter","x","map","input","trueValue","falseValue","TypeError","enabled","exitCode","Failure","toCommandProperties","fn","aud","OidcClient","summary_1","summary_2","path_utils_1","appendFileSync","encoding","convertedValue","http_client_1","auth_1","createHttpClient","allowRetry","maxRetry","requestOptions","maxRetries","BearerCredentialHandler","getRequestToken","token","getIDTokenUrl","runtimeUrl","getCall","id_token_url","httpclient","res","catch","id_token","audience","encodedAudience"Line truncated
|
||||||
Reference in new issue
Block a user