setup-cpp/dist/node12/multipart-parser.30e64fd9.j...

1 line
35 KiB
Plaintext
Raw Normal View History

2023-05-27 03:00:04 +08:00
{"version":3,"file":"multipart-parser.30e64fd9.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","s","A","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","T","f","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(\"6KsJx\", function(module, exports) {\n\n$parcel$export(module.exports, \"toFormData\", () => $4e9d53d6e9bdaf23$export$10ae0d317ea97f8b);\n\nvar $j9HqM = parcelRequire(\"j9HqM\");\n\nvar $1RVNT = parcelRequire(\"1RVNT\");\nlet $4e9d53d6e9bdaf23$var$s = 0;\nconst $4e9d53d6e9bdaf23$var$S = {\n START_BOUNDARY: $4e9d53d6e9bdaf23$var$s++,\n HEADER_FIELD_START: $4e9d53d6e9bdaf23$var$s++,\n HEADER_FIELD: $4e9d53d6e9bdaf23$var$s++,\n HEADER_VALUE_START: $4e9d53d6e9bdaf23$var$s++,\n HEADER_VALUE: $4e9d53d6e9bdaf23$var$s++,\n HEADER_VALUE_ALMOST_DONE: $4e9d53d6e9bdaf23$var$s++,\n HEADERS_ALMOST_DONE: $4e9d53d6e9bdaf23$var$s++,\n PART_DATA_START: $4e9d53d6e9bdaf23$var$s++,\n PART_DATA: $4e9d53d6e9bdaf23$var$s++,\n END: $4e9d53d6e9bdaf23$var$s++\n};\nlet $4e9d53d6e9bdaf23$var$f = 1;\nconst $4e9d53d6e9bdaf23$var$F = {\n PART_BOUNDARY: $4e9d53d6e9bdaf23$var$f,\n LAST_BOUNDARY: $4e9d53d6e9bdaf23$var$f *= 2\n};\nconst $4e9d53d6e9bdaf23$var$LF = 10;\nconst $4e9d53d6e9bdaf23$var$CR = 13;\nconst $4e9d53d6e9bdaf23$var$SPACE = 32;\nconst $4e9d53d6e9bdaf23$var$HYPHEN = 45;\nconst $4e9d53d6e9bdaf23$var$COLON = 58;\nconst $4e9d53d6e9bdaf23$var$A = 97;\nconst $4e9d53d6e9bdaf23$var$Z = 122;\nconst $4e9d53d6e9bdaf23$var$lower = (c)=>c | 0x20;\nconst $4e9d53d6e9bdaf23$var$noop = ()=>{};\nclass $4e9d53d6e9bdaf23$var$MultipartParser {\n /**\n\t * @param {string} boundary\n\t */ constructor(boundary){\n this.index = 0;\n this.flags = 0;\n this.onHeaderEnd = $4e9d53d6e9bdaf23$var$noop;\n this.onHeaderField = $4e9d53d6e9bdaf23$var$noop;\n this.onHeadersEnd = $4e9d53d6e9bdaf23$var$noop;\n this.onHeaderValue = $4e9d53d6e9bdaf23$var$noop;\n this.onPartBegin = $4e9d53d6e9bdaf23$var$noop;\n this.onPartData = $4e9d53d6e9bdaf23$var$noop;\n this.onPartEnd = $4e9d53d6e9bdaf23$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 = $4e9d53d6e9bdaf23$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