Merge pull request #881 from docker/dependabot/npm_and_yarn/tmp-0.2.4

build(deps): bump tmp from 0.2.3 to 0.2.4
This commit is contained in:
CrazyMax authored and GitHub committed 2025-09-13 13:53:13 +02:00
commit 09e05bbdf6
3 files changed
+5 -5

No files matched your search

Generated Vendored
+1 -1
View File
@@ -89,7 +89,7 @@ i.exports=function(i,d){if(typeof i!=="string"){throw new TypeError("expected pa
*
* MIT Licensed
*/
const y=p(79896);const v=p(70857);const D=p(16928);const M=p(76982);const U={fs:y.constants,os:v.constants};const j="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",V=/XXXXXX/,K=3,ee=(U.O_CREAT||U.fs.O_CREAT)|(U.O_EXCL||U.fs.O_EXCL)|(U.O_RDWR||U.fs.O_RDWR),te=v.platform()==="win32",re=U.EBADF||U.os.errno.EBADF,ne=U.ENOENT||U.os.errno.ENOENT,ie=448,se=384,ae="exit",oe=[],ce=y.rmdirSync.bind(y);let le=false;function rimraf(i,d){return y.rm(i,{recursive:true},d)}function FN_RIMRAF_SYNC(i){return y.rmSync(i,{recursive:true})}function tmpName(i,d){const p=_parseArguments(i,d),v=p[0],D=p[1];try{_assertAndSanitizeOptions(v)}catch(i){return D(i)}let M=v.tries;(function _getUniqueName(){try{const i=_generateTmpName(v);y.stat(i,(function(d){if(!d){if(M-- >0)return _getUniqueName();return D(new Error("Could not get a unique tmp filename, max tries reached "+i))}D(null,i)}))}catch(i){D(i)}})()}function tmpNameSync(i){const d=_parseArguments(i),p=d[0];_assertAndSanitizeOptions(p);let v=p.tries;do{const i=_generateTmpName(p);try{y.statSync(i)}catch(d){return i}}while(v-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,d){const p=_parseArguments(i,d),v=p[0],D=p[1];tmpName(v,(function _tmpNameCreated(i,d){if(i)return D(i);y.open(d,ee,v.mode||se,(function _fileCreated(i,p){if(i)return D(i);if(v.discardDescriptor){return y.close(p,(function _discardCallback(i){return D(i,d,undefined,_prepareTmpFileRemoveCallback(d,-1,v,false))}))}else{const i=v.discardDescriptor||v.detachDescriptor;D(null,d,p,_prepareTmpFileRemoveCallback(d,i?-1:p,v,false))}}))}))}function fileSync(i){const d=_parseArguments(i),p=d[0];const v=p.discardDescriptor||p.detachDescriptor;const D=tmpNameSync(p);var M=y.openSync(D,ee,p.mode||se);if(p.discardDescriptor){y.closeSync(M);M=undefined}return{name:D,fd:M,removeCallback:_prepareTmpFileRemoveCallback(D,v?-1:M,p,true)}}function dir(i,d){const p=_parseArguments(i,d),v=p[0],D=p[1];tmpName(v,(function _tmpNameCreated(i,d){if(i)return D(i);y.mkdir(d,v.mode||ie,(function _dirCreated(i){if(i)return D(i);D(null,d,_prepareTmpDirRemoveCallback(d,v,false))}))}))}function dirSync(i){const d=_parseArguments(i),p=d[0];const v=tmpNameSync(p);y.mkdirSync(v,p.mode||ie);return{name:v,removeCallback:_prepareTmpDirRemoveCallback(v,p,true)}}function _removeFileAsync(i,d){const _handler=function(i){if(i&&!_isENOENT(i)){return d(i)}d()};if(0<=i[0])y.close(i[0],(function(){y.unlink(i[1],_handler)}));else y.unlink(i[1],_handler)}function _removeFileSync(i){let d=null;try{if(0<=i[0])y.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{y.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))d=i}}if(d!==null){throw d}}function _prepareTmpFileRemoveCallback(i,d,p,y){const v=_prepareRemoveCallback(_removeFileSync,[d,i],y);const D=_prepareRemoveCallback(_removeFileAsync,[d,i],y,v);if(!p.keep)oe.unshift(v);return y?v:D}function _prepareTmpDirRemoveCallback(i,d,p){const v=d.unsafeCleanup?rimraf:y.rmdir.bind(y);const D=d.unsafeCleanup?FN_RIMRAF_SYNC:ce;const M=_prepareRemoveCallback(D,i,p);const U=_prepareRemoveCallback(v,i,p,M);if(!d.keep)oe.unshift(M);return p?M:U}function _prepareRemoveCallback(i,d,p,y){let v=false;return function _cleanupCallback(D){if(!v){const M=y||_cleanupCallback;const U=oe.indexOf(M);if(U>=0)oe.splice(U,1);v=true;if(p||i===ce||i===FN_RIMRAF_SYNC){return i(d)}else{return i(d,D||function(){})}}}}function _garbageCollector(){if(!le)return;while(oe.length){try{oe[0]()}catch(i){}}}function _randomChars(i){let d=[],p=null;try{p=M.randomBytes(i)}catch(d){p=M.pseudoRandomBytes(i)}for(var y=0;y<i;y++){d.push(j[p[y]%j.length])}return d.join("")}function _isBlank(i){return i===null||_isUndefined(i)||!i.trim()}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,d){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},d]}const p={};for(const d of Object.getOwnPropertyNames(i)){p[d]=i[d]}return[p,d]}function _generateTmpName(i){const d=i.tmpdir;if(!_isUndefined(i.name))return D.join(d,i.dir,i.name);if(!_isUndefined(i.template))return D.join(d,i.dir,i.template).replace(V,_randomChars(6));const p=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return D.join(d,i.dir,p)}function _assertAndSanitizeOptions(i){i.tmpdir=_getTmpDir(i);const d=i.tmpdir;if(!_isUndefined(i.name))_assertIsRelative(i.name,"name",d);if(!_isUndefined(i.dir))_assertIsRelative(i.dir,"dir",d);if(!_isUndefined(i.template)){_assertIsRelative(i.template,"template",d);if(!i.template.match(V))throw new Error(`Invalid template, found "${i.template}".`)}if(!_isUndefined(i.tries)&&isNaN(i.tries)||i.tries<0)throw new Error(`Invalid tries, found "${i.tries}".`);i.tries=_isUndefined(i.name)?i.tries||K:1;i.keep=!!i.keep;i.detachDescriptor=!!i.detachDescriptor;i.discardDescriptor=!!i.discardDescriptor;i.unsafeCleanup=!!i.unsafeCleanup;i.dir=_isUndefined(i.dir)?"":D.relative(d,_resolvePath(i.dir,d));i.templatLine truncated
const y=p(79896);const v=p(70857);const D=p(16928);const M=p(76982);const U={fs:y.constants,os:v.constants};const j="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",V=/XXXXXX/,K=3,ee=(U.O_CREAT||U.fs.O_CREAT)|(U.O_EXCL||U.fs.O_EXCL)|(U.O_RDWR||U.fs.O_RDWR),te=v.platform()==="win32",re=U.EBADF||U.os.errno.EBADF,ne=U.ENOENT||U.os.errno.ENOENT,ie=448,se=384,ae="exit",oe=[],ce=y.rmdirSync.bind(y);let le=false;function rimraf(i,d){return y.rm(i,{recursive:true},d)}function FN_RIMRAF_SYNC(i){return y.rmSync(i,{recursive:true})}function tmpName(i,d){const p=_parseArguments(i,d),v=p[0],D=p[1];_assertAndSanitizeOptions(v,(function(i,d){if(i)return D(i);let p=d.tries;(function _getUniqueName(){try{const i=_generateTmpName(d);y.stat(i,(function(d){if(!d){if(p-- >0)return _getUniqueName();return D(new Error("Could not get a unique tmp filename, max tries reached "+i))}D(null,i)}))}catch(i){D(i)}})()}))}function tmpNameSync(i){const d=_parseArguments(i),p=d[0];const v=_assertAndSanitizeOptionsSync(p);let D=v.tries;do{const i=_generateTmpName(v);try{y.statSync(i)}catch(d){return i}}while(D-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(i,d){const p=_parseArguments(i,d),v=p[0],D=p[1];tmpName(v,(function _tmpNameCreated(i,d){if(i)return D(i);y.open(d,ee,v.mode||se,(function _fileCreated(i,p){if(i)return D(i);if(v.discardDescriptor){return y.close(p,(function _discardCallback(i){return D(i,d,undefined,_prepareTmpFileRemoveCallback(d,-1,v,false))}))}else{const i=v.discardDescriptor||v.detachDescriptor;D(null,d,p,_prepareTmpFileRemoveCallback(d,i?-1:p,v,false))}}))}))}function fileSync(i){const d=_parseArguments(i),p=d[0];const v=p.discardDescriptor||p.detachDescriptor;const D=tmpNameSync(p);let M=y.openSync(D,ee,p.mode||se);if(p.discardDescriptor){y.closeSync(M);M=undefined}return{name:D,fd:M,removeCallback:_prepareTmpFileRemoveCallback(D,v?-1:M,p,true)}}function dir(i,d){const p=_parseArguments(i,d),v=p[0],D=p[1];tmpName(v,(function _tmpNameCreated(i,d){if(i)return D(i);y.mkdir(d,v.mode||ie,(function _dirCreated(i){if(i)return D(i);D(null,d,_prepareTmpDirRemoveCallback(d,v,false))}))}))}function dirSync(i){const d=_parseArguments(i),p=d[0];const v=tmpNameSync(p);y.mkdirSync(v,p.mode||ie);return{name:v,removeCallback:_prepareTmpDirRemoveCallback(v,p,true)}}function _removeFileAsync(i,d){const _handler=function(i){if(i&&!_isENOENT(i)){return d(i)}d()};if(0<=i[0])y.close(i[0],(function(){y.unlink(i[1],_handler)}));else y.unlink(i[1],_handler)}function _removeFileSync(i){let d=null;try{if(0<=i[0])y.closeSync(i[0])}catch(i){if(!_isEBADF(i)&&!_isENOENT(i))throw i}finally{try{y.unlinkSync(i[1])}catch(i){if(!_isENOENT(i))d=i}}if(d!==null){throw d}}function _prepareTmpFileRemoveCallback(i,d,p,y){const v=_prepareRemoveCallback(_removeFileSync,[d,i],y);const D=_prepareRemoveCallback(_removeFileAsync,[d,i],y,v);if(!p.keep)oe.unshift(v);return y?v:D}function _prepareTmpDirRemoveCallback(i,d,p){const v=d.unsafeCleanup?rimraf:y.rmdir.bind(y);const D=d.unsafeCleanup?FN_RIMRAF_SYNC:ce;const M=_prepareRemoveCallback(D,i,p);const U=_prepareRemoveCallback(v,i,p,M);if(!d.keep)oe.unshift(M);return p?M:U}function _prepareRemoveCallback(i,d,p,y){let v=false;return function _cleanupCallback(D){if(!v){const M=y||_cleanupCallback;const U=oe.indexOf(M);if(U>=0)oe.splice(U,1);v=true;if(p||i===ce||i===FN_RIMRAF_SYNC){return i(d)}else{return i(d,D||function(){})}}}}function _garbageCollector(){if(!le)return;while(oe.length){try{oe[0]()}catch(i){}}}function _randomChars(i){let d=[],p=null;try{p=M.randomBytes(i)}catch(d){p=M.pseudoRandomBytes(i)}for(let y=0;y<i;y++){d.push(j[p[y]%j.length])}return d.join("")}function _isUndefined(i){return typeof i==="undefined"}function _parseArguments(i,d){if(typeof i==="function"){return[{},i]}if(_isUndefined(i)){return[{},d]}const p={};for(const d of Object.getOwnPropertyNames(i)){p[d]=i[d]}return[p,d]}function _resolvePath(i,d,p){const v=D.isAbsolute(i)?i:D.join(d,i);y.stat(v,(function(i){if(i){y.realpath(D.dirname(v),(function(i,d){if(i)return p(i);p(null,D.join(d,D.basename(v)))}))}else{y.realpath(v,p)}}))}function _resolvePathSync(i,d){const p=D.isAbsolute(i)?i:D.join(d,i);try{y.statSync(p);return y.realpathSync(p)}catch(i){const d=y.realpathSync(D.dirname(p));return D.join(d,D.basename(p))}}function _generateTmpName(i){const d=i.tmpdir;if(!_isUndefined(i.name)){return D.join(d,i.dir,i.name)}if(!_isUndefined(i.template)){return D.join(d,i.dir,i.template).replace(V,_randomChars(6))}const p=[i.prefix?i.prefix:"tmp","-",process.pid,"-",_randomChars(12),i.postfix?"-"+i.postfix:""].join("");return D.join(d,i.dir,p)}function _assertOptionsBase(i){if(!_isUndefined(i.name)){const d=i.name;if(D.isAbsolute(d))throw new Error(`name option must not contain an absolute path, found "${d}".`);const p=D.basename(d);if(p===".."||p==="."||p!==d)throw new Error(`name option must not contain a path, found "${d}".`)}if(!_isUndefined(i.template)&&!i.template.match(V)){throwLine truncated
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=i=>i.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=i=>i.replace(/\r?\n|\r/g,"\r\n");const y=[];const v=new Uint8Array([13,10]);ee=0;let D=false;for(const[d,M]of i){if(typeof M==="string"){const i=ye.encode(p+`; name="${escape(normalizeLinefeeds(d))}"`+`\r\n\r\n${normalizeLinefeeds(M)}\r\n`);y.push(i);ee+=i.byteLength}else{const i=ye.encode(`${p}; name="${escape(normalizeLinefeeds(d))}"`+(M.name?`; filename="${escape(M.name)}"`:"")+"\r\n"+`Content-Type: ${M.type||"application/octet-stream"}\r\n\r\n`);y.push(i,M,v);if(typeof M.size==="number"){ee+=i.byteLength+M.size+v.byteLength}else{D=true}}}const M=ye.encode(`--${d}--`);y.push(M);ee+=M.byteLength;if(D){ee=null}K=i;V=async function*(){for(const i of y){if(i.stream){yield*i.stream()}else{yield i}}};te="multipart/form-data; boundary="+d}else if(M(i)){K=i;ee=i.size;if(i.type){te=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(d){throw new TypeError("keepalive")}if(v.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}y=i instanceof Ae?i:D(i)}if(typeof K==="string"||v.isBuffer(K)){ee=Buffer.byteLength(K)}if(V!=null){let d;y=new Ae({async start(){d=V(i)[Symbol.asyncIterator]()},async pull(i){const{value:p,done:v}=await d.next();if(v){queueMicrotask((()=>{i.close()}))}else{if(!le(y)){i.enqueue(new Uint8Array(p))}}return i.desiredSize>0},async cancel(i){await d.return()},type:undefined})}const re={stream:y,source:K,length:ee};return[re,te]}function safelyExtractBody(i,d=false){if(!Ae){Ae=p(63774).ReadableStream}if(i instanceof Ae){ce(!v.isDisturbed(i),"The body has already been consumed.");ce(!i.locked,"The stream is locked.")}return extractBody(i,d)}function cloneBody(i){const[d,p]=i.stream.tee();const y=ie(p,{transfer:[p]});const[,v]=y.tee();i.stream=d;return{stream:v,length:i.length,source:i.source}}async function*consumeBody(i){if(i){if(de(i)){yield i}else{const d=i.stream;if(v.isDisturbed(d)){throw new TypeError("The body has already been consumed.")}if(d.locked){throw new TypeError("The stream is locked.")}d[oe]=true;yield*d}}}function throwIfAborted(i){if(i.aborted){throw new ne("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const d={blob(){return specConsumeBody(this,(i=>{let d=bodyMimeType(this);if(d==="failure"){d=""}else if(d){d=fe(d)}return new se([i],{type:d})}),i)},arrayBuffer(){return specConsumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return specConsumeBody(this,utf8DecodeBytes,i)},json(){return specConsumeBody(this,parseJSONFromBytes,i)},async formData(){re.brandCheck(this,i);throwIfAborted(this[te]);const d=this.headers.get("Content-Type");if(/multipart\/form-data/.test(d)){const i={};for(const[d,p]of this.headers)i[d.toLowerCase()]=p;const d=new ee;let p;try{p=new y({headers:i,preservePath:true})}catch(i){throw new ne(`${i}`,"AbortError")}p.on("field",((i,p)=>{d.append(i,p)}));p.on("file",((i,p,y,v,D)=>{const M=[];if(v==="base64"||v.toLowerCase()==="base64"){let v="";p.on("data",(i=>{v+=i.toString().replace(/[\r\n]/gm,"");const d=v.length-v.length%4;M.push(Buffer.from(v.slice(0,d),"base64"));v=v.slice(d)}));p.on("end",(()=>{M.push(Buffer.from(v,"base64"));d.append(i,new ge(M,y,{type:D}))}))}else{p.on("data",(i=>{M.push(i)}));p.on("end",(()=>{d.append(i,new ge(M,y,{type:D}))}))}}));const v=new Promise(((i,d)=>{p.on("finish",i);p.on("error",(i=>d(new TypeError(i))))}));if(this.body!==null)for await(const i of consumeBody(this[te].body))p.write(i);p.end();await v;return d}else if(/application\/x-www-form-urlencoded/.test(d)){let i;try{let d="";const p=new TextDecoder("utf-8",{ignoreBOM:true});for await(const i of consumeBody(this[te].body)){if(!de(i)){throw new TypeError("Expected Uint8Array chunk")}d+=p.decode(i,{stream:true})}d+=p.decode();i=new URLSearchParams(d)}catch(i){throw Object.assign(new TypeError,{cause:i})}const d=new ee;for(const[p,y]of i){d.append(p,y)}return d}else{await Promise.resolve();throwIfAborted(this[te]);throw re.errors.exception({header:`${i.name}.formData`,message:"Could not parse content as FormData."})}}};return d}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function specConsumeBody(i,d,p){re.brandCheck(i,p);throwIfAborted(i[te]);if(bodyUnusable(i[te].body)){throw new TypeError("Body is unusable")}const y=V();const errorSteps=i=>y.reject(i);const successSteps=i=>{try{y.resolve(d(i))}catch(i){errorSteps(i)}};if(i[te].body==null){successSteps(new Uint8Array);return y.promise}await K(i[te].body,successSteps,errorSteps);return y.promise}function bodyUnusable(i){return i!=null&&(i.stream.locked||v.isDisturbed(i.stream))}function utf8DecodeBytes(i){if(i.length===0){return""}if(i[0]===239&&i[1]===187&&i[2]===191){i=i.subarray(3)}const d=be.decode(i);return d}function parseJSONFromBytes(i){return JSON.parse(utf8DecodeBytes(i))}function bodyMimeType(i){Line truncated
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */D[v-4]=this.maskKey[0];D[v-3]=this.maskKey[1];D[v-2]=this.maskKey[2];D[v-1]=this.maskKey[3];D[1]=p;if(p===126){D.writeUInt16BE(d,2)}else if(p===127){D[2]=D[3]=0;D.writeUIntBE(d,4,6)}D[1]|=128;for(let i=0;i<d;i++){D[v+i]=this.frameData[i]^this.maskKey[i%4]}return D}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},43171:(i,d,p)=>{"use strict";const{Writable:y}=p(2203);const v=p(31637);const{parserStates:D,opcodes:M,states:U,emptyBuffer:j}=p(45913);const{kReadyState:V,kSentClose:K,kResponse:ee,kReceivedClose:te}=p(62933);const{isValidStatusCode:re,failWebsocketConnection:ne,websocketMessageReceived:ie}=p(3574);const{WebsocketFrameSend:se}=p(31237);const ae={};ae.ping=v.channel("undici:websocket:ping");ae.pong=v.channel("undici:websocket:pong");class ByteParser extends y{#a=[];#o=0;#c=D.INFO;#l={};#d=[];constructor(i){super();this.ws=i}_write(i,d,p){this.#a.push(i);this.#o+=i.length;this.run(p)}run(i){while(true){if(this.#c===D.INFO){if(this.#o<2){return i()}const d=this.consume(2);this.#l.fin=(d[0]&128)!==0;this.#l.opcode=d[0]&15;this.#l.originalOpcode??=this.#l.opcode;this.#l.fragmented=!this.#l.fin&&this.#l.opcode!==M.CONTINUATION;if(this.#l.fragmented&&this.#l.opcode!==M.BINARY&&this.#l.opcode!==M.TEXT){ne(this.ws,"Invalid frame type was fragmented.");return}const p=d[1]&127;if(p<=125){this.#l.payloadLength=p;this.#c=D.READ_DATA}else if(p===126){this.#c=D.PAYLOADLENGTH_16}else if(p===127){this.#c=D.PAYLOADLENGTH_64}if(this.#l.fragmented&&p>125){ne(this.ws,"Fragmented frame exceeded 125 bytes.");return}else if((this.#l.opcode===M.PING||this.#l.opcode===M.PONG||this.#l.opcode===M.CLOSE)&&p>125){ne(this.ws,"Payload length for control frame exceeded 125 bytes.");return}else if(this.#l.opcode===M.CLOSE){if(p===1){ne(this.ws,"Received close frame with a 1-byte body.");return}const i=this.consume(p);this.#l.closeInfo=this.parseCloseBody(false,i);if(!this.ws[K]){const i=Buffer.allocUnsafe(2);i.writeUInt16BE(this.#l.closeInfo.code,0);const d=new se(i);this.ws[ee].socket.write(d.createFrame(M.CLOSE),(i=>{if(!i){this.ws[K]=true}}))}this.ws[V]=U.CLOSING;this.ws[te]=true;this.end();return}else if(this.#l.opcode===M.PING){const d=this.consume(p);if(!this.ws[te]){const i=new se(d);this.ws[ee].socket.write(i.createFrame(M.PONG));if(ae.ping.hasSubscribers){ae.ping.publish({payload:d})}}this.#c=D.INFO;if(this.#o>0){continue}else{i();return}}else if(this.#l.opcode===M.PONG){const d=this.consume(p);if(ae.pong.hasSubscribers){ae.pong.publish({payload:d})}if(this.#o>0){continue}else{i();return}}}else if(this.#c===D.PAYLOADLENGTH_16){if(this.#o<2){return i()}const d=this.consume(2);this.#l.payloadLength=d.readUInt16BE(0);this.#c=D.READ_DATA}else if(this.#c===D.PAYLOADLENGTH_64){if(this.#o<8){return i()}const d=this.consume(8);const p=d.readUInt32BE(0);if(p>2**31-1){ne(this.ws,"Received payload length > 2^31 bytes.");return}const y=d.readUInt32BE(4);this.#l.payloadLength=(p<<8)+y;this.#c=D.READ_DATA}else if(this.#c===D.READ_DATA){if(this.#o<this.#l.payloadLength){return i()}else if(this.#o>=this.#l.payloadLength){const i=this.consume(this.#l.payloadLength);this.#d.push(i);if(!this.#l.fragmented||this.#l.fin&&this.#l.opcode===M.CONTINUATION){const i=Buffer.concat(this.#d);ie(this.ws,this.#l.originalOpcode,i);this.#l={};this.#d.length=0}this.#c=D.INFO}}if(this.#o>0){continue}else{i();break}}}consume(i){if(i>this.#o){return null}else if(i===0){return j}if(this.#a[0].length===i){this.#o-=this.#a[0].length;return this.#a.shift()}const d=Buffer.allocUnsafe(i);let p=0;while(p!==i){const y=this.#a[0];const{length:v}=y;if(v+p===i){d.set(this.#a.shift(),p);break}else if(v+p>i){d.set(y.subarray(0,i-p),p);this.#a[0]=y.subarray(i-p);break}else{d.set(this.#a.shift(),p);p+=y.length}}this.#o-=i;return d}parseCloseBody(i,d){let p;if(d.length>=2){p=d.readUInt16BE(0)}if(i){if(!re(p)){return null}return{code:p}}let y=d.subarray(2);if(y[0]===239&&y[1]===187&&y[2]===191){y=y.subarray(3)}if(p!==undefined&&!re(p)){return null}try{y=new TextDecoder("utf-8",{fatal:true}).decode(y)}catch{return null}return{code:p,reason:y}}get closingInfo(){return this.#l.closeInfo}}i.exports={ByteParser:ByteParser}},62933:i=>{"use strict";i.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},3574:(i,d,p)=>{"use strict";const{kReadyState:y,kController:v,kResponse:D,kBinaryType:M,kWebSocketURL:U}=p(62933);const{states:j,opcodes:V}=p(45913);const{MessageEvent:K,ErrorEvent:ee}=p(46255);function isEstablished(i){return i[y]===j.OPEN}function isClosing(i){return i[y]===j.CLOSING}function isClosed(i){return i[y]===j.CLOSED}function fireEvent(i,d,p=Event,y){const v=new p(i,y);d.dispatchEvent(v)}function websocketMessageReceived(i,d,p){if(i[y]!==j.OPEN){return}let v;if(d===V.TEXT){try{v=new TextDeLine truncated
/**
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","HttpClient","response","statusCode","statusMessLine truncated
{"version":3,"file":"index.js","names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__exportStar","exports","p","prototype","hasOwnProperty","call","value","client_1","__webpack_require__","client","DefaultArtifactClient","Timestamp","runtime_1","runtime_2","runtime_3","runtime_4","runtime_5","runtime_6","runtime_7","Timestamp$Type","MessageType","constructor","super","no","name","kind","T","now","msg","ms","Date","seconds","PbLong","from","Math","floor","toString","nanos","toDate","message","toNumber","ceil","fromDate","date","getTime","internalJsonWrite","options","parse","Error","z","nanosStr","substring","toISOString","replace","internalJsonRead","json","target","typeofJsonValue","matches","match","Number","isNaN","globalThis","parseInt","repeat","length","MESSAGE_TYPE","reflectionMergePartial","internalBinaryRead","reader","end","pos","fieldNo","wireType","tag","int64","int32","u","readUnknownField","typeName","d","skip","UnknownFieldHandler","onRead","internalBinaryWrite","writer","WireType","Varint","writeUnknownFields","onWrite","BytesValue","StringValue","BoolValue","UInt32Value","Int32Value","UInt64Value","Int64Value","FloatValue","DoubleValue","DoubleValue$Type","refJsonWriter","scalar","refJsonReader","double","Bit64","FloatValue$Type","float","Bit32","Int64Value$Type","ScalarType","INT64","LongType","STRING","UInt64Value$Type","UINT64","uint64","Int32Value$Type","UInt32Value$Type","uint32","BoolValue$Type","bool","StringValue$Type","string","LengthDelimited","BytesValue$Type","Uint8Array","bytes","ArtifactService","DeleteArtifactResponse","DeleteArtifactRequest","GetSignedArtifactURLResponse","GetSignedArtifactURLRequest","ListArtifactsResponse_MonolithArtifact","ListArtifactsResponse","ListArtifactsRequest","FinalizeArtifactResponse","FinalizeArtifactRequest","CreateArtifactResponse","CreateArtifactRequest","FinalizeMigratedArtifactResponse","FinalizeMigratedArtifactRequest","MigrateArtifactResponse","MigrateArtifactRequest","runtime_rpc_1","wrappers_1","wrappers_2","timestamp_1","MigrateArtifactRequest$Type","workflowRunBackendId","expiresAt","fork","join","MigrateArtifactResponse$Type","ok","signedUploadUrl","FinalizeMigratedArtifactRequest$Type","size","FinalizeMigratedArtifactResponse$Type","artifactId","CreateArtifactRequest$Type","workflowJobRunBackendId","version","CreateArtifactResponse$Type","FinalizeArtifactRequest$Type","hash","FinalizeArtifactResponse$Type","ListArtifactsRequest$Type","nameFilter","idFilter","ListArtifactsResponse$Type","artifacts","push","i","ListArtifactsResponse_MonolithArtifact$Type","databaseId","createdAt","digest","GetSignedArtifactURLRequest$Type","GetSignedArtifactURLResponse$Type","signedUrl","DeleteArtifactRequest$Type","DeleteArtifactResponse$Type","ServiceType","I","O","ArtifactServiceClientProtobuf","ArtifactServiceClientJSON","artifact_1","rpc","CreateArtifact","bind","FinalizeArtifact","ListArtifacts","GetSignedArtifactURL","DeleteArtifact","request","data","toJson","useProtoFieldName","emitDefaultValues","promise","then","fromJson","ignoreUnknownFields","toBinary","fromBinary","__awaiter","thisArg","_arguments","P","generator","adopt","resolve","Promise","reject","fulfilled","step","next","e","rejected","result","done","apply","__rest","s","t","indexOf","getOwnPropertySymbols","propertyIsEnumerable","core_1","config_1","upload_artifact_1","download_artifact_1","delete_artifact_1","get_artifact_1","list_artifacts_1","errors_1","uploadArtifact","files","rootDirectory","isGhes","GHESNotSupportedError","error","warning","downloadArtifact","findBy","repositoryOwner","repositoryName","token","downloadOptions","downloadArtifactPublic","downloadArtifactInternal","listArtifacts","workflowRunId","listArtifactsPublic","latest","listArtifactsInternal","getArtifact","artifactName","getArtifactPublic","getArtifactInternal","deleteArtifact","deleteArtifactPublic","deleteArtifactInternal","github_1","user_agent_1","retry_options_1","utils_1","plugin_request_log_1","plugin_retry_1","artifact_twirp_client_1","util_1","generated_1","_a","retryOpts","requestOpts","getRetryOptions","defaults","opts","log","userAgent","getUserAgentString","previews","retry","github","getOctokit","requestLog","getArtifactResp","deleteArtifactResp","rest","actions","owner","repo","artifact_id","artifact","id","status","InvalidResponseError","headers","artifactClient","internalArtifactTwirpClient","getBackendIdsFromToken","listReq","listRes","ArtifactNotFoundError","sort","a","b","debug","req","res","info","__setModuleDefault","v","__importStar","mod","__importDefault","default","streamExtractExternal","promises_1","crypto","stream","core","httpClient","unzip_stream_1","scrubQueryParameters","url","parsed","URL","search","exists","path","access","code","streamExtract","directory","retryCount","setTimeout","HttpClient","response","statusCode","statusMessLine truncated
+3 -3
View File
@@ -7613,9 +7613,9 @@ __metadata:
linkType: hard
"tmp@npm:^0.2.3":
version: 0.2.3
resolution: "tmp@npm:0.2.3"
checksum: 10/7b13696787f159c9754793a83aa79a24f1522d47b87462ddb57c18ee93ff26c74cbb2b8d9138f571d2e0e765c728fb2739863a672b280528512c6d83d511c6fa
version: 0.2.5
resolution: "tmp@npm:0.2.5"
checksum: 10/dd4b78b32385eab4899d3ae296007b34482b035b6d73e1201c4a9aede40860e90997a1452c65a2d21aee73d53e93cd167d741c3db4015d90e63b6d568a93d7ec
languageName: node
linkType: hard