mirror of
https://github.com/crazy-max/ghaction-upx.git
synced 2026-11-03 11:40:17 -07:00
replace ncc with esbuild for action bundling
This commit is contained in:
10 files changed
+1905
-105
No files matched your search
+1
-1
@@ -29,4 +29,4 @@ inputs:
|
||||
|
||||
runs:
|
||||
using: 'node24'
|
||||
main: 'dist/index.js'
|
||||
main: 'dist/index.cjs'
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
var Sm=Object.create;var tu=Object.defineProperty;var bm=Object.getOwnPropertyDescriptor;var Nm=Object.getOwnPropertyNames;var Um=Object.getPrototypeOf,Mm=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Lm=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Nm(e))!Mm.call(t,s)&&s!==A&&tu(t,s,{get:()=>e[s],enumerable:!(r=bm(e,s))||r.enumerable});return t};var H=(t,e,A)=>(A=t!=null?Sm(Um(t)):{},Lm(e||!t||!t.__esModule?tu(A,"default",{value:t,enumerable:!0}):A,t));var cu=I(Ir=>{"use strict";var QH=require("net"),Jm=require("tls"),La=require("http"),nu=require("https"),Hm=require("events"),BH=require("assert"),Vm=require("util");Ir.httpOverHttp=qm;Ir.httpsOverHttp=Om;Ir.httpOverHttps=Wm;Ir.httpsOverHttps=Pm;function qm(t){var e=new Ot(t);return e.request=La.request,e}function Om(t){var e=new Ot(t);return e.request=La.request,e.createSocket=ou,e.defaultPort=443,e}function Wm(t){var e=new Ot(t);return e.request=nu.request,e}function Pm(t){var e=new Ot(t);return e.request=nu.request,e.createSocket=ou,e.defaultPort=443,e}function Ot(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||La.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(r,s,i,n){for(var o=au(s,i,n),a=0,c=e.requests.length;a<c;++a){var l=e.requests[a];if(l.host===o.host&&l.port===o.port){e.requests.splice(a,1),l.request.onSocket(r);return}}r.destroy(),e.removeSocket(r)})}Vm.inherits(Ot,Hm.EventEmitter);Ot.prototype.addRequest=function(e,A,r,s){var i=this,n=Ta({request:e},i.options,au(A,r,s));if(i.sockets.length>=this.maxSockets){i.requests.push(n);return}i.createSocket(n,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),e.onSocket(o);function a(){i.emit("free",o,n)}function c(l){i.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};Ot.prototype.createSocket=function(e,A){var r=this,s={};r.sockets.push(s);var i=Ta({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),cA("making CONNECT request");var n=r.request(i);n.useChunkedEncodingByDefault=!1,n.once("response",o),n.once("upgrade",a),n.once("connect",c),n.once("error",l),n.end();function o(h){h.upgrade=!0}function a(h,g,u){process.nextTick(function(){c(h,g,u)})}function c(h,g,u){if(n.removeAllListeners(),g.removeAllListeners(),h.statusCode!==200){cA("tunneling socket could not be established, statusCode=%d",h.statusCode),g.destroy();var E=new Error("tunneling socket could not be established, statusCode="+h.statusCode);E.code="ECONNRESET",e.request.emit("error",E),r.removeSocket(s);return}if(u.length>0){cA("got illegal response body from proxy"),g.destroy();var E=new Error("got illegal response body from proxy");E.code="ECONNRESET",e.request.emit("error",E),r.removeSocket(s);return}return cA("tunneling connection has established"),r.sockets[r.sockets.indexOf(s)]=g,A(g)}function l(h){n.removeAllListeners(),cA(`tunneling socket could not be established, cause=%s
|
||||
`,h.message,h.stack);var g=new Error("tunneling socket could not be established, cause="+h.message);g.code="ECONNRESET",e.request.emit("error",g),r.removeSocket(s)}};Ot.prototype.removeSocket=function(e){var A=this.sockets.indexOf(e);if(A!==-1){this.sockets.splice(A,1);var r=this.requests.shift();r&&this.createSocket(r,function(s){r.request.onSocket(s)})}};function ou(t,e){var A=this;Ot.prototype.createSocket.call(A,t,function(r){var s=t.request.getHeader("host"),i=Ta({},A.options,{socket:r,servername:s?s.replace(/:.*$/,""):t.host}),n=Jm.connect(0,i);A.sockets[A.sockets.indexOf(r)]=n,e(n)})}function au(t,e,A){return typeof t=="string"?{host:t,port:e,localAddress:A}:t}function Ta(t){for(var e=1,A=arguments.length;e<A;++e){var r=arguments[e];if(typeof r=="object")for(var s=Object.keys(r),i=0,n=s.length;i<n;++i){var o=s[i];r[o]!==void 0&&(t[o]=r[o])}}return t}var cA;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?cA=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:cA=function(){};Ir.debug=cA});var hu=I((CH,lu)=>{lu.exports=cu()});var $=I((fH,gu)=>{gu.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var V=I((dH,xu)=>{"use strict";var uu=Symbol.for("undici.error.UND_ERR"),ee=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[uu]===!0}[uu]=!0},Eu=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),xa=class extends ee{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Eu]===!0}[Eu]=!0},Qu=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),va=class extends ee{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Qu]===!0}[Qu]=!0},Bu=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Ga=class extends ee{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[Bu]===!0}[Bu]=!0},Iu=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Ya=class extends ee{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Iu]===!0}[Iu]=!0},Cu=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),Ja=class extends ee{constructor(e,A,r,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=A
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function ak(t,e){let{headersList:A}=e,r=(A.get("referrer-policy",!0)??"").split(","),s="";if(r.length>0)for(let i=r.length;i!==0;i--){let n=r[i-1].trim();if(PR.has(n)){s=n;break}}s!==""&&(t.referrerPolicy=s)}function ck(){return"allowed"}function lk(){return"success"}function hk(){return"success"}function gk(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function uk(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&Sc(t.origin)&&!Sc(Fs(t))&&(e=null);break;case"same-origin":un(t,Fs(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function kr(t,e){return t}function Ek(t,e,A){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:kr(t.domainLookupStartTime,A),domainLookupEndTime:kr(t.domainLookupEndTime,A),connectionStartTime:kr(t.connectionStartTime,A),connectionEndTime:kr(t.connectionEndTime,A),secureConnectionStartTime:kr(t.secureConnectionStartTime,A),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Qk(t){return kr(KR.now(),t)}function Bk(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function KE(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Ik(t){return{referrerPolicy:t.referrerPolicy}}function Ck(t){let e=t.referrerPolicy;YA(e);let A=null;if(t.referrer==="client"){let o=WE();if(!o||o.origin==="null")return"no-referrer";A=new URL(o)}else t.referrer instanceof URL&&(A=t.referrer);let r=Fc(A),s=Fc(A,!0);r.toString().length>4096&&(r=s);let i=un(t,r),n=ks(r)&&!ks(t.url);switch(e){case"origin":return s??Fc(A,!0);case"unsafe-url":return r;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?r:s;case"strict-origin-when-cross-origin":{let o=Fs(t);return un(r,o)?r:ks(r)&&!ks(o)?"no-referrer":s}default:return n?"no-referrer":s}}function Fc(t,e){return YA(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function ks(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(A){if(A==null||A==="null")return!1;let r=new URL(A);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}function fk(t,e){if(gn===void 0)return!0;let A=$E(e);if(A==="no metadata"||A.length===0)return!0;let r=pk(A),s=wk(A,r);for(let i of s){let n=i.algo,o=i.hash,a=gn.createHash(n).update(t).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),yk(a,o))return!0}return!1}var dk=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function $E(t){let e=[],A=!0;for(let r of t.split(" ")){A=!1;let s=dk.exec(r);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();_E.includes(i)&&e.push(s.groups)}return A===!0?"no metadata":e}function pk(t){let e=t[0].algo;if(e[3]==="5")return e;for(let A=1;A<t.length;++A){let r=t[A];if(r.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;r.algo[3]==="3"&&(e="sha384")}}return e}function wk(t,e){if(t.length===1)return t;let A=0;for(let r=0;r<t.length;++r)t[r].algo===e&&(t[A++]=t[r]);return t.length=A,t}function yk(t,e){if(t.length!==e.length)return!1;for(let A=0;A<t.length;++A)if(t[A]!==e[A]){if(t[A]==="+"&&e[A]==="-"||t[A]==="/"&&e[A]==="_")continue;return!1}return!0}function mk(t){}function un(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Dk(){let t,e;return{promise:new Promise((r,s)=>{t=r,e=s}),resolve:t,reject:e}}function Rk(t){return t.controller.state==="aborted"}function kk(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Fk(t){return ek[t.toLowerCase()]??t}function Sk(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return YA(typeof e=="string"),e}var bk=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function jE(t,e,A=0,r=1){class s{#e;#t;#s;constructor(n,o){this.#e=n,
Line truncated
|
||||
`);function nF(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function oF(t){let e=t.length;if(e<27||e>70)return!1;for(let A=0;A<e;++A){let r=t.charCodeAt(A);if(!(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||r===39||r===45||r===95))return!1}return!0}function aF(t,e){Qn(e!=="failure"&&e.essence==="multipart/form-data");let A=e.parameters.get("boundary");if(A===void 0)return"failure";let r=Buffer.from(`--${A}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let n=t.length;for(;t[n-1]===10&&t[n-2]===13;)n-=2;for(n!==t.length&&(t=t.subarray(0,n));;){if(t.subarray(i.position,i.position+r.length).equals(r))i.position+=r.length;else return"failure";if(i.position===t.length-2&&Bn(t,sF,i)||i.position===t.length-4&&Bn(t,iF,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let o=cF(t,i);if(o==="failure")return"failure";let{name:a,filename:c,contentType:l,encoding:h}=o;i.position+=2;let g;{let E=t.indexOf(r.subarray(2),i.position);if(E===-1)return"failure";g=t.subarray(i.position,E-4),i.position+=g.length,h==="base64"&&(g=Buffer.from(g.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let u;c!==null?(l??="text/plain",nF(l)||(l=""),u=new AF([g],c,{type:l})):u=Kk(Buffer.from(g)),Qn(hQ(a)),Qn(typeof u=="string"&&hQ(u)||jk(u)),s.push(eF(a,u,c))}}function cF(t,e){let A=null,r=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return A===null?"failure":{name:A,filename:r,contentType:s,encoding:i};let n=Sr(o=>o!==10&&o!==13&&o!==58,t,e);if(n=xc(n,!0,!0,o=>o===9||o===32),!$k.test(n.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sr(o=>o===32||o===9,t,e),Xk(n)){case"content-disposition":{if(A=r=null,!Bn(t,rF,e)||(e.position+=17,A=EQ(t,e),A===null))return"failure";if(Bn(t,uQ,e)){let o=e.position+uQ.length;if(t[o]===42&&(e.position+=1,o+=1),t[o]!==61||t[o+1]!==34||(e.position+=12,r=EQ(t,e),r===null))return"failure"}break}case"content-type":{let o=Sr(a=>a!==10&&a!==13,t,e);o=xc(o,!1,!0,a=>a===9||a===32),s=gQ(o);break}case"content-transfer-encoding":{let o=Sr(a=>a!==10&&a!==13,t,e);o=xc(o,!1,!0,a=>a===9||a===32),i=gQ(o);break}default:Sr(o=>o!==10&&o!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function EQ(t,e){Qn(t[e.position-1]===34);let A=Sr(r=>r!==10&&r!==13&&r!==34,t,e);return t[e.position]!==34?null:(e.position++,A=new TextDecoder().decode(A).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),A)}function Sr(t,e,A){let r=A.position;for(;r<e.length&&t(e[r]);)++r;return e.subarray(A.position,A.position=r)}function xc(t,e,A,r){let s=0,i=t.length-1;if(e)for(;s<t.length&&r(t[s]);)s++;if(A)for(;i>0&&r(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function Bn(t,e,A){if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[A.position+r])return!1;return!0}QQ.exports={multipartFormDataParser:aF,validateBoundary:oF}});var Ur=I((WH,RQ)=>{"use strict";var Ns=v(),{ReadableStreamFrom:lF,isBlobLike:IQ,isReadableStreamLike:hF,readableStreamClose:gF,createDeferredPromise:uF,fullyReadBody:EF,extractMimeType:QF,utf8DecodeBytes:dQ}=He(),{FormData:CQ}=bs(),{kState:Nr}=lA(),{webidl:BF}=Ie(),{Blob:IF}=require("node:buffer"),vc=require("node:assert"),{isErrored:pQ,isDisturbed:CF}=require("node:stream"),{isArrayBuffer:fF}=require("node:util/types"),{serializeAMimeType:dF}=Le(),{multipartFormDataParser:pF}=BQ(),Gc;try{let t=require("node:crypto");Gc=e=>t.randomInt(0,e)}catch{Gc=t=>Math.floor(Math.random(t))}var In=new TextEncoder;function wF(){}var wQ=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,yQ;wQ&&(yQ=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!CF(e)&&!pQ(e)&&e.cancel("Response object has been garbage collected").catch(wF)}));function mQ(t,e=!1){let A=null;t instanceof ReadableStream?A=t:IQ(t)?A=t.stream():A=new ReadableStream({async pull(a){let c=typeof s=="string"?In.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>gF(a))},start(){},type:"bytes"}),vc(hF(A));let r=null,s=null,i=null,n=null;if(typeof t=="string")s=t,n="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),n="application/x-www-form-urlencoded;charset=UTF-8";else if(fF(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Ns.isFormDataLike(t)){let a=`----formdata-undici-0${`${Gc(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
|
||||
Content-Disposition: form-data`;let l=C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),h=C=>C.replace(/\r?\n|\r/g,`\r
|
||||
`),g=[],u=new Uint8Array([13,10]);i=0;let E=!1;for(let[C,Q]of t)if(typeof Q=="string"){let f=In.encode(c+`; name="${l(h(C))}"\r
|
||||
\r
|
||||
${h(Q)}\r
|
||||
`);g.push(f),i+=f.byteLength}else{let f=In.encode(`${c}; name="${l(h(C))}"`+(Q.name?`; filename="${l(Q.name)}"`:"")+`\r
|
||||
Content-Type: ${Q.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);g.push(f,Q,u),typeof Q.size=="number"?i+=f.byteLength+Q.size+u.byteLength:E=!0}let B=In.encode(`--${a}--\r
|
||||
`);g.push(B),i+=B.byteLength,E&&(i=null),s=t,r=async function*(){for(let C of g)C.stream?yield*C.stream():yield C},n=`multipart/form-data; boundary=${a}`}else if(IQ(t))s=t,i=t.size,t.type&&(n=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Ns.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");A=t instanceof ReadableStream?t:lF(t)}if((typeof s=="string"||Ns.isBuffer(s))&&(i=Buffer.byteLength(s)),r!=null){let a;A=new ReadableStream({async start(){a=r(t)[Symbol.asyncIterator]()},async pull(c){let{value:l,done:h}=await a.next();if(h)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!pQ(A)){let g=new Uint8Array(l);g.byteLength&&c.enqueue(g)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:A,source:s,length:i},n]}function yF(t,e=!1){return t instanceof ReadableStream&&(vc(!Ns.isDisturbed(t),"The body has already been consumed."),vc(!t.locked,"The stream is locked.")),mQ(t,e)}function mF(t,e){let[A,r]=e.stream.tee();return e.stream=A,{stream:r,length:e.length,source:e.source}}function DF(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function RF(t){return{blob(){return br(this,A=>{let r=fQ(this);return r===null?r="":r&&(r=dF(r)),new IF([A],{type:r})},t)},arrayBuffer(){return br(this,A=>new Uint8Array(A).buffer,t)},text(){return br(this,dQ,t)},json(){return br(this,FF,t)},formData(){return br(this,A=>{let r=fQ(this);if(r!==null)switch(r.essence){case"multipart/form-data":{let s=pF(A,r);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new CQ;return i[Nr]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(A.toString()),i=new CQ;for(let[n,o]of s)i.append(n,o);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return br(this,A=>new Uint8Array(A),t)}}}function kF(t){Object.assign(t.prototype,RF(t))}async function br(t,e,A){if(BF.brandCheck(t,A),DQ(t))throw new TypeError("Body is unusable: Body has already been read");DF(t[Nr]);let r=uF(),s=n=>r.reject(n),i=n=>{try{r.resolve(e(n))}catch(o){s(o)}};return t[Nr].body==null?(i(Buffer.allocUnsafe(0)),r.promise):(await EF(t[Nr].body,i,s),r.promise)}function DQ(t){let e=t[Nr].body;return e!=null&&(e.stream.locked||Ns.isDisturbed(e.stream))}function FF(t){return JSON.parse(dQ(t))}function fQ(t){let e=t[Nr].headersList,A=QF(e);return A==="failure"?null:A}RQ.exports={extractBody:mQ,safelyExtractBody:yF,cloneBody:mF,mixinBody:kF,streamRegistry:yQ,hasFinalizationRegistry:wQ,bodyUnusable:DQ}});var vQ=I((PH,xQ)=>{"use strict";var b=require("node:assert"),L=v(),{channels:kQ}=fr(),Yc=dc(),{RequestContentLengthMismatchError:JA,ResponseContentLengthMismatchError:SF,RequestAbortedError:MQ,HeadersTimeoutError:bF,HeadersOverflowError:NF,SocketError:yn,InformationalError:Mr,BodyTimeoutError:UF,HTTPParserError:MF,ResponseExceededMaxSizeError:LF}=V(),{kUrl:LQ,kReset:Te,kClient:qc,kParser:re,kBlocking:Ls,kRunning:fe,kPending:TF,kSize:FQ,kWriting:gA,kQueue:gt,kNoRef:Us,kKeepAliveDefaultTimeout:xF,kHostHeader:vF,kPendingIdx:GF,kRunningIdx:je,kError:et,kPipelining:pn,kSocket:Lr,kKeepAliveTimeoutValue:mn,kMaxHeadersSize:Jc,kKeepAliveMaxTimeout:YF,kKeepAliveTimeoutThreshold:JF,kHeadersTimeout:HF,kBodyTimeout:VF,kStrictContentLength:Oc,kMaxRequests:SQ,kCounter:qF,kMaxResponseSize:OF,kOnError:WF,kResume:hA,kHTTPContext:TQ}=$(),Ft=yE(),PF=Buffer.alloc(0),Cn=Buffer[Symbol.species],fn=L.addListener,_F=L.removeAllListeners,Hc;async function zF(){let t=process.env.JEST_WORKER_ID?yc():void 0,e;try{e=await WebAssembly.compile(RE())}catch{e=await WebAssembly.compile(t||yc())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(A,r,s)=>0,wasm_on_status:(A,r,s)=>{b(le.ptr===A);let i=r-bt+St.byteOffset;return le.onStatus(new Cn(St.buffer,i,s))||0},wasm_on_message_begin:A=>(b(le.ptr===A),le.onMessageBegin()||0),wasm_on_header_field:(A,r,s)=>{b(le.ptr===A);let i=r-bt+St.byteOffset;return le.onHeaderField(new Cn(St.buffer,i,s))||0},wasm_on_header_value:(A,r,s)=>{b(le.ptr===A);let i=r-bt+St.byteOffset;return le.onHeaderValue(new Cn(St.buffer,i,s))||0},wasm_on_headers_complete:(A,r,s,i)=>(b(le.ptr===A),le.onHeadersComplete(r,!!s,!!i)||0),wasm_on_body:(A,r,s)=>{b(le.ptr===A);let i=r-bt+St.byteOffset;return le.onBody(new Cn(St.buffer,i,s))||0},wasm_on_message_complete:A=>(b(le.ptr===A),le.onMessageComplete()||0)}})}var Vc=null,Wc=zF();Wc.catch();var le=null,St=null,dn=0,bt=null,ZF=0,Ms=1,Tr=2|Ms,wn=4|Ms,Pc=8|ZF,_c=class{constructor(e,A,{exports:r}){b(Number.isFinite(e[Jc])&&e[Jc]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(Ft.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Jc],this.shouldKeepAlive=!1,this.paused=!1
Line truncated
|
||||
`;if(typeof s=="string"?B+=`host: ${s}\r
|
||||
`:B+=t[vF],i?B+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[pn]&&!u[Te]?B+=`connection: keep-alive\r
|
||||
`:B+=`connection: close\r
|
||||
`,Array.isArray(c))for(let C=0;C<c.length;C+=2){let Q=c[C+0],f=c[C+1];if(Array.isArray(f))for(let p=0;p<f.length;p++)B+=`${Q}: ${f[p]}\r
|
||||
`;else B+=`${Q}: ${f}\r
|
||||
`}return kQ.sendHeaders.hasSubscribers&&kQ.sendHeaders.publish({request:e,headers:B,socket:u}),!a||g===0?NQ(E,null,t,e,u,l,B,h):L.isBuffer(a)?NQ(E,a,t,e,u,l,B,h):L.isBlobLike(a)?typeof a.stream=="function"?UQ(E,a.stream(),t,e,u,l,B,h):tS(E,a,t,e,u,l,B,h):L.isStream(a)?eS(E,a,t,e,u,l,B,h):L.isIterable(a)?UQ(E,a,t,e,u,l,B,h):b(!1),!0}function eS(t,e,A,r,s,i,n,o){b(i!==0||A[fe]===0,"stream body cannot be pipelined");let a=!1,c=new Dn({abort:t,socket:s,request:r,contentLength:i,client:A,expectsPayload:o,header:n}),l=function(E){if(!a)try{!c.write(E)&&this.pause&&this.pause()}catch(B){L.destroy(this,B)}},h=function(){a||e.resume&&e.resume()},g=function(){if(queueMicrotask(()=>{e.removeListener("error",u)}),!a){let E=new MQ;queueMicrotask(()=>u(E))}},u=function(E){if(!a){if(a=!0,b(s.destroyed||s[gA]&&A[fe]<=1),s.off("drain",h).off("error",u),e.removeListener("data",l).removeListener("end",u).removeListener("close",g),!E)try{c.end()}catch(B){E=B}c.destroy(E),E&&(E.code!=="UND_ERR_INFO"||E.message!=="reset")?L.destroy(e,E):L.destroy(e)}};e.on("data",l).on("end",u).on("error",u).on("close",g),e.resume&&e.resume(),s.on("drain",h).on("error",u),e.errorEmitted??e.errored?setImmediate(()=>u(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>u(null)),(e.closeEmitted??e.closed)&&setImmediate(g)}function NQ(t,e,A,r,s,i,n,o){try{e?L.isBuffer(e)&&(b(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${n}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),r.onBodySent(e),!o&&r.reset!==!1&&(s[Te]=!0)):i===0?s.write(`${n}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(b(i===null,"no body must not have content length"),s.write(`${n}\r
|
||||
`,"latin1")),r.onRequestSent(),A[hA]()}catch(a){t(a)}}async function tS(t,e,A,r,s,i,n,o){b(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new JA;let a=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${n}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(a),s.uncork(),r.onBodySent(a),r.onRequestSent(),!o&&r.reset!==!1&&(s[Te]=!0),A[hA]()}catch(a){t(a)}}async function UQ(t,e,A,r,s,i,n,o){b(i!==0||A[fe]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let g=a;a=null,g()}}let l=()=>new Promise((g,u)=>{b(a===null),s[et]?u(s[et]):a=g});s.on("close",c).on("drain",c);let h=new Dn({abort:t,socket:s,request:r,contentLength:i,client:A,expectsPayload:o,header:n});try{for await(let g of e){if(s[et])throw s[et];h.write(g)||await l()}h.end()}catch(g){h.destroy(g)}finally{s.off("close",c).off("drain",c)}}var Dn=class{constructor({abort:e,socket:A,request:r,contentLength:s,client:i,expectsPayload:n,header:o}){this.socket=A,this.request=r,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=n,this.header=o,this.abort=e,A[gA]=!0}write(e){let{socket:A,request:r,contentLength:s,client:i,bytesWritten:n,expectsPayload:o,header:a}=this;if(A[et])throw A[et];if(A.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&n+c>s){if(i[Oc])throw new JA;process.emitWarning(new JA)}A.cork(),n===0&&(!o&&r.reset!==!1&&(A[Te]=!0),s===null?A.write(`${a}transfer-encoding: chunked\r
|
||||
`,"latin1"):A.write(`${a}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&A.write(`\r
|
||||
${c.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=c;let l=A.write(e);return A.uncork(),r.onBodySent(e),l||A[re].timeout&&A[re].timeoutType===Tr&&A[re].timeout.refresh&&A[re].timeout.refresh(),l}end(){let{socket:e,contentLength:A,client:r,bytesWritten:s,expectsPayload:i,header:n,request:o}=this;if(o.onRequestSent(),e[gA]=!1,e[et])throw e[et];if(!e.destroyed){if(s===0?i?e.write(`${n}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):e.write(`${n}\r
|
||||
`,"latin1"):A===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),A!==null&&s!==A){if(r[Oc])throw new JA;process.emitWarning(new JA)}e[re].timeout&&e[re].timeoutType===Tr&&e[re].timeout.refresh&&e[re].timeout.refresh(),r[hA]()}}destroy(e){let{socket:A,client:r,abort:s}=this;A[gA]=!1,e&&(b(r[fe]<=1,"pipeline should only contain this request"),s(e))}};xQ.exports=XF});var WQ=I((_H,OQ)=>{"use strict";var tt=require("node:assert"),{pipeline:AS}=require("node:stream"),G=v(),{RequestContentLengthMismatchError:zc,RequestAbortedError:GQ,SocketError:Ts,InformationalError:Zc}=V(),{kUrl:Rn,kReset:Fn,kClient:xr,kRunning:Sn,kPending:rS,kQueue:uA,kPendingIdx:Xc,kRunningIdx:ut,kError:Qt,kSocket:ge,kStrictContentLength:sS,kOnError:Kc,kMaxConcurrentStreams:qQ,kHTTP2Session:Et,kResume:EA,kSize:iS,kHTTPContext:nS}=$(),Xt=Symbol("open streams"),YQ,JQ=!1,kn;try{kn=require("node:http2")}catch{kn={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:oS,HTTP2_HEADER_METHOD:aS,HTTP2_HEADER_PATH:cS,HTTP2_HEADER_SCHEME:lS,HTTP2_HEADER_CONTENT_LENGTH:hS,HTTP2_HEADER_EXPECT:gS,HTTP2_HEADER_STATUS:uS}}=kn;function ES(t){let e=[];for(let[A,r]of Object.entries(t))if(Array.isArray(r))for(let s of r)e.push(Buffer.from(A),Buffer.from(s));else e.push(Buffer.from(A),Buffer.from(r));return e}async function QS(t,e){t[ge]=e,JQ||(JQ=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let A=kn.connect(t[Rn],{createConnection:()=>e,peerMaxConcurrentStreams:t[qQ]});A[Xt]=0,A[xr]=t,A[ge]=e,G.addListener(A,"error",IS),G.addListener(A,"frameError",CS),G.addListener(A,"end",fS),G.addListener(A,"goaway",dS),G.addListener(A,"close",function(){let{[xr]:s}=this,{[ge]:i}=s,n=this[ge][Qt]||this[Qt]||new Ts("closed",G.getSocketInfo(i));if(s[Et]=null,s.destroyed){tt(s[rS]===0);let o=s[uA].splice(s[ut]);for(let a=0;a<o.length;a++){let c=o[a];G.errorRequest(s,c,n)}}}),A.unref(),t[Et]=A,e[Et]=A,G.addListener(e,"error",function(s){tt(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Qt]=s,this[xr][Kc](s)}),G.addListener(e,"end",function(){G.destroy(this,new Ts("other side closed",G.getSocketInfo(this)))}),G.addListener(e,"close",function(){let s=this[Qt]||new Ts("closed",G.getSocketInfo(this));t[ge]=null,this[Et]!=null&&this[Et].destroy(s),t[Xc]=t[ut],tt(t[Sn]===0),t.emit("disconnect",t[Rn],[t],s),t[EA]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return wS(t,...s)},resume(){BS(t)},destroy(s,i){r?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function BS(t){let e=t[ge];e?.destroyed===!1&&(t[iS]===0&&t[qQ]===0?(e.unref(),t[Et].unref()):(e.ref(),t[Et].ref()))}function IS(t){tt(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ge][Qt]=t,this[xr][Kc](t)}function CS(t,e,A){if(A===0){let r=new Zc(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ge][Qt]=r,this[xr][Kc](r)}}function fS(){let t=new Ts("other side closed",G.getSocketInfo(this[ge]));this.destroy(t),G.destroy(this[ge],t)}function dS(t){let e=this[Qt]||new Ts(`HTTP/2: "GOAWAY" frame received with code ${t}`,G.getSocketInfo(this)),A=this[xr];if(A[ge]=null,A[nS]=null,this[Et]!=null&&(this[Et].destroy(e),this[Et]=null),G.destroy(this[ge],e),A[ut]<A[uA].length){let r=A[uA][A[ut]];A[uA][A[ut]++]=null,G.errorRequest(A,r,e),A[Xc]=A[ut]}tt(A[Sn]===0),A.emit("disconnect",A[Rn],[A],e),A[EA]()}function pS(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function wS(t,e){let A=t[Et],{method:r,path:s,host:i,upgrade:n,expectContinue:o,signal:a,headers:c}=e,{body:l}=e;if(n)return G.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let w=0;w<c.length;w+=2){let F=c[w+0],O=c[w+1];if(Array.isArray(O))for(let W=0;W<O.length;W++)h[F]?h[F]+=`,${O[W]}`:h[F]=O[W];else h[F]=O}let g,{hostname:u,port:E}=t[Rn];h[oS]=i||`${u}${E?`:${E}`:""}`,h[aS]=r;let B=w=>{e.aborted||e.completed||(w=w||new GQ,G.errorRequest(t,e,w),g!=null&&G.destroy(g,w),G.destroy(l,w),t[uA][t[ut]++]=null,t[EA]())};try{e.onConnect(B)}catch(w){G.errorRequest(t,e,w)}if(e.aborted)return!1;if(r==="CONNECT")return A.ref(),g=A.request(h,{endStream:!1,signal:a}),g.id&&!g.pending?(e.onUpgrade(null,null,g),++A[Xt],t[uA][t[ut]++]=null):g.once("ready",()=>{e.onUpgrade(null,null,g),++A[Xt],t[uA][t[ut]++]=null}),g.once("close",()=>{A[Xt]-=1,A[Xt]===0&&A.unref()}),!0;h[cS]=s,h[lS]="https";let C=r==="PUT"||r==="POST"||r==="PATCH";l&&typeof l.read=="function"&&l.read(0);let Q=G.bodyLength(l);if(G.isFormDataLike(l)){YQ??=Ur().extractBody;let[w,F]=YQ(l);h["content-type"]=F,l=w.stream,Q=w.length}if(Q==null&&(Q=e.contentLength),(Q===0||!C)&&(Q=null),pS(r)&&Q>0&&e.contentLength!=null&&e.contentLength!==Q){if(t[sS])return G.errorRequest(t,e,new zc),!1;process.emitWarning(new zc)}Q!=null&&(tt(l,"no body must not have content length"),h[hS]=`${Q}`),A.ref();let f=r==="GET"||r==="HEAD"||l===null;return o?(h[gS]="100-continue",g=A.request(h,{endStream:f,signal:a}),g.once("continue",p)):(g=A.request(h,{endStream:f,signal:a}),p()),++A[Xt],g.onc
Line truncated
|
||||
`,this[zS]=a??3e5,this[_S]=s??3e5,this[ZS]=f??!0,this[XS]=w,this[tl]=O,this[BA]=null,this[tb]=Be>-1?Be:-1,this[rb]=oA??100,this[ie]=null,this[Bt]=[],this[$t]=0,this[It]=0,this[Ys]=aA=>rl(this,aA),this[Ab]=aA=>rB(this,aA)}get pipelining(){return this[Mn]}set pipelining(e){this[Mn]=e,this[Ys](!0)}get[Vs](){return this[Bt].length-this[It]}get[Hs](){return this[It]-this[$t]}get[Js](){return this[Bt].length-this[$t]}get[JS](){return!!this[ie]&&!this[Gr]&&!this[ie].destroyed}get[el](){return!!(this[ie]?.busy(null)||this[Js]>=(AB(this)||1)||this[Vs]>0)}[YS](e){sB(this),this.once("connect",e)}[eb](e,A){let r=e.origin||this[Ut].origin,s=new MS(r,e,A);return this[Bt].push(s),this[VA]||(HA.bodyLength(s.body)==null&&HA.isIterable(s.body)?(this[VA]=1,queueMicrotask(()=>rl(this))):this[Ys](!0)),this[VA]&&this[IA]!==2&&this[el]&&(this[IA]=2),this[IA]<2}async[$S](){return new Promise(e=>{this[Js]?this[BA]=e:e(null)})}async[jS](e){return new Promise(A=>{let r=this[Bt].splice(this[It]);for(let i=0;i<r.length;i++){let n=r[i];HA.errorRequest(this,n,e)}let s=()=>{this[BA]&&(this[BA](),this[BA]=null),A(null)};this[ie]?(this[ie].destroy(e,s),this[ie]=null):queueMicrotask(s),this[Ys]()})}},nb=Un();function rB(t,e){if(t[Hs]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Kt(t[It]===t[$t]);let A=t[Bt].splice(t[$t]);for(let r=0;r<A.length;r++){let s=A[r];HA.errorRequest(t,s,e)}Kt(t[Js]===0)}}async function sB(t){Kt(!t[Gr]),Kt(!t[ie]);let{host:e,hostname:A,protocol:r,port:s}=t[Ut];if(A[0]==="["){let i=A.indexOf("]");Kt(i!==-1);let n=A.substring(1,i);Kt(tB.isIP(n)),A=n}t[Gr]=!0,vr.beforeConnect.hasSubscribers&&vr.beforeConnect.publish({connectParams:{host:e,hostname:A,protocol:r,port:s,version:t[ie]?.version,servername:t[QA],localAddress:t[Gs]},connector:t[vs]});try{let i=await new Promise((n,o)=>{t[vs]({host:e,hostname:A,protocol:r,port:s,servername:t[QA],localAddress:t[Gs]},(a,c)=>{a?o(a):n(c)})});if(t.destroyed){HA.destroy(i.on("error",jQ),new xS);return}Kt(i);try{t[ie]=i.alpnProtocol==="h2"?await ib(t,i):await sb(t,i)}catch(n){throw i.destroy().on("error",jQ),n}t[Gr]=!1,i[KS]=0,i[tl]=t[tl],i[GS]=t,i[VS]=null,vr.connected.hasSubscribers&&vr.connected.publish({connectParams:{host:e,hostname:A,protocol:r,port:s,version:t[ie]?.version,servername:t[QA],localAddress:t[Gs]},connector:t[vs],socket:i}),t.emit("connect",t[Ut],[t])}catch(i){if(t.destroyed)return;if(t[Gr]=!1,vr.connectError.hasSubscribers&&vr.connectError.publish({connectParams:{host:e,hostname:A,protocol:r,port:s,version:t[ie]?.version,servername:t[QA],localAddress:t[Gs]},connector:t[vs],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Kt(t[Hs]===0);t[Vs]>0&&t[Bt][t[It]].servername===t[QA];){let n=t[Bt][t[It]++];HA.errorRequest(t,n,i)}else rB(t,i);t.emit("connectionError",t[Ut],[t],i)}t[Ys]()}function eB(t){t[IA]=0,t.emit("drain",t[Ut],[t])}function rl(t,e){t[VA]!==2&&(t[VA]=2,ob(t,e),t[VA]=0,t[$t]>256&&(t[Bt].splice(0,t[$t]),t[It]-=t[$t],t[$t]=0))}function ob(t,e){for(;;){if(t.destroyed){Kt(t[Vs]===0);return}if(t[BA]&&!t[Js]){t[BA](),t[BA]=null;return}if(t[ie]&&t[ie].resume(),t[el])t[IA]=2;else if(t[IA]===2){e?(t[IA]=1,queueMicrotask(()=>eB(t))):eB(t);continue}if(t[Vs]===0||t[Hs]>=(AB(t)||1))return;let A=t[Bt][t[It]];if(t[Ut].protocol==="https:"&&t[QA]!==A.servername){if(t[Hs]>0)return;t[QA]=A.servername,t[ie]?.destroy(new TS("servername changed"),()=>{t[ie]=null,rl(t)})}if(t[Gr])return;if(!t[ie]){sB(t);return}if(t[ie].destroyed||t[ie].busy(A))return;!A.aborted&&t[ie].write(A)?t[It]++:t[Bt].splice(t[It],1)}}iB.exports=Al});var sl=I(($H,nB)=>{"use strict";var Ln=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};nB.exports=class{constructor(){this.head=this.tail=new Ln}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Ln),this.head.push(e)}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),A}}});var aB=I((jH,oB)=>{var{kFree:ab,kConnected:cb,kPending:lb,kQueued:hb,kRunning:gb,kSize:ub}=$(),qA=Symbol("pool"),il=class{constructor(e){this[qA]=e}get connected(){return this[qA][cb]}get free(){return this[qA][ab]}get pending(){return this[qA][lb]}get queued(){return this[qA][hb]}get running(){return this[qA][gb]}get size(){return this[qA][ub]}};oB.exports=il});var hl=I((eV,CB)=>{"use strict";var Eb=yr(),Qb=sl(),{kConnected:nl,kSize:cB,kRunning:lB,kPending:hB,kQueued:qs,kBusy:Bb,kFree:Ib,kUrl:Cb,kClose:fb,kDestroy:db,kDispatch:pb}=$(),wb=aB(),xe=Symbol("clients"),Re=Symbol("needDrain"),Os=Symbol("queue"),ol=Symbol("closed resolve"),al=Symbol("onDrain"),gB=Symbol("onConnect"),uB=Symbol("onDisconnect"),EB=Symbol("onConnectionError"),cl=Symbol("get dispatcher"),BB=Symbol("add client"),IB=Sym
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${e.format(A)}
|
||||
`.trim())}};mC.exports=hh});var $n=I((FV,SC)=>{"use strict";var RC=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:zU}=V(),ZU=Hr();FC()===void 0&&kC(new ZU);function kC(t){if(!t||typeof t.dispatch!="function")throw new zU("Argument agent must implement Agent");Object.defineProperty(globalThis,RC,{value:t,writable:!0,enumerable:!1,configurable:!1})}function FC(){return globalThis[RC]}SC.exports={setGlobalDispatcher:kC,getGlobalDispatcher:FC}});var jn=I((bV,bC)=>{"use strict";bC.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var UC=I((NV,NC)=>{"use strict";var XU=Nn();NC.exports=t=>{let e=t?.maxRedirections;return A=>function(s,i){let{maxRedirections:n=e,...o}=s;if(!n)return A(s,i);let a=new XU(A,n,s,i);return A(o,a)}}});var LC=I((UV,MC)=>{"use strict";var KU=Vn();MC.exports=t=>e=>function(r,s){return e(r,new KU({...r,retryOptions:{...t,...r.retryOptions}},{handler:s,dispatch:e}))}});var xC=I((MV,TC)=>{"use strict";var $U=v(),{InvalidArgumentError:jU,RequestAbortedError:eM}=V(),tM=jn(),gh=class extends tM{#e=1024*1024;#t=null;#s=!1;#r=!1;#A=0;#a=null;#o=null;constructor({maxSize:e},A){if(super(A),e!=null&&(!Number.isFinite(e)||e<1))throw new jU("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#o=A}onConnect(e){this.#t=e,this.#o.onConnect(this.#c.bind(this))}#c(e){this.#r=!0,this.#a=e}onHeaders(e,A,r,s){let n=$U.parseHeaders(A)["content-length"];if(n!=null&&n>this.#e)throw new eM(`Response size (${n}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,A,r,s)}onError(e){this.#s||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#A=this.#A+e.length,this.#A>=this.#e&&(this.#s=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function AM({maxSize:t}={maxSize:1024*1024}){return e=>function(r,s){let{dumpMaxSize:i=t}=r,n=new gh({maxSize:i},s);return e(r,n)}}TC.exports=AM});var YC=I((LV,GC)=>{"use strict";var{isIP:rM}=require("node:net"),{lookup:sM}=require("node:dns"),iM=jn(),{InvalidArgumentError:Kr,InformationalError:nM}=V(),vC=Math.pow(2,31)-1,uh=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#A}get full(){return this.#s.size===this.#t}runLookup(e,A,r){let s=this.#s.get(e.hostname);if(s==null&&this.full){r(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...A.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(n,o)=>{if(n||o==null||o.length===0){r(n??new nM("No DNS entries found"));return}this.setRecords(e,o);let a=this.#s.get(e.hostname),c=this.pick(e,a,i.affinity),l;typeof c.port=="number"?l=`:${c.port}`:e.port!==""?l=`:${e.port}`:l="",r(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${l}`)});else{let n=this.pick(e,s,i.affinity);if(n==null){this.#s.delete(e.hostname),this.runLookup(e,A,r);return}let o;typeof n.port=="number"?o=`:${n.port}`:e.port!==""?o=`:${e.port}`:o="",r(null,`${e.protocol}//${n.family===6?`[${n.address}]`:n.address}${o}`)}}#r(e,A,r){sM(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return r(s);let n=new Map;for(let o of i)n.set(`${o.address}:${o.family}`,o);r(null,n.values())})}#A(e,A,r){let s=null,{records:i,offset:n}=A,o;if(this.dualStack?(r==null&&(n==null||n===vC?(A.offset=0,r=4):(A.offset++,r=(A.offset&1)===1?6:4)),i[r]!=null&&i[r].ips.length>0?o=i[r]:o=i[r===4?6:4]):o=i[r],o==null||o.ips.length===0)return s;o.offset==null||o.offset===vC?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(e,A,r)):s}setRecords(e,A){let r=Date.now(),s={records:{4:null,6:null}};for(let i of A){i.timestamp=r,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let n=s.records[i.family]??{ips:[]};n.ips.push(i),s.records[i.family]=n}this.#s.set(e.hostname,s)}getHandler(e,A){return new Eh(this,e,A)}},Eh=class extends iM{#e=null;#t=null;#s=null;#r=null;#A=null;constructor(e,{origin:A,handler:r,dispatch:s},i){super(r),this.#A=A,this.#r=r,this.#t={...i},this.#e=e,this.#s=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#A,this.#t,(A,r)=>{if(A)return this.#r.onError(A);let s={...this.#t,origin:
Line truncated
|
||||
${i}`;break;case"retry":fp(i)&&(A[s]=i);break;case"id":dp(i)&&(A[s]=i);break;case"event":i.length>0&&(A[s]=i);break}}processEvent(e){e.retry&&fp(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&dp(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};pp.exports={EventSourceStream:jh}});var bp=I((hq,Sp)=>{"use strict";var{pipeline:Ev}=require("node:stream"),{fetching:Qv}=ri(),{makeRequest:Bv}=es(),{webidl:rA}=Ie(),{EventSourceStream:Iv}=wp(),{parseMIMEType:Cv}=Le(),{createFastMessageEvent:fv}=ns(),{isNetworkError:yp}=ti(),{delay:dv}=Kh(),{kEnumerableProperty:sr}=v(),{environmentSettingsObject:mp}=He(),Dp=!1,Rp=3e3,Qi=0,kp=1,Bi=2,pv="anonymous",wv="use-credentials",hs=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Qi;#A=null;#a=null;#o;#c;constructor(e,A={}){super(),rA.util.markAsUncloneable(this);let r="EventSource constructor";rA.argumentLengthCheck(arguments,1,r),Dp||(Dp=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=rA.converters.USVString(e,r,"url"),A=rA.converters.EventSourceInitDict(A,r,"eventSourceInitDict"),this.#o=A.dispatcher,this.#c={lastEventId:"",reconnectionTime:Rp};let s=mp,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#c.origin=i.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#t=i.href;let n=pv;A.withCredentials&&(n=wv,this.#s=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:n==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=mp.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#t)],this.#A=Bv(o),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===Bi)return;this.#r=Qi;let e={request:this.#A,dispatcher:this.#o},A=r=>{yp(r)&&(this.dispatchEvent(new Event("error")),this.close()),this.#u()};e.processResponseEndOfBody=A,e.processResponse=r=>{if(yp(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#u();return}let s=r.headersList.get("content-type",!0),i=s!==null?Cv(s):"failure",n=i!=="failure"&&i.essence==="text/event-stream";if(r.status!==200||n===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=kp,this.dispatchEvent(new Event("open")),this.#c.origin=r.urlList[r.urlList.length-1].origin;let o=new Iv({eventSourceSettings:this.#c,push:a=>{this.dispatchEvent(fv(a.type,a.options))}});Ev(r.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#a=Qv(e)}async#u(){this.#r!==Bi&&(this.#r=Qi,this.dispatchEvent(new Event("error")),await dv(this.#c.reconnectionTime),this.#r===Qi&&(this.#c.lastEventId.length&&this.#A.headersList.set("last-event-id",this.#c.lastEventId,!0),this.#l()))}close(){rA.brandCheck(this,t),this.#r!==Bi&&(this.#r=Bi,this.#a.abort(),this.#A=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Fp={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Qi,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:kp,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Bi,writable:!1}};Object.defineProperties(hs,Fp);Object.defineProperties(hs.prototype,Fp);Object.defineProperties(hs.prototype,{close:sr,onerror:sr,onmessage:sr,onopen:sr,readyState:sr,url:sr,withCredentials:sr});rA.converters.EventSourceInitDict=rA.dictionaryConverter([{key:"withCredentials",converter:rA.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:rA.converters.any}]);Sp.exports={EventSource:hs,defaultReconnectionTime:Rp}});var Lp=I((gq,U)=>{"use strict";var yv=Yr(),Np=ps(),mv=Jr(),Dv=kB(),Rv=Hr(),kv=ml(),Fv=KB(),Sv=rI(),Up=V(),Vo=v(),{InvalidArgumentError:Ho}=Up,gs=qI(),bv=ys(),Nv=ih(),Uv=DC(),Mv=ah(),Lv=Pl(),Tv=Vn(),{getGlobalDispatcher:Mp,setGlobalDispatcher:xv}=$n(),vv=jn(),Gv=Nn(),Yv=Un();Object.assign(Np.prototype,gs);U.exports.Dispatcher=Np;U.exports.Client=yv;U.exports.Pool=mv;U.exports.BalancedPool=Dv;U.exports.Agent=Rv;U.exports.ProxyAgent=kv;U.exports.EnvHttpProxyAgent=Fv;U.exports.RetryAgent=Sv;U.exports.RetryHandler=Tv;U.exports.DecoratorHandler=vv;U.exports.Redire
Line truncated
|
||||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Eg(t){process.exitCode=ug.Failure,BG(t)}function Qg(){return process.env.RUNNER_DEBUG==="1"}function Ae(t){Br("debug",{},t)}function BG(t,e={}){Br("error",ba(e),t instanceof Error?t.toString():t)}function ow(t,e={}){Br("warning",ba(e),t instanceof Error?t.toString():t)}function cr(t){process.stdout.write(t+rw.EOL)}function zo(t){Ua("group",t)}function Zo(){Ua("endgroup")}var fy=require("fs");var qw=require("node:url"),Cs=require("node:path"),zw=require("node:url"),Yt=require("fs"),wY=H(require("node:fs"),1),LA=require("node:fs/promises"),la=require("node:events"),kg=H(require("node:stream"),1),Zw=require("node:string_decoder"),Nw=(t,e,A)=>{let r=t instanceof RegExp?aw(t,A):t,s=e instanceof RegExp?aw(e,A):e,i=r!==null&&s!=null&&IG(r,s,A);return i&&{start:i[0],end:i[1],pre:A.slice(0,i[0]),body:A.slice(i[0]+r.length,i[1]),post:A.slice(i[1]+s.length)}},aw=(t,e)=>{let A=e.match(t);return A?A[0]:null},IG=(t,e,A)=>{let r,s,i,n,o,a=A.indexOf(t),c=A.indexOf(e,a+1),l=a;if(a>=0&&c>0){if(t===e)return[a,c];for(r=[],i=A.length;l>=0&&!o;){if(l===a)r.push(l),a=A.indexOf(t,l+1);else if(r.length===1){let h=r.pop();h!==void 0&&(o=[h,c])}else s=r.pop(),s!==void 0&&s<i&&(i=s,n=c),c=A.indexOf(e,l+1);l=a<c&&a>=0?a:c}r.length&&n!==void 0&&(o=[i,n])}return o},Uw="\0SLASH"+Math.random()+"\0",Mw="\0OPEN"+Math.random()+"\0",Dg="\0CLOSE"+Math.random()+"\0",Lw="\0COMMA"+Math.random()+"\0",Tw="\0PERIOD"+Math.random()+"\0",CG=new RegExp(Uw,"g"),fG=new RegExp(Mw,"g"),dG=new RegExp(Dg,"g"),pG=new RegExp(Lw,"g"),wG=new RegExp(Tw,"g"),yG=/\\\\/g,mG=/\\{/g,DG=/\\}/g,RG=/\\,/g,kG=/\\./g,FG=1e5;function Bg(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function SG(t){return t.replace(yG,Uw).replace(mG,Mw).replace(DG,Dg).replace(RG,Lw).replace(kG,Tw)}function bG(t){return t.replace(CG,"\\").replace(fG,"{").replace(dG,"}").replace(pG,",").replace(wG,".")}function xw(t){if(!t)return[""];let e=[],A=Nw("{","}",t);if(!A)return t.split(",");let{pre:r,body:s,post:i}=A,n=r.split(",");n[n.length-1]+="{"+s+"}";let o=xw(i);return i.length&&(n[n.length-1]+=o.shift(),n.push.apply(n,o)),e.push.apply(e,n),e}function NG(t,e={}){if(!t)return[];let{max:A=FG}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Ni(SG(t),A,!0).map(bG)}function UG(t){return"{"+t+"}"}function MG(t){return/^-?0\d/.test(t)}function LG(t,e){return t<=e}function TG(t,e){return t>=e}function Ni(t,e,A){let r=[],s=Nw("{","}",t);if(!s)return[t];let i=s.pre,n=s.post.length?Ni(s.post,e,!1):[""];if(/\$$/.test(s.pre))for(let o=0;o<n.length&&o<e;o++){let a=i+"{"+s.body+"}"+n[o];r.push(a)}else{let o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),c=o||a,l=s.body.indexOf(",")>=0;if(!c&&!l)return s.post.match(/,(?!,).*\}/)?(t=s.pre+"{"+s.body+Dg+s.post,Ni(t,e,!0)):[t];let h;if(c)h=s.body.split(/\.\./);else if(h=xw(s.body),h.length===1&&h[0]!==void 0&&(h=Ni(h[0],e,!1).map(UG),h.length===1))return n.map(u=>s.pre+h[0]+u);let g;if(c&&h[0]!==void 0&&h[1]!==void 0){let u=Bg(h[0]),E=Bg(h[1]),B=Math.max(h[0].length,h[1].length),C=h.length===3&&h[2]!==void 0?Math.abs(Bg(h[2])):1,Q=LG;E<u&&(C*=-1,Q=TG);let f=h.some(MG);g=[];for(let p=u;Q(p,E);p+=C){let w;if(a)w=String.fromCharCode(p),w==="\\"&&(w="");else if(w=String(p),f){let F=B-w.length;if(F>0){let O=new Array(F+1).join("0");p<0?w="-"+O+w.slice(1):w=O+w}}g.push(w)}}else{g=[];for(let u=0;u<h.length;u++)g.push.apply(g,Ni(h[u],e,!1))}for(let u=0;u<g.length;u++)for(let E=0;E<n.length&&r.length<e;E++){let B=i+g[u]+n[E];(!A||c||B)&&r.push(B)}}return r}var na=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},xG={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Di=t=>t.replace(/[[\]\\-]/g,"\\$&"),vG=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),cw=t=>t.join(""),GG=(t,e)=>{let A=e;if(t.charAt(A)!=="[")throw new Error("not in a brace expression");let r=[],s=[],i=A+1,n=!1,o=!1,a=!1,c=!1,l=A,h="";e:for(;i<t.length;){let E=t.charAt(i);if((E==="!"||E==="^")&&i===A+1){c=!0,i++;continue}if(E==="]"&&n&&!a){l=i+1;break}if(n=!0,E==="\\"&&!a){a=!0,i++;continue}if(E==="["&&!a){for(let[B,[C,Q,f]]of Object.entries(xG))if(t.startsWith(B,i)){if(h)return["$.",!1,t.length-A,!0];i+=B.length,f?s.push(C):r.push(C),o=o||Q;continue e}}if(a=!1,h){E>h?r.push(Di(h)+"-"+Di(E)):E===h&&r.push(Di(E)),h="",i++;continue}if(t.startsWith("-]",i+1)){r.push(Di(E+"-")),i+=2;continue}if(t.startsWith("-",i+1)){h=E,i+=2;continue}r.push(Di(E)),i++}if(l<i)return["",!1,0,!1];if(!r.length&&!s.length)rLine truncated
|
||||
globstar while`,t,h,e,g,u),this.matchOne(t.slice(h),e.slice(g),A))return this.debug("globstar found match!",h,o,u),!0;if(u==="."||u===".."||!r.dot&&u.charAt(0)==="."){this.debug("dot detected!",t,h,e,g);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(A&&(this.debug(`
|
||||
>>> no match, partial?`,t,h,e,g),h===o))}let E;if(typeof c=="string"?(E=l===c,this.debug("string match",c,l,E)):(E=c.test(l),this.debug("pattern match",c,l,E)),!E)return!1}if(i===o&&n===a)return!0;if(i===o)return A;if(n===a)return i===o-1&&t[i]==="";throw new Error("wtf?")}braceExpand(){return Vw(this.pattern,this.options)}parse(t){na(t);let e=this.options;if(t==="**")return Se;if(t==="")return"";let A,r=null;(A=t.match(tY))?r=e.dot?rY:AY:(A=t.match(WG))?r=(e.nocase?e.dot?ZG:zG:e.dot?_G:PG)(A[1]):(A=t.match(sY))?r=(e.nocase?e.dot?nY:iY:e.dot?oY:aY)(A):(A=t.match(XG))?r=e.dot?$G:KG:(A=t.match(jG))&&(r=eY);let s=vw.fromGlob(t,this.options).toMMPattern();return r&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:r}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let e=this.options,A=e.noglobstar?hY:e.dot?gY:uY,r=new Set(e.nocase?["i"]:[]),s=t.map(o=>{let a=o.map(l=>{if(l instanceof RegExp)for(let h of l.flags.split(""))r.add(h);return typeof l=="string"?CY(l):l===Se?Se:l._src});a.forEach((l,h)=>{let g=a[h+1],u=a[h-1];l!==Se||u===Se||(u===void 0?g!==void 0&&g!==Se?a[h+1]="(?:\\/|"+A+"\\/)?"+g:a[h]=A:g===void 0?a[h-1]=u+"(?:\\/|\\/"+A+")?":g!==Se&&(a[h-1]=u+"(?:\\/|\\/"+A+"\\/)"+g,a[h+1]=Se))});let c=a.filter(l=>l!==Se);if(this.partial&&c.length>=1){let l=[];for(let h=1;h<=c.length;h++)l.push(c.slice(0,h).join("/"));return"(?:"+l.join("|")+")"}return c.join("/")}).join("|"),[i,n]=t.length>1?["(?:",")"]:["",""];s="^"+i+s+n+"$",this.partial&&(s="^(?:\\/|"+i+s.slice(1,-1)+n+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&e)return!0;let A=this.options;this.isWindows&&(t=t.split("\\").join("/"));let r=this.slashSplit(t);this.debug(this.pattern,"split",r);let s=this.set;this.debug(this.pattern,"set",s);let i=r[r.length-1];if(!i)for(let n=r.length-2;!i&&n>=0;n--)i=r[n];for(let n=0;n<s.length;n++){let o=s[n],a=r;if(A.matchBase&&o.length===1&&(a=[i]),this.matchOne(a,o,e))return A.flipNegate?!0:!this.negate}return A.flipNegate?!1:this.negate}static defaults(t){return be.defaults(t).Minimatch}};be.AST=vw;be.Minimatch=MA;be.escape=Gw;be.unescape=Is;var fY=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ow=new Set,mg=typeof process=="object"&&process?process:{},Ww=(t,e,A,r)=>{typeof mg.emitWarning=="function"?mg.emitWarning(t,e,A,r):console.error(`[${A}] ${e}: ${t}`)},oa=globalThis.AbortController,Qw=globalThis.AbortSignal;if(typeof oa>"u"){Qw=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(A,r){this._onabort.push(r)}},oa=class{constructor(){e()}signal=new Qw;abort(A){if(!this.signal.aborted){this.signal.reason=A,this.signal.aborted=!0;for(let r of this.signal._onabort)r(A);this.signal.onabort?.(A)}}};let t=mg.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Ww("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var dY=t=>!Ow.has(t),UA=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Pw=t=>UA(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?sa:null:null,sa=class extends Array{constructor(t){super(t),this.fill(0)}},pY=class Ui{heap;length;static#e=!1;static create(e){let A=Pw(e);if(!A)return[];Ui.#e=!0;let r=new Ui(e,A);return Ui.#e=!1,r}constructor(e,A){if(!Ui.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new A(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ca=class _w{#e;#t;#s;#r;#A;#a;#o;#c;get perf(){return this.#c}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#u;#E;#h;#n;#Q;#p;#d;#B;#F;#I;#m;#D;#C;#f;#w;#R;#i;#L;static unsafeExposeInternals(e){return{starts:e.#D,ttls:e.#C,autopurgeTimers:e.#f,sizes:e.#m,keyMap:e.#E,keyList:e.#h,valList:e.#n,next:e.#Q,prev:e.#p,get head(){return e.#d},get tail(){return e.#B},free:e.#F,isBackgroundFetch:A=>e.#g(A),backgroundFetch:(A,r,s,i)=>e.#V(A,r,s,i),moveToTail:A=>e.#x(A),indexes:A=>e.#b(A),rindexes:A=>e.#N(A),isStale:A=>e.#y(A)}}get max(){return this.#e}get maxSize(){return th
Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
||||
|
||||
undici/lib/web/websocket/frame.js:
|
||||
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
||||
*/
|
||||
//# sourceMappingURL=index.cjs.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": "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 truncated
|
||||
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername", "handler", "rState", "err", "i", "processHeader", "headeLine truncated
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
import './sourcemap-register.cjs';import{createRequire as A}from"module";var i={9379:(A,i,g)=>{const E=Symbol("SemVer ANY");class Comparator{static get ANY(){return E}constructor(A,i){i=Q(i);if(A instanceof Comparator){if(A.loose===!!i.loose){return A}else{A=A.value}}A=A.trim().split(/\s+/).join(" ");f("comparator",A,i);this.options=i;this.loose=!!i.loose;this.parse(A);if(this.semver===E){this.value=""}else{this.value=this.operator+this.semver.version}f("comp",this)}parse(A){const i=this.options.loose?C[B.COMPARATORLOOSE]:C[B.COMPARATOR];const g=A.match(i);if(!g){throw new TypeError(`Invalid comparator: ${A}`)}this.operator=g[1]!==undefined?g[1]:"";if(this.operator==="="){this.operator=""}if(!g[2]){this.semver=E}else{this.semver=new p(g[2],this.options.loose)}}toString(){return this.value}test(A){f("Comparator.test",A,this.options.loose);if(this.semver===E||A===E){return true}if(typeof A==="string"){try{A=new p(A,this.options)}catch(A){return false}}return I(A,this.operator,this.semver,this.options)}intersects(A,i){if(!(A instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new y(A.value,i).test(this.value)}else if(A.operator===""){if(A.value===""){return true}return new y(this.value,i).test(A.semver)}i=Q(i);if(i.includePrerelease&&(this.value==="<0.0.0-0"||A.value==="<0.0.0-0")){return false}if(!i.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&A.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&A.operator.startsWith("<")){return true}if(this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("=")){return true}if(I(this.semver,"<",A.semver,i)&&this.operator.startsWith(">")&&A.operator.startsWith("<")){return true}if(I(this.semver,">",A.semver,i)&&this.operator.startsWith("<")&&A.operator.startsWith(">")){return true}return false}}A.exports=Comparator;const Q=g(356);const{safeRe:C,t:B}=g(5471);const I=g(8646);const f=g(1159);const p=g(7163);const y=g(6782)},6782:(A,i,g)=>{const E=/\s+/g;class Range{constructor(A,i){i=B(i);if(A instanceof Range){if(A.loose===!!i.loose&&A.includePrerelease===!!i.includePrerelease){return A}else{return new Range(A.raw,i)}}if(A instanceof I){this.raw=A.value;this.set=[[A]];this.formatted=undefined;return this}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=A.trim().replace(E," ");this.set=this.raw.split("||").map((A=>this.parseRange(A.trim()))).filter((A=>A.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const A=this.set[0];this.set=this.set.filter((A=>!isNullSet(A[0])));if(this.set.length===0){this.set=[A]}else if(this.set.length>1){for(const A of this.set){if(A.length===1&&isAny(A[0])){this.set=[A];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let A=0;A<this.set.length;A++){if(A>0){this.formatted+="||"}const i=this.set[A];for(let A=0;A<i.length;A++){if(A>0){this.formatted+=" "}this.formatted+=i[A].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(A){const i=(this.options.includePrerelease&&S)|(this.options.loose&&F);const g=i+":"+A;const E=C.get(g);if(E){return E}const Q=this.options.loose;const B=Q?y[D.HYPHENRANGELOOSE]:y[D.HYPHENRANGE];A=A.replace(B,hyphenReplace(this.options.includePrerelease));f("hyphen replace",A);A=A.replace(y[D.COMPARATORTRIM],R);f("comparator trim",A);A=A.replace(y[D.TILDETRIM],b);f("tilde trim",A);A=A.replace(y[D.CARETTRIM],k);f("caret trim",A);let p=A.split(" ").map((A=>parseComparator(A,this.options))).join(" ").split(/\s+/).map((A=>replaceGTE0(A,this.options)));if(Q){p=p.filter((A=>{f("loose invalid filter",A,this.options);return!!A.match(y[D.COMPARATORLOOSE])}))}f("range list",p);const M=new Map;const U=p.map((A=>new I(A,this.options)));for(const A of U){if(isNullSet(A)){return[A]}M.set(A.value,A)}if(M.size>1&&M.has("")){M.delete("")}const L=[...M.values()];C.set(g,L);return L}intersects(A,i){if(!(A instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((g=>isSatisfiable(g,i)&&A.set.some((A=>isSatisfiable(A,i)&&g.every((g=>A.every((A=>g.intersects(A,i)))))))))}test(A){if(!A){return false}if(typeof A==="string"){try{A=new p(A,this.options)}catch(A){return false}}for(let i=0;i<this.set.length;i++){if(testSet(this.set[i],A,this.options)){return true}}return false}}A.exports=Range;const Q=g(1383);const C=new Q;const B=g(356);const I=g(9379);const f=g(1159);const p=g(7163);const{safeRe:y,t:D,comparatorTrimReplace:R,tildeTrimReplace:b,caretTrimReplace:k}=g(5471);const{FLAG_INCLUDE_PRERELEASE:S,FLAG_LOOSE:F}=g(5101);const isNullSet=A=>A.value==="<0.0.0-0";const isAny=A=>A.value==="";const isSatisfiable=(A,i)=>{let g=true;const E=A.slice();let Q=E.pop();while(g&&E.length){g=E.every((A=>Q.intersects(ALine truncated
|
||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=A=>A.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=A=>A.replace(/\r?\n|\r/g,"\r\n");const E=[];const Q=new Uint8Array([13,10]);y=0;let C=false;for(const[i,B]of A){if(typeof B==="string"){const A=x.encode(g+`; name="${escape(normalizeLinefeeds(i))}"`+`\r\n\r\n${normalizeLinefeeds(B)}\r\n`);E.push(A);y+=A.byteLength}else{const A=x.encode(`${g}; name="${escape(normalizeLinefeeds(i))}"`+(B.name?`; filename="${escape(B.name)}"`:"")+"\r\n"+`Content-Type: ${B.type||"application/octet-stream"}\r\n\r\n`);E.push(A,B,Q);if(typeof B.size==="number"){y+=A.byteLength+B.size+Q.byteLength}else{C=true}}}const B=x.encode(`--${i}--\r\n`);E.push(B);y+=B.byteLength;if(C){y=null}p=A;f=async function*(){for(const A of E){if(A.stream){yield*A.stream()}else{yield A}}};D=`multipart/form-data; boundary=${i}`}else if(C(A)){p=A;y=A.size;if(A.type){D=A.type}}else if(typeof A[Symbol.asyncIterator]==="function"){if(i){throw new TypeError("keepalive")}if(E.isDisturbed(A)||A.locked){throw new TypeError("Response body object should not be disturbed or locked")}g=A instanceof ReadableStream?A:Q(A)}if(typeof p==="string"||E.isBuffer(p)){y=Buffer.byteLength(p)}if(f!=null){let i;g=new ReadableStream({async start(){i=f(A)[Symbol.asyncIterator]()},async pull(A){const{value:E,done:Q}=await i.next();if(Q){queueMicrotask((()=>{A.close();A.byobRequest?.respond(0)}))}else{if(!M(g)){const i=new Uint8Array(E);if(i.byteLength){A.enqueue(i)}}}return A.desiredSize>0},async cancel(A){await i.return()},type:"bytes"})}const R={stream:g,source:p,length:y};return[R,D]}function safelyExtractBody(A,i=false){if(A instanceof ReadableStream){F(!E.isDisturbed(A),"The body has already been consumed.");F(!A.locked,"The stream is locked.")}return extractBody(A,i)}function cloneBody(A,i){const[g,E]=i.stream.tee();i.stream=g;return{stream:E,length:i.length,source:i.source}}function throwIfAborted(A){if(A.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(A){const i={blob(){return consumeBody(this,(A=>{let i=bodyMimeType(this);if(i===null){i=""}else if(i){i=T(i)}return new S([A],{type:i})}),A)},arrayBuffer(){return consumeBody(this,(A=>new Uint8Array(A).buffer),A)},text(){return consumeBody(this,D,A)},json(){return consumeBody(this,parseJSONFromBytes,A)},formData(){return consumeBody(this,(A=>{const i=bodyMimeType(this);if(i!==null){switch(i.essence){case"multipart/form-data":{const g=v(A,i);if(g==="failure"){throw new TypeError("Failed to parse body as FormData.")}const E=new R;E[b]=g;return E}case"application/x-www-form-urlencoded":{const i=new URLSearchParams(A.toString());const g=new R;for(const[A,E]of i){g.append(A,E)}return g}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),A)},bytes(){return consumeBody(this,(A=>new Uint8Array(A)),A)}};return i}function mixinBody(A){Object.assign(A.prototype,bodyMixinMethods(A))}async function consumeBody(A,i,g){k.brandCheck(A,g);if(bodyUnusable(A)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(A[b]);const E=f();const errorSteps=A=>E.reject(A);const successSteps=A=>{try{E.resolve(i(A))}catch(A){errorSteps(A)}};if(A[b].body==null){successSteps(Buffer.allocUnsafe(0));return E.promise}await p(A[b].body,successSteps,errorSteps);return E.promise}function bodyUnusable(A){const i=A[b].body;return i!=null&&(i.stream.locked||E.isDisturbed(i.stream))}function parseJSONFromBytes(A){return JSON.parse(D(A))}function bodyMimeType(A){const i=A[b].headersList;const g=y(i);if(g==="failure"){return null}return g}A.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:Y,hasFinalizationRegistry:H,bodyUnusable:bodyUnusable}},4495:A=>{const i=["GET","HEAD","POST"];const g=new Set(i);const E=[101,204,205,304];const Q=[301,302,303,307,308];const C=new Set(Q);const B=["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 I=new Set(B);const f=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const p=new Set(f);const y=["follow","manual","error"];const D=["GET","HEAD","OPTIONS","TRACE"];const R=new Set(D);const b=["navigate","same-origin","no-cors","cors"];const k=["omit","same-origin","include"];const S=["default","no-store","reload","no-cache","force-cLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */I[B-4]=g[0];I[B-3]=g[1];I[B-2]=g[2];I[B-1]=g[3];I[1]=C;if(C===126){I.writeUInt16BE(Q,2)}else if(C===127){I[2]=I[3]=0;I.writeUIntBE(Q,4,6)}I[1]|=128;for(let A=0;A<Q;++A){I[B+A]=i[A]^g[A&3]}return I}}A.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(A,i,g)=>{const{createInflateRaw:E,Z_DEFAULT_WINDOWBITS:Q}=g(8522);const{isValidClientWindowBits:C}=g(8625);const B=Buffer.from([0,0,255,255]);const I=Symbol("kBuffer");const f=Symbol("kLength");class PerMessageDeflate{#j;#u={};constructor(A){this.#u.serverNoContextTakeover=A.has("server_no_context_takeover");this.#u.serverMaxWindowBits=A.get("server_max_window_bits")}decompress(A,i,g){if(!this.#j){let A=Q;if(this.#u.serverMaxWindowBits){if(!C(this.#u.serverMaxWindowBits)){g(new Error("Invalid server_max_window_bits"));return}A=Number.parseInt(this.#u.serverMaxWindowBits)}this.#j=E({windowBits:A});this.#j[I]=[];this.#j[f]=0;this.#j.on("data",(A=>{this.#j[I].push(A);this.#j[f]+=A.length}));this.#j.on("error",(A=>{this.#j=null;g(A)}))}this.#j.write(A);if(i){this.#j.write(B)}this.#j.flush((()=>{const A=Buffer.concat(this.#j[I],this.#j[f]);this.#j[I].length=0;this.#j[f]=0;g(null,A)}))}}A.exports={PerMessageDeflate:PerMessageDeflate}},1652:(A,i,g)=>{const{Writable:E}=g(7075);const Q=g(4589);const{parserStates:C,opcodes:B,states:I,emptyBuffer:f,sentCloseFrameState:p}=g(736);const{kReadyState:y,kSentClose:D,kResponse:R,kReceivedClose:b}=g(1216);const{channels:k}=g(2414);const{isValidStatusCode:S,isValidOpcode:F,failWebsocketConnection:M,websocketMessageReceived:U,utf8Decode:L,isControlFrame:T,isTextBinaryFrame:v,isContinuationFrame:G}=g(8625);const{WebsocketFrameSend:x}=g(3264);const{closeWebSocketConnection:H}=g(6897);const{PerMessageDeflate:Y}=g(9469);class ByteParser extends E{#X=[];#K=0;#$=false;#f=C.INFO;#ee={};#te=[];#Ae;constructor(A,i){super();this.ws=A;this.#Ae=i==null?new Map:i;if(this.#Ae.has("permessage-deflate")){this.#Ae.set("permessage-deflate",new Y(i))}}_write(A,i,g){this.#X.push(A);this.#K+=A.length;this.#$=true;this.run(g)}run(A){while(this.#$){if(this.#f===C.INFO){if(this.#K<2){return A()}const i=this.consume(2);const g=(i[0]&128)!==0;const E=i[0]&15;const Q=(i[1]&128)===128;const I=!g&&E!==B.CONTINUATION;const f=i[1]&127;const p=i[0]&64;const y=i[0]&32;const D=i[0]&16;if(!F(E)){M(this.ws,"Invalid opcode received");return A()}if(Q){M(this.ws,"Frame cannot be masked");return A()}if(p!==0&&!this.#Ae.has("permessage-deflate")){M(this.ws,"Expected RSV1 to be clear.");return}if(y!==0||D!==0){M(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(I&&!v(E)){M(this.ws,"Invalid frame type was fragmented.");return}if(v(E)&&this.#te.length>0){M(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&I){M(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((f>125||I)&&T(E)){M(this.ws,"Control frame either too large or fragmented");return}if(G(E)&&this.#te.length===0&&!this.#ee.compressed){M(this.ws,"Unexpected continuation frame");return}if(f<=125){this.#ee.payloadLength=f;this.#f=C.READ_DATA}else if(f===126){this.#f=C.PAYLOADLENGTH_16}else if(f===127){this.#f=C.PAYLOADLENGTH_64}if(v(E)){this.#ee.binaryType=E;this.#ee.compressed=p!==0}this.#ee.opcode=E;this.#ee.masked=Q;this.#ee.fin=g;this.#ee.fragmented=I}else if(this.#f===C.PAYLOADLENGTH_16){if(this.#K<2){return A()}const i=this.consume(2);this.#ee.payloadLength=i.readUInt16BE(0);this.#f=C.READ_DATA}else if(this.#f===C.PAYLOADLENGTH_64){if(this.#K<8){return A()}const i=this.consume(8);const g=i.readUInt32BE(0);if(g>2**31-1){M(this.ws,"Received payload length > 2^31 bytes.");return}const E=i.readUInt32BE(4);this.#ee.payloadLength=(g<<8)+E;this.#f=C.READ_DATA}else if(this.#f===C.READ_DATA){if(this.#K<this.#ee.payloadLength){return A()}const i=this.consume(this.#ee.payloadLength);if(T(this.#ee.opcode)){this.#$=this.parseControlFrame(i);this.#f=C.INFO}else{if(!this.#ee.compressed){this.#te.push(i);if(!this.#ee.fragmented&&this.#ee.fin){const A=Buffer.concat(this.#te);U(this.ws,this.#ee.binaryType,A);this.#te.length=0}this.#f=C.INFO}else{this.#Ae.get("permessage-deflate").decompress(i,this.#ee.fin,((i,g)=>{if(i){H(this.ws,1007,i.message,i.message.length);return}this.#te.push(g);if(!this.#ee.fin){this.#f=C.INFO;this.#$=true;this.run(A);return}U(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#$=true;this.#f=C.INFO;this.#te.length=0;this.run(A)}));this.#$=false;break}}}}}consume(A){if(A>this.#K){throw new Error("Called consume() before buffers satiated.")}else if(A===0){return f}if(this.#X[0].length===A){this.#K-=this.#X[0].length;return this.#X.shift()}const i=Buffer.allocUnsafe(A);let g=0;while(g!==A){const E=this.#X[0];const{length:Q}=E;if(Q+g===A){i.set(this.#X.shift(),g);break}else if(Q+g>A){i.set(E.subarray(0,A-g),g);this.#X[0]=E.subarray(A-g);break}else{i.set(this.#X.shift(),g);g+=E.length}}this.#K-=A;return i}parseCloseBody(A){Q(A.length!==1);let i;if(A.length>=2){i=A.readUInt16BE(0)}if(i!==undefined&&!S(i)){retuLine truncated
|
||||
//# sourceMappingURL=index.js.map
|
||||
-1
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index.js","names":["ANY","Symbol","Comparator","constructor","comp","options","parseOptions","loose","value","trim","split","join","debug","this","parse","semver","operator","version","r","re","t","COMPARATORLOOSE","COMPARATOR","m","match","TypeError","undefined","SemVer","toString","test","er","cmp","intersects","Range","includePrerelease","startsWith","includes","module","exports","__webpack_require__","safeRe","SPACE_CHARACTERS","range","raw","set","formatted","replace","map","parseRange","filter","c","length","first","isNullSet","isAny","i","comps","k","format","memoOpts","FLAG_INCLUDE_PRERELEASE","FLAG_LOOSE","memoKey","cached","cache","get","hr","HYPHENRANGELOOSE","HYPHENRANGE","hyphenReplace","COMPARATORTRIM","comparatorTrimReplace","TILDETRIM","tildeTrimReplace","CARETTRIM","caretTrimReplace","rangeList","parseComparator","replaceGTE0","rangeMap","Map","comparators","size","has","delete","result","values","some","thisComparators","isSatisfiable","rangeComparators","every","thisComparator","rangeComparator","testSet","LRU","remainingComparators","slice","testComparator","pop","otherComparator","BUILD","replaceCarets","replaceTildes","replaceXRanges","replaceStars","isX","id","toLowerCase","replaceTilde","TILDELOOSE","TILDE","_","M","p","pr","ret","replaceCaret","CARETLOOSE","CARET","z","replaceXRange","XRANGELOOSE","XRANGE","gtlt","xM","xm","xp","anyX","STAR","GTE0PRE","GTE0","incPr","$0","from","fM","fm","fp","fpr","fb","to","tM","tm","tp","tpr","prerelease","allowed","major","minor","patch","MAX_LENGTH","MAX_SAFE_INTEGER","compareIdentifiers","LOOSE","FULL","num","build","compare","other","compareMain","comparePre","a","b","compareBuild","inc","release","identifier","identifierBase","Error","PRERELEASELOOSE","PRERELEASE","base","Number","push","isNaN","clean","s","eq","neq","gt","gte","lt","lte","op","coerce","String","rtl","COERCEFULL","COERCE","coerceRtlRegex","COERCERTLFULL","COERCERTL","next","exec","index","lastIndex","versionA","versionB","compareLoose","diff","version1","version2","v1","v2","comparison","v1Higher","highVersion","lowVersion","highHasPre","lowHasPre","prefix","throwErrors","parsed","rcompare","rsort","list","sort","satisfies","valid","v","internalRe","constants","identifiers","toComparators","maxSatisfying","minSatisfying","minVersion","validRange","outside","gtr","ltr","simplifyRange","subset","src","tokens","SEMVER_SPEC_VERSION","RELEASE_TYPES","rcompareIdentifiers","MAX_SAFE_COMPONENT_LENGTH","MAX_SAFE_BUILD_LENGTH","process","env","NODE_DEBUG","args","console","error","numeric","anum","bnum","LRUCache","max","key","deleted","firstKey","keys","looseOption","Object","freeze","emptyOpts","safeSrc","R","LETTERDASHNUMBER","safeRegexReplacements","makeSafeRegex","token","createToken","name","isGlobal","safe","RegExp","NUMERICIDENTIFIER","NUMERICIDENTIFIERLOOSE","NONNUMERICIDENTIFIER","PRERELEASEIDENTIFIER","PRERELEASEIDENTIFIERLOOSE","BUILDIDENTIFIER","MAINVERSION","FULLPLAIN","MAINVERSIONLOOSE","LOOSEPLAIN","XRANGEIDENTIFIER","XRANGEIDENTIFIERLOOSE","GTLT","XRANGEPLAIN","XRANGEPLAINLOOSE","COERCEPLAIN","LONETILDE","LONECARET","r1","r2","versions","maxSV","rangeObj","forEach","min","minSV","minver","setMin","comparator","compver","hilo","gtfn","ltefn","ltfn","ecomp","high","low","prev","included","ranges","simplified","original","sub","dom","sawNonNull","OUTER","simpleSub","simpleDom","isSub","simpleSubset","minimumVersionWithPreRelease","minimumVersion","eqSet","Set","higherGT","lowerLT","add","gtltComp","higher","lower","hasDomLT","hasDomGT","needDomLTPre","needDomGTPre","net","tls","http","https","events","assert","util","httpOverHttp","httpsOverHttp","httpOverHttps","httpsOverHttps","agent","TunnelingAgent","request","createSocket","createSecureSocket","defaultPort","self","proxyOptions","proxy","maxSockets","Agent","defaultMaxSockets","requests","sockets","on","onFree","socket","host","port","localAddress","toOptions","len","pending","splice","onSocket","destroy","removeSocket","inherits","EventEmitter","prototype","addRequest","req","mergeOptions","onCloseOrRemove","emit","err","removeListener","cb","placeholder","connectOptions","method","path","headers","proxyAuth","Buffer","connectReq","useChunkedEncodingByDefault","once","onResponse","onUpgrade","onConnect","onError","end","res","upgrade","head","nextTick","removeAllListeners","statusCode","code","indexOf","cause","message","stack","pos","shift","call","hostHeader","getHeader","tlsOptions","servername","secureSocket","connect","target","arguments","overrides","j","keyLen","Array","unshift","apply","__webpack_unused_export__","Client","Dispatcher","Pool","BalancedPool","ProxyAgent","EnvHttpProxyAgent","RetryAgent","errors","InvalidArgumentError","api","buildConnector","MockClient","MockAgent","MockPool","mockErrors","RetryHandler","getGlobalDispatcher","setGlobalDispatcher","DecoratorHandler","RedirectHandler","createRedirectInterceptor","assign","kT","redirect","retry","dump","dns","parseHeaders",Line truncated
|
||||
+261
-62
@@ -1,29 +1,174 @@
|
||||
@actions/core
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
This file was generated with the generate-license-file npm package!
|
||||
https://www.npmjs.com/package/generate-license-file
|
||||
|
||||
Copyright 2019 GitHub
|
||||
The following npm package may be included in this product:
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
- balanced-match@4.0.4
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
This package contains the following license:
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
(MIT)
|
||||
|
||||
@actions/exec
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
Original code Copyright Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
Copyright 2019 GitHub
|
||||
Port to TypeScript Copyright Isaac Z. Schlueter <i@izs.me>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
- lru-cache@11.2.6
|
||||
- minipass@7.1.3
|
||||
- path-scurry@2.0.2
|
||||
|
||||
These packages each contain the following license:
|
||||
|
||||
# Blue Oak Model License
|
||||
|
||||
Version 1.0.0
|
||||
|
||||
## Purpose
|
||||
|
||||
This license gives everyone as much permission to work with
|
||||
this software as possible, while protecting contributors
|
||||
from liability.
|
||||
|
||||
## Acceptance
|
||||
|
||||
In order to receive this license, you must agree to its
|
||||
rules. The rules of this license are both obligations
|
||||
under that agreement and conditions to your license.
|
||||
You must not do anything with this software that triggers
|
||||
a rule that you cannot or will not follow.
|
||||
|
||||
## Copyright
|
||||
|
||||
Each contributor licenses you to do everything with this
|
||||
software that would otherwise infringe that contributor's
|
||||
copyright in it.
|
||||
|
||||
## Notices
|
||||
|
||||
You must ensure that everyone who gets a copy of
|
||||
any part of this software from you, with or without
|
||||
changes, also gets the text of this license or a link to
|
||||
<https://blueoakcouncil.org/license/1.0.0>.
|
||||
|
||||
## Excuse
|
||||
|
||||
If anyone notifies you in writing that you have not
|
||||
complied with [Notices](#notices), you can keep your
|
||||
license by taking all practical steps to comply within 30
|
||||
days after the notice. If you do not do so, your license
|
||||
ends immediately.
|
||||
|
||||
## Patent
|
||||
|
||||
Each contributor licenses you to do everything with this
|
||||
software that would otherwise infringe any patent claims
|
||||
they can license or become able to license.
|
||||
|
||||
## Reliability
|
||||
|
||||
No contributor can revoke this license.
|
||||
|
||||
## No Liability
|
||||
|
||||
***As far as the law allows, this software comes as is,
|
||||
without any warranty or condition, and no contributor
|
||||
will be liable to anyone for any damages related to this
|
||||
software or this license, under any kind of legal claim.***
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- minimatch@10.2.4
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
# Blue Oak Model License
|
||||
|
||||
Version 1.0.0
|
||||
|
||||
## Purpose
|
||||
|
||||
This license gives everyone as much permission to work with
|
||||
this software as possible, while protecting contributors
|
||||
from liability.
|
||||
|
||||
## Acceptance
|
||||
|
||||
In order to receive this license, you must agree to its
|
||||
rules. The rules of this license are both obligations
|
||||
under that agreement and conditions to your license.
|
||||
You must not do anything with this software that triggers
|
||||
a rule that you cannot or will not follow.
|
||||
|
||||
## Copyright
|
||||
|
||||
Each contributor licenses you to do everything with this
|
||||
software that would otherwise infringe that contributor's
|
||||
copyright in it.
|
||||
|
||||
## Notices
|
||||
|
||||
You must ensure that everyone who gets a copy of
|
||||
any part of this software from you, with or without
|
||||
changes, also gets the text of this license or a link to
|
||||
<https://blueoakcouncil.org/license/1.0.0>.
|
||||
|
||||
## Excuse
|
||||
|
||||
If anyone notifies you in writing that you have not
|
||||
complied with [Notices](#notices), you can keep your
|
||||
license by taking all practical steps to comply within 30
|
||||
days after the notice. If you do not do so, your license
|
||||
ends immediately.
|
||||
|
||||
## Patent
|
||||
|
||||
Each contributor licenses you to do everything with this
|
||||
software that would otherwise infringe any patent claims
|
||||
they can license or become able to license.
|
||||
|
||||
## Reliability
|
||||
|
||||
No contributor can revoke this license.
|
||||
|
||||
## No Liability
|
||||
|
||||
**_As far as the law allows, this software comes as is,
|
||||
without any warranty or condition, and no contributor
|
||||
will be liable to anyone for any damages related to this
|
||||
software or this license, under any kind of legal claim._**
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- @actions/http-client@4.0.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
@actions/http-client
|
||||
MIT
|
||||
Actions Http Client for Node.js
|
||||
|
||||
Copyright (c) GitHub, Inc.
|
||||
@@ -46,33 +191,14 @@ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
@actions/io
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
The following npm package may be included in this product:
|
||||
|
||||
Copyright 2019 GitHub
|
||||
- glob@13.0.6
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
This package contains the following license:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@actions/tool-cache
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
glob
|
||||
BlueOak-1.0.0
|
||||
All packages under `src/` are licensed according to the terms in
|
||||
their respective `LICENSE` or `LICENSE.md` files.
|
||||
|
||||
@@ -137,9 +263,76 @@ without any warranty or condition, and no contributor
|
||||
will be liable to anyone for any damages related to this
|
||||
software or this license, under any kind of legal claim.***
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- undici@6.23.0
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) Matteo Collina and Undici contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- brace-expansion@5.0.4
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright Julian Gruber <julian@juliangruber.com>
|
||||
|
||||
TypeScript port Copyright Isaac Z. Schlueter <i@izs.me>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- semver@7.7.4
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
semver
|
||||
ISC
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
@@ -156,9 +349,14 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
The following npm package may be included in this product:
|
||||
|
||||
- tunnel@0.0.6
|
||||
|
||||
This package contains the following license:
|
||||
|
||||
tunnel
|
||||
MIT
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2012 Koichi Kobayashi
|
||||
@@ -181,27 +379,28 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
undici
|
||||
MIT
|
||||
MIT License
|
||||
The following npm packages may be included in this product:
|
||||
|
||||
Copyright (c) Matteo Collina and Undici contributors
|
||||
- @actions/core@3.0.0
|
||||
- @actions/exec@3.0.0
|
||||
- @actions/io@3.0.2
|
||||
- @actions/tool-cache@4.0.0
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
These packages each contain the following license:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
The MIT License (MIT)
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Copyright 2019 GitHub
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
-----------
|
||||
|
||||
This file was generated with the generate-license-file npm package!
|
||||
https://www.npmjs.com/package/generate-license-file
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
(()=>{var e={296:e=>{var r=Object.prototype.toString;var n=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(e){return r.call(e).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(e,r,t){r>>>=0;var o=e.byteLength-r;if(o<0){throw new RangeError("'offset' is out of bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw new RangeError("'length' is out of bounds")}}return n?Buffer.from(e.slice(r,r+t)):new Buffer(new Uint8Array(e.slice(r,r+t)))}function fromString(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}return n?Buffer.from(e,r):new Buffer(e,r)}function bufferFrom(e,r,t){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(e)){return fromArrayBuffer(e,r,t)}if(typeof e==="string"){return fromString(e,r)}return n?Buffer.from(e):new Buffer(e)}e.exports=bufferFrom},599:(e,r,n)=>{e=n.nmd(e);var t=n(927).SourceMapConsumer;var o=n(928);var i;try{i=n(896);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var a=n(296);function dynamicRequire(e,r){return e.require(r)}var u=false;var s=false;var l=false;var c="auto";var p={};var f={};var g=/^data:application\/json[^,]+base64,/;var d=[];var h=[];function isInBrowser(){if(c==="browser")return true;if(c==="node")return false;return typeof window!=="undefined"&&typeof XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function hasGlobalProcessEventEmitter(){return typeof process==="object"&&process!==null&&typeof process.on==="function"}function globalProcessVersion(){if(typeof process==="object"&&process!==null){return process.version}else{return""}}function globalProcessStderr(){if(typeof process==="object"&&process!==null){return process.stderr}}function globalProcessExit(e){if(typeof process==="object"&&process!==null&&typeof process.exit==="function"){return process.exit(e)}}function handlerExec(e){return function(r){for(var n=0;n<e.length;n++){var t=e[n](r);if(t){return t}}return null}}var m=handlerExec(d);d.push((function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,(function(e,r){return r?"":"/"}))}if(e in p){return p[e]}var r="";try{if(!i){var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);if(n.readyState===4&&n.status===200){r=n.responseText}}else if(i.existsSync(e)){r=i.readFileSync(e,"utf8")}}catch(e){}return p[e]=r}));function supportRelativeURL(e,r){if(!e)return r;var n=o.dirname(e);var t=/^\w+:\/\/[^\/]*/.exec(n);var i=t?t[0]:"";var a=n.slice(i.length);if(i&&/^\/\w\:/.test(a)){i+="/";return i+o.resolve(n.slice(i.length),r).replace(/\\/g,"/")}return i+o.resolve(n.slice(i.length),r)}function retrieveSourceMapURL(e){var r;if(isInBrowser()){try{var n=new XMLHttpRequest;n.open("GET",e,false);n.send(null);r=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t){return t}}catch(e){}}r=m(e);var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;var i,a;while(a=o.exec(r))i=a;if(!i)return null;return i[1]}var v=handlerExec(h);h.push((function(e){var r=retrieveSourceMapURL(e);if(!r)return null;var n;if(g.test(r)){var t=r.slice(r.indexOf(",")+1);n=a(t,"base64").toString();r=e}else{r=supportRelativeURL(e,r);n=m(r)}if(!n){return null}return{url:r,map:n}}));function mapSourcePosition(e){var r=f[e.source];if(!r){var n=v(e.source);if(n){r=f[e.source]={url:n.url,map:new t(n.map)};if(r.map.sourcesContent){r.map.sources.forEach((function(e,n){var t=r.map.sourcesContent[n];if(t){var o=supportRelativeURL(r.url,e);p[o]=t}}))}}else{r=f[e.source]={url:null,map:null}}}if(r&&r.map&&typeof r.map.originalPositionFor==="function"){var o=r.map.originalPositionFor(e);if(o.source!==null){o.source=supportRelativeURL(r.url,o.source);return o}}return e}function mapEvalOrigin(e){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(r){var n=mapSourcePosition({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}r=/^eval at ([^(]+) \((.+)\)$/.exec(e);if(r){return"eval at "+r[1]+" ("+mapEvalOrigin(r[2])+")"}return e}function CallSiteToString(){var e;var r="";if(this.isNative()){r="native"}else{e=this.getScriptNameOrSourceURL();if(!e&&this.isEval()){r=this.getEvalOrigin();r+=", "}if(e){r+=e}else{r+="<anonymous>"}var n=this.getLineNumber();if(n!=null){r+=":"+n;var t=this.getColumnNumber();if(t){r+=":"+t}}}var o="";var i=this.getFunctionName();var a=true;var u=this.isConstructor();var s=!(this.isToplevel()||u);if(s){var l=this.getTypeName();if(l==="[object Object]"){l="null"}var c=this.getMethodName();if(i){if(l&&i.indexOf(l)!=0){o+=l+"."}o+=i;if(c&&i.indexOf("."+c)!=i.length-c.length-1){o+=" [as "+c+"]"}}else{o+=l+"."+(c||"<anonymous>")}}else if(u){o+="new "+(i||"<aLine truncated
|
||||
+4
-2
@@ -4,10 +4,11 @@
|
||||
"type": "module",
|
||||
"main": "src/main.ts",
|
||||
"scripts": {
|
||||
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
|
||||
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify && yarn run license",
|
||||
"lint": "eslint --max-warnings=0 .",
|
||||
"format": "eslint --fix .",
|
||||
"test": "vitest run",
|
||||
"license": "generate-license-file --input package.json --output dist/licenses.txt --overwrite --ci --no-spinner --eol lf",
|
||||
"all": "yarn run build && yarn run format && yarn test"
|
||||
},
|
||||
"repository": {
|
||||
@@ -33,12 +34,13 @@
|
||||
"@types/node": "^24.11.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
||||
"@typescript-eslint/parser": "^8.56.1",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"@vitest/coverage-v8": "^4.0.18",
|
||||
"@vitest/eslint-plugin": "^1.6.9",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "^9.39.3",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-prettier": "^5.5.5",
|
||||
"generate-license-file": "^4.1.1",
|
||||
"globals": "^17.3.0",
|
||||
"prettier": "^3.8.1",
|
||||
"typescript": "^5.9.3",
|
||||
|
||||
Reference in new issue
Block a user