mirror of https://github.com/aminya/setup-cpp
1 line
35 KiB
Plaintext
1 line
35 KiB
Plaintext
|
{"version":3,"file":"multipart-parser.dbeb496e.js","names":["i","o","START_BOUNDARY","HEADER_FIELD_START","HEADER_FIELD","HEADER_VALUE_START","HEADER_VALUE","HEADER_VALUE_ALMOST_DONE","HEADERS_ALMOST_DONE","PART_DATA_START","PART_DATA","END","A","s","PART_BOUNDARY","LAST_BOUNDARY","d","e","E","l","constructor","index","flags","onHeaderEnd","onHeaderField","onHeadersEnd","onHeaderValue","onPartBegin","onPartData","onPartEnd","boundaryChars","t","Uint8Array","length","n","charCodeAt","boundary","lookbehind","state","write","a","r","D","h","f","T","_","R","u","c","b","subarray","H","buffer","byteOffset","byteLength","Error","end","test","TypeError","match","FormData","decode","stream","push","File","type","append","TextDecoder","toLowerCase","slice","lastIndexOf","replace","String","fromCharCode"],"sources":["../../<anon>","../../node_modules/.pnpm/node-fetch@3.3.1/node_modules/node-fetch/src/utils/multipart-parser.js"],"sourcesContent":["function $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\nvar $parcel$global =\ntypeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\nvar parcelRequire = $parcel$global[\"parcelRequire810d\"];\nparcelRequire.register(\"kCYt6\", function(module, exports) {\n\n$parcel$export(module.exports, \"toFormData\", () => $f0464300f9a0111b$export$10ae0d317ea97f8b);\n\nvar $wabHV = parcelRequire(\"wabHV\");\n\nvar $33Q0z = parcelRequire(\"33Q0z\");\nlet $f0464300f9a0111b$var$s = 0;\nconst $f0464300f9a0111b$var$S = {\n START_BOUNDARY: $f0464300f9a0111b$var$s++,\n HEADER_FIELD_START: $f0464300f9a0111b$var$s++,\n HEADER_FIELD: $f0464300f9a0111b$var$s++,\n HEADER_VALUE_START: $f0464300f9a0111b$var$s++,\n HEADER_VALUE: $f0464300f9a0111b$var$s++,\n HEADER_VALUE_ALMOST_DONE: $f0464300f9a0111b$var$s++,\n HEADERS_ALMOST_DONE: $f0464300f9a0111b$var$s++,\n PART_DATA_START: $f0464300f9a0111b$var$s++,\n PART_DATA: $f0464300f9a0111b$var$s++,\n END: $f0464300f9a0111b$var$s++\n};\nlet $f0464300f9a0111b$var$f = 1;\nconst $f0464300f9a0111b$var$F = {\n PART_BOUNDARY: $f0464300f9a0111b$var$f,\n LAST_BOUNDARY: $f0464300f9a0111b$var$f *= 2\n};\nconst $f0464300f9a0111b$var$LF = 10;\nconst $f0464300f9a0111b$var$CR = 13;\nconst $f0464300f9a0111b$var$SPACE = 32;\nconst $f0464300f9a0111b$var$HYPHEN = 45;\nconst $f0464300f9a0111b$var$COLON = 58;\nconst $f0464300f9a0111b$var$A = 97;\nconst $f0464300f9a0111b$var$Z = 122;\nconst $f0464300f9a0111b$var$lower = (c)=>c | 0x20;\nconst $f0464300f9a0111b$var$noop = ()=>{};\nclass $f0464300f9a0111b$var$MultipartParser {\n /**\n\t * @param {string} boundary\n\t */ constructor(boundary){\n this.index = 0;\n this.flags = 0;\n this.onHeaderEnd = $f0464300f9a0111b$var$noop;\n this.onHeaderField = $f0464300f9a0111b$var$noop;\n this.onHeadersEnd = $f0464300f9a0111b$var$noop;\n this.onHeaderValue = $f0464300f9a0111b$var$noop;\n this.onPartBegin = $f0464300f9a0111b$var$noop;\n this.onPartData = $f0464300f9a0111b$var$noop;\n this.onPartEnd = $f0464300f9a0111b$var$noop;\n this.boundaryChars = {};\n boundary = \"\\r\\n--\" + boundary;\n const ui8a = new Uint8Array(boundary.length);\n for(let i = 0; i < boundary.length; i++){\n ui8a[i] = boundary.charCodeAt(i);\n this.boundaryChars[ui8a[i]] = true;\n }\n this.boundary = ui8a;\n this.lookbehind = new Uint8Array(this.boundary.length + 8);\n this.state = $f0464300f9a0111b$var$S.START_BOUNDARY;\n }\n /**\n\t * @param {Uint8Array} data\n\t */ write(data) {\n let i = 0;\n const length_ = data.length;\n let previousIndex = this.index;\n let { lookbehind: lookbehind , boundary: boundary , boundaryChars: boundaryChars , index: index , state: state , flags: flags } = this;\n const boundaryLength = this.boundary.length;\n const
|