aizryu.js 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.0/node_modules/.package-lock.json +156 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/index.d.ts +95 -0
- package/.cache/typescript/5.0/node_modules/@types/body-parser/package.json +58 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/index.d.ts +91 -0
- package/.cache/typescript/5.0/node_modules/@types/connect/package.json +32 -0
- package/.cache/typescript/5.0/node_modules/@types/express/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express/index.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/@types/express/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/index.d.ts +1261 -0
- package/.cache/typescript/5.0/node_modules/@types/express-serve-static-core/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/index.d.ts +77 -0
- package/.cache/typescript/5.0/node_modules/@types/http-errors/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/base.d.ts +456 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/index.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/@types/jsdom/package.json +45 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/Mime.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/index.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/lite.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/@types/mime/package.json +30 -0
- package/.cache/typescript/5.0/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.0/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.d.ts +381 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/process.d.ts +1532 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.0/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.0/node_modules/@types/node/util.d.ts +2186 -0
- package/.cache/typescript/5.0/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.0/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.0/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.0/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.0/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/README.md +75 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/index.d.ts +56 -0
- package/.cache/typescript/5.0/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/README.md +53 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/index.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/@types/range-parser/package.json +25 -0
- package/.cache/typescript/5.0/node_modules/@types/send/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/send/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/send/index.d.ts +225 -0
- package/.cache/typescript/5.0/node_modules/@types/send/package.json +33 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/index.d.ts +107 -0
- package/.cache/typescript/5.0/node_modules/@types/serve-static/package.json +39 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.0/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.0/node_modules/entities/LICENSE +11 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js +536 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js +77 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js +122 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js +496 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js +69 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js +116 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js +99 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/esm/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts +96 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.d.ts.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js +126 -0
- package/.cache/typescript/5.0/node_modules/entities/lib/index.js.map +1 -0
- package/.cache/typescript/5.0/node_modules/entities/package.json +90 -0
- package/.cache/typescript/5.0/node_modules/entities/readme.md +122 -0
- package/.cache/typescript/5.0/node_modules/parse5/LICENSE +19 -0
- package/.cache/typescript/5.0/node_modules/parse5/README.md +38 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/html.js +529 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/token.js +25 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/index.js +57 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/package.json +1 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/doctype.js +115 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/error-codes.js +64 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/foreign-content.js +230 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.d.ts +288 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/html.js +523 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/token.js +21 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/common/unicode.js +69 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.d.ts +60 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/index.js +45 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.d.ts +157 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/index.js +3168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/index.js +2904 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/default.js +174 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.0/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
- package/.cache/typescript/5.0/node_modules/parse5/package.json +50 -0
- package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.0/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.0/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.0/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.0/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.0/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.0/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.0/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.0/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.0/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.0/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.0/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.0/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.0/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.0/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.0/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.0/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.0/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.0/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.0/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.0/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.0/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.0/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.0/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.0/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.0/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.0/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.0/package-lock.json +166 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.replit +14 -0
- package/.upm/store.json +1 -0
- package/README.md +24 -0
- package/index.js +1 -0
- package/package.json +21 -0
@@ -0,0 +1,128 @@
|
|
1
|
+
import { IncomingHttpHeaders } from "./header";
|
2
|
+
import Client from './client'
|
3
|
+
|
4
|
+
export default Errors
|
5
|
+
|
6
|
+
declare namespace Errors {
|
7
|
+
export class UndiciError extends Error {
|
8
|
+
name: string;
|
9
|
+
code: string;
|
10
|
+
}
|
11
|
+
|
12
|
+
/** Connect timeout error. */
|
13
|
+
export class ConnectTimeoutError extends UndiciError {
|
14
|
+
name: 'ConnectTimeoutError';
|
15
|
+
code: 'UND_ERR_CONNECT_TIMEOUT';
|
16
|
+
}
|
17
|
+
|
18
|
+
/** A header exceeds the `headersTimeout` option. */
|
19
|
+
export class HeadersTimeoutError extends UndiciError {
|
20
|
+
name: 'HeadersTimeoutError';
|
21
|
+
code: 'UND_ERR_HEADERS_TIMEOUT';
|
22
|
+
}
|
23
|
+
|
24
|
+
/** Headers overflow error. */
|
25
|
+
export class HeadersOverflowError extends UndiciError {
|
26
|
+
name: 'HeadersOverflowError'
|
27
|
+
code: 'UND_ERR_HEADERS_OVERFLOW'
|
28
|
+
}
|
29
|
+
|
30
|
+
/** A body exceeds the `bodyTimeout` option. */
|
31
|
+
export class BodyTimeoutError extends UndiciError {
|
32
|
+
name: 'BodyTimeoutError';
|
33
|
+
code: 'UND_ERR_BODY_TIMEOUT';
|
34
|
+
}
|
35
|
+
|
36
|
+
export class ResponseStatusCodeError extends UndiciError {
|
37
|
+
constructor (
|
38
|
+
message?: string,
|
39
|
+
statusCode?: number,
|
40
|
+
headers?: IncomingHttpHeaders | string[] | null,
|
41
|
+
body?: null | Record<string, any> | string
|
42
|
+
);
|
43
|
+
name: 'ResponseStatusCodeError';
|
44
|
+
code: 'UND_ERR_RESPONSE_STATUS_CODE';
|
45
|
+
body: null | Record<string, any> | string
|
46
|
+
status: number
|
47
|
+
statusCode: number
|
48
|
+
headers: IncomingHttpHeaders | string[] | null;
|
49
|
+
}
|
50
|
+
|
51
|
+
/** Passed an invalid argument. */
|
52
|
+
export class InvalidArgumentError extends UndiciError {
|
53
|
+
name: 'InvalidArgumentError';
|
54
|
+
code: 'UND_ERR_INVALID_ARG';
|
55
|
+
}
|
56
|
+
|
57
|
+
/** Returned an invalid value. */
|
58
|
+
export class InvalidReturnValueError extends UndiciError {
|
59
|
+
name: 'InvalidReturnValueError';
|
60
|
+
code: 'UND_ERR_INVALID_RETURN_VALUE';
|
61
|
+
}
|
62
|
+
|
63
|
+
/** The request has been aborted by the user. */
|
64
|
+
export class RequestAbortedError extends UndiciError {
|
65
|
+
name: 'AbortError';
|
66
|
+
code: 'UND_ERR_ABORTED';
|
67
|
+
}
|
68
|
+
|
69
|
+
/** Expected error with reason. */
|
70
|
+
export class InformationalError extends UndiciError {
|
71
|
+
name: 'InformationalError';
|
72
|
+
code: 'UND_ERR_INFO';
|
73
|
+
}
|
74
|
+
|
75
|
+
/** Request body length does not match content-length header. */
|
76
|
+
export class RequestContentLengthMismatchError extends UndiciError {
|
77
|
+
name: 'RequestContentLengthMismatchError';
|
78
|
+
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH';
|
79
|
+
}
|
80
|
+
|
81
|
+
/** Response body length does not match content-length header. */
|
82
|
+
export class ResponseContentLengthMismatchError extends UndiciError {
|
83
|
+
name: 'ResponseContentLengthMismatchError';
|
84
|
+
code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH';
|
85
|
+
}
|
86
|
+
|
87
|
+
/** Trying to use a destroyed client. */
|
88
|
+
export class ClientDestroyedError extends UndiciError {
|
89
|
+
name: 'ClientDestroyedError';
|
90
|
+
code: 'UND_ERR_DESTROYED';
|
91
|
+
}
|
92
|
+
|
93
|
+
/** Trying to use a closed client. */
|
94
|
+
export class ClientClosedError extends UndiciError {
|
95
|
+
name: 'ClientClosedError';
|
96
|
+
code: 'UND_ERR_CLOSED';
|
97
|
+
}
|
98
|
+
|
99
|
+
/** There is an error with the socket. */
|
100
|
+
export class SocketError extends UndiciError {
|
101
|
+
name: 'SocketError';
|
102
|
+
code: 'UND_ERR_SOCKET';
|
103
|
+
socket: Client.SocketInfo | null
|
104
|
+
}
|
105
|
+
|
106
|
+
/** Encountered unsupported functionality. */
|
107
|
+
export class NotSupportedError extends UndiciError {
|
108
|
+
name: 'NotSupportedError';
|
109
|
+
code: 'UND_ERR_NOT_SUPPORTED';
|
110
|
+
}
|
111
|
+
|
112
|
+
/** No upstream has been added to the BalancedPool. */
|
113
|
+
export class BalancedPoolMissingUpstreamError extends UndiciError {
|
114
|
+
name: 'MissingUpstreamError';
|
115
|
+
code: 'UND_ERR_BPL_MISSING_UPSTREAM';
|
116
|
+
}
|
117
|
+
|
118
|
+
export class HTTPParserError extends UndiciError {
|
119
|
+
name: 'HTTPParserError';
|
120
|
+
code: string;
|
121
|
+
}
|
122
|
+
|
123
|
+
/** The response exceed the length allowed. */
|
124
|
+
export class ResponseExceededMaxSizeError extends UndiciError {
|
125
|
+
name: 'ResponseExceededMaxSizeError';
|
126
|
+
code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE';
|
127
|
+
}
|
128
|
+
}
|
@@ -0,0 +1,209 @@
|
|
1
|
+
// based on https://github.com/Ethan-Arrowood/undici-fetch/blob/249269714db874351589d2d364a0645d5160ae71/index.d.ts (MIT license)
|
2
|
+
// and https://github.com/node-fetch/node-fetch/blob/914ce6be5ec67a8bab63d68510aabf07cb818b6d/index.d.ts (MIT license)
|
3
|
+
/// <reference types="node" />
|
4
|
+
|
5
|
+
import { Blob } from 'buffer'
|
6
|
+
import { URL, URLSearchParams } from 'url'
|
7
|
+
import { ReadableStream } from 'stream/web'
|
8
|
+
import { FormData } from './formdata'
|
9
|
+
|
10
|
+
import Dispatcher from './dispatcher'
|
11
|
+
|
12
|
+
export type RequestInfo = string | URL | Request
|
13
|
+
|
14
|
+
export declare function fetch (
|
15
|
+
input: RequestInfo,
|
16
|
+
init?: RequestInit
|
17
|
+
): Promise<Response>
|
18
|
+
|
19
|
+
export type BodyInit =
|
20
|
+
| ArrayBuffer
|
21
|
+
| AsyncIterable<Uint8Array>
|
22
|
+
| Blob
|
23
|
+
| FormData
|
24
|
+
| Iterable<Uint8Array>
|
25
|
+
| NodeJS.ArrayBufferView
|
26
|
+
| URLSearchParams
|
27
|
+
| null
|
28
|
+
| string
|
29
|
+
|
30
|
+
export interface BodyMixin {
|
31
|
+
readonly body: ReadableStream | null
|
32
|
+
readonly bodyUsed: boolean
|
33
|
+
|
34
|
+
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
35
|
+
readonly blob: () => Promise<Blob>
|
36
|
+
readonly formData: () => Promise<FormData>
|
37
|
+
readonly json: () => Promise<unknown>
|
38
|
+
readonly text: () => Promise<string>
|
39
|
+
}
|
40
|
+
|
41
|
+
export interface SpecIterator<T, TReturn = any, TNext = undefined> {
|
42
|
+
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
|
43
|
+
}
|
44
|
+
|
45
|
+
export interface SpecIterableIterator<T> extends SpecIterator<T> {
|
46
|
+
[Symbol.iterator](): SpecIterableIterator<T>;
|
47
|
+
}
|
48
|
+
|
49
|
+
export interface SpecIterable<T> {
|
50
|
+
[Symbol.iterator](): SpecIterator<T>;
|
51
|
+
}
|
52
|
+
|
53
|
+
export type HeadersInit = string[][] | Record<string, string | ReadonlyArray<string>> | Headers
|
54
|
+
|
55
|
+
export declare class Headers implements SpecIterable<[string, string]> {
|
56
|
+
constructor (init?: HeadersInit)
|
57
|
+
readonly append: (name: string, value: string) => void
|
58
|
+
readonly delete: (name: string) => void
|
59
|
+
readonly get: (name: string) => string | null
|
60
|
+
readonly has: (name: string) => boolean
|
61
|
+
readonly set: (name: string, value: string) => void
|
62
|
+
readonly getSetCookie: () => string[]
|
63
|
+
readonly forEach: (
|
64
|
+
callbackfn: (value: string, key: string, iterable: Headers) => void,
|
65
|
+
thisArg?: unknown
|
66
|
+
) => void
|
67
|
+
|
68
|
+
readonly keys: () => SpecIterableIterator<string>
|
69
|
+
readonly values: () => SpecIterableIterator<string>
|
70
|
+
readonly entries: () => SpecIterableIterator<[string, string]>
|
71
|
+
readonly [Symbol.iterator]: () => SpecIterator<[string, string]>
|
72
|
+
}
|
73
|
+
|
74
|
+
export type RequestCache =
|
75
|
+
| 'default'
|
76
|
+
| 'force-cache'
|
77
|
+
| 'no-cache'
|
78
|
+
| 'no-store'
|
79
|
+
| 'only-if-cached'
|
80
|
+
| 'reload'
|
81
|
+
|
82
|
+
export type RequestCredentials = 'omit' | 'include' | 'same-origin'
|
83
|
+
|
84
|
+
type RequestDestination =
|
85
|
+
| ''
|
86
|
+
| 'audio'
|
87
|
+
| 'audioworklet'
|
88
|
+
| 'document'
|
89
|
+
| 'embed'
|
90
|
+
| 'font'
|
91
|
+
| 'image'
|
92
|
+
| 'manifest'
|
93
|
+
| 'object'
|
94
|
+
| 'paintworklet'
|
95
|
+
| 'report'
|
96
|
+
| 'script'
|
97
|
+
| 'sharedworker'
|
98
|
+
| 'style'
|
99
|
+
| 'track'
|
100
|
+
| 'video'
|
101
|
+
| 'worker'
|
102
|
+
| 'xslt'
|
103
|
+
|
104
|
+
export interface RequestInit {
|
105
|
+
method?: string
|
106
|
+
keepalive?: boolean
|
107
|
+
headers?: HeadersInit
|
108
|
+
body?: BodyInit
|
109
|
+
redirect?: RequestRedirect
|
110
|
+
integrity?: string
|
111
|
+
signal?: AbortSignal
|
112
|
+
credentials?: RequestCredentials
|
113
|
+
mode?: RequestMode
|
114
|
+
referrer?: string
|
115
|
+
referrerPolicy?: ReferrerPolicy
|
116
|
+
window?: null
|
117
|
+
dispatcher?: Dispatcher
|
118
|
+
duplex?: RequestDuplex
|
119
|
+
}
|
120
|
+
|
121
|
+
export type ReferrerPolicy =
|
122
|
+
| ''
|
123
|
+
| 'no-referrer'
|
124
|
+
| 'no-referrer-when-downgrade'
|
125
|
+
| 'origin'
|
126
|
+
| 'origin-when-cross-origin'
|
127
|
+
| 'same-origin'
|
128
|
+
| 'strict-origin'
|
129
|
+
| 'strict-origin-when-cross-origin'
|
130
|
+
| 'unsafe-url';
|
131
|
+
|
132
|
+
export type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
|
133
|
+
|
134
|
+
export type RequestRedirect = 'error' | 'follow' | 'manual'
|
135
|
+
|
136
|
+
export type RequestDuplex = 'half'
|
137
|
+
|
138
|
+
export declare class Request implements BodyMixin {
|
139
|
+
constructor (input: RequestInfo, init?: RequestInit)
|
140
|
+
|
141
|
+
readonly cache: RequestCache
|
142
|
+
readonly credentials: RequestCredentials
|
143
|
+
readonly destination: RequestDestination
|
144
|
+
readonly headers: Headers
|
145
|
+
readonly integrity: string
|
146
|
+
readonly method: string
|
147
|
+
readonly mode: RequestMode
|
148
|
+
readonly redirect: RequestRedirect
|
149
|
+
readonly referrerPolicy: string
|
150
|
+
readonly url: string
|
151
|
+
|
152
|
+
readonly keepalive: boolean
|
153
|
+
readonly signal: AbortSignal
|
154
|
+
readonly duplex: RequestDuplex
|
155
|
+
|
156
|
+
readonly body: ReadableStream | null
|
157
|
+
readonly bodyUsed: boolean
|
158
|
+
|
159
|
+
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
160
|
+
readonly blob: () => Promise<Blob>
|
161
|
+
readonly formData: () => Promise<FormData>
|
162
|
+
readonly json: () => Promise<unknown>
|
163
|
+
readonly text: () => Promise<string>
|
164
|
+
|
165
|
+
readonly clone: () => Request
|
166
|
+
}
|
167
|
+
|
168
|
+
export interface ResponseInit {
|
169
|
+
readonly status?: number
|
170
|
+
readonly statusText?: string
|
171
|
+
readonly headers?: HeadersInit
|
172
|
+
}
|
173
|
+
|
174
|
+
export type ResponseType =
|
175
|
+
| 'basic'
|
176
|
+
| 'cors'
|
177
|
+
| 'default'
|
178
|
+
| 'error'
|
179
|
+
| 'opaque'
|
180
|
+
| 'opaqueredirect'
|
181
|
+
|
182
|
+
export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308
|
183
|
+
|
184
|
+
export declare class Response implements BodyMixin {
|
185
|
+
constructor (body?: BodyInit, init?: ResponseInit)
|
186
|
+
|
187
|
+
readonly headers: Headers
|
188
|
+
readonly ok: boolean
|
189
|
+
readonly status: number
|
190
|
+
readonly statusText: string
|
191
|
+
readonly type: ResponseType
|
192
|
+
readonly url: string
|
193
|
+
readonly redirected: boolean
|
194
|
+
|
195
|
+
readonly body: ReadableStream | null
|
196
|
+
readonly bodyUsed: boolean
|
197
|
+
|
198
|
+
readonly arrayBuffer: () => Promise<ArrayBuffer>
|
199
|
+
readonly blob: () => Promise<Blob>
|
200
|
+
readonly formData: () => Promise<FormData>
|
201
|
+
readonly json: () => Promise<unknown>
|
202
|
+
readonly text: () => Promise<string>
|
203
|
+
|
204
|
+
readonly clone: () => Response
|
205
|
+
|
206
|
+
static error (): Response
|
207
|
+
static json(data: any, init?: ResponseInit): Response
|
208
|
+
static redirect (url: string | URL, status: ResponseRedirectStatus): Response
|
209
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/File.ts (MIT)
|
2
|
+
/// <reference types="node" />
|
3
|
+
|
4
|
+
import { Blob } from 'buffer'
|
5
|
+
|
6
|
+
export interface BlobPropertyBag {
|
7
|
+
type?: string
|
8
|
+
endings?: 'native' | 'transparent'
|
9
|
+
}
|
10
|
+
|
11
|
+
export interface FilePropertyBag extends BlobPropertyBag {
|
12
|
+
/**
|
13
|
+
* The last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
|
14
|
+
*/
|
15
|
+
lastModified?: number
|
16
|
+
}
|
17
|
+
|
18
|
+
export declare class File extends Blob {
|
19
|
+
/**
|
20
|
+
* Creates a new File instance.
|
21
|
+
*
|
22
|
+
* @param fileBits An `Array` strings, or [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), [`ArrayBufferView`](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView), [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) objects, or a mix of any of such objects, that will be put inside the [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File).
|
23
|
+
* @param fileName The name of the file.
|
24
|
+
* @param options An options object containing optional attributes for the file.
|
25
|
+
*/
|
26
|
+
constructor(fileBits: ReadonlyArray<string | NodeJS.ArrayBufferView | Blob>, fileName: string, options?: FilePropertyBag)
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Name of the file referenced by the File object.
|
30
|
+
*/
|
31
|
+
readonly name: string
|
32
|
+
|
33
|
+
/**
|
34
|
+
* The last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
|
35
|
+
*/
|
36
|
+
readonly lastModified: number
|
37
|
+
|
38
|
+
readonly [Symbol.toStringTag]: string
|
39
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
|
3
|
+
import { Blob } from 'buffer'
|
4
|
+
import { DOMException, Event, EventInit, EventTarget } from './patch'
|
5
|
+
|
6
|
+
export declare class FileReader {
|
7
|
+
__proto__: EventTarget & FileReader
|
8
|
+
|
9
|
+
constructor ()
|
10
|
+
|
11
|
+
readAsArrayBuffer (blob: Blob): void
|
12
|
+
readAsBinaryString (blob: Blob): void
|
13
|
+
readAsText (blob: Blob, encoding?: string): void
|
14
|
+
readAsDataURL (blob: Blob): void
|
15
|
+
|
16
|
+
abort (): void
|
17
|
+
|
18
|
+
static readonly EMPTY = 0
|
19
|
+
static readonly LOADING = 1
|
20
|
+
static readonly DONE = 2
|
21
|
+
|
22
|
+
readonly EMPTY = 0
|
23
|
+
readonly LOADING = 1
|
24
|
+
readonly DONE = 2
|
25
|
+
|
26
|
+
readonly readyState: number
|
27
|
+
|
28
|
+
readonly result: string | ArrayBuffer | null
|
29
|
+
|
30
|
+
readonly error: DOMException | null
|
31
|
+
|
32
|
+
onloadstart: null | ((this: FileReader, event: ProgressEvent) => void)
|
33
|
+
onprogress: null | ((this: FileReader, event: ProgressEvent) => void)
|
34
|
+
onload: null | ((this: FileReader, event: ProgressEvent) => void)
|
35
|
+
onabort: null | ((this: FileReader, event: ProgressEvent) => void)
|
36
|
+
onerror: null | ((this: FileReader, event: ProgressEvent) => void)
|
37
|
+
onloadend: null | ((this: FileReader, event: ProgressEvent) => void)
|
38
|
+
}
|
39
|
+
|
40
|
+
export interface ProgressEventInit extends EventInit {
|
41
|
+
lengthComputable?: boolean
|
42
|
+
loaded?: number
|
43
|
+
total?: number
|
44
|
+
}
|
45
|
+
|
46
|
+
export declare class ProgressEvent {
|
47
|
+
__proto__: Event & ProgressEvent
|
48
|
+
|
49
|
+
constructor (type: string, eventInitDict?: ProgressEventInit)
|
50
|
+
|
51
|
+
readonly lengthComputable: boolean
|
52
|
+
readonly loaded: number
|
53
|
+
readonly total: number
|
54
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
// Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/FormData.ts (MIT)
|
2
|
+
/// <reference types="node" />
|
3
|
+
|
4
|
+
import { File } from './file'
|
5
|
+
import { SpecIterator, SpecIterableIterator } from './fetch'
|
6
|
+
|
7
|
+
/**
|
8
|
+
* A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
|
9
|
+
*/
|
10
|
+
declare type FormDataEntryValue = string | File
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch().
|
14
|
+
*/
|
15
|
+
export declare class FormData {
|
16
|
+
/**
|
17
|
+
* Appends a new value onto an existing key inside a FormData object,
|
18
|
+
* or adds the key if it does not already exist.
|
19
|
+
*
|
20
|
+
* The difference between `set()` and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values.
|
21
|
+
*
|
22
|
+
* @param name The name of the field whose data is contained in `value`.
|
23
|
+
* @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
|
24
|
+
or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
|
25
|
+
* @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
|
26
|
+
*/
|
27
|
+
append(name: string, value: unknown, fileName?: string): void
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Set a new value for an existing key inside FormData,
|
31
|
+
* or add the new field if it does not already exist.
|
32
|
+
*
|
33
|
+
* @param name The name of the field whose data is contained in `value`.
|
34
|
+
* @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
|
35
|
+
or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
|
36
|
+
* @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
|
37
|
+
*
|
38
|
+
*/
|
39
|
+
set(name: string, value: unknown, fileName?: string): void
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Returns the first value associated with a given key from within a `FormData` object.
|
43
|
+
* If you expect multiple values and want all of them, use the `getAll()` method instead.
|
44
|
+
*
|
45
|
+
* @param {string} name A name of the value you want to retrieve.
|
46
|
+
*
|
47
|
+
* @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null.
|
48
|
+
*/
|
49
|
+
get(name: string): FormDataEntryValue | null
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Returns all the values associated with a given key from within a `FormData` object.
|
53
|
+
*
|
54
|
+
* @param {string} name A name of the value you want to retrieve.
|
55
|
+
*
|
56
|
+
* @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list.
|
57
|
+
*/
|
58
|
+
getAll(name: string): FormDataEntryValue[]
|
59
|
+
|
60
|
+
/**
|
61
|
+
* Returns a boolean stating whether a `FormData` object contains a certain key.
|
62
|
+
*
|
63
|
+
* @param name A string representing the name of the key you want to test for.
|
64
|
+
*
|
65
|
+
* @return A boolean value.
|
66
|
+
*/
|
67
|
+
has(name: string): boolean
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Deletes a key and its value(s) from a `FormData` object.
|
71
|
+
*
|
72
|
+
* @param name The name of the key you want to delete.
|
73
|
+
*/
|
74
|
+
delete(name: string): void
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Executes given callback function for each field of the FormData instance
|
78
|
+
*/
|
79
|
+
forEach: (
|
80
|
+
callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void,
|
81
|
+
thisArg?: unknown
|
82
|
+
) => void
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all keys contained in this `FormData` object.
|
86
|
+
* Each key is a `string`.
|
87
|
+
*/
|
88
|
+
keys: () => SpecIterableIterator<string>
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all values contained in this object `FormData` object.
|
92
|
+
* Each value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
|
93
|
+
*/
|
94
|
+
values: () => SpecIterableIterator<FormDataEntryValue>
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs.
|
98
|
+
* The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
|
99
|
+
*/
|
100
|
+
entries: () => SpecIterableIterator<[string, FormDataEntryValue]>
|
101
|
+
|
102
|
+
/**
|
103
|
+
* An alias for FormData#entries()
|
104
|
+
*/
|
105
|
+
[Symbol.iterator]: () => SpecIterableIterator<[string, FormDataEntryValue]>
|
106
|
+
|
107
|
+
readonly [Symbol.toStringTag]: string
|
108
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import Dispatcher from "./dispatcher";
|
2
|
+
|
3
|
+
export {
|
4
|
+
getGlobalDispatcher,
|
5
|
+
setGlobalDispatcher
|
6
|
+
}
|
7
|
+
|
8
|
+
declare function setGlobalDispatcher<DispatcherImplementation extends Dispatcher>(dispatcher: DispatcherImplementation): void;
|
9
|
+
declare function getGlobalDispatcher(): Dispatcher;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import Dispatcher from "./dispatcher";
|
2
|
+
|
3
|
+
export declare class RedirectHandler implements Dispatcher.DispatchHandlers{
|
4
|
+
constructor (dispatch: Dispatcher, maxRedirections: number, opts: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandlers)
|
5
|
+
}
|
6
|
+
|
7
|
+
export declare class DecoratorHandler implements Dispatcher.DispatchHandlers{
|
8
|
+
constructor (handler: Dispatcher.DispatchHandlers)
|
9
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import Dispatcher from'./dispatcher'
|
2
|
+
import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher'
|
3
|
+
import { setGlobalOrigin, getGlobalOrigin } from './global-origin'
|
4
|
+
import Pool from'./pool'
|
5
|
+
import { RedirectHandler, DecoratorHandler } from './handlers'
|
6
|
+
|
7
|
+
import BalancedPool from './balanced-pool'
|
8
|
+
import Client from'./client'
|
9
|
+
import buildConnector from'./connector'
|
10
|
+
import errors from'./errors'
|
11
|
+
import Agent from'./agent'
|
12
|
+
import MockClient from'./mock-client'
|
13
|
+
import MockPool from'./mock-pool'
|
14
|
+
import MockAgent from'./mock-agent'
|
15
|
+
import mockErrors from'./mock-errors'
|
16
|
+
import ProxyAgent from'./proxy-agent'
|
17
|
+
import { request, pipeline, stream, connect, upgrade } from './api'
|
18
|
+
|
19
|
+
export * from './cookies'
|
20
|
+
export * from './fetch'
|
21
|
+
export * from './file'
|
22
|
+
export * from './filereader'
|
23
|
+
export * from './formdata'
|
24
|
+
export * from './diagnostics-channel'
|
25
|
+
export * from './websocket'
|
26
|
+
export * from './content-type'
|
27
|
+
export * from './cache'
|
28
|
+
export { Interceptable } from './mock-interceptor'
|
29
|
+
|
30
|
+
export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler }
|
31
|
+
export default Undici
|
32
|
+
|
33
|
+
declare namespace Undici {
|
34
|
+
var Dispatcher: typeof import('./dispatcher').default
|
35
|
+
var Pool: typeof import('./pool').default;
|
36
|
+
var RedirectHandler: typeof import ('./handlers').RedirectHandler
|
37
|
+
var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
|
38
|
+
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
|
39
|
+
var BalancedPool: typeof import('./balanced-pool').default;
|
40
|
+
var Client: typeof import('./client').default;
|
41
|
+
var buildConnector: typeof import('./connector').default;
|
42
|
+
var errors: typeof import('./errors').default;
|
43
|
+
var Agent: typeof import('./agent').default;
|
44
|
+
var setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher;
|
45
|
+
var getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher;
|
46
|
+
var request: typeof import('./api').request;
|
47
|
+
var stream: typeof import('./api').stream;
|
48
|
+
var pipeline: typeof import('./api').pipeline;
|
49
|
+
var connect: typeof import('./api').connect;
|
50
|
+
var upgrade: typeof import('./api').upgrade;
|
51
|
+
var MockClient: typeof import('./mock-client').default;
|
52
|
+
var MockPool: typeof import('./mock-pool').default;
|
53
|
+
var MockAgent: typeof import('./mock-agent').default;
|
54
|
+
var mockErrors: typeof import('./mock-errors').default;
|
55
|
+
var fetch: typeof import('./fetch').fetch;
|
56
|
+
var Headers: typeof import('./fetch').Headers;
|
57
|
+
var Response: typeof import('./fetch').Response;
|
58
|
+
var Request: typeof import('./fetch').Request;
|
59
|
+
var FormData: typeof import('./formdata').FormData;
|
60
|
+
var File: typeof import('./file').File;
|
61
|
+
var FileReader: typeof import('./filereader').FileReader;
|
62
|
+
var caches: typeof import('./cache').caches;
|
63
|
+
}
|