mirror of https://github.com/aminya/setup-cpp
fix: update parcel
This commit is contained in:
parent
aa57ff04be
commit
cb8940d945
|
@ -12,6 +12,8 @@ const compress =
|
|||
}
|
||||
: terserConfig.compress
|
||||
|
||||
delete terserConfig.parse
|
||||
|
||||
module.exports = {
|
||||
...terserConfig,
|
||||
compress,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
|||
var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire810d;e.register("6KsJx",function(t,n){Object.defineProperty(t.exports,"toFormData",{get:()=>D,set:void 0,enumerable:!0,configurable:!0});var a=e("j9HqM"),r=e("1RVNT");let i=0,o={START_BOUNDARY:i++,HEADER_FIELD_START:i++,HEADER_FIELD:i++,HEADER_VALUE_START:i++,HEADER_VALUE:i++,HEADER_VALUE_ALMOST_DONE:i++,HEADERS_ALMOST_DONE:i++,PART_DATA_START:i++,PART_DATA:i++,END:i++},s=1,A={PART_BOUNDARY:s,LAST_BOUNDARY:s*=2},d=e=>32|e,E=()=>{};class l{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=E,this.onHeaderField=E,this.onHeadersEnd=E,this.onHeaderValue=E,this.onPartBegin=E,this.onPartData=E,this.onPartEnd=E,this.boundaryChars={},e="\r\n--"+e;let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=o.START_BOUNDARY;}write(e){let t,n,a=0,r=e.length,i=this.index,{lookbehind:s,boundary:E,boundaryChars:l,index:D,state:h,flags:T}=this,f=this.boundary.length,R=f-1,_=e.length,u=e=>{this[e+"Mark"]=a;},c=e=>{delete this[e+"Mark"];},b=(e,t,n,a)=>{(void 0===t||t!==n)&&this[e](a&&a.subarray(t,n));},H=(t,n)=>{let r=t+"Mark";r in this&&(n?(b(t,this[r],a,e),delete this[r]):(b(t,this[r],e.length,e),this[r]=0));};for(a=0;a<r;a++)switch(t=e[a],h){case o.START_BOUNDARY:if(D===E.length-2){if(45===t)T|=A.LAST_BOUNDARY;else if(13!==t)return;D++;break;}if(D-1==E.length-2){if(T&A.LAST_BOUNDARY&&45===t)h=o.END,T=0;else{if(T&A.LAST_BOUNDARY||10!==t)return;D=0,b("onPartBegin"),h=o.HEADER_FIELD_START;}break;}t!==E[D+2]&&(D=-2),t===E[D+2]&&D++;break;case o.HEADER_FIELD_START:h=o.HEADER_FIELD,u("onHeaderField"),D=0;case o.HEADER_FIELD:if(13===t){c("onHeaderField"),h=o.HEADERS_ALMOST_DONE;break;}if(D++,45===t)break;if(58===t){if(1===D)return;H("onHeaderField",!0),h=o.HEADER_VALUE_START;break;}if((n=d(t))<97||n>122)return;break;case o.HEADER_VALUE_START:if(32===t)break;u("onHeaderValue"),h=o.HEADER_VALUE;case o.HEADER_VALUE:13===t&&(H("onHeaderValue",!0),b("onHeaderEnd"),h=o.HEADER_VALUE_ALMOST_DONE);break;case o.HEADER_VALUE_ALMOST_DONE:if(10!==t)return;h=o.HEADER_FIELD_START;break;case o.HEADERS_ALMOST_DONE:if(10!==t)return;b("onHeadersEnd"),h=o.PART_DATA_START;break;case o.PART_DATA_START:h=o.PART_DATA,u("onPartData");case o.PART_DATA:if(i=D,0===D){for(a+=R;a<_&&!(e[a]in l);)a+=f;a-=R,t=e[a];}if(D<E.length)E[D]===t?(0===D&&H("onPartData",!0),D++):D=0;else if(D===E.length)D++,13===t?T|=A.PART_BOUNDARY:45===t?T|=A.LAST_BOUNDARY:D=0;else if(D-1===E.length){if(T&A.PART_BOUNDARY){if(D=0,10===t){T&=~A.PART_BOUNDARY,b("onPartEnd"),b("onPartBegin"),h=o.HEADER_FIELD_START;break;}}else T&A.LAST_BOUNDARY&&45===t?(b("onPartEnd"),h=o.END,T=0):D=0;}if(D>0)s[D-1]=t;else if(i>0){let e=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);b("onPartData",0,i,e),i=0,u("onPartData"),a--;}break;case o.END:break;default:throw Error(`Unexpected state entered: ${h}`);}H("onHeaderField"),H("onHeaderValue"),H("onPartData"),this.index=D,this.state=h,this.flags=T;}end(){if(this.state===o.HEADER_FIELD_START&&0===this.index||this.state===o.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==o.END)throw Error("MultipartParser.end(): stream ended unexpectedly");}}async function D(e,t){let n,i,o,s,A,d;if(!/multipart/i.test(t))throw TypeError("Failed to fetch");let E=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!E)throw TypeError("no or bad content-type header, no multipart boundary");let D=new l(E[1]||E[2]),h=[],T=new r.FormData(),f=e=>{o+=c.decode(e,{stream:!0});},R=e=>{h.push(e);},_=()=>{let e=new a.File(h,d,{type:A});T.append(s,e);},u=()=>{T.append(s,o);},c=new TextDecoder("utf-8");for await(let t of(c.decode(),D.onPartBegin=function(){D.onPartData=f,D.onPartEnd=u,n="",i="",o="",s="",A="",d=null,h.length=0;},D.onHeaderField=function(e){n+=c.decode(e,{stream:!0});},D.onHeaderValue=function(e){i+=c.decode(e,{stream:!0});},D.onHeaderEnd=function(){if(i+=c.decode(),"content-disposition"===(n=n.toLowerCase())){let e=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(s=e[2]||e[3]||""),(d=function(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let n=t[2]||t[3]||"",a=n.slice(n.lastIndexOf("\\")+1);return(a=a.replace(/%22/g,'"')).replace(/&#(\d{4});/g,(e,t)=>String.fromCharCode(t));}(i))&&(D.onPartData=R,D.onPartEnd=_);}else"content-type"===n&&(A=i);i="",n="";},e))D.write(t);return D.end(),T;}});
|
||||
//# sourceMappingURL=multipart-parser.30e64fd9.js.map
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
|||
var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire810d;e.register("6KsJx",(t,a)=>{var r,n;async function i(e,t){let a,i,o,s,A,d;if(!/multipart/i.test(t))throw TypeError("Failed to fetch");let E=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!E)throw TypeError("no or bad content-type header, no multipart boundary");let l=new D(E[1]||E[2]),h=[],T=new n.FormData,R=e=>{o+=b.decode(e,{stream:!0})},_=e=>{h.push(e)},f=()=>{let e=new r.File(h,d,{type:A});T.append(s,e)},u=()=>{T.append(s,o)},b=new TextDecoder("utf-8");for await(let t of(b.decode(),l.onPartBegin=()=>{l.onPartData=R,l.onPartEnd=u,a="",i="",o="",s="",A="",d=null,h.length=0},l.onHeaderField=e=>{a+=b.decode(e,{stream:!0})},l.onHeaderValue=e=>{i+=b.decode(e,{stream:!0})},l.onHeaderEnd=()=>{if(i+=b.decode(),"content-disposition"===(a=a.toLowerCase())){let e=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(s=e[2]||e[3]||""),(d=(e=>{let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let a=t[2]||t[3]||"",r=a.slice(a.lastIndexOf("\\")+1);return(r=r.replace(/%22/g,'"')).replace(/&#(\d{4});/g,(e,t)=>String.fromCharCode(t))})(i))&&(l.onPartData=_,l.onPartEnd=f)}else"content-type"===a&&(A=i);i="",a=""},e))l.write(t);return l.end(),T}Object.defineProperty(t.exports,"toFormData",{get:()=>i,set:void 0,enumerable:!0,configurable:!0}),r=e("j9HqM"),n=e("1RVNT");let o=0,s={START_BOUNDARY:o++,HEADER_FIELD_START:o++,HEADER_FIELD:o++,HEADER_VALUE_START:o++,HEADER_VALUE:o++,HEADER_VALUE_ALMOST_DONE:o++,HEADERS_ALMOST_DONE:o++,PART_DATA_START:o++,PART_DATA:o++,END:o++},A=1,d={PART_BOUNDARY:A,LAST_BOUNDARY:A*=2},E=e=>32|e,l=()=>{};class D{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=l,this.onHeaderField=l,this.onHeadersEnd=l,this.onHeaderValue=l,this.onPartBegin=l,this.onPartData=l,this.onPartEnd=l,this.boundaryChars={},e="\r\n--"+e;let t=new Uint8Array(e.length);for(let a=0;a<e.length;a++)t[a]=e.charCodeAt(a),this.boundaryChars[t[a]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=s.START_BOUNDARY}write(e){let t,a,r=0,n=e.length,i=this.index,{lookbehind:o,boundary:A,boundaryChars:l,index:D,state:h,flags:T}=this,R=this.boundary.length,_=R-1,f=e.length,u=e=>{this[e+"Mark"]=r},b=e=>{delete this[e+"Mark"]},c=(e,t,a,r)=>{(void 0===t||t!==a)&&this[e](r&&r.subarray(t,a))},H=(t,a)=>{let n=t+"Mark";n in this&&(a?(c(t,this[n],r,e),delete this[n]):(c(t,this[n],e.length,e),this[n]=0))};for(r=0;n>r;r++)switch(t=e[r],h){case s.START_BOUNDARY:if(D===A.length-2){if(45===t)T|=d.LAST_BOUNDARY;else if(13!==t)return;D++;break}if(D-1==A.length-2){if(T&d.LAST_BOUNDARY&&45===t)h=s.END,T=0;else{if(T&d.LAST_BOUNDARY||10!==t)return;D=0,c("onPartBegin"),h=s.HEADER_FIELD_START}break}t!==A[D+2]&&(D=-2),t===A[D+2]&&D++;break;case s.HEADER_FIELD_START:h=s.HEADER_FIELD,u("onHeaderField"),D=0;case s.HEADER_FIELD:if(13===t){b("onHeaderField"),h=s.HEADERS_ALMOST_DONE;break}if(D++,45===t)break;if(58===t){if(1===D)return;H("onHeaderField",!0),h=s.HEADER_VALUE_START;break}if((a=E(t))<97||a>122)return;break;case s.HEADER_VALUE_START:if(32===t)break;u("onHeaderValue"),h=s.HEADER_VALUE;case s.HEADER_VALUE:13===t&&(H("onHeaderValue",!0),c("onHeaderEnd"),h=s.HEADER_VALUE_ALMOST_DONE);break;case s.HEADER_VALUE_ALMOST_DONE:if(10!==t)return;h=s.HEADER_FIELD_START;break;case s.HEADERS_ALMOST_DONE:if(10!==t)return;c("onHeadersEnd"),h=s.PART_DATA_START;break;case s.PART_DATA_START:h=s.PART_DATA,u("onPartData");case s.PART_DATA:if(i=D,0===D){for(r+=_;r<f&&!(e[r]in l);)r+=R;r-=_,t=e[r]}if(D<A.length)A[D]===t?(0===D&&H("onPartData",!0),D++):D=0;else if(D===A.length)D++,13===t?T|=d.PART_BOUNDARY:45===t?T|=d.LAST_BOUNDARY:D=0;else if(D-1===A.length){if(T&d.PART_BOUNDARY){if(D=0,10===t){T&=~d.PART_BOUNDARY,c("onPartEnd"),c("onPartBegin"),h=s.HEADER_FIELD_START;break}}else T&d.LAST_BOUNDARY&&45===t?(c("onPartEnd"),h=s.END,T=0):D=0}if(D>0)o[D-1]=t;else if(i>0){let e=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);c("onPartData",0,i,e),i=0,u("onPartData"),r--}break;case s.END:break;default:throw Error("Unexpected state entered: "+h)}H("onHeaderField"),H("onHeaderValue"),H("onPartData"),this.index=D,this.state=h,this.flags=T}end(){if(this.state===s.HEADER_FIELD_START&&0===this.index||this.state===s.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==s.END)throw Error("MultipartParser.end(): stream ended unexpectedly")}}});
|
||||
//# sourceMappingURL=multipart-parser.c03ddc74.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
|||
var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire810d;e.register("kCYt6",function(t,n){Object.defineProperty(t.exports,"toFormData",{get:()=>D,set:void 0,enumerable:!0,configurable:!0});var a=e("wabHV"),r=e("33Q0z");let i=0,o={START_BOUNDARY:i++,HEADER_FIELD_START:i++,HEADER_FIELD:i++,HEADER_VALUE_START:i++,HEADER_VALUE:i++,HEADER_VALUE_ALMOST_DONE:i++,HEADERS_ALMOST_DONE:i++,PART_DATA_START:i++,PART_DATA:i++,END:i++},A=1,s={PART_BOUNDARY:A,LAST_BOUNDARY:A*=2},d=e=>32|e,E=()=>{};class l{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=E,this.onHeaderField=E,this.onHeadersEnd=E,this.onHeaderValue=E,this.onPartBegin=E,this.onPartData=E,this.onPartEnd=E,this.boundaryChars={},e="\r\n--"+e;let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=o.START_BOUNDARY;}write(e){let t,n,a=0,r=e.length,i=this.index,{lookbehind:A,boundary:E,boundaryChars:l,index:D,state:h,flags:f}=this,T=this.boundary.length,_=T-1,R=e.length,u=e=>{this[e+"Mark"]=a;},c=e=>{delete this[e+"Mark"];},b=(e,t,n,a)=>{(void 0===t||t!==n)&&this[e](a&&a.subarray(t,n));},H=(t,n)=>{let r=t+"Mark";r in this&&(n?(b(t,this[r],a,e),delete this[r]):(b(t,this[r],e.length,e),this[r]=0));};for(a=0;a<r;a++)switch(t=e[a],h){case o.START_BOUNDARY:if(D===E.length-2){if(45===t)f|=s.LAST_BOUNDARY;else if(13!==t)return;D++;break;}if(D-1==E.length-2){if(f&s.LAST_BOUNDARY&&45===t)h=o.END,f=0;else{if(f&s.LAST_BOUNDARY||10!==t)return;D=0,b("onPartBegin"),h=o.HEADER_FIELD_START;}break;}t!==E[D+2]&&(D=-2),t===E[D+2]&&D++;break;case o.HEADER_FIELD_START:h=o.HEADER_FIELD,u("onHeaderField"),D=0;case o.HEADER_FIELD:if(13===t){c("onHeaderField"),h=o.HEADERS_ALMOST_DONE;break;}if(D++,45===t)break;if(58===t){if(1===D)return;H("onHeaderField",!0),h=o.HEADER_VALUE_START;break;}if((n=d(t))<97||n>122)return;break;case o.HEADER_VALUE_START:if(32===t)break;u("onHeaderValue"),h=o.HEADER_VALUE;case o.HEADER_VALUE:13===t&&(H("onHeaderValue",!0),b("onHeaderEnd"),h=o.HEADER_VALUE_ALMOST_DONE);break;case o.HEADER_VALUE_ALMOST_DONE:if(10!==t)return;h=o.HEADER_FIELD_START;break;case o.HEADERS_ALMOST_DONE:if(10!==t)return;b("onHeadersEnd"),h=o.PART_DATA_START;break;case o.PART_DATA_START:h=o.PART_DATA,u("onPartData");case o.PART_DATA:if(i=D,0===D){for(a+=_;a<R&&!(e[a]in l);)a+=T;a-=_,t=e[a];}if(D<E.length)E[D]===t?(0===D&&H("onPartData",!0),D++):D=0;else if(D===E.length)D++,13===t?f|=s.PART_BOUNDARY:45===t?f|=s.LAST_BOUNDARY:D=0;else if(D-1===E.length){if(f&s.PART_BOUNDARY){if(D=0,10===t){f&=~s.PART_BOUNDARY,b("onPartEnd"),b("onPartBegin"),h=o.HEADER_FIELD_START;break;}}else f&s.LAST_BOUNDARY&&45===t?(b("onPartEnd"),h=o.END,f=0):D=0;}if(D>0)A[D-1]=t;else if(i>0){let e=new Uint8Array(A.buffer,A.byteOffset,A.byteLength);b("onPartData",0,i,e),i=0,u("onPartData"),a--;}break;case o.END:break;default:throw Error(`Unexpected state entered: ${h}`);}H("onHeaderField"),H("onHeaderValue"),H("onPartData"),this.index=D,this.state=h,this.flags=f;}end(){if(this.state===o.HEADER_FIELD_START&&0===this.index||this.state===o.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==o.END)throw Error("MultipartParser.end(): stream ended unexpectedly");}}async function D(e,t){let n,i,o,A,s,d;if(!/multipart/i.test(t))throw TypeError("Failed to fetch");let E=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!E)throw TypeError("no or bad content-type header, no multipart boundary");let D=new l(E[1]||E[2]),h=[],f=new r.FormData(),T=e=>{o+=c.decode(e,{stream:!0});},_=e=>{h.push(e);},R=()=>{let e=new a.File(h,d,{type:s});f.append(A,e);},u=()=>{f.append(A,o);},c=new TextDecoder("utf-8");for await(let t of(c.decode(),D.onPartBegin=function(){D.onPartData=T,D.onPartEnd=u,n="",i="",o="",A="",s="",d=null,h.length=0;},D.onHeaderField=function(e){n+=c.decode(e,{stream:!0});},D.onHeaderValue=function(e){i+=c.decode(e,{stream:!0});},D.onHeaderEnd=function(){if(i+=c.decode(),"content-disposition"===(n=n.toLowerCase())){let e=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(A=e[2]||e[3]||""),(d=function(e){let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let n=t[2]||t[3]||"",a=n.slice(n.lastIndexOf("\\")+1);return(a=a.replace(/%22/g,'"')).replace(/&#(\d{4});/g,(e,t)=>String.fromCharCode(t));}(i))&&(D.onPartData=_,D.onPartEnd=R);}else"content-type"===n&&(s=i);i="",n="";},e))D.write(t);return D.end(),f;}});
|
||||
//# sourceMappingURL=multipart-parser.dbeb496e.js.map
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,2 @@
|
|||
var e=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).parcelRequire810d;e.register("kCYt6",(t,a)=>{var r,n;async function i(e,t){let a,i,o,A,s,d;if(!/multipart/i.test(t))throw TypeError("Failed to fetch");let E=t.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!E)throw TypeError("no or bad content-type header, no multipart boundary");let l=new D(E[1]||E[2]),h=[],T=new n.FormData,_=e=>{o+=b.decode(e,{stream:!0})},R=e=>{h.push(e)},f=()=>{let e=new r.File(h,d,{type:s});T.append(A,e)},u=()=>{T.append(A,o)},b=new TextDecoder("utf-8");for await(let t of(b.decode(),l.onPartBegin=()=>{l.onPartData=_,l.onPartEnd=u,a="",i="",o="",A="",s="",d=null,h.length=0},l.onHeaderField=e=>{a+=b.decode(e,{stream:!0})},l.onHeaderValue=e=>{i+=b.decode(e,{stream:!0})},l.onHeaderEnd=()=>{if(i+=b.decode(),"content-disposition"===(a=a.toLowerCase())){let e=i.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);e&&(A=e[2]||e[3]||""),(d=(e=>{let t=e.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!t)return;let a=t[2]||t[3]||"",r=a.slice(a.lastIndexOf("\\")+1);return(r=r.replace(/%22/g,'"')).replace(/&#(\d{4});/g,(e,t)=>String.fromCharCode(t))})(i))&&(l.onPartData=R,l.onPartEnd=f)}else"content-type"===a&&(s=i);i="",a=""},e))l.write(t);return l.end(),T}Object.defineProperty(t.exports,"toFormData",{get:()=>i,set:void 0,enumerable:!0,configurable:!0}),r=e("wabHV"),n=e("33Q0z");let o=0,A={START_BOUNDARY:o++,HEADER_FIELD_START:o++,HEADER_FIELD:o++,HEADER_VALUE_START:o++,HEADER_VALUE:o++,HEADER_VALUE_ALMOST_DONE:o++,HEADERS_ALMOST_DONE:o++,PART_DATA_START:o++,PART_DATA:o++,END:o++},s=1,d={PART_BOUNDARY:s,LAST_BOUNDARY:s*=2},E=e=>32|e,l=()=>{};class D{constructor(e){this.index=0,this.flags=0,this.onHeaderEnd=l,this.onHeaderField=l,this.onHeadersEnd=l,this.onHeaderValue=l,this.onPartBegin=l,this.onPartData=l,this.onPartEnd=l,this.boundaryChars={},e="\r\n--"+e;let t=new Uint8Array(e.length);for(let a=0;a<e.length;a++)t[a]=e.charCodeAt(a),this.boundaryChars[t[a]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=A.START_BOUNDARY}write(e){let t,a,r=0,n=e.length,i=this.index,{lookbehind:o,boundary:s,boundaryChars:l,index:D,state:h,flags:T}=this,_=this.boundary.length,R=_-1,f=e.length,u=e=>{this[e+"Mark"]=r},b=e=>{delete this[e+"Mark"]},c=(e,t,a,r)=>{(void 0===t||t!==a)&&this[e](r&&r.subarray(t,a))},H=(t,a)=>{let n=t+"Mark";n in this&&(a?(c(t,this[n],r,e),delete this[n]):(c(t,this[n],e.length,e),this[n]=0))};for(r=0;n>r;r++)switch(t=e[r],h){case A.START_BOUNDARY:if(D===s.length-2){if(45===t)T|=d.LAST_BOUNDARY;else if(13!==t)return;D++;break}if(D-1==s.length-2){if(T&d.LAST_BOUNDARY&&45===t)h=A.END,T=0;else{if(T&d.LAST_BOUNDARY||10!==t)return;D=0,c("onPartBegin"),h=A.HEADER_FIELD_START}break}t!==s[D+2]&&(D=-2),t===s[D+2]&&D++;break;case A.HEADER_FIELD_START:h=A.HEADER_FIELD,u("onHeaderField"),D=0;case A.HEADER_FIELD:if(13===t){b("onHeaderField"),h=A.HEADERS_ALMOST_DONE;break}if(D++,45===t)break;if(58===t){if(1===D)return;H("onHeaderField",!0),h=A.HEADER_VALUE_START;break}if((a=E(t))<97||a>122)return;break;case A.HEADER_VALUE_START:if(32===t)break;u("onHeaderValue"),h=A.HEADER_VALUE;case A.HEADER_VALUE:13===t&&(H("onHeaderValue",!0),c("onHeaderEnd"),h=A.HEADER_VALUE_ALMOST_DONE);break;case A.HEADER_VALUE_ALMOST_DONE:if(10!==t)return;h=A.HEADER_FIELD_START;break;case A.HEADERS_ALMOST_DONE:if(10!==t)return;c("onHeadersEnd"),h=A.PART_DATA_START;break;case A.PART_DATA_START:h=A.PART_DATA,u("onPartData");case A.PART_DATA:if(i=D,0===D){for(r+=R;r<f&&!(e[r]in l);)r+=_;r-=R,t=e[r]}if(D<s.length)s[D]===t?(0===D&&H("onPartData",!0),D++):D=0;else if(D===s.length)D++,13===t?T|=d.PART_BOUNDARY:45===t?T|=d.LAST_BOUNDARY:D=0;else if(D-1===s.length){if(T&d.PART_BOUNDARY){if(D=0,10===t){T&=~d.PART_BOUNDARY,c("onPartEnd"),c("onPartBegin"),h=A.HEADER_FIELD_START;break}}else T&d.LAST_BOUNDARY&&45===t?(c("onPartEnd"),h=A.END,T=0):D=0}if(D>0)o[D-1]=t;else if(i>0){let e=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);c("onPartData",0,i,e),i=0,u("onPartData"),r--}break;case A.END:break;default:throw Error("Unexpected state entered: "+h)}H("onHeaderField"),H("onHeaderValue"),H("onPartData"),this.index=D,this.state=h,this.flags=T}end(){if(this.state===A.HEADER_FIELD_START&&0===this.index||this.state===A.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==A.END)throw Error("MultipartParser.end(): stream ended unexpectedly")}}});
|
||||
//# sourceMappingURL=multipart-parser.e63ad71c.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -72,7 +72,7 @@
|
|||
"@types/eslint": "^8.40.0",
|
||||
"@types/jest": "^29.5.1",
|
||||
"@types/mri": "^1.1.1",
|
||||
"@types/node": "^20.2.3",
|
||||
"@types/node": "^20.2.4",
|
||||
"@types/npmcli__ci-detect": "^2.0.0",
|
||||
"@types/prettier": "2.7.2",
|
||||
"@types/semver": "^7.5.0",
|
||||
|
@ -102,7 +102,7 @@
|
|||
"npm-check-updates": "^16.10.12",
|
||||
"npm-run-all2": "^6.0.5",
|
||||
"numerous": "1.0.3",
|
||||
"parcel": "2.8.3",
|
||||
"parcel": "2.9.0",
|
||||
"path-exists": "^5.0.0",
|
||||
"patha": "^0.4.1",
|
||||
"prettier": "2.8.8",
|
||||
|
@ -125,6 +125,11 @@
|
|||
"user-access": "workspace:*",
|
||||
"which": "^3.0.1"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"node-fetch": "3.3.1"
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.x"
|
||||
},
|
||||
|
|
1985
pnpm-lock.yaml
1985
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue