chore(deps): update dependency glob to v13.0.6 (#72)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [glob](https://github.com/isaacs/node-glob) | [`13.0.5` → `13.0.6`](https://renovatebot.com/diffs/npm/glob/13.0.5/13.0.6) |  |  | --- ### Release Notes <details> <summary>isaacs/node-glob (glob)</summary> ### [`v13.0.6`](https://github.com/isaacs/node-glob/compare/v13.0.5...v13.0.6) [Compare Source](https://github.com/isaacs/node-glob/compare/v13.0.5...v13.0.6) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNS4wIiwidXBkYXRlZEluVmVyIjoiNDMuMjUuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiQXV0b21hdGlvbiJdfQ==--> Reviewed-on: #72 Co-authored-by: Renovate Bot <renovate@horstenkamp.eu> Co-committed-by: Renovate Bot <renovate@horstenkamp.eu>
This commit is contained in:
1 parent
dee3bff2ed
commit
cbbd0e64e8
2 files changed
+20
-20
No files matched your search
Vendored
+1
-1
@@ -13,4 +13,4 @@ i.exports=u(1813)},4096:(i,A,u)=>{"use strict";
|
||||
* MIT Licensed
|
||||
*/var p=u(9829);var g=u(6928).extname;var E=/^\s*([^;\s]*)(?:;|\s|$)/;var C=/^text\//i;A.charset=charset;A.charsets={lookup:charset};A.contentType=contentType;A.extension=extension;A.extensions=Object.create(null);A.lookup=lookup;A.types=Object.create(null);populateMaps(A.extensions,A.types);function charset(i){if(!i||typeof i!=="string"){return false}var A=E.exec(i);var u=A&&p[A[1].toLowerCase()];if(u&&u.charset){return u.charset}if(A&&C.test(A[1])){return"UTF-8"}return false}function contentType(i){if(!i||typeof i!=="string"){return false}var u=i.indexOf("/")===-1?A.lookup(i):i;if(!u){return false}if(u.indexOf("charset")===-1){var p=A.charset(u);if(p)u+="; charset="+p.toLowerCase()}return u}function extension(i){if(!i||typeof i!=="string"){return false}var u=E.exec(i);var p=u&&A.extensions[u[1].toLowerCase()];if(!p||!p.length){return false}return p[0]}function lookup(i){if(!i||typeof i!=="string"){return false}var u=g("x."+i).toLowerCase().substr(1);if(!u){return false}return A.types[u]||false}function populateMaps(i,A){var u=["nginx","apache",undefined,"iana"];Object.keys(p).forEach((function forEachMimeType(g){var E=p[g];var C=E.extensions;if(!C||!C.length){return}i[g]=C;for(var Q=0;Q<C.length;Q++){var B=C[Q];if(A[B]){var I=u.indexOf(p[A[B]].source);var y=u.indexOf(E.source);if(A[B]!=="application/octet-stream"&&(I>y||I===y&&A[B].substr(0,12)==="application/")){continue}}A[B]=g}}))}},744:i=>{var A=1e3;var u=A*60;var p=u*60;var g=p*24;var E=g*7;var C=g*365.25;i.exports=function(i,A){A=A||{};var u=typeof i;if(u==="string"&&i.length>0){return parse(i)}else if(u==="number"&&isFinite(i)){return A.long?fmtLong(i):fmtShort(i)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function parse(i){i=String(i);if(i.length>100){return}var Q=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!Q){return}var B=parseFloat(Q[1]);var I=(Q[2]||"ms").toLowerCase();switch(I){case"years":case"year":case"yrs":case"yr":case"y":return B*C;case"weeks":case"week":case"w":return B*E;case"days":case"day":case"d":return B*g;case"hours":case"hour":case"hrs":case"hr":case"h":return B*p;case"minutes":case"minute":case"mins":case"min":case"m":return B*u;case"seconds":case"second":case"secs":case"sec":case"s":return B*A;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return B;default:return undefined}}function fmtShort(i){var E=Math.abs(i);if(E>=g){return Math.round(i/g)+"d"}if(E>=p){return Math.round(i/p)+"h"}if(E>=u){return Math.round(i/u)+"m"}if(E>=A){return Math.round(i/A)+"s"}return i+"ms"}function fmtLong(i){var E=Math.abs(i);if(E>=g){return plural(i,E,g,"day")}if(E>=p){return plural(i,E,p,"hour")}if(E>=u){return plural(i,E,u,"minute")}if(E>=A){return plural(i,E,A,"second")}return i+" ms"}function plural(i,A,u,p){var g=A>=u*1.5;return Math.round(i/u)+" "+p+(g?"s":"")}},7777:(i,A,u)=>{"use strict";var p=u(7016).parse;var g={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};var E=String.prototype.endsWith||function(i){return i.length<=this.length&&this.indexOf(i,this.length-i.length)!==-1};function getProxyForUrl(i){var A=typeof i==="string"?p(i):i||{};var u=A.protocol;var E=A.host;var C=A.port;if(typeof E!=="string"||!E||typeof u!=="string"){return""}u=u.split(":",1)[0];E=E.replace(/:\d*$/,"");C=parseInt(C)||g[u]||0;if(!shouldProxy(E,C)){return""}var Q=getEnv("npm_config_"+u+"_proxy")||getEnv(u+"_proxy")||getEnv("npm_config_proxy")||getEnv("all_proxy");if(Q&&Q.indexOf("://")===-1){Q=u+"://"+Q}return Q}function shouldProxy(i,A){var u=(getEnv("npm_config_no_proxy")||getEnv("no_proxy")).toLowerCase();if(!u){return true}if(u==="*"){return false}return u.split(/[,\s]/).every((function(u){if(!u){return true}var p=u.match(/^(.+):(\d+)$/);var g=p?p[1]:u;var C=p?parseInt(p[2]):0;if(C&&C!==A){return true}if(!/^[.*]/.test(g)){return i!==g}if(g.charAt(0)==="*"){g=g.slice(1)}return!E.call(i,g)}))}function getEnv(i){return process.env[i.toLowerCase()]||process.env[i.toUpperCase()]||""}A.T=getProxyForUrl},9546:(i,A,u)=>{"use strict";Object.defineProperty(A,"__esModule",{value:true});const p=u(1354);const g=u(7016);const E=u(4434);const C=u(2830);const Q=u(3106);const B=u(4922);const I=u(9023);const y=u(9896);const w=u(9557);const v=u(6928);function _interopDefaultLegacy(i){return i&&typeof i==="object"&&"default"in i?i:{default:i}}const x=_interopDefaultLegacy(p);const k=_interopDefaultLegacy(g);const S=_interopDefaultLegacy(C);const D=_interopDefaultLegacy(Q);const N=_interopDefaultLegacy(B);const T=_interopDefaultLegacy(I);const M=_interopDefaultLegacy(y);const U=_interopDefaultLegacy(w);const L=_interopDefaultLegacy(v);const _=S["default"]("screepsapi:socket");const O={reconnect:true,resubscribe:true,keepAlive:true,maxRetries:10,maxRetryDelay:60*1e3};class Socket extends E.EventEmitter{constructor(i){super();this.api=i;this.opts=Object.assign({},O);this.on("error",(()=>{}));this.reset();this.oLine 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 p=[];const g=new Uint8Array([13,10]);y=0;let E=false;for(const[A,C]of i){if(typeof C==="string"){const i=O.encode(u+`; name="${escape(normalizeLinefeeds(A))}"`+`\r\n\r\n${normalizeLinefeeds(C)}\r\n`);p.push(i);y+=i.byteLength}else{const i=O.encode(`${u}; name="${escape(normalizeLinefeeds(A))}"`+(C.name?`; filename="${escape(C.name)}"`:"")+"\r\n"+`Content-Type: ${C.type||"application/octet-stream"}\r\n\r\n`);p.push(i,C,g);if(typeof C.size==="number"){y+=i.byteLength+C.size+g.byteLength}else{E=true}}}const C=O.encode(`--${A}--\r\n`);p.push(C);y+=C.byteLength;if(E){y=null}I=i;B=async function*(){for(const i of p){if(i.stream){yield*i.stream()}else{yield i}}};w=`multipart/form-data; boundary=${A}`}else if(E(i)){I=i;y=i.size;if(i.type){w=i.type}}else if(typeof i[Symbol.asyncIterator]==="function"){if(A){throw new TypeError("keepalive")}if(p.isDisturbed(i)||i.locked){throw new TypeError("Response body object should not be disturbed or locked")}u=i instanceof ReadableStream?i:g(i)}if(typeof I==="string"||p.isBuffer(I)){y=Buffer.byteLength(I)}if(B!=null){let A;u=new ReadableStream({async start(){A=B(i)[Symbol.asyncIterator]()},async pull(i){const{value:p,done:g}=await A.next();if(g){queueMicrotask((()=>{i.close();i.byobRequest?.respond(0)}))}else{if(!N(u)){const A=new Uint8Array(p);if(A.byteLength){i.enqueue(A)}}}return i.desiredSize>0},async cancel(i){await A.return()},type:"bytes"})}const v={stream:u,source:I,length:y};return[v,w]}function safelyExtractBody(i,A=false){if(i instanceof ReadableStream){D(!p.isDisturbed(i),"The body has already been consumed.");D(!i.locked,"The stream is locked.")}return extractBody(i,A)}function cloneBody(i,A){const[u,p]=A.stream.tee();A.stream=u;return{stream:p,length:A.length,source:A.source}}function throwIfAborted(i){if(i.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(i){const A={blob(){return consumeBody(this,(i=>{let A=bodyMimeType(this);if(A===null){A=""}else if(A){A=U(A)}return new S([i],{type:A})}),i)},arrayBuffer(){return consumeBody(this,(i=>new Uint8Array(i).buffer),i)},text(){return consumeBody(this,w,i)},json(){return consumeBody(this,parseJSONFromBytes,i)},formData(){return consumeBody(this,(i=>{const A=bodyMimeType(this);if(A!==null){switch(A.essence){case"multipart/form-data":{const u=L(i,A);if(u==="failure"){throw new TypeError("Failed to parse body as FormData.")}const p=new v;p[x]=u;return p}case"application/x-www-form-urlencoded":{const A=new URLSearchParams(i.toString());const u=new v;for(const[i,p]of A){u.append(i,p)}return u}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),i)},bytes(){return consumeBody(this,(i=>new Uint8Array(i)),i)}};return A}function mixinBody(i){Object.assign(i.prototype,bodyMixinMethods(i))}async function consumeBody(i,A,u){k.brandCheck(i,u);if(bodyUnusable(i)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(i[x]);const p=B();const errorSteps=i=>p.reject(i);const successSteps=i=>{try{p.resolve(A(i))}catch(i){errorSteps(i)}};if(i[x].body==null){successSteps(Buffer.allocUnsafe(0));return p.promise}await I(i[x].body,successSteps,errorSteps);return p.promise}function bodyUnusable(i){const A=i[x].body;return A!=null&&(A.stream.locked||p.isDisturbed(A.stream))}function parseJSONFromBytes(i){return JSON.parse(w(i))}function bodyMimeType(i){const A=i[x].headersList;const u=y(A);if(u==="failure"){return null}return u}i.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:H,hasFinalizationRegistry:G,bodyUnusable:bodyUnusable}},4495:i=>{"use strict";const A=["GET","HEAD","POST"];const u=new Set(A);const p=[101,204,205,304];const g=[301,302,303,307,308];const E=new Set(g);const C=["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 Q=new Set(C);const B=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const I=new Set(B);const y=["follow","manual","error"];const w=["GET","HEAD","OPTIONS","TRACE"];const v=new Set(w);const x=["navigate","same-origin","no-cors","cors"];const k=["omit","same-origin","include"];const S=["default","no-store","reload","no-caLine truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */Q[C-4]=u[0];Q[C-3]=u[1];Q[C-2]=u[2];Q[C-1]=u[3];Q[1]=E;if(E===126){Q.writeUInt16BE(g,2)}else if(E===127){Q[2]=Q[3]=0;Q.writeUIntBE(g,4,6)}Q[1]|=128;for(let i=0;i<g;++i){Q[C+i]=A[i]^u[i&3]}return Q}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(i,A,u)=>{"use strict";const{createInflateRaw:p,Z_DEFAULT_WINDOWBITS:g}=u(8522);const{isValidClientWindowBits:E}=u(8625);const C=Buffer.from([0,0,255,255]);const Q=Symbol("kBuffer");const B=Symbol("kLength");class PerMessageDeflate{#Z;#h={};constructor(i){this.#h.serverNoContextTakeover=i.has("server_no_context_takeover");this.#h.serverMaxWindowBits=i.get("server_max_window_bits")}decompress(i,A,u){if(!this.#Z){let i=g;if(this.#h.serverMaxWindowBits){if(!E(this.#h.serverMaxWindowBits)){u(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#h.serverMaxWindowBits)}this.#Z=p({windowBits:i});this.#Z[Q]=[];this.#Z[B]=0;this.#Z.on("data",(i=>{this.#Z[Q].push(i);this.#Z[B]+=i.length}));this.#Z.on("error",(i=>{this.#Z=null;u(i)}))}this.#Z.write(i);if(A){this.#Z.write(C)}this.#Z.flush((()=>{const i=Buffer.concat(this.#Z[Q],this.#Z[B]);this.#Z[Q].length=0;this.#Z[B]=0;u(null,i)}))}}i.exports={PerMessageDeflate:PerMessageDeflate}},1652:(i,A,u)=>{"use strict";const{Writable:p}=u(7075);const g=u(4589);const{parserStates:E,opcodes:C,states:Q,emptyBuffer:B,sentCloseFrameState:I}=u(736);const{kReadyState:y,kSentClose:w,kResponse:v,kReceivedClose:x}=u(1216);const{channels:k}=u(2414);const{isValidStatusCode:S,isValidOpcode:D,failWebsocketConnection:N,websocketMessageReceived:T,utf8Decode:M,isControlFrame:U,isTextBinaryFrame:L,isContinuationFrame:_}=u(8625);const{WebsocketFrameSend:O}=u(3264);const{closeWebSocketConnection:G}=u(6897);const{PerMessageDeflate:H}=u(9469);class ByteParser extends p{#K=[];#X=0;#$=false;#Q=E.INFO;#ee={};#te=[];#se;constructor(i,A){super();this.ws=i;this.#se=A==null?new Map:A;if(this.#se.has("permessage-deflate")){this.#se.set("permessage-deflate",new H(A))}}_write(i,A,u){this.#K.push(i);this.#X+=i.length;this.#$=true;this.run(u)}run(i){while(this.#$){if(this.#Q===E.INFO){if(this.#X<2){return i()}const A=this.consume(2);const u=(A[0]&128)!==0;const p=A[0]&15;const g=(A[1]&128)===128;const Q=!u&&p!==C.CONTINUATION;const B=A[1]&127;const I=A[0]&64;const y=A[0]&32;const w=A[0]&16;if(!D(p)){N(this.ws,"Invalid opcode received");return i()}if(g){N(this.ws,"Frame cannot be masked");return i()}if(I!==0&&!this.#se.has("permessage-deflate")){N(this.ws,"Expected RSV1 to be clear.");return}if(y!==0||w!==0){N(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(Q&&!L(p)){N(this.ws,"Invalid frame type was fragmented.");return}if(L(p)&&this.#te.length>0){N(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&Q){N(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((B>125||Q)&&U(p)){N(this.ws,"Control frame either too large or fragmented");return}if(_(p)&&this.#te.length===0&&!this.#ee.compressed){N(this.ws,"Unexpected continuation frame");return}if(B<=125){this.#ee.payloadLength=B;this.#Q=E.READ_DATA}else if(B===126){this.#Q=E.PAYLOADLENGTH_16}else if(B===127){this.#Q=E.PAYLOADLENGTH_64}if(L(p)){this.#ee.binaryType=p;this.#ee.compressed=I!==0}this.#ee.opcode=p;this.#ee.masked=g;this.#ee.fin=u;this.#ee.fragmented=Q}else if(this.#Q===E.PAYLOADLENGTH_16){if(this.#X<2){return i()}const A=this.consume(2);this.#ee.payloadLength=A.readUInt16BE(0);this.#Q=E.READ_DATA}else if(this.#Q===E.PAYLOADLENGTH_64){if(this.#X<8){return i()}const A=this.consume(8);const u=A.readUInt32BE(0);if(u>2**31-1){N(this.ws,"Received payload length > 2^31 bytes.");return}const p=A.readUInt32BE(4);this.#ee.payloadLength=(u<<8)+p;this.#Q=E.READ_DATA}else if(this.#Q===E.READ_DATA){if(this.#X<this.#ee.payloadLength){return i()}const A=this.consume(this.#ee.payloadLength);if(U(this.#ee.opcode)){this.#$=this.parseControlFrame(A);this.#Q=E.INFO}else{if(!this.#ee.compressed){this.#te.push(A);if(!this.#ee.fragmented&&this.#ee.fin){const i=Buffer.concat(this.#te);T(this.ws,this.#ee.binaryType,i);this.#te.length=0}this.#Q=E.INFO}else{this.#se.get("permessage-deflate").decompress(A,this.#ee.fin,((A,u)=>{if(A){G(this.ws,1007,A.message,A.message.length);return}this.#te.push(u);if(!this.#ee.fin){this.#Q=E.INFO;this.#$=true;this.run(i);return}T(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#$=true;this.#Q=E.INFO;this.#te.length=0;this.run(i)}));this.#$=false;break}}}}}consume(i){if(i>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(i===0){return B}if(this.#K[0].length===i){this.#X-=this.#K[0].length;return this.#K.shift()}const A=Buffer.allocUnsafe(i);let u=0;while(u!==i){const p=this.#K[0];const{length:g}=p;if(g+u===i){A.set(this.#K.shift(),u);break}else if(g+u>i){A.set(p.subarray(0,i-u),u);this.#K[0]=p.subarray(i-u);break}else{A.set(this.#K.shift(),u);u+=p.length}}this.#X-=i;return A}parseCloseBody(i){g(i.length!==1);let A;if(i.length>=2){A=i.readUInt16BE(0)}if(Line truncated
|
||||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */Q[C-4]=u[0];Q[C-3]=u[1];Q[C-2]=u[2];Q[C-1]=u[3];Q[1]=E;if(E===126){Q.writeUInt16BE(g,2)}else if(E===127){Q[2]=Q[3]=0;Q.writeUIntBE(g,4,6)}Q[1]|=128;for(let i=0;i<g;++i){Q[C+i]=A[i]^u[i&3]}return Q}}i.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(i,A,u)=>{"use strict";const{createInflateRaw:p,Z_DEFAULT_WINDOWBITS:g}=u(8522);const{isValidClientWindowBits:E}=u(8625);const C=Buffer.from([0,0,255,255]);const Q=Symbol("kBuffer");const B=Symbol("kLength");class PerMessageDeflate{#Z;#h={};constructor(i){this.#h.serverNoContextTakeover=i.has("server_no_context_takeover");this.#h.serverMaxWindowBits=i.get("server_max_window_bits")}decompress(i,A,u){if(!this.#Z){let i=g;if(this.#h.serverMaxWindowBits){if(!E(this.#h.serverMaxWindowBits)){u(new Error("Invalid server_max_window_bits"));return}i=Number.parseInt(this.#h.serverMaxWindowBits)}this.#Z=p({windowBits:i});this.#Z[Q]=[];this.#Z[B]=0;this.#Z.on("data",(i=>{this.#Z[Q].push(i);this.#Z[B]+=i.length}));this.#Z.on("error",(i=>{this.#Z=null;u(i)}))}this.#Z.write(i);if(A){this.#Z.write(C)}this.#Z.flush((()=>{const i=Buffer.concat(this.#Z[Q],this.#Z[B]);this.#Z[Q].length=0;this.#Z[B]=0;u(null,i)}))}}i.exports={PerMessageDeflate:PerMessageDeflate}},1652:(i,A,u)=>{"use strict";const{Writable:p}=u(7075);const g=u(4589);const{parserStates:E,opcodes:C,states:Q,emptyBuffer:B,sentCloseFrameState:I}=u(736);const{kReadyState:y,kSentClose:w,kResponse:v,kReceivedClose:x}=u(1216);const{channels:k}=u(2414);const{isValidStatusCode:S,isValidOpcode:D,failWebsocketConnection:N,websocketMessageReceived:T,utf8Decode:M,isControlFrame:U,isTextBinaryFrame:L,isContinuationFrame:_}=u(8625);const{WebsocketFrameSend:O}=u(3264);const{closeWebSocketConnection:G}=u(6897);const{PerMessageDeflate:H}=u(9469);class ByteParser extends p{#K=[];#X=0;#$=false;#Q=E.INFO;#ee={};#te=[];#se;constructor(i,A){super();this.ws=i;this.#se=A==null?new Map:A;if(this.#se.has("permessage-deflate")){this.#se.set("permessage-deflate",new H(A))}}_write(i,A,u){this.#K.push(i);this.#X+=i.length;this.#$=true;this.run(u)}run(i){while(this.#$){if(this.#Q===E.INFO){if(this.#X<2){return i()}const A=this.consume(2);const u=(A[0]&128)!==0;const p=A[0]&15;const g=(A[1]&128)===128;const Q=!u&&p!==C.CONTINUATION;const B=A[1]&127;const I=A[0]&64;const y=A[0]&32;const w=A[0]&16;if(!D(p)){N(this.ws,"Invalid opcode received");return i()}if(g){N(this.ws,"Frame cannot be masked");return i()}if(I!==0&&!this.#se.has("permessage-deflate")){N(this.ws,"Expected RSV1 to be clear.");return}if(y!==0||w!==0){N(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(Q&&!L(p)){N(this.ws,"Invalid frame type was fragmented.");return}if(L(p)&&this.#te.length>0){N(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&Q){N(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((B>125||Q)&&U(p)){N(this.ws,"Control frame either too large or fragmented");return}if(_(p)&&this.#te.length===0&&!this.#ee.compressed){N(this.ws,"Unexpected continuation frame");return}if(B<=125){this.#ee.payloadLength=B;this.#Q=E.READ_DATA}else if(B===126){this.#Q=E.PAYLOADLENGTH_16}else if(B===127){this.#Q=E.PAYLOADLENGTH_64}if(L(p)){this.#ee.binaryType=p;this.#ee.compressed=I!==0}this.#ee.opcode=p;this.#ee.masked=g;this.#ee.fin=u;this.#ee.fragmented=Q}else if(this.#Q===E.PAYLOADLENGTH_16){if(this.#X<2){return i()}const A=this.consume(2);this.#ee.payloadLength=A.readUInt16BE(0);this.#Q=E.READ_DATA}else if(this.#Q===E.PAYLOADLENGTH_64){if(this.#X<8){return i()}const A=this.consume(8);const u=A.readUInt32BE(0);if(u>2**31-1){N(this.ws,"Received payload length > 2^31 bytes.");return}const p=A.readUInt32BE(4);this.#ee.payloadLength=(u<<8)+p;this.#Q=E.READ_DATA}else if(this.#Q===E.READ_DATA){if(this.#X<this.#ee.payloadLength){return i()}const A=this.consume(this.#ee.payloadLength);if(U(this.#ee.opcode)){this.#$=this.parseControlFrame(A);this.#Q=E.INFO}else{if(!this.#ee.compressed){this.#te.push(A);if(!this.#ee.fragmented&&this.#ee.fin){const i=Buffer.concat(this.#te);T(this.ws,this.#ee.binaryType,i);this.#te.length=0}this.#Q=E.INFO}else{this.#se.get("permessage-deflate").decompress(A,this.#ee.fin,((A,u)=>{if(A){G(this.ws,1007,A.message,A.message.length);return}this.#te.push(u);if(!this.#ee.fin){this.#Q=E.INFO;this.#$=true;this.run(i);return}T(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#$=true;this.#Q=E.INFO;this.#te.length=0;this.run(i)}));this.#$=false;break}}}}}consume(i){if(i>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(i===0){return B}if(this.#K[0].length===i){this.#X-=this.#K[0].length;return this.#K.shift()}const A=Buffer.allocUnsafe(i);let u=0;while(u!==i){const p=this.#K[0];const{length:g}=p;if(g+u===i){A.set(this.#K.shift(),u);break}else if(g+u>i){A.set(p.subarray(0,i-u),u);this.#K[0]=p.subarray(i-u);break}else{A.set(this.#K.shift(),u);u+=p.length}}this.#X-=i;return A}parseCloseBody(i){g(i.length!==1);let A;if(i.length>=2){A=i.readUInt16BE(0)}if(Line truncated
|
||||
Generated
+19
-19
@@ -1530,17 +1530,17 @@
|
||||
}
|
||||
},
|
||||
"node_modules/glob": {
|
||||
"version": "13.0.5",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.5.tgz",
|
||||
"integrity": "sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw==",
|
||||
"version": "13.0.6",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
|
||||
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"minimatch": "^10.2.1",
|
||||
"minipass": "^7.1.2",
|
||||
"path-scurry": "^2.0.0"
|
||||
"minimatch": "^10.2.2",
|
||||
"minipass": "^7.1.3",
|
||||
"path-scurry": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
"node": "18 || 20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
@@ -1770,15 +1770,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/minimatch": {
|
||||
"version": "10.2.1",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.1.tgz",
|
||||
"integrity": "sha512-MClCe8IL5nRRmawL6ib/eT4oLyeKMGCghibcDWK+J0hh0Q8kqSdia6BvbRMVk6mPa6WqUa5uR2oxt6C5jd533A==",
|
||||
"version": "10.2.2",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.2.tgz",
|
||||
"integrity": "sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==",
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"brace-expansion": "^5.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
"node": "18 || 20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
@@ -1809,10 +1809,10 @@
|
||||
}
|
||||
},
|
||||
"node_modules/minipass": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
|
||||
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
|
||||
"license": "ISC",
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
|
||||
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
|
||||
"license": "BlueOak-1.0.0",
|
||||
"engines": {
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
}
|
||||
@@ -1884,16 +1884,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/path-scurry": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz",
|
||||
"integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz",
|
||||
"integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"lru-cache": "^11.0.0",
|
||||
"minipass": "^7.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
"node": "18 || 20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
|
||||
Reference in new issue
Block a user