rahad-media-downloader 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/nix/binary-cache-v6.sqlite +0 -0
- package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules/nodejs-20:v32-20240401-269b323.res +1 -0
- package/.cache/replit/modules/replit:v8-20240329-787bc7d.res +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 +12 -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/package-lock.json +17 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/.package-lock.json +181 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/README.md +48 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/index.d.ts +29 -0
- package/.cache/typescript/5.3/node_modules/@types/caseless/package.json +35 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/index.d.ts +318 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/package.json +71 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/base.d.ts +456 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/index.d.ts +18 -0
- package/.cache/typescript/5.3/node_modules/@types/jsdom/package.json +45 -0
- package/.cache/typescript/5.3/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.3/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.3/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.3/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.3/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.3/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.3/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.3/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.3/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.3/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.3/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.3/node_modules/@types/node/globals.d.ts +385 -0
- package/.cache/typescript/5.3/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.3/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.3/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.3/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.3/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.3/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.3/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.3/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.3/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.3/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.3/node_modules/@types/node/process.d.ts +1539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.3/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.3/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.3/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.3/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.3/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.3/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.d.ts +385 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/process.d.ts +1539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.3/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.3/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.3/node_modules/@types/node/util.d.ts +2183 -0
- package/.cache/typescript/5.3/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.3/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.3/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.3/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/externals.d.ts +32 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/index.d.ts +214 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/package.json +83 -0
- package/.cache/typescript/5.3/node_modules/@types/request/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/request/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/request/index.d.ts +395 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/README.md +350 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/README.md.bak +350 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/index.d.ts +51 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/lib/form_data.js +483 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.3/node_modules/@types/request/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.3/node_modules/@types/request/package.json +70 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.3/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.3/node_modules/asynckit/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/asynckit/README.md +233 -0
- package/.cache/typescript/5.3/node_modules/asynckit/bench.js +76 -0
- package/.cache/typescript/5.3/node_modules/asynckit/index.js +6 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/abort.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/async.js +34 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/defer.js +26 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/iterate.js +75 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/state.js +37 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/streamify.js +141 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/terminator.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/package.json +63 -0
- package/.cache/typescript/5.3/node_modules/asynckit/parallel.js +43 -0
- package/.cache/typescript/5.3/node_modules/asynckit/serial.js +17 -0
- package/.cache/typescript/5.3/node_modules/asynckit/serialOrdered.js +75 -0
- package/.cache/typescript/5.3/node_modules/asynckit/stream.js +21 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/License +19 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/Readme.md +138 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/package.json +25 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/yarn.lock +17 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/License +19 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/Makefile +7 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/Readme.md +141 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/package.json +27 -0
- package/.cache/typescript/5.3/node_modules/entities/LICENSE +11 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.d.ts +211 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.js +536 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.d.ts +22 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.js +77 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/encode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.js +122 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/escape.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.js +496 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.js +71 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.js +69 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/encode.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.js +116 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/escape.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.js +10 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.js +99 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/index.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/esm/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/decode-data-xml.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.js +12 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/generated/encode-html.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.d.ts +96 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.d.ts.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.js +126 -0
- package/.cache/typescript/5.3/node_modules/entities/lib/index.js.map +1 -0
- package/.cache/typescript/5.3/node_modules/entities/package.json +90 -0
- package/.cache/typescript/5.3/node_modules/entities/readme.md +122 -0
- package/.cache/typescript/5.3/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.3/node_modules/form-data/README.md.bak +358 -0
- package/.cache/typescript/5.3/node_modules/form-data/Readme.md +358 -0
- package/.cache/typescript/5.3/node_modules/form-data/index.d.ts +62 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/form_data.js +501 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.3/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.3/node_modules/mime-db/HISTORY.md +507 -0
- package/.cache/typescript/5.3/node_modules/mime-db/LICENSE +23 -0
- package/.cache/typescript/5.3/node_modules/mime-db/README.md +100 -0
- package/.cache/typescript/5.3/node_modules/mime-db/db.json +8519 -0
- package/.cache/typescript/5.3/node_modules/mime-db/index.js +12 -0
- package/.cache/typescript/5.3/node_modules/mime-db/package.json +60 -0
- package/.cache/typescript/5.3/node_modules/mime-types/HISTORY.md +397 -0
- package/.cache/typescript/5.3/node_modules/mime-types/LICENSE +23 -0
- package/.cache/typescript/5.3/node_modules/mime-types/README.md +113 -0
- package/.cache/typescript/5.3/node_modules/mime-types/index.js +188 -0
- package/.cache/typescript/5.3/node_modules/mime-types/package.json +44 -0
- package/.cache/typescript/5.3/node_modules/parse5/LICENSE +19 -0
- package/.cache/typescript/5.3/node_modules/parse5/README.md +38 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/doctype.js +120 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/error-codes.js +67 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/foreign-content.js +239 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/html.d.ts +288 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/html.js +529 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/token.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/token.js +25 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/common/unicode.js +77 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/index.d.ts +60 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/index.js +57 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +115 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/index.d.ts +157 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/index.js +3163 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/parser/open-element-stack.js +316 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/serializer/index.js +173 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/index.js +2908 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +199 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/default.js +177 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/cjs/tree-adapters/interface.js +3 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/doctype.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/doctype.js +115 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/error-codes.d.ts +68 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/error-codes.js +64 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/foreign-content.d.ts +10 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/foreign-content.js +230 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/html.d.ts +288 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/html.js +523 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/token.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/token.js +21 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/unicode.d.ts +49 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/common/unicode.js +69 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/index.d.ts +60 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/index.js +45 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/formatting-element-list.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/formatting-element-list.js +111 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/index.d.ts +157 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/index.js +3168 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/open-element-stack.d.ts +53 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/parser/open-element-stack.js +312 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/serializer/index.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/index.d.ts +248 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/index.js +2904 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +37 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tokenizer/preprocessor.js +195 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/default.d.ts +85 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/default.js +174 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/interface.d.ts +250 -0
- package/.cache/typescript/5.3/node_modules/parse5/dist/tree-adapters/interface.js +2 -0
- package/.cache/typescript/5.3/node_modules/parse5/package.json +50 -0
- package/.cache/typescript/5.3/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.3/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.3/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.3/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.3/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.3/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.3/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.3/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.3/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.3/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.3/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.3/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.3/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.3/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.3/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.3/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.3/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.3/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.3/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.3/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.3/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.3/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.3/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.3/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.3/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.3/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.3/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.3/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.3/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.3/package-lock.json +192 -0
- package/.cache/typescript/5.3/package.json +1 -0
- package/.replit +17 -0
- package/README.md +130 -0
- package/index.js +1 -0
- package/package.json +28 -0
- package/replit.nix +3 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"name": "types-registry",
|
3
|
+
"version": "0.1.684",
|
4
|
+
"description": "A registry of TypeScript declaration file packages published within the @types scope.",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "https://github.com/microsoft/DefinitelyTyped-tools.git",
|
8
|
+
"directory": "packages/publisher"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"TypeScript",
|
12
|
+
"declaration",
|
13
|
+
"files",
|
14
|
+
"types",
|
15
|
+
"packages"
|
16
|
+
],
|
17
|
+
"author": "Microsoft Corp.",
|
18
|
+
"license": "MIT",
|
19
|
+
"typesPublisherContentHash": "778261fdb6ff01765ce2e700a234232d9f1fe2a19a84fe4b80c7e61206575cc6"
|
20
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# undici-types
|
2
|
+
|
3
|
+
This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version.
|
4
|
+
|
5
|
+
- [GitHub nodejs/undici](https://github.com/nodejs/undici)
|
6
|
+
- [Undici Documentation](https://undici.nodejs.org/#/)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { URL } from 'url'
|
2
|
+
import Pool from './pool'
|
3
|
+
import Dispatcher from "./dispatcher";
|
4
|
+
|
5
|
+
export default Agent
|
6
|
+
|
7
|
+
declare class Agent extends Dispatcher{
|
8
|
+
constructor(opts?: Agent.Options)
|
9
|
+
/** `true` after `dispatcher.close()` has been called. */
|
10
|
+
closed: boolean;
|
11
|
+
/** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */
|
12
|
+
destroyed: boolean;
|
13
|
+
/** Dispatches a request. */
|
14
|
+
dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
|
15
|
+
}
|
16
|
+
|
17
|
+
declare namespace Agent {
|
18
|
+
export interface Options extends Pool.Options {
|
19
|
+
/** Default: `(origin, opts) => new Pool(origin, opts)`. */
|
20
|
+
factory?(origin: string | URL, opts: Object): Dispatcher;
|
21
|
+
/** Integer. Default: `0` */
|
22
|
+
maxRedirections?: number;
|
23
|
+
|
24
|
+
interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options["interceptors"]
|
25
|
+
}
|
26
|
+
|
27
|
+
export interface DispatchOptions extends Dispatcher.DispatchOptions {
|
28
|
+
/** Integer. */
|
29
|
+
maxRedirections?: number;
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { URL, UrlObject } from 'url'
|
2
|
+
import { Duplex } from 'stream'
|
3
|
+
import Dispatcher from './dispatcher'
|
4
|
+
|
5
|
+
export {
|
6
|
+
request,
|
7
|
+
stream,
|
8
|
+
pipeline,
|
9
|
+
connect,
|
10
|
+
upgrade,
|
11
|
+
}
|
12
|
+
|
13
|
+
/** Performs an HTTP request. */
|
14
|
+
declare function request(
|
15
|
+
url: string | URL | UrlObject,
|
16
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path' | 'method'> & Partial<Pick<Dispatcher.RequestOptions, 'method'>>,
|
17
|
+
): Promise<Dispatcher.ResponseData>;
|
18
|
+
|
19
|
+
/** A faster version of `request`. */
|
20
|
+
declare function stream(
|
21
|
+
url: string | URL | UrlObject,
|
22
|
+
options: { dispatcher?: Dispatcher } & Omit<Dispatcher.RequestOptions, 'origin' | 'path'>,
|
23
|
+
factory: Dispatcher.StreamFactory
|
24
|
+
): Promise<Dispatcher.StreamData>;
|
25
|
+
|
26
|
+
/** For easy use with `stream.pipeline`. */
|
27
|
+
declare function pipeline(
|
28
|
+
url: string | URL | UrlObject,
|
29
|
+
options: { dispatcher?: Dispatcher } & Omit<Dispatcher.PipelineOptions, 'origin' | 'path'>,
|
30
|
+
handler: Dispatcher.PipelineHandler
|
31
|
+
): Duplex;
|
32
|
+
|
33
|
+
/** Starts two-way communications with the requested resource. */
|
34
|
+
declare function connect(
|
35
|
+
url: string | URL | UrlObject,
|
36
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.ConnectOptions, 'origin' | 'path'>
|
37
|
+
): Promise<Dispatcher.ConnectData>;
|
38
|
+
|
39
|
+
/** Upgrade to a different protocol. */
|
40
|
+
declare function upgrade(
|
41
|
+
url: string | URL | UrlObject,
|
42
|
+
options?: { dispatcher?: Dispatcher } & Omit<Dispatcher.UpgradeOptions, 'origin' | 'path'>
|
43
|
+
): Promise<Dispatcher.UpgradeData>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import Pool from './pool'
|
2
|
+
import Dispatcher from './dispatcher'
|
3
|
+
import { URL } from 'url'
|
4
|
+
|
5
|
+
export default BalancedPool
|
6
|
+
|
7
|
+
declare class BalancedPool extends Dispatcher {
|
8
|
+
constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
|
9
|
+
|
10
|
+
addUpstream(upstream: string | URL): BalancedPool;
|
11
|
+
removeUpstream(upstream: string | URL): BalancedPool;
|
12
|
+
upstreams: Array<string>;
|
13
|
+
|
14
|
+
/** `true` after `pool.close()` has been called. */
|
15
|
+
closed: boolean;
|
16
|
+
/** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
|
17
|
+
destroyed: boolean;
|
18
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import type { RequestInfo, Response, Request } from './fetch'
|
2
|
+
|
3
|
+
export interface CacheStorage {
|
4
|
+
match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>,
|
5
|
+
has (cacheName: string): Promise<boolean>,
|
6
|
+
open (cacheName: string): Promise<Cache>,
|
7
|
+
delete (cacheName: string): Promise<boolean>,
|
8
|
+
keys (): Promise<string[]>
|
9
|
+
}
|
10
|
+
|
11
|
+
declare const CacheStorage: {
|
12
|
+
prototype: CacheStorage
|
13
|
+
new(): CacheStorage
|
14
|
+
}
|
15
|
+
|
16
|
+
export interface Cache {
|
17
|
+
match (request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>,
|
18
|
+
matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Response[]>,
|
19
|
+
add (request: RequestInfo): Promise<undefined>,
|
20
|
+
addAll (requests: RequestInfo[]): Promise<undefined>,
|
21
|
+
put (request: RequestInfo, response: Response): Promise<undefined>,
|
22
|
+
delete (request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>,
|
23
|
+
keys (request?: RequestInfo, options?: CacheQueryOptions): Promise<readonly Request[]>
|
24
|
+
}
|
25
|
+
|
26
|
+
export interface CacheQueryOptions {
|
27
|
+
ignoreSearch?: boolean,
|
28
|
+
ignoreMethod?: boolean,
|
29
|
+
ignoreVary?: boolean
|
30
|
+
}
|
31
|
+
|
32
|
+
export interface MultiCacheQueryOptions extends CacheQueryOptions {
|
33
|
+
cacheName?: string
|
34
|
+
}
|
35
|
+
|
36
|
+
export declare const caches: CacheStorage
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { URL } from 'url'
|
2
|
+
import { TlsOptions } from 'tls'
|
3
|
+
import Dispatcher from './dispatcher'
|
4
|
+
import buildConnector from "./connector";
|
5
|
+
|
6
|
+
/**
|
7
|
+
* A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
|
8
|
+
*/
|
9
|
+
export class Client extends Dispatcher {
|
10
|
+
constructor(url: string | URL, options?: Client.Options);
|
11
|
+
/** Property to get and set the pipelining factor. */
|
12
|
+
pipelining: number;
|
13
|
+
/** `true` after `client.close()` has been called. */
|
14
|
+
closed: boolean;
|
15
|
+
/** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
|
16
|
+
destroyed: boolean;
|
17
|
+
}
|
18
|
+
|
19
|
+
export declare namespace Client {
|
20
|
+
export interface OptionsInterceptors {
|
21
|
+
Client: readonly Dispatcher.DispatchInterceptor[];
|
22
|
+
}
|
23
|
+
export interface Options {
|
24
|
+
/** TODO */
|
25
|
+
interceptors?: OptionsInterceptors;
|
26
|
+
/** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
|
27
|
+
maxHeaderSize?: number;
|
28
|
+
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
|
29
|
+
headersTimeout?: number;
|
30
|
+
/** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */
|
31
|
+
socketTimeout?: never;
|
32
|
+
/** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */
|
33
|
+
requestTimeout?: never;
|
34
|
+
/** TODO */
|
35
|
+
connectTimeout?: number;
|
36
|
+
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */
|
37
|
+
bodyTimeout?: number;
|
38
|
+
/** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */
|
39
|
+
idleTimeout?: never;
|
40
|
+
/** @deprecated unsupported keepAlive, use pipelining=0 instead */
|
41
|
+
keepAlive?: never;
|
42
|
+
/** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */
|
43
|
+
keepAliveTimeout?: number;
|
44
|
+
/** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */
|
45
|
+
maxKeepAliveTimeout?: never;
|
46
|
+
/** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */
|
47
|
+
keepAliveMaxTimeout?: number;
|
48
|
+
/** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */
|
49
|
+
keepAliveTimeoutThreshold?: number;
|
50
|
+
/** TODO */
|
51
|
+
socketPath?: string;
|
52
|
+
/** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */
|
53
|
+
pipelining?: number;
|
54
|
+
/** @deprecated use the connect option instead */
|
55
|
+
tls?: never;
|
56
|
+
/** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
|
57
|
+
strictContentLength?: boolean;
|
58
|
+
/** TODO */
|
59
|
+
maxCachedSessions?: number;
|
60
|
+
/** TODO */
|
61
|
+
maxRedirections?: number;
|
62
|
+
/** TODO */
|
63
|
+
connect?: buildConnector.BuildOptions | buildConnector.connector;
|
64
|
+
/** TODO */
|
65
|
+
maxRequestsPerClient?: number;
|
66
|
+
/** TODO */
|
67
|
+
localAddress?: string;
|
68
|
+
/** Max response body size in bytes, -1 is disabled */
|
69
|
+
maxResponseSize?: number;
|
70
|
+
/** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */
|
71
|
+
autoSelectFamily?: boolean;
|
72
|
+
/** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */
|
73
|
+
autoSelectFamilyAttemptTimeout?: number;
|
74
|
+
/**
|
75
|
+
* @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
|
76
|
+
* @default false
|
77
|
+
*/
|
78
|
+
allowH2?: boolean;
|
79
|
+
/**
|
80
|
+
* @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overriden by a SETTINGS remote frame.
|
81
|
+
* @default 100
|
82
|
+
*/
|
83
|
+
maxConcurrentStreams?: number
|
84
|
+
}
|
85
|
+
export interface SocketInfo {
|
86
|
+
localAddress?: string
|
87
|
+
localPort?: number
|
88
|
+
remoteAddress?: string
|
89
|
+
remotePort?: number
|
90
|
+
remoteFamily?: string
|
91
|
+
timeout?: number
|
92
|
+
bytesWritten?: number
|
93
|
+
bytesRead?: number
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
export default Client;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { TLSSocket, ConnectionOptions } from 'tls'
|
2
|
+
import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from 'net'
|
3
|
+
|
4
|
+
export default buildConnector
|
5
|
+
declare function buildConnector (options?: buildConnector.BuildOptions): buildConnector.connector
|
6
|
+
|
7
|
+
declare namespace buildConnector {
|
8
|
+
export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
|
9
|
+
allowH2?: boolean;
|
10
|
+
maxCachedSessions?: number | null;
|
11
|
+
socketPath?: string | null;
|
12
|
+
timeout?: number | null;
|
13
|
+
port?: number;
|
14
|
+
keepAlive?: boolean | null;
|
15
|
+
keepAliveInitialDelay?: number | null;
|
16
|
+
}
|
17
|
+
|
18
|
+
export interface Options {
|
19
|
+
hostname: string
|
20
|
+
host?: string
|
21
|
+
protocol: string
|
22
|
+
port: string
|
23
|
+
servername?: string
|
24
|
+
localAddress?: string | null
|
25
|
+
httpSocket?: Socket
|
26
|
+
}
|
27
|
+
|
28
|
+
export type Callback = (...args: CallbackArgs) => void
|
29
|
+
type CallbackArgs = [null, Socket | TLSSocket] | [Error, null]
|
30
|
+
|
31
|
+
export interface connector {
|
32
|
+
(options: buildConnector.Options, callback: buildConnector.Callback): void
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
|
3
|
+
interface MIMEType {
|
4
|
+
type: string
|
5
|
+
subtype: string
|
6
|
+
parameters: Map<string, string>
|
7
|
+
essence: string
|
8
|
+
}
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Parse a string to a {@link MIMEType} object. Returns `failure` if the string
|
12
|
+
* couldn't be parsed.
|
13
|
+
* @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type
|
14
|
+
*/
|
15
|
+
export function parseMIMEType (input: string): 'failure' | MIMEType
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Convert a MIMEType object to a string.
|
19
|
+
* @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
|
20
|
+
*/
|
21
|
+
export function serializeAMimeType (mimeType: MIMEType): string
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
|
3
|
+
import type { Headers } from './fetch'
|
4
|
+
|
5
|
+
export interface Cookie {
|
6
|
+
name: string
|
7
|
+
value: string
|
8
|
+
expires?: Date | number
|
9
|
+
maxAge?: number
|
10
|
+
domain?: string
|
11
|
+
path?: string
|
12
|
+
secure?: boolean
|
13
|
+
httpOnly?: boolean
|
14
|
+
sameSite?: 'Strict' | 'Lax' | 'None'
|
15
|
+
unparsed?: string[]
|
16
|
+
}
|
17
|
+
|
18
|
+
export function deleteCookie (
|
19
|
+
headers: Headers,
|
20
|
+
name: string,
|
21
|
+
attributes?: { name?: string, domain?: string }
|
22
|
+
): void
|
23
|
+
|
24
|
+
export function getCookies (headers: Headers): Record<string, string>
|
25
|
+
|
26
|
+
export function getSetCookies (headers: Headers): Cookie[]
|
27
|
+
|
28
|
+
export function setCookie (headers: Headers, cookie: Cookie): void
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { Socket } from "net";
|
2
|
+
import { URL } from "url";
|
3
|
+
import Connector from "./connector";
|
4
|
+
import Dispatcher from "./dispatcher";
|
5
|
+
|
6
|
+
declare namespace DiagnosticsChannel {
|
7
|
+
interface Request {
|
8
|
+
origin?: string | URL;
|
9
|
+
completed: boolean;
|
10
|
+
method?: Dispatcher.HttpMethod;
|
11
|
+
path: string;
|
12
|
+
headers: string;
|
13
|
+
addHeader(key: string, value: string): Request;
|
14
|
+
}
|
15
|
+
interface Response {
|
16
|
+
statusCode: number;
|
17
|
+
statusText: string;
|
18
|
+
headers: Array<Buffer>;
|
19
|
+
}
|
20
|
+
type Error = unknown;
|
21
|
+
interface ConnectParams {
|
22
|
+
host: URL["host"];
|
23
|
+
hostname: URL["hostname"];
|
24
|
+
protocol: URL["protocol"];
|
25
|
+
port: URL["port"];
|
26
|
+
servername: string | null;
|
27
|
+
}
|
28
|
+
type Connector = Connector.connector;
|
29
|
+
export interface RequestCreateMessage {
|
30
|
+
request: Request;
|
31
|
+
}
|
32
|
+
export interface RequestBodySentMessage {
|
33
|
+
request: Request;
|
34
|
+
}
|
35
|
+
export interface RequestHeadersMessage {
|
36
|
+
request: Request;
|
37
|
+
response: Response;
|
38
|
+
}
|
39
|
+
export interface RequestTrailersMessage {
|
40
|
+
request: Request;
|
41
|
+
trailers: Array<Buffer>;
|
42
|
+
}
|
43
|
+
export interface RequestErrorMessage {
|
44
|
+
request: Request;
|
45
|
+
error: Error;
|
46
|
+
}
|
47
|
+
export interface ClientSendHeadersMessage {
|
48
|
+
request: Request;
|
49
|
+
headers: string;
|
50
|
+
socket: Socket;
|
51
|
+
}
|
52
|
+
export interface ClientBeforeConnectMessage {
|
53
|
+
connectParams: ConnectParams;
|
54
|
+
connector: Connector;
|
55
|
+
}
|
56
|
+
export interface ClientConnectedMessage {
|
57
|
+
socket: Socket;
|
58
|
+
connectParams: ConnectParams;
|
59
|
+
connector: Connector;
|
60
|
+
}
|
61
|
+
export interface ClientConnectErrorMessage {
|
62
|
+
error: Error;
|
63
|
+
socket: Socket;
|
64
|
+
connectParams: ConnectParams;
|
65
|
+
connector: Connector;
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,241 @@
|
|
1
|
+
import { URL } from 'url'
|
2
|
+
import { Duplex, Readable, Writable } from 'stream'
|
3
|
+
import { EventEmitter } from 'events'
|
4
|
+
import { Blob } from 'buffer'
|
5
|
+
import { IncomingHttpHeaders } from './header'
|
6
|
+
import BodyReadable from './readable'
|
7
|
+
import { FormData } from './formdata'
|
8
|
+
import Errors from './errors'
|
9
|
+
|
10
|
+
type AbortSignal = unknown;
|
11
|
+
|
12
|
+
export default Dispatcher
|
13
|
+
|
14
|
+
/** Dispatcher is the core API used to dispatch requests. */
|
15
|
+
declare class Dispatcher extends EventEmitter {
|
16
|
+
/** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */
|
17
|
+
dispatch(options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
|
18
|
+
/** Starts two-way communications with the requested resource. */
|
19
|
+
connect(options: Dispatcher.ConnectOptions): Promise<Dispatcher.ConnectData>;
|
20
|
+
connect(options: Dispatcher.ConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void;
|
21
|
+
/** Performs an HTTP request. */
|
22
|
+
request(options: Dispatcher.RequestOptions): Promise<Dispatcher.ResponseData>;
|
23
|
+
request(options: Dispatcher.RequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void;
|
24
|
+
/** For easy use with `stream.pipeline`. */
|
25
|
+
pipeline(options: Dispatcher.PipelineOptions, handler: Dispatcher.PipelineHandler): Duplex;
|
26
|
+
/** A faster version of `Dispatcher.request`. */
|
27
|
+
stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory): Promise<Dispatcher.StreamData>;
|
28
|
+
stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory, callback: (err: Error | null, data: Dispatcher.StreamData) => void): void;
|
29
|
+
/** Upgrade to a different protocol. */
|
30
|
+
upgrade(options: Dispatcher.UpgradeOptions): Promise<Dispatcher.UpgradeData>;
|
31
|
+
upgrade(options: Dispatcher.UpgradeOptions, callback: (err: Error | null, data: Dispatcher.UpgradeData) => void): void;
|
32
|
+
/** Closes the client and gracefully waits for enqueued requests to complete before invoking the callback (or returning a promise if no callback is provided). */
|
33
|
+
close(): Promise<void>;
|
34
|
+
close(callback: () => void): void;
|
35
|
+
/** Destroy the client abruptly with the given err. All the pending and running requests will be asynchronously aborted and error. Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided). Since this operation is asynchronously dispatched there might still be some progress on dispatched requests. */
|
36
|
+
destroy(): Promise<void>;
|
37
|
+
destroy(err: Error | null): Promise<void>;
|
38
|
+
destroy(callback: () => void): void;
|
39
|
+
destroy(err: Error | null, callback: () => void): void;
|
40
|
+
|
41
|
+
on(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
42
|
+
on(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
43
|
+
on(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
44
|
+
on(eventName: 'drain', callback: (origin: URL) => void): this;
|
45
|
+
|
46
|
+
|
47
|
+
once(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
48
|
+
once(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
49
|
+
once(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
50
|
+
once(eventName: 'drain', callback: (origin: URL) => void): this;
|
51
|
+
|
52
|
+
|
53
|
+
off(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
54
|
+
off(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
55
|
+
off(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
56
|
+
off(eventName: 'drain', callback: (origin: URL) => void): this;
|
57
|
+
|
58
|
+
|
59
|
+
addListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
60
|
+
addListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
61
|
+
addListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
62
|
+
addListener(eventName: 'drain', callback: (origin: URL) => void): this;
|
63
|
+
|
64
|
+
removeListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
65
|
+
removeListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
66
|
+
removeListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
67
|
+
removeListener(eventName: 'drain', callback: (origin: URL) => void): this;
|
68
|
+
|
69
|
+
prependListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
70
|
+
prependListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
71
|
+
prependListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
72
|
+
prependListener(eventName: 'drain', callback: (origin: URL) => void): this;
|
73
|
+
|
74
|
+
prependOnceListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
|
75
|
+
prependOnceListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
76
|
+
prependOnceListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
|
77
|
+
prependOnceListener(eventName: 'drain', callback: (origin: URL) => void): this;
|
78
|
+
|
79
|
+
listeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[]
|
80
|
+
listeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
81
|
+
listeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
82
|
+
listeners(eventName: 'drain'): ((origin: URL) => void)[];
|
83
|
+
|
84
|
+
rawListeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[]
|
85
|
+
rawListeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
86
|
+
rawListeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
|
87
|
+
rawListeners(eventName: 'drain'): ((origin: URL) => void)[];
|
88
|
+
|
89
|
+
emit(eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean;
|
90
|
+
emit(eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
|
91
|
+
emit(eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
|
92
|
+
emit(eventName: 'drain', origin: URL): boolean;
|
93
|
+
}
|
94
|
+
|
95
|
+
declare namespace Dispatcher {
|
96
|
+
export interface DispatchOptions {
|
97
|
+
origin?: string | URL;
|
98
|
+
path: string;
|
99
|
+
method: HttpMethod;
|
100
|
+
/** Default: `null` */
|
101
|
+
body?: string | Buffer | Uint8Array | Readable | null | FormData;
|
102
|
+
/** Default: `null` */
|
103
|
+
headers?: IncomingHttpHeaders | string[] | null;
|
104
|
+
/** Query string params to be embedded in the request URL. Default: `null` */
|
105
|
+
query?: Record<string, any>;
|
106
|
+
/** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */
|
107
|
+
idempotent?: boolean;
|
108
|
+
/** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. */
|
109
|
+
blocking?: boolean;
|
110
|
+
/** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */
|
111
|
+
upgrade?: boolean | string | null;
|
112
|
+
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers. Defaults to 300 seconds. */
|
113
|
+
headersTimeout?: number | null;
|
114
|
+
/** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0 to disable it entirely. Defaults to 300 seconds. */
|
115
|
+
bodyTimeout?: number | null;
|
116
|
+
/** Whether the request should stablish a keep-alive or not. Default `false` */
|
117
|
+
reset?: boolean;
|
118
|
+
/** Whether Undici should throw an error upon receiving a 4xx or 5xx response from the server. Defaults to false */
|
119
|
+
throwOnError?: boolean;
|
120
|
+
/** For H2, it appends the expect: 100-continue header, and halts the request body until a 100-continue is received from the remote server*/
|
121
|
+
expectContinue?: boolean;
|
122
|
+
}
|
123
|
+
export interface ConnectOptions {
|
124
|
+
path: string;
|
125
|
+
/** Default: `null` */
|
126
|
+
headers?: IncomingHttpHeaders | string[] | null;
|
127
|
+
/** Default: `null` */
|
128
|
+
signal?: AbortSignal | EventEmitter | null;
|
129
|
+
/** This argument parameter is passed through to `ConnectData` */
|
130
|
+
opaque?: unknown;
|
131
|
+
/** Default: 0 */
|
132
|
+
maxRedirections?: number;
|
133
|
+
/** Default: `null` */
|
134
|
+
responseHeader?: 'raw' | null;
|
135
|
+
}
|
136
|
+
export interface RequestOptions extends DispatchOptions {
|
137
|
+
/** Default: `null` */
|
138
|
+
opaque?: unknown;
|
139
|
+
/** Default: `null` */
|
140
|
+
signal?: AbortSignal | EventEmitter | null;
|
141
|
+
/** Default: 0 */
|
142
|
+
maxRedirections?: number;
|
143
|
+
/** Default: `null` */
|
144
|
+
onInfo?: (info: { statusCode: number, headers: Record<string, string | string[]> }) => void;
|
145
|
+
/** Default: `null` */
|
146
|
+
responseHeader?: 'raw' | null;
|
147
|
+
/** Default: `64 KiB` */
|
148
|
+
highWaterMark?: number;
|
149
|
+
}
|
150
|
+
export interface PipelineOptions extends RequestOptions {
|
151
|
+
/** `true` if the `handler` will return an object stream. Default: `false` */
|
152
|
+
objectMode?: boolean;
|
153
|
+
}
|
154
|
+
export interface UpgradeOptions {
|
155
|
+
path: string;
|
156
|
+
/** Default: `'GET'` */
|
157
|
+
method?: string;
|
158
|
+
/** Default: `null` */
|
159
|
+
headers?: IncomingHttpHeaders | string[] | null;
|
160
|
+
/** A string of comma separated protocols, in descending preference order. Default: `'Websocket'` */
|
161
|
+
protocol?: string;
|
162
|
+
/** Default: `null` */
|
163
|
+
signal?: AbortSignal | EventEmitter | null;
|
164
|
+
/** Default: 0 */
|
165
|
+
maxRedirections?: number;
|
166
|
+
/** Default: `null` */
|
167
|
+
responseHeader?: 'raw' | null;
|
168
|
+
}
|
169
|
+
export interface ConnectData {
|
170
|
+
statusCode: number;
|
171
|
+
headers: IncomingHttpHeaders;
|
172
|
+
socket: Duplex;
|
173
|
+
opaque: unknown;
|
174
|
+
}
|
175
|
+
export interface ResponseData {
|
176
|
+
statusCode: number;
|
177
|
+
headers: IncomingHttpHeaders;
|
178
|
+
body: BodyReadable & BodyMixin;
|
179
|
+
trailers: Record<string, string>;
|
180
|
+
opaque: unknown;
|
181
|
+
context: object;
|
182
|
+
}
|
183
|
+
export interface PipelineHandlerData {
|
184
|
+
statusCode: number;
|
185
|
+
headers: IncomingHttpHeaders;
|
186
|
+
opaque: unknown;
|
187
|
+
body: BodyReadable;
|
188
|
+
context: object;
|
189
|
+
}
|
190
|
+
export interface StreamData {
|
191
|
+
opaque: unknown;
|
192
|
+
trailers: Record<string, string>;
|
193
|
+
}
|
194
|
+
export interface UpgradeData {
|
195
|
+
headers: IncomingHttpHeaders;
|
196
|
+
socket: Duplex;
|
197
|
+
opaque: unknown;
|
198
|
+
}
|
199
|
+
export interface StreamFactoryData {
|
200
|
+
statusCode: number;
|
201
|
+
headers: IncomingHttpHeaders;
|
202
|
+
opaque: unknown;
|
203
|
+
context: object;
|
204
|
+
}
|
205
|
+
export type StreamFactory = (data: StreamFactoryData) => Writable;
|
206
|
+
export interface DispatchHandlers {
|
207
|
+
/** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */
|
208
|
+
onConnect?(abort: () => void): void;
|
209
|
+
/** Invoked when an error has occurred. */
|
210
|
+
onError?(err: Error): void;
|
211
|
+
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
|
212
|
+
onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void;
|
213
|
+
/** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */
|
214
|
+
onHeaders?(statusCode: number, headers: Buffer[] | string[] | null, resume: () => void): boolean;
|
215
|
+
/** Invoked when response payload data is received. */
|
216
|
+
onData?(chunk: Buffer): boolean;
|
217
|
+
/** Invoked when response payload and trailers have been received and the request has completed. */
|
218
|
+
onComplete?(trailers: string[] | null): void;
|
219
|
+
/** Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests */
|
220
|
+
onBodySent?(chunkSize: number, totalBytesSent: number): void;
|
221
|
+
}
|
222
|
+
export type PipelineHandler = (data: PipelineHandlerData) => Readable;
|
223
|
+
export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
224
|
+
|
225
|
+
/**
|
226
|
+
* @link https://fetch.spec.whatwg.org/#body-mixin
|
227
|
+
*/
|
228
|
+
interface BodyMixin {
|
229
|
+
readonly body?: never; // throws on node v16.6.0
|
230
|
+
readonly bodyUsed: boolean;
|
231
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
232
|
+
blob(): Promise<Blob>;
|
233
|
+
formData(): Promise<never>;
|
234
|
+
json(): Promise<unknown>;
|
235
|
+
text(): Promise<string>;
|
236
|
+
}
|
237
|
+
|
238
|
+
export interface DispatchInterceptor {
|
239
|
+
(dispatch: Dispatcher['dispatch']): Dispatcher['dispatch']
|
240
|
+
}
|
241
|
+
}
|