diff --git a/dist/setup.js b/dist/setup.js index ff92b87..f71ccf7 100644 --- a/dist/setup.js +++ b/dist/setup.js @@ -1,8 +1,10 @@ /*! For license information please see setup.js.LICENSE.txt */ (()=>{var A={4861:function(A,e,t){"use strict" -var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t]}})}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A +var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t) +var s=Object.getOwnPropertyDescriptor(e,t) +s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A var e={} -if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&r(e,A,t) +if(null!=A)for(var t in A)"default"!==t&&Object.prototype.hasOwnProperty.call(A,t)&&r(e,A,t) return s(e,A),e} Object.defineProperty(e,"__esModule",{value:!0}),e.issue=e.issueCommand=void 0 const o=n(t(857)),i=t(7089) @@ -12,48 +14,50 @@ class c{constructor(A,e,t){A||(A="missing.command"),this.command=A,this.properti if(this.properties&&Object.keys(this.properties).length>0){A+=" " let t=!0 for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const s=this.properties[r] -s&&(t?t=!1:A+=",",A+=`${r}=${e=s,i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var e -return A+=`::${function(A){return i.toCommandValue(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,A}}},6977:function(A,e,t){"use strict" -var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t]}})}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A +s&&(t?t=!1:A+=",",A+=`${r}=${e=s,(0,i.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var e +return A+=`::${function(A){return(0,i.toCommandValue)(A).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,A}}},6977:function(A,e,t){"use strict" +var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t) +var s=Object.getOwnPropertyDescriptor(e,t) +s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A var e={} -if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&r(e,A,t) +if(null!=A)for(var t in A)"default"!==t&&Object.prototype.hasOwnProperty.call(A,t)&&r(e,A,t) return s(e,A),e},o=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(s,n){function o(A){try{a(r.next(A))}catch(A){n(A)}}function i(A){try{a(r.throw(A))}catch(A){n(A)}}function a(A){var e A.done?s(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(o,i)}a((r=r.apply(A,e||[])).next())}))} -Object.defineProperty(e,"__esModule",{value:!0}),e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0 +Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0 const i=t(4861),a=t(6224),c=t(7089),g=n(t(857)),E=n(t(6928)),Q=t(5015) var h function C(A,e){const t=process.env[`INPUT_${A.replace(/ /g,"_").toUpperCase()}`]||"" if(e&&e.required&&!t)throw new Error(`Input required and not supplied: ${A}`) -return e&&!1===e.trimWhitespace?t:t.trim()}function B(A,e={}){i.issueCommand("error",c.toCommandProperties(e),A instanceof Error?A.toString():A)}function I(A){i.issue("group",A)}function l(){i.issue("endgroup")}!function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"}(h=e.ExitCode||(e.ExitCode={})),e.exportVariable=function(A,e){const t=c.toCommandValue(e) -if(process.env[A]=t,process.env.GITHUB_ENV||"")return a.issueFileCommand("ENV",a.prepareKeyValueMessage(A,e)) -i.issueCommand("set-env",{name:A},t)},e.setSecret=function(A){i.issueCommand("add-mask",{},A)},e.addPath=function(A){process.env.GITHUB_PATH||""?a.issueFileCommand("PATH",A):i.issueCommand("add-path",{},A),process.env.PATH=`${A}${E.delimiter}${process.env.PATH}`},e.getInput=C,e.getMultilineInput=function(A,e){const t=C(A,e).split("\n").filter((A=>""!==A)) +return e&&!1===e.trimWhitespace?t:t.trim()}function B(A,e={}){(0,i.issueCommand)("error",(0,c.toCommandProperties)(e),A instanceof Error?A.toString():A)}function I(A){(0,i.issue)("group",A)}function l(){(0,i.issue)("endgroup")}!function(A){A[A.Success=0]="Success",A[A.Failure=1]="Failure"}(h||(e.ExitCode=h={})),e.exportVariable=function(A,e){const t=(0,c.toCommandValue)(e) +if(process.env[A]=t,process.env.GITHUB_ENV||"")return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(A,e));(0,i.issueCommand)("set-env",{name:A},t)},e.setSecret=function(A){(0,i.issueCommand)("add-mask",{},A)},e.addPath=function(A){process.env.GITHUB_PATH||""?(0,a.issueFileCommand)("PATH",A):(0,i.issueCommand)("add-path",{},A),process.env.PATH=`${A}${E.delimiter}${process.env.PATH}`},e.getInput=C,e.getMultilineInput=function(A,e){const t=C(A,e).split("\n").filter((A=>""!==A)) return e&&!1===e.trimWhitespace?t:t.map((A=>A.trim()))},e.getBooleanInput=function(A,e){const t=C(A,e) if(["true","True","TRUE"].includes(t))return!0 if(["false","False","FALSE"].includes(t))return!1 -throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(A,e){if(process.env.GITHUB_OUTPUT||"")return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(A,e)) -process.stdout.write(g.EOL),i.issueCommand("set-output",{name:A},c.toCommandValue(e))},e.setCommandEcho=function(A){i.issue("echo",A?"on":"off")},e.setFailed=function(A){process.exitCode=h.Failure,B(A)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(A){i.issueCommand("debug",{},A)},e.error=B,e.warning=function(A,e={}){i.issueCommand("warning",c.toCommandProperties(e),A instanceof Error?A.toString():A)},e.notice=function(A,e={}){i.issueCommand("notice",c.toCommandProperties(e),A instanceof Error?A.toString():A)},e.info=function(A){process.stdout.write(A+g.EOL)},e.startGroup=I,e.endGroup=l,e.group=function(A,e){return o(this,void 0,void 0,(function*(){let t +throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${A}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(A,e){if(process.env.GITHUB_OUTPUT||"")return(0,a.issueFileCommand)("OUTPUT",(0,a.prepareKeyValueMessage)(A,e)) +process.stdout.write(g.EOL),(0,i.issueCommand)("set-output",{name:A},(0,c.toCommandValue)(e))},e.setCommandEcho=function(A){(0,i.issue)("echo",A?"on":"off")},e.setFailed=function(A){process.exitCode=h.Failure,B(A)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(A){(0,i.issueCommand)("debug",{},A)},e.error=B,e.warning=function(A,e={}){(0,i.issueCommand)("warning",(0,c.toCommandProperties)(e),A instanceof Error?A.toString():A)},e.notice=function(A,e={}){(0,i.issueCommand)("notice",(0,c.toCommandProperties)(e),A instanceof Error?A.toString():A)},e.info=function(A){process.stdout.write(A+g.EOL)},e.startGroup=I,e.endGroup=l,e.group=function(A,e){return o(this,void 0,void 0,(function*(){let t I(A) -try{t=yield e()}finally{l()}return t}))},e.saveState=function(A,e){if(process.env.GITHUB_STATE||"")return a.issueFileCommand("STATE",a.prepareKeyValueMessage(A,e)) -i.issueCommand("save-state",{name:A},c.toCommandValue(e))},e.getState=function(A){return process.env[`STATE_${A}`]||""},e.getIDToken=function(A){return o(this,void 0,void 0,(function*(){return yield Q.OidcClient.getIDToken(A)}))} +try{t=yield e()}finally{l()}return t}))},e.saveState=function(A,e){if(process.env.GITHUB_STATE||"")return(0,a.issueFileCommand)("STATE",(0,a.prepareKeyValueMessage)(A,e));(0,i.issueCommand)("save-state",{name:A},(0,c.toCommandValue)(e))},e.getState=function(A){return process.env[`STATE_${A}`]||""},e.getIDToken=function(A){return o(this,void 0,void 0,(function*(){return yield Q.OidcClient.getIDToken(A)}))} var u=t(1040) Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return u.summary}}) var d=t(1040) Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return d.markdownSummary}}) var f=t(317) -Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return f.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return f.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return f.toPlatformPath}})},6224:function(A,e,t){"use strict" -var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t]}})}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A +Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return f.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return f.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return f.toPlatformPath}}),e.platform=n(t(8117))},6224:function(A,e,t){"use strict" +var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t) +var s=Object.getOwnPropertyDescriptor(e,t) +s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A var e={} -if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&r(e,A,t) +if(null!=A)for(var t in A)"default"!==t&&Object.prototype.hasOwnProperty.call(A,t)&&r(e,A,t) return s(e,A),e} Object.defineProperty(e,"__esModule",{value:!0}),e.prepareKeyValueMessage=e.issueFileCommand=void 0 -const o=n(t(9896)),i=n(t(857)),a=t(2587),c=t(7089) +const o=n(t(6982)),i=n(t(9896)),a=n(t(857)),c=t(7089) e.issueFileCommand=function(A,e){const t=process.env[`GITHUB_${A}`] if(!t)throw new Error(`Unable to find environment variable for file command ${A}`) -if(!o.existsSync(t))throw new Error(`Missing file at path: ${t}`) -o.appendFileSync(t,`${c.toCommandValue(e)}${i.EOL}`,{encoding:"utf8"})},e.prepareKeyValueMessage=function(A,e){const t=`ghadelimiter_${a.v4()}`,r=c.toCommandValue(e) +if(!i.existsSync(t))throw new Error(`Missing file at path: ${t}`) +i.appendFileSync(t,`${(0,c.toCommandValue)(e)}${a.EOL}`,{encoding:"utf8"})},e.prepareKeyValueMessage=function(A,e){const t=`ghadelimiter_${o.randomUUID()}`,r=(0,c.toCommandValue)(e) if(A.includes(t))throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`) if(r.includes(t))throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`) -return`${A}<<${t}${i.EOL}${r}${i.EOL}${t}`}},5015:function(A,e,t){"use strict" +return`${A}<<${t}${a.EOL}${r}${a.EOL}${t}`}},5015:function(A,e,t){"use strict" var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(s,n){function o(A){try{a(r.next(A))}catch(A){n(A)}}function i(A){try{a(r.throw(A))}catch(A){n(A)}}function a(A){var e A.done?s(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(o,i)}a((r=r.apply(A,e||[])).next())}))} Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClient=void 0 @@ -67,16 +71,32 @@ return A}static getCall(A){var e return r(this,void 0,void 0,(function*(){const t=i.createHttpClient(),r=yield t.getJson(A).catch((A=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${A.statusCode}\n \n Error Message: ${A.message}`)})),s=null===(e=r.result)||void 0===e?void 0:e.value if(!s)throw new Error("Response json body do not have ID Token field") return s}))}static getIDToken(A){return r(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl() -if(A){e=`${e}&audience=${encodeURIComponent(A)}`}o.debug(`ID token url is ${e}`) +if(A){e=`${e}&audience=${encodeURIComponent(A)}`}(0,o.debug)(`ID token url is ${e}`) const t=yield i.getCall(e) -return o.setSecret(t),t}catch(A){throw new Error(`Error message: ${A.message}`)}}))}}e.OidcClient=i},317:function(A,e,t){"use strict" -var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t),Object.defineProperty(A,r,{enumerable:!0,get:function(){return e[t]}})}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A +return(0,o.setSecret)(t),t}catch(A){throw new Error(`Error message: ${A.message}`)}}))}}e.OidcClient=i},317:function(A,e,t){"use strict" +var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t) +var s=Object.getOwnPropertyDescriptor(e,t) +s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A var e={} -if(null!=A)for(var t in A)"default"!==t&&Object.hasOwnProperty.call(A,t)&&r(e,A,t) +if(null!=A)for(var t in A)"default"!==t&&Object.prototype.hasOwnProperty.call(A,t)&&r(e,A,t) return s(e,A),e} Object.defineProperty(e,"__esModule",{value:!0}),e.toPlatformPath=e.toWin32Path=e.toPosixPath=void 0 const o=n(t(6928)) -e.toPosixPath=function(A){return A.replace(/[\\]/g,"/")},e.toWin32Path=function(A){return A.replace(/[/]/g,"\\")},e.toPlatformPath=function(A){return A.replace(/[/\\]/g,o.sep)}},1040:function(A,e,t){"use strict" +e.toPosixPath=function(A){return A.replace(/[\\]/g,"/")},e.toWin32Path=function(A){return A.replace(/[/]/g,"\\")},e.toPlatformPath=function(A){return A.replace(/[/\\]/g,o.sep)}},8117:function(A,e,t){"use strict" +var r=this&&this.__createBinding||(Object.create?function(A,e,t,r){void 0===r&&(r=t) +var s=Object.getOwnPropertyDescriptor(e,t) +s&&!("get"in s?!e.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(A,r,s)}:function(A,e,t,r){void 0===r&&(r=t),A[r]=e[t]}),s=this&&this.__setModuleDefault||(Object.create?function(A,e){Object.defineProperty(A,"default",{enumerable:!0,value:e})}:function(A,e){A.default=e}),n=this&&this.__importStar||function(A){if(A&&A.__esModule)return A +var e={} +if(null!=A)for(var t in A)"default"!==t&&Object.prototype.hasOwnProperty.call(A,t)&&r(e,A,t) +return s(e,A),e},o=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(s,n){function o(A){try{a(r.next(A))}catch(A){n(A)}}function i(A){try{a(r.throw(A))}catch(A){n(A)}}function a(A){var e +A.done?s(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(o,i)}a((r=r.apply(A,e||[])).next())}))},i=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}} +Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0 +const a=i(t(857)),c=n(t(6665)) +e.platform=a.default.platform(),e.arch=a.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return o(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield e.isWindows?o(void 0,void 0,void 0,(function*(){const{stdout:A}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:e}=yield c.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0}) +return{name:e.trim(),version:A.trim()}})):e.isMacOS?o(void 0,void 0,void 0,(function*(){var A,e,t,r +const{stdout:s}=yield c.getExecOutput("sw_vers",void 0,{silent:!0}),n=null!==(e=null===(A=s.match(/ProductVersion:\s*(.+)/))||void 0===A?void 0:A[1])&&void 0!==e?e:"" +return{name:null!==(r=null===(t=s.match(/ProductName:\s*(.+)/))||void 0===t?void 0:t[1])&&void 0!==r?r:"",version:n}})):o(void 0,void 0,void 0,(function*(){const{stdout:A}=yield c.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[e,t]=A.trim().split("\n") +return{name:e,version:t}}))),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}},1040:function(A,e,t){"use strict" var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(s,n){function o(A){try{a(r.next(A))}catch(A){n(A)}}function i(A){try{a(r.throw(A))}catch(A){n(A)}}function a(A){var e A.done?s(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(o,i)}a((r=r.apply(A,e||[])).next())}))} Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0 @@ -684,7 +704,7 @@ return A},y=A=>p(i({},"__esModule",{value:!0}),A),w=(A,e,t)=>new Promise(((r,s)= i((t=t.apply(A,e)).next())})),m=d({"src/lib/errors/git-error.ts"(){r=class extends Error{constructor(A,e){super(e),this.task=A,Object.setPrototypeOf(this,new.target.prototype)}}}}),R=d({"src/lib/errors/git-response-error.ts"(){m(),s=class extends r{constructor(A,e){super(void 0,e||String(A)),this.git=A}}}}) function D(...A){const e=new String(A) return n.set(e,A),e}function k(A){return A instanceof String&&n.has(A)}function b(A){return n.get(A)||[]}var N,F,S,L,U,M,v,T=d({"src/lib/args/pathspec.ts"(){n=new WeakMap}}),Y=d({"src/lib/errors/git-construct-error.ts"(){m(),N=class extends r{constructor(A,e){super(void 0,e),this.config=A}}}}),G=d({"src/lib/errors/git-plugin-error.ts"(){m(),F=class extends r{constructor(A,e,t){super(A,t),this.task=A,this.plugin=e,Object.setPrototypeOf(this,new.target.prototype)}}}}),J=d({"src/lib/errors/task-configuration-error.ts"(){m(),S=class extends r{constructor(A){super(void 0,A)}}}}) -function O(A){return"function"==typeof A?A:M}function H(A){return"function"==typeof A&&A!==M}function x(A,e){const t=A.indexOf(e) +function O(A){return"function"==typeof A?A:M}function x(A){return"function"==typeof A&&A!==M}function H(A,e){const t=A.indexOf(e) return t<=0?[A,""]:[A.substr(0,t),A.substr(t+1)]}function V(A,e=0){return _(A)&&A.length>e?A[e]:void 0}function P(A,e=0){if(_(A)&&A.length>e)return A[A.length-1-e]}function _(A){return!(!A||"number"!=typeof A.length)}function W(A="",e=!0,t="\n"){return A.split(t).reduce(((A,t)=>{const r=e?t.trim():t return r&&A.push(r),A}),[])}function q(A,e){return W(A,!0).map((A=>e(A)))}function j(A){return(0,L.exists)(A,L.FOLDER)}function X(A,e){return Array.isArray(A)?A.includes(e)||A.push(e):A.add(e),e}function Z(A,e){return Array.isArray(A)&&!A.includes(e)&&A.push(e),A}function K(A,e){if(Array.isArray(A)){const t=A.indexOf(e) t>=0&&A.splice(t,1)}else A.delete(e) @@ -704,13 +724,13 @@ for(let t=0,s=e<0?A.length:e;t{for(let s=W(t,r),n=0,o=s.length;n{if(!(n+A>=o))return s[n+A]} e.some((({parse:e})=>e(t,A)))}})),A}var vA=d({"src/lib/utils/task-parser.ts"(){QA()}}),TA={} -f(TA,{ExitCodes:()=>lA,GitOutputStreams:()=>uA,LineParser:()=>dA,NOOP:()=>M,NULL:()=>U,RemoteLineParser:()=>fA,append:()=>X,appendTaskOptions:()=>bA,asArray:()=>z,asCamelCase:()=>$,asFunction:()=>O,asNumber:()=>eA,asStringArray:()=>AA,bufferToString:()=>rA,callTaskParser:()=>UA,createInstanceConfig:()=>DA,delay:()=>nA,filterArray:()=>iA,filterFunction:()=>IA,filterHasLength:()=>EA,filterPlainObject:()=>BA,filterPrimitives:()=>CA,filterString:()=>aA,filterStringArray:()=>cA,filterStringOrStringArray:()=>gA,filterType:()=>hA,first:()=>V,folderExists:()=>j,forEachLineWithContent:()=>q,getTrailingOptions:()=>NA,including:()=>Z,isUserFunction:()=>H,last:()=>P,objectToString:()=>v,orVoid:()=>oA,parseStringResponse:()=>MA,pick:()=>sA,prefixedArray:()=>tA,remove:()=>K,splitOn:()=>x,toLinesWithContent:()=>W,trailingFunctionArgument:()=>SA,trailingOptionsArgument:()=>FA}) -var YA,GA,JA,OA=d({"src/lib/utils/index.ts"(){yA(),wA(),mA(),RA(),kA(),LA(),vA(),QA()}}),HA={} -function xA(A){switch(A){case"bare":return PA() -case"root":return VA()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:GA,parser:JA}}function VA(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:GA,parser:A=>/^\.(git)?$/.test(A.trim())}}function PA(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:GA,parser:JA}}f(HA,{CheckRepoActions:()=>YA,checkIsBareRepoTask:()=>PA,checkIsRepoRootTask:()=>VA,checkIsRepoTask:()=>xA}) +f(TA,{ExitCodes:()=>lA,GitOutputStreams:()=>uA,LineParser:()=>dA,NOOP:()=>M,NULL:()=>U,RemoteLineParser:()=>fA,append:()=>X,appendTaskOptions:()=>bA,asArray:()=>z,asCamelCase:()=>$,asFunction:()=>O,asNumber:()=>eA,asStringArray:()=>AA,bufferToString:()=>rA,callTaskParser:()=>UA,createInstanceConfig:()=>DA,delay:()=>nA,filterArray:()=>iA,filterFunction:()=>IA,filterHasLength:()=>EA,filterPlainObject:()=>BA,filterPrimitives:()=>CA,filterString:()=>aA,filterStringArray:()=>cA,filterStringOrStringArray:()=>gA,filterType:()=>hA,first:()=>V,folderExists:()=>j,forEachLineWithContent:()=>q,getTrailingOptions:()=>NA,including:()=>Z,isUserFunction:()=>x,last:()=>P,objectToString:()=>v,orVoid:()=>oA,parseStringResponse:()=>MA,pick:()=>sA,prefixedArray:()=>tA,remove:()=>K,splitOn:()=>H,toLinesWithContent:()=>W,trailingFunctionArgument:()=>SA,trailingOptionsArgument:()=>FA}) +var YA,GA,JA,OA=d({"src/lib/utils/index.ts"(){yA(),wA(),mA(),RA(),kA(),LA(),vA(),QA()}}),xA={} +function HA(A){switch(A){case"bare":return PA() +case"root":return VA()}return{commands:["rev-parse","--is-inside-work-tree"],format:"utf-8",onError:GA,parser:JA}}function VA(){return{commands:["rev-parse","--git-dir"],format:"utf-8",onError:GA,parser:A=>/^\.(git)?$/.test(A.trim())}}function PA(){return{commands:["rev-parse","--is-bare-repository"],format:"utf-8",onError:GA,parser:JA}}f(xA,{CheckRepoActions:()=>YA,checkIsBareRepoTask:()=>PA,checkIsRepoRootTask:()=>VA,checkIsRepoTask:()=>HA}) var _A,WA,qA,jA,XA=d({"src/lib/tasks/check-is-repo.ts"(){OA(),YA=(A=>(A.BARE="bare",A.IN_TREE="tree",A.IS_REPO_ROOT="root",A))(YA||{}),GA=({exitCode:A},e,t,r)=>{if(128===A&&function(A){return/(Not a git repository|Kein Git-Repository)/i.test(String(A))}(e))return t(Buffer.from("false")) r(e)},JA=A=>"true"===A.trim()}}) var ZA,KA=d({"src/lib/responses/CleanSummary.ts"(){OA(),_A=class{constructor(A){this.dryRun=A,this.paths=[],this.files=[],this.folders=[]}},WA=/^[a-z]+\s*/i,qA=/^[a-z]+\s+[a-z]+\s*/i,jA=/\/$/}}),zA={} @@ -726,7 +746,7 @@ var Ie,le=d({"src/lib/tasks/clean.ts"(){KA(),OA(),ge(),ne="Git clean interactive function*ue(A,e=null){const t=A.split("\0") for(let A=0,r=t.length-1;AObject.assign(A,this.values[e])),{})),this._all}addFile(A){if(!(A in this.values)){const e=P(this.files) this.values[A]=e?Object.create(this.values[e]):{},this.files.push(A)}return this.values[A]}addValue(A,e,t){const r=this.addFile(A) r.hasOwnProperty(e)?Array.isArray(r[e])?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this._all=void 0}}}}) @@ -749,9 +769,9 @@ e.add(r),(t[r]=t[r]||[]).push({line:eA(s),path:r,preview:n})})),{paths:e,results function Ge(A,e){const t=["reset"] return Oe(A)&&t.push(`--${A}`),t.push(...e),ee(t)}function Je(A){if(Oe(A))return A switch(typeof A){case"string":case"undefined":return"soft"}}function Oe(A){return ve.includes(A)}f(Ye,{ResetMode:()=>Me,getResetMode:()=>Je,resetTask:()=>Ge}) -var He=d({"src/lib/tasks/reset.ts"(){ge(),Me=(A=>(A.MIXED="mixed",A.SOFT="soft",A.HARD="hard",A.MERGE="merge",A.KEEP="keep",A))(Me||{}),ve=Array.from(Object.values(Me))}}),xe={} -f(xe,{CheckRepoActions:()=>YA,CleanOptions:()=>ae,DiffNameStatus:()=>me,GitConfigScope:()=>de,GitConstructError:()=>N,GitError:()=>r,GitPluginError:()=>F,GitResponseError:()=>s,ResetMode:()=>Me,TaskConfigurationError:()=>S,grepQueryBuilder:()=>Le,pathspec:()=>D}) -var Ve=d({"src/lib/api.ts"(){T(),Y(),m(),G(),R(),J(),XA(),le(),De(),Se(),Te(),He()}}) +var xe=d({"src/lib/tasks/reset.ts"(){ge(),Me=(A=>(A.MIXED="mixed",A.SOFT="soft",A.HARD="hard",A.MERGE="merge",A.KEEP="keep",A))(Me||{}),ve=Array.from(Object.values(Me))}}),He={} +f(He,{CheckRepoActions:()=>YA,CleanOptions:()=>ae,DiffNameStatus:()=>me,GitConfigScope:()=>de,GitConstructError:()=>N,GitError:()=>r,GitPluginError:()=>F,GitResponseError:()=>s,ResetMode:()=>Me,TaskConfigurationError:()=>S,grepQueryBuilder:()=>Le,pathspec:()=>D}) +var Ve=d({"src/lib/api.ts"(){T(),Y(),m(),G(),R(),J(),XA(),le(),De(),Se(),Te(),xe()}}) var Pe=d({"src/lib/plugins/abort-plugin.ts"(){G()}}) function _e({allowUnsafeProtocolOverride:A=!1,allowUnsafePack:e=!1}={}){return{type:"spawn.args",action:(t,r)=>(t.forEach(((s,n)=>{const o=n{const r=$(e) A.hasOwnProperty(r)&&(A[r]=eA(t))}))}}) -function Ht(A){return MA({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},Jt,A)}var xt=d({"src/lib/parsers/parse-commit.ts"(){OA(),Jt=[new dA(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((A,[e,t,r])=>{A.branch=e,A.commit=r,A.root=!!t})),new dA(/\s*Author:\s(.+)/i,((A,[e])=>{const t=e.split("<"),r=t.pop() +function xt(A){return MA({author:null,branch:"",commit:"",root:!1,summary:{changes:0,insertions:0,deletions:0}},Jt,A)}var Ht=d({"src/lib/parsers/parse-commit.ts"(){OA(),Jt=[new dA(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,((A,[e,t,r])=>{A.branch=e,A.commit=r,A.root=!!t})),new dA(/\s*Author:\s(.+)/i,((A,[e])=>{const t=e.split("<"),r=t.pop() r&&r.includes("@")&&(A.author={email:r.substr(0,r.length-1),name:t.join("<").trim()})})),new dA(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,((A,[e,t,r])=>{A.summary.changes=parseInt(e,10)||0,A.summary.insertions=parseInt(t,10)||0,A.summary.deletions=parseInt(r,10)||0})),new dA(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,((A,[e,t,r])=>{A.summary.changes=parseInt(e,10)||0 const s=parseInt(t,10)||0 "-"===r?A.summary.deletions=s:"+"===r&&(A.summary.insertions=s)}))]}}) -function Vt(){return{commit(A,...e){const t=SA(arguments),r=function(A){return!gA(A)&&Ae("git.commit: requires the commit message to be supplied as a string/string[]")}(A)||function(A,e,t){return{commands:["-c","core.abbrev=40","commit",...tA(A,"-m"),...e,...t],format:"utf-8",parser:Ht}}(z(A),z(hA(e[0],gA,[])),[...hA(e[1],iA,[]),...NA(arguments,0,!0)]) -return this._runTask(r,t)}}}var Pt=d({"src/lib/tasks/commit.ts"(){xt(),OA(),ge()}}) +function Vt(){return{commit(A,...e){const t=SA(arguments),r=function(A){return!gA(A)&&Ae("git.commit: requires the commit message to be supplied as a string/string[]")}(A)||function(A,e,t){return{commands:["-c","core.abbrev=40","commit",...tA(A,"-m"),...e,...t],format:"utf-8",parser:xt}}(z(A),z(hA(e[0],gA,[])),[...hA(e[1],iA,[]),...NA(arguments,0,!0)]) +return this._runTask(r,t)}}}var Pt=d({"src/lib/tasks/commit.ts"(){Ht(),OA(),ge()}}) var _t=d({"src/lib/tasks/first-commit.ts"(){OA(),ge()}}) var Wt,qt,jt,Xt=d({"src/lib/tasks/hash-object.ts"(){ge()}}) var Zt,Kt=d({"src/lib/responses/InitSummary.ts"(){Wt=class{constructor(A,e,t,r){this.bare=A,this.path=e,this.existing=t,this.gitDir=r}},qt=/^Init.+ repository in (.+)$/,jt=/^Rein.+ in (.+)$/}}) @@ -865,8 +885,8 @@ return{count:eA(e&&e[1]||"0"),delta:eA(t&&t[1]||"0")}}var Tr,Yr,Gr=d({"src/lib/p Object.assign(s,{[r]:eA(t)})})),new fA(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,((A,[e,t])=>{const r=e.toLowerCase(),s=Mr(A.remoteMessages) Object.assign(s,{[r]:eA(t)})})),new fA(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,((A,[e,t,r])=>{const s=Mr(A.remoteMessages) s.total=vr(e),s.reused=vr(t),s.packReused=eA(r)}))]}}) -function Jr(A,e){return MA({remoteMessages:new Yr},Tr,e)}var Or,Hr,xr,Vr,Pr,_r,Wr=d({"src/lib/parsers/parse-remote-messages.ts"(){OA(),Gr(),Tr=[new fA(/^remote:\s*(.+)$/,((A,[e])=>(A.remoteMessages.all.push(e.trim()),!1))),...Fr,new fA([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((A,[e])=>{A.remoteMessages.pullRequestUrl=e})),new fA([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((A,[e,t,r])=>{A.remoteMessages.vulnerabilities={count:eA(e),summary:t,url:r}}))],Yr=class{constructor(){this.all=[]}}}}) -var qr,jr,Xr,Zr=d({"src/lib/parsers/parse-pull.ts"(){Ur(),OA(),Wr(),Or=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Hr=/^(create|delete) mode \d+ (.+)/,xr=[new dA(/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,((A,[e,t,r])=>{A.files.push(e),t&&(A.insertions[e]=t.length),r&&(A.deletions[e]=r.length)})),new dA(Or,((A,[e,,t,,r])=>(void 0!==t||void 0!==r)&&(A.summary.changes=+e||0,A.summary.insertions=+t||0,A.summary.deletions=+r||0,!0))),new dA(Hr,((A,[e,t])=>{X(A.files,t),X("create"===e?A.created:A.deleted,t)}))],Vr=[new dA(/^from\s(.+)$/i,((A,[e])=>{A.remote=e})),new dA(/^fatal:\s(.+)$/,((A,[e])=>{A.message=e})),new dA(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,((A,[e,t,r,s])=>{A.branch.local=r,A.hash.local=e,A.branch.remote=s,A.hash.remote=t}))],Pr=(A,e)=>MA(new br,xr,[A,e]),_r=(A,e)=>Object.assign(new br,Pr(A,e),Jr(0,e))}}),Kr=d({"src/lib/parsers/parse-merge.ts"(){Lr(),OA(),Zr(),qr=[new dA(/^Auto-merging\s+(.+)$/,((A,[e])=>{A.merges.push(e)})),new dA(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((A,[e,t])=>{A.conflicts.push(new Dr(e,t))})),new dA(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((A,[e,t,r])=>{A.conflicts.push(new Dr(e,t,{deleteRef:r}))})),new dA(/^CONFLICT\s+\((.+)\):/,((A,[e])=>{A.conflicts.push(new Dr(e,null))})),new dA(/^Automatic merge failed;\s+(.+)$/,((A,[e])=>{A.result=e}))],jr=(A,e)=>Object.assign(Xr(A,e),_r(A,e)),Xr=A=>MA(new kr,qr,A)}}) +function Jr(A,e){return MA({remoteMessages:new Yr},Tr,e)}var Or,xr,Hr,Vr,Pr,_r,Wr=d({"src/lib/parsers/parse-remote-messages.ts"(){OA(),Gr(),Tr=[new fA(/^remote:\s*(.+)$/,((A,[e])=>(A.remoteMessages.all.push(e.trim()),!1))),...Fr,new fA([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],((A,[e])=>{A.remoteMessages.pullRequestUrl=e})),new fA([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],((A,[e,t,r])=>{A.remoteMessages.vulnerabilities={count:eA(e),summary:t,url:r}}))],Yr=class{constructor(){this.all=[]}}}}) +var qr,jr,Xr,Zr=d({"src/lib/parsers/parse-pull.ts"(){Ur(),OA(),Wr(),Or=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,xr=/^(create|delete) mode \d+ (.+)/,Hr=[new dA(/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,((A,[e,t,r])=>{A.files.push(e),t&&(A.insertions[e]=t.length),r&&(A.deletions[e]=r.length)})),new dA(Or,((A,[e,,t,,r])=>(void 0!==t||void 0!==r)&&(A.summary.changes=+e||0,A.summary.insertions=+t||0,A.summary.deletions=+r||0,!0))),new dA(xr,((A,[e,t])=>{X(A.files,t),X("create"===e?A.created:A.deleted,t)}))],Vr=[new dA(/^from\s(.+)$/i,((A,[e])=>{A.remote=e})),new dA(/^fatal:\s(.+)$/,((A,[e])=>{A.message=e})),new dA(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,((A,[e,t,r,s])=>{A.branch.local=r,A.hash.local=e,A.branch.remote=s,A.hash.remote=t}))],Pr=(A,e)=>MA(new br,Hr,[A,e]),_r=(A,e)=>Object.assign(new br,Pr(A,e),Jr(0,e))}}),Kr=d({"src/lib/parsers/parse-merge.ts"(){Lr(),OA(),Zr(),qr=[new dA(/^Auto-merging\s+(.+)$/,((A,[e])=>{A.merges.push(e)})),new dA(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,((A,[e,t])=>{A.conflicts.push(new Dr(e,t))})),new dA(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,((A,[e,t,r])=>{A.conflicts.push(new Dr(e,t,{deleteRef:r}))})),new dA(/^CONFLICT\s+\((.+)\):/,((A,[e])=>{A.conflicts.push(new Dr(e,null))})),new dA(/^Automatic merge failed;\s+(.+)$/,((A,[e])=>{A.result=e}))],jr=(A,e)=>Object.assign(Xr(A,e),_r(A,e)),Xr=A=>MA(new kr,qr,A)}}) function zr(A){return A.length?{commands:["merge",...A],format:"utf-8",parser(A,e){const t=jr(A,e) if(t.failed)throw new s(t) return t}}:Ae("Git.merge requires at least one option")}var $r,As,es,ts=d({"src/lib/tasks/merge.ts"(){R(),Kr(),ge()}}) @@ -910,15 +930,15 @@ this.logger("Attempting id=%s",A.id),A.done((()=>{this.logger("Completing id=",A return this.logger("Scheduling id=%s",e),this.schedule(),A}}}}),vs={} function Ts(A,e){return ee(["apply",...e,...A])}f(vs,{applyPatchTask:()=>Ts}) var Ys,Gs=d({"src/lib/tasks/apply-patch.ts"(){ge()}}) -var Js,Os,Hs,xs=d({"src/lib/responses/BranchDeleteSummary.ts"(){Ys=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}}) -function Vs(A,e){return 1===e&&Js.test(A)}var Ps,_s,Ws=d({"src/lib/parsers/parse-branch-delete.ts"(){xs(),OA(),Js=/^error[^']+'([^']+)'/m,Os=[new dA(/(\S+)\s+\(\S+\s([^)]+)\)/,((A,[e,t])=>{const r=function(A,e){return{branch:A,hash:e,success:!0}}(e,t) +var Js,Os,xs,Hs=d({"src/lib/responses/BranchDeleteSummary.ts"(){Ys=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}}) +function Vs(A,e){return 1===e&&Js.test(A)}var Ps,_s,Ws=d({"src/lib/parsers/parse-branch-delete.ts"(){Hs(),OA(),Js=/^error[^']+'([^']+)'/m,Os=[new dA(/(\S+)\s+\(\S+\s([^)]+)\)/,((A,[e,t])=>{const r=function(A,e){return{branch:A,hash:e,success:!0}}(e,t) A.all.push(r),A.branches[e]=r})),new dA(Js,((A,[e])=>{const t=function(A){return{branch:A,hash:null,success:!1}}(e) -A.errors.push(t),A.all.push(t),A.branches[e]=t}))],Hs=(A,e)=>MA(new Ys,Os,[A,e])}}),qs=d({"src/lib/responses/BranchSummary.ts"(){Ps=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(A,e,t,r,s){"*"===A&&(this.detached=e,this.current=t),this.all.push(t),this.branches[t]={current:"*"===A,linkedWorkTree:"+"===A,name:t,commit:r,label:s}}}}}) +A.errors.push(t),A.all.push(t),A.branches[e]=t}))],xs=(A,e)=>MA(new Ys,Os,[A,e])}}),qs=d({"src/lib/responses/BranchSummary.ts"(){Ps=class{constructor(){this.all=[],this.branches={},this.current="",this.detached=!1}push(A,e,t,r,s){"*"===A&&(this.detached=e,this.current=t),this.all.push(t),this.branches[t]={current:"*"===A,linkedWorkTree:"+"===A,name:t,commit:r,label:s}}}}}) function js(A){return A?A.charAt(0):""}function Xs(A){return MA(new Ps,_s,A)}var Zs=d({"src/lib/parsers/parse-branch.ts"(){qs(),OA(),_s=[new dA(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,((A,[e,t,r,s])=>{A.push(js(e),!0,t,r,s)})),new dA(new RegExp("^([*+]\\s)?(\\S+)\\s+([a-z0-9]+)\\s?(.*)$","s"),((A,[e,t,r,s])=>{A.push(js(e),!1,t,r,s)}))]}}),Ks={} function zs(A){const e=["-d","-D","--delete"] return A.some((A=>e.includes(A)))}function $s(A){const e=zs(A),t=["branch",...A] -return 1===t.length&&t.push("-a"),t.includes("-v")||t.splice(1,0,"-v"),{format:"utf-8",commands:t,parser:(A,t)=>e?Hs(A,t).all[0]:Xs(A)}}function An(){return{format:"utf-8",commands:["branch","-v"],parser:Xs}}function en(A,e=!1){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...A],parser:(A,e)=>Hs(A,e),onError({exitCode:A,stdOut:e},t,r,s){if(!Vs(String(t),A))return s(t) -r(e)}}}function tn(A,e=!1){const t={format:"utf-8",commands:["branch","-v",e?"-D":"-d",A],parser:(e,t)=>Hs(e,t).branches[A],onError({exitCode:A,stdErr:e,stdOut:r},n,o,i){if(!Vs(String(n),A))return i(n) +return 1===t.length&&t.push("-a"),t.includes("-v")||t.splice(1,0,"-v"),{format:"utf-8",commands:t,parser:(A,t)=>e?xs(A,t).all[0]:Xs(A)}}function An(){return{format:"utf-8",commands:["branch","-v"],parser:Xs}}function en(A,e=!1){return{format:"utf-8",commands:["branch","-v",e?"-D":"-d",...A],parser:(A,e)=>xs(A,e),onError({exitCode:A,stdOut:e},t,r,s){if(!Vs(String(t),A))return s(t) +r(e)}}}function tn(A,e=!1){const t={format:"utf-8",commands:["branch","-v",e?"-D":"-d",A],parser:(e,t)=>xs(e,t).branches[A],onError({exitCode:A,stdErr:e,stdOut:r},n,o,i){if(!Vs(String(n),A))return i(n) throw new s(t.parser(rA(r),rA(e)),String(n))}} return t}f(Ks,{branchLocalTask:()=>An,branchTask:()=>$s,containsDeleteBranchCommand:()=>zs,deleteBranchTask:()=>tn,deleteBranchesTask:()=>en}) var rn,sn=d({"src/lib/tasks/branch.ts"(){R(),Ws(),Zs(),OA()}}),nn=d({"src/lib/responses/CheckIgnore.ts"(){rn=A=>A.split(/\n/g).map((A=>A.trim())).filter((A=>!!A))}}),on={} @@ -949,9 +969,9 @@ function Tn(A,e,t){return ee(["remote","add",...t,A,e])}function Yn(A){const e=[ return A&&e.push("-v"),{commands:e,format:"utf-8",parser:A?Ln:Sn}}function Gn(A){const e=[...A] return"ls-remote"!==e[0]&&e.unshift("ls-remote"),ee(e)}function Jn(A){const e=[...A] return"remote"!==e[0]&&e.unshift("remote"),ee(e)}function On(A){return ee(["remote","remove",A])}f(vn,{addRemoteTask:()=>Tn,getRemotesTask:()=>Yn,listRemotesTask:()=>Gn,remoteTask:()=>Jn,removeRemoteTask:()=>On}) -var Hn=d({"src/lib/tasks/remote.ts"(){Mn(),ge()}}),xn={} +var xn=d({"src/lib/tasks/remote.ts"(){Mn(),ge()}}),Hn={} function Vn(A={},e){const t=mr(A),r=["stash","list",...t.commands,...e],s=lr(t.splitter,t.fields,er(r)) -return pr(r)||{commands:r,format:"utf-8",parser:s}}f(xn,{stashListTask:()=>Vn}) +return pr(r)||{commands:r,format:"utf-8",parser:s}}f(Hn,{stashListTask:()=>Vn}) var Pn=d({"src/lib/tasks/stash-list.ts"(){cr(),ur(),wr(),Sr()}}),_n={} function Wn(A,e){return jn(["add",A,e])}function qn(A){return jn(["init",...A])}function jn(A){const e=[...A] return"submodule"!==e[0]&&e.unshift("submodule"),ee(e)}function Xn(A){return jn(["update",...A])}f(_n,{addSubModuleTask:()=>Wn,initSubModuleTask:()=>qn,subModuleTask:()=>jn,updateSubModuleTask:()=>Xn}) @@ -966,7 +986,7 @@ const r=e?t[0]:[...t].reverse().find((A=>A.indexOf(".")>=0)) return new Zn(t,r)}}}),ro={} function so(A=[]){const e=A.some((A=>/^--sort=/.test(A))) return{format:"utf-8",commands:["tag","-l",...A],parser:A=>Kn(A,e)}}function no(A){return{format:"utf-8",commands:["tag",A],parser:()=>({name:A})}}function oo(A,e){return{format:"utf-8",commands:["tag","-a","-m",e,A],parser:()=>({name:A})}}f(ro,{addAnnotatedTagTask:()=>oo,addTagTask:()=>no,tagListTask:()=>so}) -var io,ao,co,go=d({"src/lib/tasks/tag.ts"(){to()}}),Eo=(io={"src/git.js"(A,e){var{GitExecutor:t}=(St(),y(Ft)),{SimpleGitApi:r}=(Ls(),y(bs)),{Scheduler:s}=(Ms(),y(Us)),{configurationErrorTask:n}=(ge(),y(zA)),{asArray:o,filterArray:i,filterPrimitives:a,filterString:c,filterStringOrStringArray:g,filterType:E,getTrailingOptions:Q,trailingFunctionArgument:h,trailingOptionsArgument:C}=(OA(),y(TA)),{applyPatchTask:B}=(Gs(),y(vs)),{branchTask:I,branchLocalTask:l,deleteBranchesTask:u,deleteBranchTask:d}=(sn(),y(Ks)),{checkIgnoreTask:f}=(cn(),y(on)),{checkIsRepoTask:p}=(XA(),y(HA)),{cloneTask:w,cloneMirrorTask:m}=(Bn(),y(gn)),{cleanWithOptionsTask:R,isCleanOptionsArray:D}=(le(),y(Ee)),{diffSummaryTask:k}=(wr(),y(dr)),{fetchTask:b}=(yn(),y(un)),{moveTask:N}=(kn(),y(Rn)),{pullTask:F}=(Fn(),y(bn)),{pushTagsTask:S}=(is(),y(ss)),{addRemoteTask:L,getRemotesTask:U,listRemotesTask:M,remoteTask:v,removeRemoteTask:T}=(Hn(),y(vn)),{getResetMode:Y,resetTask:G}=(He(),y(Ye)),{stashListTask:J}=(Pn(),y(xn)),{addSubModuleTask:O,initSubModuleTask:H,subModuleTask:x,updateSubModuleTask:V}=(zn(),y(_n)),{addAnnotatedTagTask:P,addTagTask:_,tagListTask:W}=(go(),y(ro)),{straightThroughBufferTask:q,straightThroughStringTask:j}=(ge(),y(zA)) +var io,ao,co,go=d({"src/lib/tasks/tag.ts"(){to()}}),Eo=(io={"src/git.js"(A,e){var{GitExecutor:t}=(St(),y(Ft)),{SimpleGitApi:r}=(Ls(),y(bs)),{Scheduler:s}=(Ms(),y(Us)),{configurationErrorTask:n}=(ge(),y(zA)),{asArray:o,filterArray:i,filterPrimitives:a,filterString:c,filterStringOrStringArray:g,filterType:E,getTrailingOptions:Q,trailingFunctionArgument:h,trailingOptionsArgument:C}=(OA(),y(TA)),{applyPatchTask:B}=(Gs(),y(vs)),{branchTask:I,branchLocalTask:l,deleteBranchesTask:u,deleteBranchTask:d}=(sn(),y(Ks)),{checkIgnoreTask:f}=(cn(),y(on)),{checkIsRepoTask:p}=(XA(),y(xA)),{cloneTask:w,cloneMirrorTask:m}=(Bn(),y(gn)),{cleanWithOptionsTask:R,isCleanOptionsArray:D}=(le(),y(Ee)),{diffSummaryTask:k}=(wr(),y(dr)),{fetchTask:b}=(yn(),y(un)),{moveTask:N}=(kn(),y(Rn)),{pullTask:F}=(Fn(),y(bn)),{pushTagsTask:S}=(is(),y(ss)),{addRemoteTask:L,getRemotesTask:U,listRemotesTask:M,remoteTask:v,removeRemoteTask:T}=(xn(),y(vn)),{getResetMode:Y,resetTask:G}=(xe(),y(Ye)),{stashListTask:J}=(Pn(),y(Hn)),{addSubModuleTask:O,initSubModuleTask:x,subModuleTask:H,updateSubModuleTask:V}=(zn(),y(_n)),{addAnnotatedTagTask:P,addTagTask:_,tagListTask:W}=(go(),y(ro)),{straightThroughBufferTask:q,straightThroughStringTask:j}=(ge(),y(zA)) function X(A,e){this._plugins=e,this._executor=new t(A.baseDir,new s(A.maxConcurrentProcesses),e),this._trimmed=A.trimmed}function Z(A,e,t,r){return"string"!=typeof t?n(`git.${A}() requires a string 'repoPath'`):e(t,E(r,c),Q(arguments))}(X.prototype=Object.create(r.prototype)).constructor=X,X.prototype.customBinary=function(A){return this._plugins.reconfigure("binary",A),this},X.prototype.env=function(A,e){return 1===arguments.length&&"object"==typeof A?this._executor.env=A:(this._executor.env=this._executor.env||{})[A]=e,this},X.prototype.stashList=function(A){return this._runTask(J(C(arguments)||{},i(A)&&A||[]),h(arguments))},X.prototype.clone=function(){return this._runTask(Z("clone",w,...arguments),h(arguments))},X.prototype.mirror=function(){return this._runTask(Z("mirror",m,...arguments),h(arguments))},X.prototype.mv=function(A,e){return this._runTask(N(A,e),h(arguments))},X.prototype.checkoutLatestTag=function(A){var e=this return this.pull((function(){e.tags((function(t,r){e.checkout(r.latest,A)}))}))},X.prototype.pull=function(A,e,t,r){return this._runTask(F(E(A,c),E(e,c),Q(arguments)),h(arguments))},X.prototype.fetch=function(A,e){return this._runTask(b(E(A,c),E(e,c),Q(arguments)),h(arguments))},X.prototype.silent=function(A){return console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this will be an error in version 3"),this},X.prototype.tags=function(A,e){return this._runTask(W(Q(arguments)),h(arguments))},X.prototype.rebase=function(){return this._runTask(j(["rebase",...Q(arguments)]),h(arguments))},X.prototype.reset=function(A){return this._runTask(G(Y(A),Q(arguments)),h(arguments))},X.prototype.revert=function(A){const e=h(arguments) return"string"!=typeof A?this._runTask(n("Commit must be a string"),e):this._runTask(j(["revert",...Q(arguments,0,!0),A]),e)},X.prototype.addTag=function(A){const e="string"==typeof A?_(A):n("Git.addTag requires a tag name") @@ -974,7 +994,7 @@ return this._runTask(e,h(arguments))},X.prototype.addAnnotatedTag=function(A,e){ for(let A=0;A{"use strict" -const r=t(2613),s=t(9278),n=t(8611),{pipeline:o}=t(2203),i=t(7017),a=t(3707),c=t(5636),g=t(376),{RequestContentLengthMismatchError:E,ResponseContentLengthMismatchError:Q,InvalidArgumentError:h,RequestAbortedError:C,HeadersTimeoutError:B,HeadersOverflowError:I,SocketError:l,InformationalError:u,BodyTimeoutError:d,HTTPParserError:f,ResponseExceededMaxSizeError:p,ClientDestroyedError:y}=t(1702),w=t(5711),{kUrl:m,kReset:R,kServerName:D,kClient:k,kBusy:b,kParser:N,kConnect:F,kBlocking:S,kResuming:L,kRunning:U,kPending:M,kSize:v,kWriting:T,kQueue:Y,kConnected:G,kConnecting:J,kNeedDrain:O,kNoRef:H,kKeepAliveDefaultTimeout:x,kHostHeader:V,kPendingIdx:P,kRunningIdx:_,kError:W,kPipelining:q,kSocket:j,kKeepAliveTimeoutValue:X,kMaxHeadersSize:Z,kKeepAliveMaxTimeout:K,kKeepAliveTimeoutThreshold:z,kHeadersTimeout:$,kBodyTimeout:AA,kStrictContentLength:eA,kConnector:tA,kMaxRedirections:rA,kMaxRequests:sA,kCounter:nA,kClose:oA,kDestroy:iA,kDispatch:aA,kInterceptors:cA,kLocalAddress:gA,kMaxResponseSize:EA,kHTTPConnVersion:QA,kHost:hA,kHTTP2Session:CA,kHTTP2SessionState:BA,kHTTP2BuildRequest:IA,kHTTP2CopyHeaders:lA,kHTTP1BuildRequest:uA}=t(7336) +const r=t(2613),s=t(9278),n=t(8611),{pipeline:o}=t(2203),i=t(7017),a=t(3707),c=t(5636),g=t(376),{RequestContentLengthMismatchError:E,ResponseContentLengthMismatchError:Q,InvalidArgumentError:h,RequestAbortedError:C,HeadersTimeoutError:B,HeadersOverflowError:I,SocketError:l,InformationalError:u,BodyTimeoutError:d,HTTPParserError:f,ResponseExceededMaxSizeError:p,ClientDestroyedError:y}=t(1702),w=t(5711),{kUrl:m,kReset:R,kServerName:D,kClient:k,kBusy:b,kParser:N,kConnect:F,kBlocking:S,kResuming:L,kRunning:U,kPending:M,kSize:v,kWriting:T,kQueue:Y,kConnected:G,kConnecting:J,kNeedDrain:O,kNoRef:x,kKeepAliveDefaultTimeout:H,kHostHeader:V,kPendingIdx:P,kRunningIdx:_,kError:W,kPipelining:q,kSocket:j,kKeepAliveTimeoutValue:X,kMaxHeadersSize:Z,kKeepAliveMaxTimeout:K,kKeepAliveTimeoutThreshold:z,kHeadersTimeout:$,kBodyTimeout:AA,kStrictContentLength:eA,kConnector:tA,kMaxRedirections:rA,kMaxRequests:sA,kCounter:nA,kClose:oA,kDestroy:iA,kDispatch:aA,kInterceptors:cA,kLocalAddress:gA,kMaxResponseSize:EA,kHTTPConnVersion:QA,kHost:hA,kHTTP2Session:CA,kHTTP2SessionState:BA,kHTTP2BuildRequest:IA,kHTTP2CopyHeaders:lA,kHTTP1BuildRequest:uA}=t(7336) let dA try{dA=t(5675)}catch{dA={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:fA,HTTP2_HEADER_METHOD:pA,HTTP2_HEADER_PATH:yA,HTTP2_HEADER_SCHEME:wA,HTTP2_HEADER_CONTENT_LENGTH:mA,HTTP2_HEADER_EXPECT:RA,HTTP2_HEADER_STATUS:DA}}=dA let kA=!1 @@ -1453,24 +1473,24 @@ e[Y][e[_]++]=null,ae(e,A,t)}e[P]=e[_],r(0===e[U]),e.emit("disconnect",e[m],[e],t let GA=null,JA=async function(){const A=process.env.JEST_WORKER_ID?t(1805):void 0 let e try{e=await WebAssembly.compile(Buffer.from(t(6335),"base64"))}catch(r){e=await WebAssembly.compile(Buffer.from(A||t(1805),"base64"))}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,e,t)=>0,wasm_on_status:(A,e,t)=>{r.strictEqual(OA.ptr,A) -const s=e-VA+HA.byteOffset -return OA.onStatus(new bA(HA.buffer,s,t))||0},wasm_on_message_begin:A=>(r.strictEqual(OA.ptr,A),OA.onMessageBegin()||0),wasm_on_header_field:(A,e,t)=>{r.strictEqual(OA.ptr,A) -const s=e-VA+HA.byteOffset -return OA.onHeaderField(new bA(HA.buffer,s,t))||0},wasm_on_header_value:(A,e,t)=>{r.strictEqual(OA.ptr,A) -const s=e-VA+HA.byteOffset -return OA.onHeaderValue(new bA(HA.buffer,s,t))||0},wasm_on_headers_complete:(A,e,t,s)=>(r.strictEqual(OA.ptr,A),OA.onHeadersComplete(e,Boolean(t),Boolean(s))||0),wasm_on_body:(A,e,t)=>{r.strictEqual(OA.ptr,A) -const s=e-VA+HA.byteOffset -return OA.onBody(new bA(HA.buffer,s,t))||0},wasm_on_message_complete:A=>(r.strictEqual(OA.ptr,A),OA.onMessageComplete()||0)}})}() +const s=e-VA+xA.byteOffset +return OA.onStatus(new bA(xA.buffer,s,t))||0},wasm_on_message_begin:A=>(r.strictEqual(OA.ptr,A),OA.onMessageBegin()||0),wasm_on_header_field:(A,e,t)=>{r.strictEqual(OA.ptr,A) +const s=e-VA+xA.byteOffset +return OA.onHeaderField(new bA(xA.buffer,s,t))||0},wasm_on_header_value:(A,e,t)=>{r.strictEqual(OA.ptr,A) +const s=e-VA+xA.byteOffset +return OA.onHeaderValue(new bA(xA.buffer,s,t))||0},wasm_on_headers_complete:(A,e,t,s)=>(r.strictEqual(OA.ptr,A),OA.onHeadersComplete(e,Boolean(t),Boolean(s))||0),wasm_on_body:(A,e,t)=>{r.strictEqual(OA.ptr,A) +const s=e-VA+xA.byteOffset +return OA.onBody(new bA(xA.buffer,s,t))||0},wasm_on_message_complete:A=>(r.strictEqual(OA.ptr,A),OA.onMessageComplete()||0)}})}() JA.catch() -let OA=null,HA=null,xA=0,VA=null +let OA=null,xA=null,HA=0,VA=null const PA=1,_A=3 class WA{constructor(A,e,{exports:t}){r(Number.isFinite(A[Z])&&A[Z]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(vA.TYPE.RESPONSE),this.client=A,this.socket=e,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=A[Z],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=A[EA]}setTimeout(A,e){this.timeoutType=e,A!==this.timeoutValue?(a.clearTimeout(this.timeout),A?(this.timeout=a.setTimeout(qA,A,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=A):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){!this.socket.destroyed&&this.paused&&(r(null!=this.ptr),r(null==OA),this.llhttp.llhttp_resume(this.ptr),r(2===this.timeoutType),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||YA),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){const A=this.socket.read() if(null===A)break this.execute(A)}}execute(A){r(null!=this.ptr),r(null==OA),r(!this.paused) const{socket:e,llhttp:t}=this -A.length>xA&&(VA&&t.free(VA),xA=4096*Math.ceil(A.length/4096),VA=t.malloc(xA)),new Uint8Array(t.memory.buffer,VA,xA).set(A) +A.length>HA&&(VA&&t.free(VA),HA=4096*Math.ceil(A.length/4096),VA=t.malloc(HA)),new Uint8Array(t.memory.buffer,VA,HA).set(A) try{let r -try{HA=A,OA=this,r=t.llhttp_execute(this.ptr,VA,A.length)}catch(A){throw A}finally{OA=null,HA=null}const s=t.llhttp_get_error_pos(this.ptr)-VA +try{xA=A,OA=this,r=t.llhttp_execute(this.ptr,VA,A.length)}catch(A){throw A}finally{OA=null,xA=null}const s=t.llhttp_get_error_pos(this.ptr)-VA if(r===vA.ERROR.PAUSED_UPGRADE)this.onUpgrade(A.slice(s)) else if(r===vA.ERROR.PAUSED)this.paused=!0,e.unshift(A.slice(s)) else if(r!==vA.ERROR.OK){const e=t.llhttp_get_error_reason(this.ptr) @@ -1498,7 +1518,7 @@ if("CONNECT"===c.method)return r(1===s[U]),this.upgrade=!0,2 if(e)return r(1===s[U]),this.upgrade=!0,2 if(r(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[q]){const A=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null if(null!=A){const e=Math.min(A-s[z],s[K]) -e<=0?n[R]=!0:s[X]=e}else s[X]=s[x]}else n[R]=!0 +e<=0?n[R]=!0:s[X]=e}else s[X]=s[H]}else n[R]=!0 const g=!1===c.onHeaders(A,o,this.resume,a) return c.aborted?-1:"HEAD"===c.method||A<200?1:(n[S]&&(n[S]=!1,ee(s)),g?vA.ERROR.PAUSED:0)}onBody(A){const{client:e,socket:t,statusCode:s,maxResponseSize:n}=this if(t.destroyed)return-1 @@ -1530,14 +1550,14 @@ if(A.destroyed)return void i.destroy(s.on("error",(()=>{})),new y) A[J]=!1,r(s) if("h2"===s.alpnProtocol){kA||(kA=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})) const e=dA.connect(A[m],{createConnection:()=>s,peerMaxConcurrentStreams:A[BA].maxConcurrentStreams}) -A[QA]="h2",e[k]=A,e[j]=s,e.on("error",SA),e.on("frameError",LA),e.on("end",UA),e.on("goaway",MA),e.on("close",zA),e.unref(),A[CA]=e,s[CA]=e}else GA||(GA=await JA,JA=null),s[H]=!1,s[T]=!1,s[R]=!1,s[S]=!1,s[N]=new WA(A,s,GA) +A[QA]="h2",e[k]=A,e[j]=s,e.on("error",SA),e.on("frameError",LA),e.on("end",UA),e.on("goaway",MA),e.on("close",zA),e.unref(),A[CA]=e,s[CA]=e}else GA||(GA=await JA,JA=null),s[x]=!1,s[T]=!1,s[R]=!1,s[S]=!1,s[N]=new WA(A,s,GA) s[nA]=0,s[sA]=A[sA],s[k]=A,s[W]=null,s.on("error",XA).on("readable",jA).on("end",KA).on("close",zA),A[j]=s,FA.connected.hasSubscribers&&FA.connected.publish({connectParams:{host:e,hostname:t,protocol:n,port:o,servername:A[D],localAddress:A[gA]},connector:A[tA],socket:s}),A.emit("connect",A[m],[A])}catch(s){if(A.destroyed)return if(A[J]=!1,FA.connectError.hasSubscribers&&FA.connectError.publish({connectParams:{host:e,hostname:t,protocol:n,port:o,servername:A[D],localAddress:A[gA]},connector:A[tA],error:s}),"ERR_TLS_CERT_ALTNAME_INVALID"===s.code)for(r(0===A[U]);A[M]>0&&A[Y][A[P]].servername===A[D];){const e=A[Y][A[P]++] ae(A,e,s)}else ZA(A,s) A.emit("connectionError",A[m],[A],s)}ee(A)}function Ae(A){A[O]=0,A.emit("drain",A[m],[A])}function ee(A,e){2!==A[L]&&(A[L]=2,function(A,e){for(;;){if(A.destroyed)return void r(0===A[M]) if(A[NA]&&!A[v])return A[NA](),void(A[NA]=null) const t=A[j] -if(t&&!t.destroyed&&"h2"!==t.alpnProtocol)if(0===A[v]?!t[H]&&t.unref&&(t.unref(),t[H]=!0):t[H]&&t.ref&&(t.ref(),t[H]=!1),0===A[v])t[N].timeoutType!==_A&&t[N].setTimeout(A[X],_A) +if(t&&!t.destroyed&&"h2"!==t.alpnProtocol)if(0===A[v]?!t[x]&&t.unref&&(t.unref(),t[x]=!0):t[x]&&t.ref&&(t.ref(),t[x]=!1),0===A[v])t[N].timeoutType!==_A&&t[N].setTimeout(A[X],_A) else if(A[U]>0&&t[N].statusCode<200&&t[N].timeoutType!==PA){const e=A[Y][A[_]],r=null!=e.headersTimeout?e.headersTimeout:A[$] t[N].setTimeout(r,PA)}if(A[b])A[O]=2 else if(2===A[O]){e?(A[O]=1,process.nextTick(Ae,A)):Ae(A) @@ -1634,7 +1654,7 @@ if(null!=F&&(!Number.isInteger(F)||F<-1))throw new h("maxResponseSize must be a if(null!=U&&(!Number.isInteger(U)||U<-1))throw new h("autoSelectFamilyAttemptTimeout must be a positive number") if(null!=M&&"boolean"!=typeof M)throw new h("allowH2 must be a valid boolean value") if(null!=v&&("number"!=typeof v||v<1))throw new h("maxConcurrentStreams must be a possitive integer, greater than 0") -"function"!=typeof k&&(k=w({...f,maxCachedSessions:y,allowH2:M,socketPath:u,timeout:c,...i.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:U}:void 0,...k})),this[cA]=e&&e.Client&&Array.isArray(e.Client)?e.Client:[TA({maxRedirections:R})],this[m]=i.parseOrigin(A),this[tA]=k,this[j]=null,this[q]=null!=d?d:1,this[Z]=t||n.maxHeaderSize,this[x]=null==C?4e3:C,this[K]=null==I?6e5:I,this[z]=null==l?1e3:l,this[X]=this[x],this[D]=null,this[gA]=null!=N?N:null,this[L]=0,this[O]=0,this[V]=`host: ${this[m].hostname}${this[m].port?`:${this[m].port}`:""}\r\n`,this[AA]=null!=g?g:3e5,this[$]=null!=r?r:3e5,this[eA]=null==p||p,this[rA]=R,this[sA]=b,this[NA]=null,this[EA]=F>-1?F:-1,this[QA]="h1",this[CA]=null,this[BA]=M?{openStreams:0,maxConcurrentStreams:null!=v?v:100}:null,this[hA]=`${this[m].hostname}${this[m].port?`:${this[m].port}`:""}`,this[Y]=[],this[_]=0,this[P]=0}get pipelining(){return this[q]}set pipelining(A){this[q]=A,ee(this,!0)}get[M](){return this[Y].length-this[P]}get[U](){return this[P]-this[_]}get[v](){return this[Y].length-this[_]}get[G](){return!!this[j]&&!this[J]&&!this[j].destroyed}get[b](){const A=this[j] +"function"!=typeof k&&(k=w({...f,maxCachedSessions:y,allowH2:M,socketPath:u,timeout:c,...i.nodeHasAutoSelectFamily&&S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:U}:void 0,...k})),this[cA]=e&&e.Client&&Array.isArray(e.Client)?e.Client:[TA({maxRedirections:R})],this[m]=i.parseOrigin(A),this[tA]=k,this[j]=null,this[q]=null!=d?d:1,this[Z]=t||n.maxHeaderSize,this[H]=null==C?4e3:C,this[K]=null==I?6e5:I,this[z]=null==l?1e3:l,this[X]=this[H],this[D]=null,this[gA]=null!=N?N:null,this[L]=0,this[O]=0,this[V]=`host: ${this[m].hostname}${this[m].port?`:${this[m].port}`:""}\r\n`,this[AA]=null!=g?g:3e5,this[$]=null!=r?r:3e5,this[eA]=null==p||p,this[rA]=R,this[sA]=b,this[NA]=null,this[EA]=F>-1?F:-1,this[QA]="h1",this[CA]=null,this[BA]=M?{openStreams:0,maxConcurrentStreams:null!=v?v:100}:null,this[hA]=`${this[m].hostname}${this[m].port?`:${this[m].port}`:""}`,this[Y]=[],this[_]=0,this[P]=0}get pipelining(){return this[q]}set pipelining(A){this[q]=A,ee(this,!0)}get[M](){return this[Y].length-this[P]}get[U](){return this[P]-this[_]}get[v](){return this[Y].length-this[_]}get[G](){return!!this[j]&&!this[J]&&!this[j].destroyed}get[b](){const A=this[j] return A&&(A[R]||A[T]||A[S])||this[v]>=(this[q]||1)||this[M]>0}[F](A){$A(this),this.once("connect",A)}[aA](A,e){const t=A.origin||this[m].origin,r="h2"===this[QA]?c[IA](t,A,e):c[uA](t,A,e) return this[Y].push(r),this[L]||(null==i.bodyLength(r.body)&&i.isIterable(r.body)?(this[L]=1,process.nextTick(ee,this)):ee(this,!0)),this[L]&&2!==this[O]&&this[b]&&(this[O]=2),this[O]<2}async[oA](){return new Promise((A=>{this[v]?this[NA]=A:A(null)}))}async[iA](A){return new Promise((e=>{const t=this[Y].splice(this[P]) for(let e=0;e{this[NA]&&(this[NA](),this[NA]=null),e()} @@ -2033,7 +2053,7 @@ return i((()=>A),"Headers","value")}return i((()=>[...this[h].values()]),"Header return i((()=>A),"Headers","key+value")}return i((()=>[...this[h].values()]),"Headers","key+value")}forEach(A,e=globalThis){if(g.brandCheck(this,d),g.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),"function"!=typeof A)throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.") for(const[t,r]of this)A.apply(e,[r,t,this])}[Symbol.for("nodejs.util.inspect.custom")](){return g.brandCheck(this,d),this[r]}}d.prototype[Symbol.iterator]=d.prototype.entries,Object.defineProperties(d.prototype,{append:o,delete:o,get:o,has:o,set:o,getSetCookie:o,keys:o,values:o,entries:o,forEach:o,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}}),g.converters.HeadersInit=function(A){if("Object"===g.util.Type(A))return A[Symbol.iterator]?g.converters["sequence>"](A):g.converters["record"](A) throw g.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})},A.exports={fill:I,Headers:d,HeadersList:u}},3254:(A,e,t)=>{"use strict" -const{Response:r,makeNetworkError:s,makeAppropriateNetworkError:n,filterResponse:o,makeResponse:i}=t(2675),{Headers:a}=t(7836),{Request:c,makeRequest:g}=t(4375),E=t(3106),{bytesMatch:Q,makePolicyContainer:h,clonePolicyContainer:C,requestBadPort:B,TAOCheck:I,appendRequestOriginHeader:l,responseLocationURL:u,requestCurrentURL:d,setRequestReferrerPolicyOnRedirect:f,tryUpgradeRequestToAPotentiallyTrustworthyURL:p,createOpaqueTimingInfo:y,appendFetchMetadata:w,corsCheck:m,crossOriginResourcePolicyCheck:R,determineRequestsReferrer:D,coarsenedSharedCurrentTime:k,createDeferredPromise:b,isBlobLike:N,sameOrigin:F,isCancelled:S,isAborted:L,isErrorLike:U,fullyReadBody:M,readableStreamClose:v,isomorphicEncode:T,urlIsLocal:Y,urlIsHttpHttpsScheme:G,urlHasHttpsScheme:J}=t(9064),{kState:O,kHeaders:H,kGuard:x,kRealm:V}=t(4803),P=t(2613),{safelyExtractBody:_}=t(6628),{redirectStatusSet:W,nullBodyStatus:q,safeMethodsSet:j,requestBodyHeader:X,subresourceSet:Z,DOMException:K}=t(6983),{kHeadersList:z}=t(7336),$=t(4434),{Readable:AA,pipeline:eA}=t(2203),{addAbortListener:tA,isErrored:rA,isReadable:sA,nodeMajor:nA,nodeMinor:oA}=t(7017),{dataURLProcessor:iA,serializeAMimeType:aA}=t(1895),{TransformStream:cA}=t(3774),{getGlobalDispatcher:gA}=t(1914),{webidl:EA}=t(1421),{STATUS_CODES:QA}=t(8611),hA=["GET","HEAD"] +const{Response:r,makeNetworkError:s,makeAppropriateNetworkError:n,filterResponse:o,makeResponse:i}=t(2675),{Headers:a}=t(7836),{Request:c,makeRequest:g}=t(4375),E=t(3106),{bytesMatch:Q,makePolicyContainer:h,clonePolicyContainer:C,requestBadPort:B,TAOCheck:I,appendRequestOriginHeader:l,responseLocationURL:u,requestCurrentURL:d,setRequestReferrerPolicyOnRedirect:f,tryUpgradeRequestToAPotentiallyTrustworthyURL:p,createOpaqueTimingInfo:y,appendFetchMetadata:w,corsCheck:m,crossOriginResourcePolicyCheck:R,determineRequestsReferrer:D,coarsenedSharedCurrentTime:k,createDeferredPromise:b,isBlobLike:N,sameOrigin:F,isCancelled:S,isAborted:L,isErrorLike:U,fullyReadBody:M,readableStreamClose:v,isomorphicEncode:T,urlIsLocal:Y,urlIsHttpHttpsScheme:G,urlHasHttpsScheme:J}=t(9064),{kState:O,kHeaders:x,kGuard:H,kRealm:V}=t(4803),P=t(2613),{safelyExtractBody:_}=t(6628),{redirectStatusSet:W,nullBodyStatus:q,safeMethodsSet:j,requestBodyHeader:X,subresourceSet:Z,DOMException:K}=t(6983),{kHeadersList:z}=t(7336),$=t(4434),{Readable:AA,pipeline:eA}=t(2203),{addAbortListener:tA,isErrored:rA,isReadable:sA,nodeMajor:nA,nodeMinor:oA}=t(7017),{dataURLProcessor:iA,serializeAMimeType:aA}=t(1895),{TransformStream:cA}=t(3774),{getGlobalDispatcher:gA}=t(1914),{webidl:EA}=t(1421),{STATUS_CODES:QA}=t(8611),hA=["GET","HEAD"] let CA,BA=globalThis.ReadableStream class IA extends ${constructor(A){super(),this.dispatcher=A,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21)}terminate(A){"ongoing"===this.state&&(this.state="terminated",this.connection?.destroy(A),this.emit("terminated",A))}abort(A){"ongoing"===this.state&&(this.state="aborted",A||(A=new K("The operation was aborted.","AbortError")),this.serializedAbortReason=A,this.connection?.destroy(A),this.emit("terminated",A))}}function lA(A,e="other"){if("error"===A.type&&A.aborted)return if(!A.urlList?.length)return @@ -2147,10 +2167,10 @@ if(s.signal.aborted)return uA(t,n,null,s.signal.reason),t.promise const o=n.client.globalObject "ServiceWorkerGlobalScope"===o?.constructor?.name&&(n.serviceWorkers="none") let i=null,a=!1,g=null -return tA(s.signal,(()=>{a=!0,P(null!=g),g.abort(s.signal.reason),uA(t,n,i,s.signal.reason)})),g=dA({request:n,processResponseEndOfBody:A=>lA(A,"fetch"),processResponse:A=>a?Promise.resolve():A.aborted?(uA(t,n,i,g.serializedAbortReason),Promise.resolve()):"error"===A.type?(t.reject(Object.assign(new TypeError("fetch failed"),{cause:A.error})),Promise.resolve()):(i=new r,i[O]=A,i[V]=null,i[H][z]=A.headersList,i[H][x]="immutable",i[H][V]=null,void t.resolve(i)),dispatcher:e.dispatcher??gA()}),t.promise},Fetch:IA,fetching:dA,finalizeAndReportTiming:lA}},4375:(A,e,t)=>{"use strict" +return tA(s.signal,(()=>{a=!0,P(null!=g),g.abort(s.signal.reason),uA(t,n,i,s.signal.reason)})),g=dA({request:n,processResponseEndOfBody:A=>lA(A,"fetch"),processResponse:A=>a?Promise.resolve():A.aborted?(uA(t,n,i,g.serializedAbortReason),Promise.resolve()):"error"===A.type?(t.reject(Object.assign(new TypeError("fetch failed"),{cause:A.error})),Promise.resolve()):(i=new r,i[O]=A,i[V]=null,i[x][z]=A.headersList,i[x][H]="immutable",i[x][V]=null,void t.resolve(i)),dispatcher:e.dispatcher??gA()}),t.promise},Fetch:IA,fetching:dA,finalizeAndReportTiming:lA}},4375:(A,e,t)=>{"use strict" const{extractBody:r,mixinBody:s,cloneBody:n}=t(6628),{Headers:o,fill:i,HeadersList:a}=t(7836),{FinalizationRegistry:c}=t(9875)(),g=t(7017),{isValidHTTPToken:E,sameOrigin:Q,normalizeMethod:h,makePolicyContainer:C,normalizeMethodRecord:B}=t(9064),{forbiddenMethodsSet:I,corsSafeListedMethodsSet:l,referrerPolicy:u,requestRedirect:d,requestMode:f,requestCredentials:p,requestCache:y,requestDuplex:w}=t(6983),{kEnumerableProperty:m}=g,{kHeaders:R,kSignal:D,kState:k,kGuard:b,kRealm:N}=t(4803),{webidl:F}=t(1421),{getGlobalOrigin:S}=t(1547),{URLSerializer:L}=t(1895),{kHeadersList:U,kConstruct:M}=t(7336),v=t(2613),{getMaxListeners:T,setMaxListeners:Y,getEventListeners:G,defaultMaxListeners:J}=t(4434) let O=globalThis.TransformStream -const H=Symbol("abortController"),x=new c((({signal:A,abort:e})=>{A.removeEventListener("abort",e)})) +const x=Symbol("abortController"),H=new c((({signal:A,abort:e})=>{A.removeEventListener("abort",e)})) class V{constructor(A,e={}){if(A===M)return F.argumentLengthCheck(arguments,1,{header:"Request constructor"}),A=F.converters.RequestInfo(A),e=F.converters.RequestInit(e),this[N]={settingsObject:{baseUrl:S(),get origin(){return this.baseUrl?.origin},policyContainer:C()}} let s=null,n=null @@ -2177,10 +2197,10 @@ A=B[A]??h(A),s.method=A}void 0!==e.signal&&(u=e.signal),this[k]=s const w=new AbortController if(this[D]=w.signal,this[D][N]=this[N],null!=u){if(!u||"boolean"!=typeof u.aborted||"function"!=typeof u.addEventListener)throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.") if(u.aborted)w.abort(u.reason) -else{this[H]=w +else{this[x]=w const A=new WeakRef(w),e=function(){const e=A.deref() void 0!==e&&e.abort(this.reason)} -try{("function"==typeof T&&T(u)===J||G(u,"abort").length>=J)&&Y(100,u)}catch{}g.addAbortListener(u,e),x.register(w,{signal:u,abort:e})}}if(this[R]=new o(M),this[R][U]=s.headersList,this[R][b]="request",this[R][N]=this[N],"no-cors"===y){if(!l.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`) +try{("function"==typeof T&&T(u)===J||G(u,"abort").length>=J)&&Y(100,u)}catch{}g.addAbortListener(u,e),H.register(w,{signal:u,abort:e})}}if(this[R]=new o(M),this[R][U]=s.headersList,this[R][b]="request",this[R][N]=this[N],"no-cors"===y){if(!l.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`) this[R][b]="request-no-cors"}if(p){const A=this[R][U],t=void 0!==e.headers?e.headers:new a(A) if(A.clear(),t instanceof a){for(const[e,r]of t)A.append(e,r) A.cookies=t.cookies}else i(this[R],t)}const m=A instanceof V?A[k].body:null @@ -2206,7 +2226,7 @@ const{Headers:r,HeadersList:s,fill:n}=t(7836),{extractBody:o,cloneBody:i,mixinBo class v{static error(){const A={settingsObject:{}},e=new v return e[p]=G(),e[m]=A,e[y][N]=e[p].headersList,e[y][w]="immutable",e[y][m]=A,e}static json(A,e={}){R.argumentLengthCheck(arguments,1,{header:"Response.json"}),null!==e&&(e=R.converters.ResponseInit(e)) const t=M.encode(B(A)),r=o(t),s={settingsObject:{}},n=new v -return n[m]=s,n[y][w]="response",n[y][m]=s,H(n,e,{body:r[0],type:"application/json"}),n}static redirect(A,e=302){const t={settingsObject:{}} +return n[m]=s,n[y][w]="response",n[y][m]=s,x(n,e,{body:r[0],type:"application/json"}),n}static redirect(A,e=302){const t={settingsObject:{}} let r R.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),A=R.converters.USVString(A),e=R.converters["unsigned short"](e) try{r=new URL(A,k())}catch(e){throw Object.assign(new TypeError("Failed to parse URL from "+A),{cause:e})}if(!u.has(e))throw new RangeError("Invalid status code "+e) @@ -2216,13 +2236,13 @@ const n=l(b(r)) return s[p].headersList.append("location",n),s}constructor(A=null,e={}){null!==A&&(A=R.converters.BodyInit(A)),e=R.converters.ResponseInit(e),this[m]={settingsObject:{}},this[p]=Y({}),this[y]=new r(F),this[y][w]="response",this[y][N]=this[p].headersList,this[y][m]=this[m] let t=null if(null!=A){const[e,r]=o(A) -t={body:e,type:r}}H(this,e,t)}get type(){return R.brandCheck(this,v),this[p].type}get url(){R.brandCheck(this,v) +t={body:e,type:r}}x(this,e,t)}get type(){return R.brandCheck(this,v),this[p].type}get url(){R.brandCheck(this,v) const A=this[p].urlList,e=A[A.length-1]??null return null===e?"":b(e,!0)}get redirected(){return R.brandCheck(this,v),this[p].urlList.length>1}get status(){return R.brandCheck(this,v),this[p].status}get ok(){return R.brandCheck(this,v),this[p].status>=200&&this[p].status<=299}get statusText(){return R.brandCheck(this,v),this[p].statusText}get headers(){return R.brandCheck(this,v),this[y]}get body(){return R.brandCheck(this,v),this[p].body?this[p].body.stream:null}get bodyUsed(){return R.brandCheck(this,v),!!this[p].body&&c.isDisturbed(this[p].body.stream)}clone(){if(R.brandCheck(this,v),this.bodyUsed||this.body&&this.body.locked)throw R.errors.exception({header:"Response.clone",message:"Body has already been consumed."}) const A=T(this[p]),e=new v return e[p]=A,e[m]=this[m],e[y][N]=A.headersList,e[y][w]=this[y][w],e[y][m]=this[y][m],e}}function T(A){if(A.internalResponse)return O(T(A.internalResponse),A.type) const e=Y({...A,body:null}) -return null!=A.body&&(e.body=i(A.body)),e}function Y(A){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...A,headersList:A.headersList?new s(A.headersList):new s,urlList:A.urlList?[...A.urlList]:[]}}function G(A){return Y({type:"error",status:0,error:I(A)?A:new Error(A?String(A):A),aborted:A&&"AbortError"===A.name})}function J(A,e){return e={internalResponse:A,...e},new Proxy(A,{get:(A,t)=>t in e?e[t]:A[t],set:(A,t,r)=>(S(!(t in e)),A[t]=r,!0)})}function O(A,e){return"basic"===e?J(A,{type:"basic",headersList:A.headersList}):"cors"===e?J(A,{type:"cors",headersList:A.headersList}):"opaque"===e?J(A,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===e?J(A,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void S(!1)}function H(A,e,t){if(null!==e.status&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.') +return null!=A.body&&(e.body=i(A.body)),e}function Y(A){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...A,headersList:A.headersList?new s(A.headersList):new s,urlList:A.urlList?[...A.urlList]:[]}}function G(A){return Y({type:"error",status:0,error:I(A)?A:new Error(A?String(A):A),aborted:A&&"AbortError"===A.name})}function J(A,e){return e={internalResponse:A,...e},new Proxy(A,{get:(A,t)=>t in e?e[t]:A[t],set:(A,t,r)=>(S(!(t in e)),A[t]=r,!0)})}function O(A,e){return"basic"===e?J(A,{type:"basic",headersList:A.headersList}):"cors"===e?J(A,{type:"cors",headersList:A.headersList}):"opaque"===e?J(A,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===e?J(A,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void S(!1)}function x(A,e,t){if(null!==e.status&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.') if("statusText"in e&&null!=e.statusText&&!E(String(e.statusText)))throw new TypeError("Invalid statusText") if("status"in e&&null!=e.status&&(A[p].status=e.status),"statusText"in e&&null!=e.statusText&&(A[p].statusText=e.statusText),"headers"in e&&null!=e.headers&&n(A[y],e.headers),t){if(d.includes(A.status))throw R.errors.exception({header:"Response constructor",message:"Invalid response status code "+A.status}) A[p].body=t.body,null==t.type||A[p].headersList.contains("Content-Type")||A[p].headersList.append("content-type",t.type)}}a(v),Object.defineProperties(v.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:"Response",configurable:!0}}),Object.defineProperties(v,{json:g,redirect:g,error:g}),R.converters.ReadableStream=R.interfaceConverter(U),R.converters.FormData=R.interfaceConverter(D),R.converters.URLSearchParams=R.interfaceConverter(URLSearchParams),R.converters.XMLHttpRequestBodyInit=function(A){return"string"==typeof A?R.converters.USVString(A):C(A)?R.converters.Blob(A,{strict:!1}):L.isArrayBuffer(A)||L.isTypedArray(A)||L.isDataView(A)?R.converters.BufferSource(A):c.isFormDataLike(A)?R.converters.FormData(A,{strict:!1}):A instanceof URLSearchParams?R.converters.URLSearchParams(A):R.converters.DOMString(A)},R.converters.BodyInit=function(A){return A instanceof U?R.converters.ReadableStream(A):A?.[Symbol.asyncIterator]?A:R.converters.XMLHttpRequestBodyInit(A)},R.converters.ResponseInit=R.dictionaryConverter([{key:"status",converter:R.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:R.converters.ByteString,defaultValue:""},{key:"headers",converter:R.converters.HeadersInit}]),A.exports={makeNetworkError:G,makeResponse:Y,makeAppropriateNetworkError:function(A,e=null){return S(Q(A)),h(A)?G(Object.assign(new f("The operation was aborted.","AbortError"),{cause:e})):G(Object.assign(new f("Request was cancelled."),{cause:e}))},filterResponse:O,Response:v,cloneResponse:T}},4803:A=>{"use strict" @@ -2799,51 +2819,7 @@ const t=A.headersList.get("sec-websocket-extensions") null!==t&&(this.#C=t) const r=A.headersList.get("sec-websocket-protocol") null!==r&&(this.#h=r),y("open",this)}}S.CONNECTING=S.prototype.CONNECTING=a.CONNECTING,S.OPEN=S.prototype.OPEN=a.OPEN,S.CLOSING=S.prototype.CLOSING=a.CLOSING,S.CLOSED=S.prototype.CLOSED=a.CLOSED,Object.defineProperties(S.prototype,{CONNECTING:i,OPEN:i,CLOSING:i,CLOSED:i,url:D,readyState:D,bufferedAmount:D,onopen:D,onerror:D,onclose:D,close:D,onmessage:D,binaryType:D,send:D,extensions:D,protocol:D,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(S,{CONNECTING:i,OPEN:i,CLOSING:i,CLOSED:i}),r.converters["sequence"]=r.sequenceConverter(r.converters.DOMString),r.converters["DOMString or sequence"]=function(A){return"Object"===r.util.Type(A)&&Symbol.iterator in A?r.converters["sequence"](A):r.converters.DOMString(A)},r.converters.WebSocketInit=r.dictionaryConverter([{key:"protocols",converter:r.converters["DOMString or sequence"],get defaultValue(){return[]}},{key:"dispatcher",converter:A=>A,get defaultValue(){return b()}},{key:"headers",converter:r.nullableConverter(r.converters.HeadersInit)}]),r.converters["DOMString or sequence or WebSocketInit"]=function(A){return"Object"!==r.util.Type(A)||Symbol.iterator in A?{protocols:r.converters["DOMString or sequence"](A)}:r.converters.WebSocketInit(A)},r.converters.WebSocketSendData=function(A){if("Object"===r.util.Type(A)){if(k(A))return r.converters.Blob(A,{strict:!1}) -if(ArrayBuffer.isView(A)||N.isAnyArrayBuffer(A))return r.converters.BufferSource(A)}return r.converters.USVString(A)},A.exports={WebSocket:S}},2587:(A,e,t)=>{"use strict" -t.r(e),t.d(e,{NIL:()=>y,parse:()=>l,stringify:()=>E,v1:()=>I,v3:()=>d,v4:()=>f,v5:()=>p,validate:()=>c,version:()=>w}) -var r=t(6982),s=t.n(r) -const n=new Uint8Array(256) -let o=n.length -function i(){return o>n.length-16&&(s().randomFillSync(n),o=0),n.slice(o,o+=16)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i -const c=function(A){return"string"==typeof A&&a.test(A)},g=[] -for(let A=0;A<256;++A)g.push((A+256).toString(16).substr(1)) -const E=function(A,e=0){const t=(g[A[e+0]]+g[A[e+1]]+g[A[e+2]]+g[A[e+3]]+"-"+g[A[e+4]]+g[A[e+5]]+"-"+g[A[e+6]]+g[A[e+7]]+"-"+g[A[e+8]]+g[A[e+9]]+"-"+g[A[e+10]]+g[A[e+11]]+g[A[e+12]]+g[A[e+13]]+g[A[e+14]]+g[A[e+15]]).toLowerCase() -if(!c(t))throw TypeError("Stringified UUID is invalid") -return t} -let Q,h,C=0,B=0 -const I=function(A,e,t){let r=e&&t||0 -const s=e||new Array(16) -let n=(A=A||{}).node||Q,o=void 0!==A.clockseq?A.clockseq:h -if(null==n||null==o){const e=A.random||(A.rng||i)() -null==n&&(n=Q=[1|e[0],e[1],e[2],e[3],e[4],e[5]]),null==o&&(o=h=16383&(e[6]<<8|e[7]))}let a=void 0!==A.msecs?A.msecs:Date.now(),c=void 0!==A.nsecs?A.nsecs:B+1 -const g=a-C+(c-B)/1e4 -if(g<0&&void 0===A.clockseq&&(o=o+1&16383),(g<0||a>C)&&void 0===A.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec") -C=a,B=c,h=o,a+=122192928e5 -const I=(1e4*(268435455&a)+c)%4294967296 -s[r++]=I>>>24&255,s[r++]=I>>>16&255,s[r++]=I>>>8&255,s[r++]=255&I -const l=a/4294967296*1e4&268435455 -s[r++]=l>>>8&255,s[r++]=255&l,s[r++]=l>>>24&15|16,s[r++]=l>>>16&255,s[r++]=o>>>8|128,s[r++]=255&o -for(let A=0;A<6;++A)s[r+A]=n[A] -return e||E(s)} -const l=function(A){if(!c(A))throw TypeError("Invalid UUID") -let e -const t=new Uint8Array(16) -return t[0]=(e=parseInt(A.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(A.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(A.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(A.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(A.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t} -function u(A,e,t){function r(A,r,s,n){if("string"==typeof A&&(A=function(A){A=unescape(encodeURIComponent(A)) -const e=[] -for(let t=0;t{"use strict" +if(ArrayBuffer.isView(A)||N.isAnyArrayBuffer(A))return r.converters.BufferSource(A)}return r.converters.USVString(A)},A.exports={WebSocket:S}},2613:A=>{"use strict" A.exports=require("assert")},290:A=>{"use strict" A.exports=require("async_hooks")},181:A=>{"use strict" A.exports=require("buffer")},5317:A=>{"use strict" @@ -3028,10 +3004,7 @@ continue}a=!1}else if('"'===E){if(!a){i?(i=!1,t=0):i=!0 continue}a=!1}else{if(a&&i&&(g+="\\"),a=!1,(2===t||3===t)&&"'"===E){2===t?(t=3,n=g.substring(1)):t=1,g="" continue}if(0===t&&("*"===E||"="===E)&&e.length){t="*"===E?2:1,e[c]=[g,void 0],g="" continue}if(!i&&";"===E){t=0,n?(g.length&&(g=r(g.replace(s,o),"binary",n)),n=""):g.length&&(g=r(g,"binary","utf8")),void 0===e[c]?e[c]=g:e[c][1]=g,g="",++c -continue}if(!i&&(" "===E||"\t"===E))continue}g+=E}return n&&g.length?g=r(g.replace(s,o),"binary",n):g&&(g=r(g,"binary","utf8")),void 0===e[c]?g&&(e[c]=g):e[c][1]=g,e}}},e={} -function t(r){var s=e[r] +continue}if(!i&&(" "===E||"\t"===E))continue}g+=E}return n&&g.length?g=r(g.replace(s,o),"binary",n):g&&(g=r(g,"binary","utf8")),void 0===e[c]?g&&(e[c]=g):e[c][1]=g,e}}},e={};(function t(r){var s=e[r] if(void 0!==s)return s.exports var n=e[r]={exports:{}} -return A[r].call(n.exports,n,n.exports,t),n.exports}t.n=A=>{var e=A&&A.__esModule?()=>A.default:()=>A -return t.d(e,{a:e}),e},t.d=(A,e)=>{for(var r in e)t.o(e,r)&&!t.o(A,r)&&Object.defineProperty(A,r,{enumerable:!0,get:e[r]})},t.o=(A,e)=>Object.prototype.hasOwnProperty.call(A,e),t.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})} -t(6968)})() +return A[r].call(n.exports,n,n.exports,t),n.exports})(6968)})() diff --git a/package-lock.json b/package-lock.json index f8d4768..0db4f50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.4.3", "license": "MIT", "dependencies": { - "@actions/core": "^1.10.1", + "@actions/core": "^1.11.1", "@actions/tool-cache": "^2.0.1", "fasm-versions": "github:stevenwdv/fasm-versions#v1.1", "simple-git": "^3.26.0" @@ -33,13 +33,12 @@ } }, "node_modules/@actions/core": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz", - "integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==", - "license": "MIT", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.11.1.tgz", + "integrity": "sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==", "dependencies": { - "@actions/http-client": "^2.0.1", - "uuid": "^8.3.2" + "@actions/exec": "^1.1.1", + "@actions/http-client": "^2.0.1" } }, "node_modules/@actions/exec": { @@ -2993,15 +2992,6 @@ "punycode": "^2.1.0" } }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", diff --git a/package.json b/package.json index d1f6f27..2dacaf0 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "node": ">=16" }, "dependencies": { - "@actions/core": "^1.10.1", + "@actions/core": "^1.11.1", "@actions/tool-cache": "^2.0.1", "fasm-versions": "github:stevenwdv/fasm-versions#v1.1", "simple-git": "^3.26.0"