fix: override whatwg-url to be the latest version

This commit is contained in:
Amin Yahyaabadi 2023-05-26 12:42:10 -07:00
parent 297213111d
commit 77b7ec30b7
19 changed files with 74 additions and 82 deletions

View File

@ -14,6 +14,7 @@ words:
- clangd
- Trofimovich
- cobertura
- whatwg
- aminya
- applellvm
- bazel

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

View File

@ -1,2 +0,0 @@
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

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

View File

@ -1,2 +0,0 @@
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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -122,11 +122,6 @@
"user-access": "workspace:*",
"which": "^3.0.1"
},
"pnpm": {
"overrides": {
"node-fetch": "3.3.1"
}
},
"engines": {
"node": ">=12.x"
},
@ -154,6 +149,11 @@
"patha": "patha/dist/index.node.mjs"
},
"main.actions": "./dist/node16/setup-cpp.js",
"pnpm": {
"overrides": {
"whatwg-url": "^12"
}
},
"targets": {
"main": {
"context": "node",

View File

@ -1,7 +1,7 @@
lockfileVersion: '6.0'
overrides:
node-fetch: 3.3.1
whatwg-url: ^12
importers:
@ -243,6 +243,8 @@ packages:
'@azure/storage-blob': 12.14.0
semver: 6.3.0
uuid: 3.4.0
transitivePeerDependencies:
- encoding
dev: true
/@actions/core@1.10.0:
@ -356,12 +358,14 @@ packages:
'@types/node-fetch': 2.6.4
'@types/tunnel': 0.0.3
form-data: 4.0.0
node-fetch: 3.3.1
node-fetch: 2.6.11
process: 0.11.10
tslib: 2.5.2
tunnel: 0.0.6
uuid: 8.3.2
xml2js: 0.5.0
transitivePeerDependencies:
- encoding
dev: true
/@azure/core-lro@2.5.3:
@ -410,12 +414,14 @@ packages:
'@azure/core-auth': 1.4.0
abort-controller: 3.0.0
form-data: 2.5.1
node-fetch: 3.3.1
node-fetch: 2.6.11
tough-cookie: 3.0.1
tslib: 1.14.1
tunnel: 0.0.6
uuid: 8.3.2
xml2js: 0.5.0
transitivePeerDependencies:
- encoding
dev: true
/@azure/storage-blob@12.14.0:
@ -430,6 +436,8 @@ packages:
'@azure/logger': 1.0.4
events: 3.3.0
tslib: 2.5.2
transitivePeerDependencies:
- encoding
dev: true
/@babel/cli@7.21.5(@babel/core@7.22.1):
@ -4205,7 +4213,9 @@ packages:
engines: {node: '>=14'}
dependencies:
'@cspell/cspell-service-bus': 6.31.1
node-fetch: 3.3.1
node-fetch: 2.6.11
transitivePeerDependencies:
- encoding
dev: true
/cspell-lib@6.31.1:
@ -4233,6 +4243,8 @@ packages:
resolve-global: 1.0.0
vscode-languageserver-textdocument: 1.0.8
vscode-uri: 3.0.7
transitivePeerDependencies:
- encoding
dev: true
/cspell-trie-lib@6.31.1:
@ -4265,6 +4277,8 @@ packages:
semver: 7.5.1
strip-ansi: 6.0.1
vscode-uri: 3.0.7
transitivePeerDependencies:
- encoding
dev: true
/css-select@4.3.0:
@ -4302,11 +4316,6 @@ packages:
dev: true
optional: true
/data-uri-to-buffer@4.0.1:
resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
engines: {node: '>= 12'}
dev: true
/date-fns@2.30.0:
resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==}
engines: {node: '>=0.11'}
@ -5469,14 +5478,6 @@ packages:
bser: 2.1.1
dev: true
/fetch-blob@3.2.0:
resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
engines: {node: ^12.20 || >= 14.13}
dependencies:
node-domexception: 1.0.0
web-streams-polyfill: 3.2.1
dev: true
/figures@3.2.0:
resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==}
engines: {node: '>=8'}
@ -5593,13 +5594,6 @@ packages:
mime-types: 2.1.35
dev: true
/formdata-polyfill@4.0.10:
resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
engines: {node: '>=12.20.0'}
dependencies:
fetch-blob: 3.2.0
dev: true
/fp-and-or@0.1.3:
resolution: {integrity: sha512-wJaE62fLaB3jCYvY2ZHjZvmKK2iiLiiehX38rz5QZxtdN8fVPJDeZUiVvJrHStdTc+23LHlyZuSEKgFc0pxi2g==}
engines: {node: '>=10'}
@ -8222,18 +8216,16 @@ packages:
resolution: {integrity: sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==}
dev: true
/node-domexception@1.0.0:
resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
engines: {node: '>=10.5.0'}
dev: true
/node-fetch@3.3.1:
resolution: {integrity: sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
/node-fetch@2.6.11:
resolution: {integrity: sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==}
engines: {node: 4.x || >=6.0.0}
peerDependencies:
encoding: ^0.1.0
peerDependenciesMeta:
encoding:
optional: true
dependencies:
data-uri-to-buffer: 4.0.1
fetch-blob: 3.2.0
formdata-polyfill: 4.0.10
whatwg-url: 12.0.1
dev: true
/node-gyp-build-optional-packages@5.0.6:
@ -9269,9 +9261,11 @@ packages:
load-json-file: 6.2.0
lodash: 4.17.21
markdown-escape: 1.1.0
node-fetch: 3.3.1
node-fetch: 2.6.11
ora: 4.0.3
yargs: 15.4.1
transitivePeerDependencies:
- encoding
dev: true
/rechoir@0.6.2:
@ -10141,6 +10135,13 @@ packages:
punycode: 2.3.0
dev: true
/tr46@4.1.1:
resolution: {integrity: sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==}
engines: {node: '>=14'}
dependencies:
punycode: 2.3.0
dev: true
/trim-newlines@3.0.1:
resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==}
engines: {node: '>=8'}
@ -10602,9 +10603,17 @@ packages:
resolution: {integrity: sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==}
dev: true
/web-streams-polyfill@3.2.1:
resolution: {integrity: sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==}
engines: {node: '>= 8'}
/webidl-conversions@7.0.0:
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
engines: {node: '>=12'}
dev: true
/whatwg-url@12.0.1:
resolution: {integrity: sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==}
engines: {node: '>=14'}
dependencies:
tr46: 4.1.1
webidl-conversions: 7.0.0
dev: true
/which-boxed-primitive@1.0.2:
@ -10867,6 +10876,8 @@ packages:
'@actions/io': 1.1.3
'@actions/tool-cache': 1.7.2
semver: 7.5.1
transitivePeerDependencies:
- encoding
dev: true
github.com/aminya/babel-plugin-remove-node-prefix/95fcbd92405b99a6eece48c493548996f12e6519(@babel/core@7.22.1):