Merge pull request #395 from docker/dependabot/npm_and_yarn/undici-6.24.0

chore(deps): Bump undici from 6.23.0 to 6.24.1
This commit is contained in:
CrazyMax authored and GitHub committed 2026-03-24 13:55:38 +01:00
commit 50bd4b2564
3 files changed
+7 -7

No files matched your search

Generated Vendored
+3 -3
View File
@@ -102,9 +102,9 @@ e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pa
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*/const s=r(79896);const i=r(70857);const o=r(16928);const a=r(76982);const c={fs:s.constants,os:i.constants};const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u=/XXXXXX/,d=3,h=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),f=i.platform()==="win32",p=c.EBADF||c.os.errno.EBADF,g=c.ENOENT||c.os.errno.ENOENT,A=448,y=384,b="exit",w=[],C=s.rmdirSync.bind(s);let S=false;function rimraf(e,t){return s.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return s.rmSync(e,{recursive:true})}function tmpName(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];_assertAndSanitizeOptions(n,(function(e,t){if(e)return i(e);let r=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);s.stat(e,(function(t){if(!t){if(r-- >0)return _getUniqueName();return i(new Error("Could not get a unique tmp filename, max tries reached "+e))}i(null,e)}))}catch(e){i(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),r=t[0];const n=_assertAndSanitizeOptionsSync(r);let i=n.tries;do{const e=_generateTmpName(n);try{s.statSync(e)}catch(t){return e}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return i(e);s.open(t,h,n.mode||y,(function _fileCreated(e,r){if(e)return i(e);if(n.discardDescriptor){return s.close(r,(function _discardCallback(e){return i(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{const e=n.discardDescriptor||n.detachDescriptor;i(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}function fileSync(e){const t=_parseArguments(e),r=t[0];const n=r.discardDescriptor||r.detachDescriptor;const i=tmpNameSync(r);let o=s.openSync(i,h,r.mode||y);if(r.discardDescriptor){s.closeSync(o);o=undefined}return{name:i,fd:o,removeCallback:_prepareTmpFileRemoveCallback(i,n?-1:o,r,true)}}function dir(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return i(e);s.mkdir(t,n.mode||A,(function _dirCreated(e){if(e)return i(e);i(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}function dirSync(e){const t=_parseArguments(e),r=t[0];const n=tmpNameSync(r);s.mkdirSync(n,r.mode||A);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])s.close(e[0],(function(){s.unlink(e[1],_handler)}));else s.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])s.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{s.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,r,n){const s=_prepareRemoveCallback(_removeFileSync,[t,e],n);const i=_prepareRemoveCallback(_removeFileAsync,[t,e],n,s);if(!r.keep)w.unshift(s);return n?s:i}function _prepareTmpDirRemoveCallback(e,t,r){const n=t.unsafeCleanup?rimraf:s.rmdir.bind(s);const i=t.unsafeCleanup?FN_RIMRAF_SYNC:C;const o=_prepareRemoveCallback(i,e,r);const a=_prepareRemoveCallback(n,e,r,o);if(!t.keep)w.unshift(o);return r?o:a}function _prepareRemoveCallback(e,t,r,n){let s=false;return function _cleanupCallback(i){if(!s){const o=n||_cleanupCallback;const a=w.indexOf(o);if(a>=0)w.splice(a,1);s=true;if(r||e===C||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,i||function(){})}}}}function _garbageCollector(){if(!S)return;while(w.length){try{w[0]()}catch(e){}}}function _randomChars(e){let t=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(let n=0;n<e;n++){t.push(l[r[n]%l.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const r={};for(const t of Object.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function _resolvePath(e,t,r){const n=o.isAbsolute(e)?e:o.join(t,e);s.stat(n,(function(e){if(e){s.realpath(o.dirname(n),(function(e,t){if(e)return r(e);r(null,o.join(t,o.basename(n)))}))}else{s.realpath(n,r)}}))}function _resolvePathSync(e,t){const r=o.isAbsolute(e)?e:o.join(t,e);try{s.statSync(r);return s.realpathSync(r)}catch(e){const t=s.realpathSync(o.dirname(r));return o.join(t,o.basename(r))}}function _generateTmpName(e){const t=e.tmpdir;if(!_isUndefined(e.name)){return o.join(t,e.dir,e.name)}if(!_isUndefined(e.template)){return o.join(t,e.dir,e.template).replace(u,_randomChars(6))}const r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");return o.join(t,e.dir,r)}function _assertOptionsBase(e){if(!_isUndefined(e.name)){const t=e.name;if(o.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);const r=o.basename(t);if(r===".."||r==="."||r!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!_isUndefined(e.template)&&!e.template.match(u)){throw new Error(`Invalid teLine truncated
*/const s=r(79896);const i=r(70857);const o=r(16928);const a=r(76982);const c={fs:s.constants,os:i.constants};const l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u=/XXXXXX/,d=3,h=(c.O_CREAT||c.fs.O_CREAT)|(c.O_EXCL||c.fs.O_EXCL)|(c.O_RDWR||c.fs.O_RDWR),f=i.platform()==="win32",p=c.EBADF||c.os.errno.EBADF,g=c.ENOENT||c.os.errno.ENOENT,A=448,y=384,b="exit",w=[],C=s.rmdirSync.bind(s);let S=false;function rimraf(e,t){return s.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return s.rmSync(e,{recursive:true})}function tmpName(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];_assertAndSanitizeOptions(n,(function(e,t){if(e)return i(e);let r=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);s.stat(e,(function(t){if(!t){if(r-- >0)return _getUniqueName();return i(new Error("Could not get a unique tmp filename, max tries reached "+e))}i(null,e)}))}catch(e){i(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),r=t[0];const n=_assertAndSanitizeOptionsSync(r);let i=n.tries;do{const e=_generateTmpName(n);try{s.statSync(e)}catch(t){return e}}while(i-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return i(e);s.open(t,h,n.mode||y,(function _fileCreated(e,r){if(e)return i(e);if(n.discardDescriptor){return s.close(r,(function _discardCallback(e){return i(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,n,false))}))}else{const e=n.discardDescriptor||n.detachDescriptor;i(null,t,r,_prepareTmpFileRemoveCallback(t,e?-1:r,n,false))}}))}))}function fileSync(e){const t=_parseArguments(e),r=t[0];const n=r.discardDescriptor||r.detachDescriptor;const i=tmpNameSync(r);let o=s.openSync(i,h,r.mode||y);if(r.discardDescriptor){s.closeSync(o);o=undefined}return{name:i,fd:o,removeCallback:_prepareTmpFileRemoveCallback(i,n?-1:o,r,true)}}function dir(e,t){const r=_parseArguments(e,t),n=r[0],i=r[1];tmpName(n,(function _tmpNameCreated(e,t){if(e)return i(e);s.mkdir(t,n.mode||A,(function _dirCreated(e){if(e)return i(e);i(null,t,_prepareTmpDirRemoveCallback(t,n,false))}))}))}function dirSync(e){const t=_parseArguments(e),r=t[0];const n=tmpNameSync(r);s.mkdirSync(n,r.mode||A);return{name:n,removeCallback:_prepareTmpDirRemoveCallback(n,r,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])s.close(e[0],(function(){s.unlink(e[1],_handler)}));else s.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])s.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{s.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,r,n){const s=_prepareRemoveCallback(_removeFileSync,[t,e],n);const i=_prepareRemoveCallback(_removeFileAsync,[t,e],n,s);if(!r.keep)w.unshift(s);return n?s:i}function _prepareTmpDirRemoveCallback(e,t,r){const n=t.unsafeCleanup?rimraf:s.rmdir.bind(s);const i=t.unsafeCleanup?FN_RIMRAF_SYNC:C;const o=_prepareRemoveCallback(i,e,r);const a=_prepareRemoveCallback(n,e,r,o);if(!t.keep)w.unshift(o);return r?o:a}function _prepareRemoveCallback(e,t,r,n){let s=false;return function _cleanupCallback(i){if(!s){const o=n||_cleanupCallback;const a=w.indexOf(o);if(a>=0)w.splice(a,1);s=true;if(r||e===C||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,i||function(){})}}}}function _garbageCollector(){if(!S)return;while(w.length){try{w[0]()}catch(e){}}}function _randomChars(e){let t=[],r=null;try{r=a.randomBytes(e)}catch(t){r=a.pseudoRandomBytes(e)}for(let n=0;n<e;n++){t.push(l[r[n]%l.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const r={};for(const t of Object.getOwnPropertyNames(e)){r[t]=e[t]}return[r,t]}function _resolvePath(e,t,r){const n=o.isAbsolute(e)?e:o.join(t,e);s.stat(n,(function(e){if(e){s.realpath(o.dirname(n),(function(e,t){if(e)return r(e);r(null,o.join(t,o.basename(n)))}))}else{s.realpath(n,r)}}))}function _resolvePathSync(e,t){const r=o.isAbsolute(e)?e:o.join(t,e);try{s.statSync(r);return s.realpathSync(r)}catch(e){const t=s.realpathSync(o.dirname(r));return o.join(t,o.basename(r))}}function _generateTmpName(e){const t=e.tmpdir;if(!_isUndefined(e.name)){return o.join(t,e.dir,e.name)}if(!_isUndefined(e.template)){return o.join(t,e.dir,e.template).replace(u,_randomChars(6))}const r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");return o.join(t,e.dir,r)}function _assertOptionsBase(e){if(!_isUndefined(e.name)){const t=e.name;if(o.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);const r=o.basename(t);if(r===".."||r==="."||r!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!_isUndefined(e.template)&&!e.template.match(u)){throw new Error(`Invalid teLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const n=[];const s=new Uint8Array([13,10]);u=0;let i=false;for(const[t,o]of e){if(typeof o==="string"){const e=v.encode(r+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(o)}\r\n`);n.push(e);u+=e.byteLength}else{const e=v.encode(`${r}; name="${escape(normalizeLinefeeds(t))}"`+(o.name?`; filename="${escape(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r\n\r\n`);n.push(e,o,s);if(typeof o.size==="number"){u+=e.byteLength+o.size+s.byteLength}else{i=true}}}const o=v.encode(`--${t}--\r\n`);n.push(o);u+=o.byteLength;if(i){u=null}l=e;c=async function*(){for(const e of n){if(e.stream){yield*e.stream()}else{yield e}}};d=`multipart/form-data; boundary=${t}`}else if(i(e)){l=e;u=e.size;if(e.type){d=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(n.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}r=e instanceof ReadableStream?e:s(e)}if(typeof l==="string"||n.isBuffer(l)){u=Buffer.byteLength(l)}if(c!=null){let t;r=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:s}=await t.next();if(s){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!y(r)){const t=new Uint8Array(n);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const h={stream:r,source:l,length:u};return[h,d]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){A(!n.isDisturbed(e),"The body has already been consumed.");A(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[r,n]=t.stream.tee();t.stream=r;return{stream:n,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=C(t)}return new g([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,d,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const r=S(e,t);if(r==="failure"){throw new TypeError("Failed to parse body as FormData.")}const n=new h;n[f]=r;return n}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const r=new h;for(const[e,n]of t){r.append(e,n)}return r}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,r){p.brandCheck(e,r);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[f]);const n=c();const errorSteps=e=>n.reject(e);const successSteps=e=>{try{n.resolve(t(e))}catch(e){errorSteps(e)}};if(e[f].body==null){successSteps(Buffer.allocUnsafe(0));return n.promise}await l(e[f].body,successSteps,errorSteps);return n.promise}function bodyUnusable(e){const t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(d(e))}function bodyMimeType(e){const t=e[f].headersList;const r=u(t);if(r==="failure"){return null}return r}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:_,hasFinalizationRegistry:B,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const r=new Set(t);const n=[101,204,205,304];const s=[301,302,303,307,308];const i=new Set(s);const o=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const a=new Set(o);const c=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const l=new Set(c);const u=["follow","manual","error"];const d=["GET","HEAD","OPTIONS","TRACE"];const h=new Set(d);const f=["navigate","same-origin","no-cors","cors"];const p=["omit","same-origin","include"];const g=["default","no-store","reload","no-cache","force-cLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e<s;++e){a[o+e]=t[e]^r[e&3]}return a}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(e,t,r)=>{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(38522);const{isValidClientWindowBits:i}=r(98625);const o=Buffer.from([0,0,255,255]);const a=Symbol("kBuffer");const c=Symbol("kLength");class PerMessageDeflate{#ce;#e={};constructor(e){this.#e.serverNoContextTakeover=e.has("server_no_context_takeover");this.#e.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(!this.#ce){let e=s;if(this.#e.serverMaxWindowBits){if(!i(this.#e.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#e.serverMaxWindowBits)}this.#ce=n({windowBits:e});this.#ce[a]=[];this.#ce[c]=0;this.#ce.on("data",(e=>{this.#ce[a].push(e);this.#ce[c]+=e.length}));this.#ce.on("error",(e=>{this.#ce=null;r(e)}))}this.#ce.write(e);if(t){this.#ce.write(o)}this.#ce.flush((()=>{const e=Buffer.concat(this.#ce[a],this.#ce[c]);this.#ce[a].length=0;this.#ce[c]=0;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},81652:(e,t,r)=>{const{Writable:n}=r(57075);const s=r(34589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(20736);const{kReadyState:u,kSentClose:d,kResponse:h,kReceivedClose:f}=r(61216);const{channels:p}=r(42414);const{isValidStatusCode:g,isValidOpcode:A,failWebsocketConnection:y,websocketMessageReceived:b,utf8Decode:w,isControlFrame:C,isTextBinaryFrame:S,isContinuationFrame:I}=r(98625);const{WebsocketFrameSend:v}=r(3264);const{closeWebSocketConnection:B}=r(86897);const{PerMessageDeflate:_}=r(19469);class ByteParser extends n{#le=[];#ue=0;#de=false;#D=i.INFO;#he={};#fe=[];#pe;constructor(e,t){super();this.ws=e;this.#pe=t==null?new Map:t;if(this.#pe.has("permessage-deflate")){this.#pe.set("permessage-deflate",new _(t))}}_write(e,t,r){this.#le.push(e);this.#ue+=e.length;this.#de=true;this.run(r)}run(e){while(this.#de){if(this.#D===i.INFO){if(this.#ue<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const u=t[0]&32;const d=t[0]&16;if(!A(n)){y(this.ws,"Invalid opcode received");return e()}if(s){y(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#pe.has("permessage-deflate")){y(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){y(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!S(n)){y(this.ws,"Invalid frame type was fragmented.");return}if(S(n)&&this.#fe.length>0){y(this.ws,"Expected continuation frame");return}if(this.#he.fragmented&&a){y(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C(n)){y(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#fe.length===0&&!this.#he.compressed){y(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#he.payloadLength=c;this.#D=i.READ_DATA}else if(c===126){this.#D=i.PAYLOADLENGTH_16}else if(c===127){this.#D=i.PAYLOADLENGTH_64}if(S(n)){this.#he.binaryType=n;this.#he.compressed=l!==0}this.#he.opcode=n;this.#he.masked=s;this.#he.fin=r;this.#he.fragmented=a}else if(this.#D===i.PAYLOADLENGTH_16){if(this.#ue<2){return e()}const t=this.consume(2);this.#he.payloadLength=t.readUInt16BE(0);this.#D=i.READ_DATA}else if(this.#D===i.PAYLOADLENGTH_64){if(this.#ue<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>2**31-1){y(this.ws,"Received payload length > 2^31 bytes.");return}const n=t.readUInt32BE(4);this.#he.payloadLength=(r<<8)+n;this.#D=i.READ_DATA}else if(this.#D===i.READ_DATA){if(this.#ue<this.#he.payloadLength){return e()}const t=this.consume(this.#he.payloadLength);if(C(this.#he.opcode)){this.#de=this.parseControlFrame(t);this.#D=i.INFO}else{if(!this.#he.compressed){this.#fe.push(t);if(!this.#he.fragmented&&this.#he.fin){const e=Buffer.concat(this.#fe);b(this.ws,this.#he.binaryType,e);this.#fe.length=0}this.#D=i.INFO}else{this.#pe.get("permessage-deflate").decompress(t,this.#he.fin,((t,r)=>{if(t){B(this.ws,1007,t.message,t.message.length);return}this.#fe.push(r);if(!this.#he.fin){this.#D=i.INFO;this.#de=true;this.run(e);return}b(this.ws,this.#he.binaryType,Buffer.concat(this.#fe));this.#de=true;this.#D=i.INFO;this.#fe.length=0;this.run(e)}));this.#de=false;break}}}}}consume(e){if(e>this.#ue){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return c}if(this.#le[0].length===e){this.#ue-=this.#le[0].length;return this.#le.shift()}const t=Buffer.allocUnsafe(e);let r=0;while(r!==e){const n=this.#le[0];const{length:s}=n;if(s+r===e){t.set(this.#le.shift(),r);break}else if(s+r>e){t.set(n.subarray(0,e-r),r);this.#le[0]=n.subarray(e-r);break}else{t.set(this.#le.shift(),r);r+=n.length}}this.#ue-=e;return t}parseCloseBody(e){s(e.length!==1);let t;if(e.lengtLine truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */a[o-4]=r[0];a[o-3]=r[1];a[o-2]=r[2];a[o-1]=r[3];a[1]=i;if(i===126){a.writeUInt16BE(s,2)}else if(i===127){a[2]=a[3]=0;a.writeUIntBE(s,4,6)}a[1]|=128;for(let e=0;e<s;++e){a[o+e]=t[e]^r[e&3]}return a}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},19469:(e,t,r)=>{const{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:s}=r(38522);const{isValidClientWindowBits:i}=r(98625);const{MessageSizeExceededError:o}=r(68707);const a=Buffer.from([0,0,255,255]);const c=Symbol("kBuffer");const l=Symbol("kLength");const u=4*1024*1024;class PerMessageDeflate{#ce;#e={};#M=false;#le=null;constructor(e){this.#e.serverNoContextTakeover=e.has("server_no_context_takeover");this.#e.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,r){if(this.#M){r(new o);return}if(!this.#ce){let e=s;if(this.#e.serverMaxWindowBits){if(!i(this.#e.serverMaxWindowBits)){r(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#e.serverMaxWindowBits)}try{this.#ce=n({windowBits:e})}catch(e){r(e);return}this.#ce[c]=[];this.#ce[l]=0;this.#ce.on("data",(e=>{if(this.#M){return}this.#ce[l]+=e.length;if(this.#ce[l]>u){this.#M=true;this.#ce.removeAllListeners();this.#ce.destroy();this.#ce=null;if(this.#le){const e=this.#le;this.#le=null;e(new o)}return}this.#ce[c].push(e)}));this.#ce.on("error",(e=>{this.#ce=null;r(e)}))}this.#le=r;this.#ce.write(e);if(t){this.#ce.write(a)}this.#ce.flush((()=>{if(this.#M||!this.#ce){return}const e=Buffer.concat(this.#ce[c],this.#ce[l]);this.#ce[c].length=0;this.#ce[l]=0;this.#le=null;r(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},81652:(e,t,r)=>{const{Writable:n}=r(57075);const s=r(34589);const{parserStates:i,opcodes:o,states:a,emptyBuffer:c,sentCloseFrameState:l}=r(20736);const{kReadyState:u,kSentClose:d,kResponse:h,kReceivedClose:f}=r(61216);const{channels:p}=r(42414);const{isValidStatusCode:g,isValidOpcode:A,failWebsocketConnection:y,websocketMessageReceived:b,utf8Decode:w,isControlFrame:C,isTextBinaryFrame:S,isContinuationFrame:I}=r(98625);const{WebsocketFrameSend:v}=r(3264);const{closeWebSocketConnection:B}=r(86897);const{PerMessageDeflate:_}=r(19469);class ByteParser extends n{#ue=[];#de=0;#he=false;#D=i.INFO;#fe={};#pe=[];#ge;constructor(e,t){super();this.ws=e;this.#ge=t==null?new Map:t;if(this.#ge.has("permessage-deflate")){this.#ge.set("permessage-deflate",new _(t))}}_write(e,t,r){this.#ue.push(e);this.#de+=e.length;this.#he=true;this.run(r)}run(e){while(this.#he){if(this.#D===i.INFO){if(this.#de<2){return e()}const t=this.consume(2);const r=(t[0]&128)!==0;const n=t[0]&15;const s=(t[1]&128)===128;const a=!r&&n!==o.CONTINUATION;const c=t[1]&127;const l=t[0]&64;const u=t[0]&32;const d=t[0]&16;if(!A(n)){y(this.ws,"Invalid opcode received");return e()}if(s){y(this.ws,"Frame cannot be masked");return e()}if(l!==0&&!this.#ge.has("permessage-deflate")){y(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){y(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!S(n)){y(this.ws,"Invalid frame type was fragmented.");return}if(S(n)&&this.#pe.length>0){y(this.ws,"Expected continuation frame");return}if(this.#fe.fragmented&&a){y(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&C(n)){y(this.ws,"Control frame either too large or fragmented");return}if(I(n)&&this.#pe.length===0&&!this.#fe.compressed){y(this.ws,"Unexpected continuation frame");return}if(c<=125){this.#fe.payloadLength=c;this.#D=i.READ_DATA}else if(c===126){this.#D=i.PAYLOADLENGTH_16}else if(c===127){this.#D=i.PAYLOADLENGTH_64}if(S(n)){this.#fe.binaryType=n;this.#fe.compressed=l!==0}this.#fe.opcode=n;this.#fe.masked=s;this.#fe.fin=r;this.#fe.fragmented=a}else if(this.#D===i.PAYLOADLENGTH_16){if(this.#de<2){return e()}const t=this.consume(2);this.#fe.payloadLength=t.readUInt16BE(0);this.#D=i.READ_DATA}else if(this.#D===i.PAYLOADLENGTH_64){if(this.#de<8){return e()}const t=this.consume(8);const r=t.readUInt32BE(0);const n=t.readUInt32BE(4);if(r!==0||n>2**31-1){y(this.ws,"Received payload length > 2^31 bytes.");return}this.#fe.payloadLength=n;this.#D=i.READ_DATA}else if(this.#D===i.READ_DATA){if(this.#de<this.#fe.payloadLength){return e()}const t=this.consume(this.#fe.payloadLength);if(C(this.#fe.opcode)){this.#he=this.parseControlFrame(t);this.#D=i.INFO}else{if(!this.#fe.compressed){this.#pe.push(t);if(!this.#fe.fragmented&&this.#fe.fin){const e=Buffer.concat(this.#pe);b(this.ws,this.#fe.binaryType,e);this.#pe.length=0}this.#D=i.INFO}else{this.#ge.get("permessage-deflate").decompress(t,this.#fe.fin,((t,r)=>{if(t){y(this.ws,t.message);return}this.#pe.push(r);if(!this.#fe.fin){this.#D=i.INFO;this.#he=true;this.run(e);return}b(this.ws,this.#fe.binaryType,Buffer.concat(this.#pe));this.#he=true;this.#D=i.INFO;this.#pe.length=0;this.run(e)}));this.#he=false;break}}}}}consume(e){if(e>this.#de){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return c}if(this.#ue[0].length===e){this.#de-=this.#ue[0].length;return tLine truncated
/**
* ZipStream
*
@@ -112,7 +112,7 @@ e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pa
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
* @copyright (c) 2014 Chris Talkington, contributors.
*/
var n=r(39023).inherits;var s=r(47544).ZipArchiveOutputStream;var i=r(47544).ZipArchiveEntry;var o=r(53296);var a=e.exports=function(e){if(!(this instanceof a)){return new a(e)}e=this.options=e||{};e.zlib=e.zlib||{};s.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};n(a,s);a.prototype._normalizeFileData=function(e){e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var r=e.type==="symlink";if(e.name){e.name=o.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=o.dateify(e.date);return e};a.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new i(t.name);n.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){n.setName(t.name,true)}if(t.store){n.setMethod(0)}if(t.comment.length>0){n.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}n.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return s.prototype.entry.call(this,n,e,r)};a.prototype.finalize=function(){this.finish()}},42613:t=>{t.exports=e(import.meta.url)("assert")},20181:t=>{t.exports=e(import.meta.url)("buffer")},49140:t=>{t.exports=e(import.meta.url)("constants")},76982:t=>{t.exports=e(import.meta.url)("crypto")},72250:t=>{t.exports=e(import.meta.url)("dns")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},91943:t=>{t.exports=e(import.meta.url)("fs/promises")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},34589:t=>{t.exports=e(import.meta.url)("node:assert")},16698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},37540:t=>{t.exports=e(import.meta.url)("node:console")},77598:t=>{t.exports=e(import.meta.url)("node:crypto")},53053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},40610:t=>{t.exports=e(import.meta.url)("node:dns")},78474:t=>{t.exports=e(import.meta.url)("node:events")},73024:t=>{t.exports=e(import.meta.url)("node:fs")},51455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},37067:t=>{t.exports=e(import.meta.url)("node:http")},32467:t=>{t.exports=e(import.meta.url)("node:http2")},77030:t=>{t.exports=e(import.meta.url)("node:net")},76760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},41792:t=>{t.exports=e(import.meta.url)("node:querystring")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},46193:t=>{t.exports=e(import.meta.url)("node:string_decoder")},41692:t=>{t.exports=e(import.meta.url)("node:tls")},73136:t=>{t.exports=e(import.meta.url)("node:url")},57975:t=>{t.exports=e(import.meta.url)("node:util")},73429:t=>{t.exports=e(import.meta.url)("node:util/types")},75919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},38522:t=>{t.exports=e(import.meta.url)("node:zlib")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},16460:t=>{t.exports=e(import.meta.url)("timers/promises")},64756:t=>{t.exports=e(import.meta.url)("tls")},52018:t=>{t.exports=e(import.meta.url)("tty")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},43106:t=>{t.exports=e(import.meta.url)("zlib")},33345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},38914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},49498:(e,t,r)=>{const n=r(5546);const isRetryError=e=>e?.code==="EPROMISERETRY"&&Object.hasOwn(e,"retried");async function promiseRetry(e,t={}){const r=n.operation(t);return new Promise((function(t,n){r.attempt((async s=>{try{const n=await e((e=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:e})}),s,r);return t(n)}catch(e){if(isRetryError(e)){if(r.retry(e.retried||new Error)){return}return n(e.retried)Line truncated
var n=r(39023).inherits;var s=r(47544).ZipArchiveOutputStream;var i=r(47544).ZipArchiveEntry;var o=r(53296);var a=e.exports=function(e){if(!(this instanceof a)){return new a(e)}e=this.options=e||{};e.zlib=e.zlib||{};s.call(this,e);if(typeof e.level==="number"&&e.level>=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}e.namePrependSlash=e.namePrependSlash||false;if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};n(a,s);a.prototype._normalizeFileData=function(e){e=o.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var r=e.type==="symlink";if(e.name){e.name=o.sanitizePath(e.name);if(!r&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||r){e.store=true}e.date=o.dateify(e.date);return e};a.prototype.entry=function(e,t,r){if(typeof r!=="function"){r=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){r(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var n=new i(t.name);n.setTime(t.date,this.options.forceLocalTime);if(t.namePrependSlash){n.setName(t.name,true)}if(t.store){n.setMethod(0)}if(t.comment.length>0){n.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}n.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return s.prototype.entry.call(this,n,e,r)};a.prototype.finalize=function(){this.finish()}},42613:t=>{t.exports=e(import.meta.url)("assert")},20181:t=>{t.exports=e(import.meta.url)("buffer")},49140:t=>{t.exports=e(import.meta.url)("constants")},76982:t=>{t.exports=e(import.meta.url)("crypto")},72250:t=>{t.exports=e(import.meta.url)("dns")},24434:t=>{t.exports=e(import.meta.url)("events")},79896:t=>{t.exports=e(import.meta.url)("fs")},91943:t=>{t.exports=e(import.meta.url)("fs/promises")},58611:t=>{t.exports=e(import.meta.url)("http")},85675:t=>{t.exports=e(import.meta.url)("http2")},65692:t=>{t.exports=e(import.meta.url)("https")},69278:t=>{t.exports=e(import.meta.url)("net")},34589:t=>{t.exports=e(import.meta.url)("node:assert")},16698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},37540:t=>{t.exports=e(import.meta.url)("node:console")},77598:t=>{t.exports=e(import.meta.url)("node:crypto")},53053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},40610:t=>{t.exports=e(import.meta.url)("node:dns")},78474:t=>{t.exports=e(import.meta.url)("node:events")},73024:t=>{t.exports=e(import.meta.url)("node:fs")},51455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},37067:t=>{t.exports=e(import.meta.url)("node:http")},32467:t=>{t.exports=e(import.meta.url)("node:http2")},77030:t=>{t.exports=e(import.meta.url)("node:net")},76760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},41792:t=>{t.exports=e(import.meta.url)("node:querystring")},57075:t=>{t.exports=e(import.meta.url)("node:stream")},46193:t=>{t.exports=e(import.meta.url)("node:string_decoder")},41692:t=>{t.exports=e(import.meta.url)("node:tls")},73136:t=>{t.exports=e(import.meta.url)("node:url")},57975:t=>{t.exports=e(import.meta.url)("node:util")},73429:t=>{t.exports=e(import.meta.url)("node:util/types")},75919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},38522:t=>{t.exports=e(import.meta.url)("node:zlib")},70857:t=>{t.exports=e(import.meta.url)("os")},16928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},13193:t=>{t.exports=e(import.meta.url)("string_decoder")},16460:t=>{t.exports=e(import.meta.url)("timers/promises")},64756:t=>{t.exports=e(import.meta.url)("tls")},52018:t=>{t.exports=e(import.meta.url)("tty")},87016:t=>{t.exports=e(import.meta.url)("url")},39023:t=>{t.exports=e(import.meta.url)("util")},43106:t=>{t.exports=e(import.meta.url)("zlib")},33345:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},38914:(e,t)=>{var r;r={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},49498:(e,t,r)=>{const n=r(5546);const isRetryError=e=>e?.code==="EPROMISERETRY"&&Object.hasOwn(e,"retried");async function promiseRetry(e,t={}){const r=n.operation(t);return new Promise((function(t,n){r.attempt((async s=>{try{const n=await e((e=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:e})}),s,r);return t(n)}catch(e){if(isRetryError(e)){if(r.retry(e.retried||new Error)){return}return n(e.retried)Line truncated
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in r){this.response=r.response}const n=Object.assign({},r.request);if(r.request.headers.authorization){n.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=n}}var hp="10.0.8";var fp={headers:{"user-agent":`octokit-request.js/${hp} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r==="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const r=e.request?.log||console;const n=e.request?.parseSuccessResponseBody!==false;const s=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const i=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let o;try{o=await t(e.url,{method:e.method,body:s,redirect:e.request?.redirect,headers:i,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let r="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}r=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){r=t.cause.message}else if(typeof t.cause==="string"){r=t.cause}}}const n=new RequestError(r,500,{request:e});n.cause=t;throw n}const a=o.status;const c=o.url;const l={};for(const[e,t]of o.headers){l[e]=t}const u={url:c,status:a,headers:l,data:""};if("deprecation"in l){const t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/);const n=t&&t.pop();r.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${n?`. See ${n}`:""}`)}if(a===204||a===205){return u}if(e.method==="HEAD"){if(a<400){return u}throw new RequestError(o.statusText,a,{response:u,request:e})}if(a===304){u.data=await getResponseData(o);throw new RequestError("Not modified",a,{response:u,request:e})}if(a>=400){u.data=await getResponseData(o);throw new RequestError(toErrorMessage(u.data),a,{response:u,request:e})}u.data=n?await getResponseData(o):o.body;return u}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const r=(0,Xf.xL)(t);if(isJSONResponse(r)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
/* v8 ignore next -- @preserve */
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request2=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request2,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)});return n.request.hook(request2,n)};return Object.assign(newApi,{endpoint:r,defaults:dist_bundle_withDefaults.bind(null,r)})}var pp=dist_bundle_withDefaults(Zf,fp);
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
{"version":3,"file":"index.js","names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","then","apply","Object","defineProperty","exports","ClientStreamingCall","constructor","method","requestHeaders","request","headers","response","status","trailers","requests","onfulfilled","onrejected","promiseFinished","reason","all","Deferred","DeferredState","preventUnhandledRejectionWarning","_state","PENDING","_promise","_resolve","_reject","catch","_","state","promise","Error","toLowerCase","RESOLVED","REJECTED","resolvePending","val","rejectPending","DuplexStreamingCall","responses","__webpack_unused_export__","service_type_1","__webpack_require__","enumerable","get","ServiceType","reflection_info_1","readMethodOptions","readMethodOption","readServiceOption","rpc_error_1","RpcError","rpc_options_1","mergeRpcOptions","rpc_output_stream_1","RpcOutputStreamController","test_transport_1","TestTransport","deferred_1","duplex_streaming_call_1","client_streaming_call_1","server_streaming_call_1","ServerStreamingCall","unary_call_1","UnaryCall","rpc_interceptor_1","stackIntercept","stackDuplexStreamingInterceptors","stackClientStreamingInterceptors","stackServerStreamingInterceptors","stackUnaryInterceptors","server_call_context_1","ServerCallContextController","normalizeMethodInfo","runtime_1","service","_a","_b","_c","m","localName","lowerCamelCase","name","serverStreaming","clientStreaming","options","idempotency","undefined","methodName","extensionName","extensionType","methods","find","i","fromJson","optionVal","message","code","meta","super","setPrototypeOf","prototype","toString","l","push","serviceName","entries","length","k","v","join","kind","transport","input","_d","tail","mtd","inp","opt","unary","curr","interceptors","filter","interceptUnary","reverse","interceptServerStreaming","interceptClientStreaming","duplex","interceptDuplex","assertNever","defaults","o","copy","key","keys","jsonOptions","mergeJsonOptions","binaryOptions","mergeBinaryOptions","concat","a","into","c","Date","getTime","Array","isArray","_lis","nxt","msg","err","cmp","_closed","_itState","q","onNext","callback","addLis","onMessage","onError","onComplete","list","indexOf","splice","clearLis","values","closed","notifyNext","error","complete","assert","notifyMessage","notifyError","notifyComplete","pushIt","forEach","Symbol","asyncIterator","p","first","shift","deadline","sendResponseHeadersFn","defaultStatus","detail","_cancelled","_listeners","_sendRH","notifyCancelled","sendResponseHeaders","data","cancelled","onCancel","typeName","map","suppressUncaughtRejections","headerDelay","responseDelay","betweenResponseDelay","afterResponseDelay","sentMessages","lastInput","TestInputStream","sent","single","sendComplete","completed","promiseHeaders","defaultHeaders","promiseSingleResponse","r","O","create","is","streamResponses","stream","abort","messages","delay","promiseStatus","promiseTrailers","defaultTrailers","maybeSuppressUncaught","mergeOptions","headersPromise","responsePromise","statusPromise","trailersPromise","outputStream","responseStreamClosedPromise","responseHeader","responseTrailer","ms","aborted","id","setTimeout","addEventListener","ev","clearTimeout","_completed","_sent","send","inputMessage","delayMs","inputComplete","assertFloat32","assertUInt32","assertInt32","condition","FLOAT32_MAX","FLOAT32_MIN","UINT32_MAX","INT32_MAX","INT32_MIN","arg","Number","isInteger","isFinite","base64encode","base64decode","encTable","split","decTable","charCodeAt","base64Str","es","bytes","Uint8Array","bytePos","groupPos","b","subarray","base64","WireType","UnknownFieldHandler","symbol","for","onRead","fieldNo","wireType","container","no","onWrite","writer","tag","raw","uf","last","slice","assign","BinaryReader","binaryReadOptions","binary_format_contract_1","pb_long_1","goog_varint_1","defaultsRead","readUnknownField","readerFactory","buf","textDecoder","varint64","varint64read","uint32","varint32read","len","pos","view","DataView","buffer","byteOffset","byteLength","TextDecoder","fatal","ignoreBOM","skip","start","Varint","Bit64","Bit32","LengthDelimited","StartGroup","t","EndGroup","assertBounds","RangeError","int32","sint32","zze","int64","PbLong","uint64","PbULong","sint64","lo","hi","s","bool","fixed32","getUint32","sfixed32","getInt32","fixed64","sfixed64","float","getFloat32","double","getFloat64","string","decode","BinaryWriter","binaryWriteOptions","assert_1","defaultsWrite","writeUnknownFields","writerFactory","textEncoder","stack","TextEncoder","chunks","finish","offset","set","fork","chunk","prev","pop","type","varint32write","encode","setFloat32","setFloat64","setUint32","setInt32","long","from","varint64write","sign","listEnumNumbers","listEnumNames","listEnumValues","isEnumObject","hasOwnProperty","num","parseInt","isNaN","nam","enumObject","number","index","arr","int64toString","int64fromString","lowBits","highBits","mLine truncated
+3 -3
View File
@@ -4388,9 +4388,9 @@ __metadata:
linkType: hard
"undici@npm:^6.23.0":
version: 6.23.0
resolution: "undici@npm:6.23.0"
checksum: 10/56950995e7b628e62c996430445d17995ca9b70f6f2afe760a63da54205660d968bd08f0741b6f4fb008f40aa35c69cce979cd96ced399585d8c897a76a4f1d1
version: 6.24.1
resolution: "undici@npm:6.24.1"
checksum: 10/4f84e6045520eef9ba8eabb96360b50c759f59905c1703b12187c2dbcc6d1584c5d7ecddeb45b0ed6cac84ca2d132b21bfd8a38f77fa30378b1ac5d2ae390fd9
languageName: node
linkType: hard