rahad-all-downloader 2.1.1
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.res +1 -0
- package/.cache/replit/modules/replit.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 +99 -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/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/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/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 +107 -0
- package/.cache/typescript/5.3/package.json +1 -0
- package/.cache/typescript/5.4/node_modules/.package-lock.json +115 -0
- package/.cache/typescript/5.4/node_modules/@types/body-parser/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/body-parser/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/body-parser/index.d.ts +95 -0
- package/.cache/typescript/5.4/node_modules/@types/body-parser/package.json +58 -0
- package/.cache/typescript/5.4/node_modules/@types/connect/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/connect/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/connect/index.d.ts +91 -0
- package/.cache/typescript/5.4/node_modules/@types/connect/package.json +32 -0
- package/.cache/typescript/5.4/node_modules/@types/express/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/express/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/express/index.d.ts +128 -0
- package/.cache/typescript/5.4/node_modules/@types/express/package.json +45 -0
- package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/index.d.ts +1295 -0
- package/.cache/typescript/5.4/node_modules/@types/express-serve-static-core/package.json +50 -0
- package/.cache/typescript/5.4/node_modules/@types/http-errors/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/http-errors/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/http-errors/index.d.ts +77 -0
- package/.cache/typescript/5.4/node_modules/@types/http-errors/package.json +30 -0
- package/.cache/typescript/5.4/node_modules/@types/mime/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/mime/Mime.d.ts +10 -0
- package/.cache/typescript/5.4/node_modules/@types/mime/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/mime/index.d.ts +31 -0
- package/.cache/typescript/5.4/node_modules/@types/mime/lite.d.ts +7 -0
- package/.cache/typescript/5.4/node_modules/@types/mime/package.json +30 -0
- package/.cache/typescript/5.4/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.4/node_modules/@types/node/assert.d.ts +1040 -0
- package/.cache/typescript/5.4/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/.cache/typescript/5.4/node_modules/@types/node/buffer.d.ts +2363 -0
- package/.cache/typescript/5.4/node_modules/@types/node/child_process.d.ts +1544 -0
- package/.cache/typescript/5.4/node_modules/@types/node/cluster.d.ts +578 -0
- package/.cache/typescript/5.4/node_modules/@types/node/console.d.ts +452 -0
- package/.cache/typescript/5.4/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.4/node_modules/@types/node/crypto.d.ts +4523 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dgram.d.ts +596 -0
- package/.cache/typescript/5.4/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dns/promises.d.ts +474 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dns.d.ts +864 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dom-events.d.ts +124 -0
- package/.cache/typescript/5.4/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.4/node_modules/@types/node/events.d.ts +909 -0
- package/.cache/typescript/5.4/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/.cache/typescript/5.4/node_modules/@types/node/fs.d.ts +4317 -0
- package/.cache/typescript/5.4/node_modules/@types/node/globals.d.ts +411 -0
- package/.cache/typescript/5.4/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.4/node_modules/@types/node/http.d.ts +1908 -0
- package/.cache/typescript/5.4/node_modules/@types/node/http2.d.ts +2418 -0
- package/.cache/typescript/5.4/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.4/node_modules/@types/node/index.d.ts +89 -0
- package/.cache/typescript/5.4/node_modules/@types/node/inspector.d.ts +2746 -0
- package/.cache/typescript/5.4/node_modules/@types/node/module.d.ts +315 -0
- package/.cache/typescript/5.4/node_modules/@types/node/net.d.ts +999 -0
- package/.cache/typescript/5.4/node_modules/@types/node/os.d.ts +495 -0
- package/.cache/typescript/5.4/node_modules/@types/node/package.json +217 -0
- package/.cache/typescript/5.4/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.4/node_modules/@types/node/perf_hooks.d.ts +905 -0
- package/.cache/typescript/5.4/node_modules/@types/node/process.d.ts +1754 -0
- package/.cache/typescript/5.4/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.4/node_modules/@types/node/querystring.d.ts +153 -0
- package/.cache/typescript/5.4/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.4/node_modules/@types/node/readline.d.ts +540 -0
- package/.cache/typescript/5.4/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.4/node_modules/@types/node/sea.d.ts +153 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/web.d.ts +367 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream.d.ts +1707 -0
- package/.cache/typescript/5.4/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.4/node_modules/@types/node/test.d.ts +1718 -0
- package/.cache/typescript/5.4/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/.cache/typescript/5.4/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.4/node_modules/@types/node/tls.d.ts +1217 -0
- package/.cache/typescript/5.4/node_modules/@types/node/trace_events.d.ts +197 -0
- package/.cache/typescript/5.4/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.4/node_modules/@types/node/url.d.ts +952 -0
- package/.cache/typescript/5.4/node_modules/@types/node/util.d.ts +2292 -0
- package/.cache/typescript/5.4/node_modules/@types/node/v8.d.ts +808 -0
- package/.cache/typescript/5.4/node_modules/@types/node/vm.d.ts +924 -0
- package/.cache/typescript/5.4/node_modules/@types/node/wasi.d.ts +181 -0
- package/.cache/typescript/5.4/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.4/node_modules/@types/node/zlib.d.ts +530 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.4/node_modules/@types/range-parser/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/range-parser/README.md +53 -0
- package/.cache/typescript/5.4/node_modules/@types/range-parser/index.d.ts +34 -0
- package/.cache/typescript/5.4/node_modules/@types/range-parser/package.json +25 -0
- package/.cache/typescript/5.4/node_modules/@types/send/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/send/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/send/index.d.ts +225 -0
- package/.cache/typescript/5.4/node_modules/@types/send/package.json +33 -0
- package/.cache/typescript/5.4/node_modules/@types/serve-static/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/serve-static/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/serve-static/index.d.ts +107 -0
- package/.cache/typescript/5.4/node_modules/@types/serve-static/package.json +39 -0
- package/.cache/typescript/5.4/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.4/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.4/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.4/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.4/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.4/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.4/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.4/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.4/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.4/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.4/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.4/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.4/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.4/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.4/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.4/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.4/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.4/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.4/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.4/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.4/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.4/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.4/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.4/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.4/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.4/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.4/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.4/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.4/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.4/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.4/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.4/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.4/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.4/package-lock.json +124 -0
- package/.cache/typescript/5.4/package.json +1 -0
- package/.replit +21 -0
- package/.upm/store.json +1 -0
- package/README.md +71 -0
- package/index.js +1 -0
- package/package.json +40 -0
- package/replit.nix +3 -0
@@ -0,0 +1,191 @@
|
|
1
|
+
/**
|
2
|
+
* The `node:diagnostics_channel` module provides an API to create named channels
|
3
|
+
* to report arbitrary message data for diagnostics purposes.
|
4
|
+
*
|
5
|
+
* It can be accessed using:
|
6
|
+
*
|
7
|
+
* ```js
|
8
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
9
|
+
* ```
|
10
|
+
*
|
11
|
+
* It is intended that a module writer wanting to report diagnostics messages
|
12
|
+
* will create one or many top-level channels to report messages through.
|
13
|
+
* Channels may also be acquired at runtime but it is not encouraged
|
14
|
+
* due to the additional overhead of doing so. Channels may be exported for
|
15
|
+
* convenience, but as long as the name is known it can be acquired anywhere.
|
16
|
+
*
|
17
|
+
* If you intend for your module to produce diagnostics data for others to
|
18
|
+
* consume it is recommended that you include documentation of what named
|
19
|
+
* channels are used along with the shape of the message data. Channel names
|
20
|
+
* should generally include the module name to avoid collisions with data from
|
21
|
+
* other modules.
|
22
|
+
* @since v15.1.0, v14.17.0
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/diagnostics_channel.js)
|
24
|
+
*/
|
25
|
+
declare module "diagnostics_channel" {
|
26
|
+
/**
|
27
|
+
* Check if there are active subscribers to the named channel. This is helpful if
|
28
|
+
* the message you want to send might be expensive to prepare.
|
29
|
+
*
|
30
|
+
* This API is optional but helpful when trying to publish messages from very
|
31
|
+
* performance-sensitive code.
|
32
|
+
*
|
33
|
+
* ```js
|
34
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
35
|
+
*
|
36
|
+
* if (diagnostics_channel.hasSubscribers('my-channel')) {
|
37
|
+
* // There are subscribers, prepare and publish message
|
38
|
+
* }
|
39
|
+
* ```
|
40
|
+
* @since v15.1.0, v14.17.0
|
41
|
+
* @param name The channel name
|
42
|
+
* @return If there are active subscribers
|
43
|
+
*/
|
44
|
+
function hasSubscribers(name: string | symbol): boolean;
|
45
|
+
/**
|
46
|
+
* This is the primary entry-point for anyone wanting to publish to a named
|
47
|
+
* channel. It produces a channel object which is optimized to reduce overhead at
|
48
|
+
* publish time as much as possible.
|
49
|
+
*
|
50
|
+
* ```js
|
51
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
52
|
+
*
|
53
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
54
|
+
* ```
|
55
|
+
* @since v15.1.0, v14.17.0
|
56
|
+
* @param name The channel name
|
57
|
+
* @return The named channel object
|
58
|
+
*/
|
59
|
+
function channel(name: string | symbol): Channel;
|
60
|
+
type ChannelListener = (message: unknown, name: string | symbol) => void;
|
61
|
+
/**
|
62
|
+
* Register a message handler to subscribe to this channel. This message handler
|
63
|
+
* will be run synchronously whenever a message is published to the channel. Any
|
64
|
+
* errors thrown in the message handler will trigger an `'uncaughtException'`.
|
65
|
+
*
|
66
|
+
* ```js
|
67
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
68
|
+
*
|
69
|
+
* diagnostics_channel.subscribe('my-channel', (message, name) => {
|
70
|
+
* // Received data
|
71
|
+
* });
|
72
|
+
* ```
|
73
|
+
* @since v18.7.0, v16.17.0
|
74
|
+
* @param name The channel name
|
75
|
+
* @param onMessage The handler to receive channel messages
|
76
|
+
*/
|
77
|
+
function subscribe(name: string | symbol, onMessage: ChannelListener): void;
|
78
|
+
/**
|
79
|
+
* Remove a message handler previously registered to this channel with {@link subscribe}.
|
80
|
+
*
|
81
|
+
* ```js
|
82
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
83
|
+
*
|
84
|
+
* function onMessage(message, name) {
|
85
|
+
* // Received data
|
86
|
+
* }
|
87
|
+
*
|
88
|
+
* diagnostics_channel.subscribe('my-channel', onMessage);
|
89
|
+
*
|
90
|
+
* diagnostics_channel.unsubscribe('my-channel', onMessage);
|
91
|
+
* ```
|
92
|
+
* @since v18.7.0, v16.17.0
|
93
|
+
* @param name The channel name
|
94
|
+
* @param onMessage The previous subscribed handler to remove
|
95
|
+
* @return `true` if the handler was found, `false` otherwise.
|
96
|
+
*/
|
97
|
+
function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean;
|
98
|
+
/**
|
99
|
+
* The class `Channel` represents an individual named channel within the data
|
100
|
+
* pipeline. It is used to track subscribers and to publish messages when there
|
101
|
+
* are subscribers present. It exists as a separate object to avoid channel
|
102
|
+
* lookups at publish time, enabling very fast publish speeds and allowing
|
103
|
+
* for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly
|
104
|
+
* with `new Channel(name)` is not supported.
|
105
|
+
* @since v15.1.0, v14.17.0
|
106
|
+
*/
|
107
|
+
class Channel {
|
108
|
+
readonly name: string | symbol;
|
109
|
+
/**
|
110
|
+
* Check if there are active subscribers to this channel. This is helpful if
|
111
|
+
* the message you want to send might be expensive to prepare.
|
112
|
+
*
|
113
|
+
* This API is optional but helpful when trying to publish messages from very
|
114
|
+
* performance-sensitive code.
|
115
|
+
*
|
116
|
+
* ```js
|
117
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
118
|
+
*
|
119
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
120
|
+
*
|
121
|
+
* if (channel.hasSubscribers) {
|
122
|
+
* // There are subscribers, prepare and publish message
|
123
|
+
* }
|
124
|
+
* ```
|
125
|
+
* @since v15.1.0, v14.17.0
|
126
|
+
*/
|
127
|
+
readonly hasSubscribers: boolean;
|
128
|
+
private constructor(name: string | symbol);
|
129
|
+
/**
|
130
|
+
* Publish a message to any subscribers to the channel. This will trigger
|
131
|
+
* message handlers synchronously so they will execute within the same context.
|
132
|
+
*
|
133
|
+
* ```js
|
134
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
135
|
+
*
|
136
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
137
|
+
*
|
138
|
+
* channel.publish({
|
139
|
+
* some: 'message',
|
140
|
+
* });
|
141
|
+
* ```
|
142
|
+
* @since v15.1.0, v14.17.0
|
143
|
+
* @param message The message to send to the channel subscribers
|
144
|
+
*/
|
145
|
+
publish(message: unknown): void;
|
146
|
+
/**
|
147
|
+
* Register a message handler to subscribe to this channel. This message handler
|
148
|
+
* will be run synchronously whenever a message is published to the channel. Any
|
149
|
+
* errors thrown in the message handler will trigger an `'uncaughtException'`.
|
150
|
+
*
|
151
|
+
* ```js
|
152
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
153
|
+
*
|
154
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
155
|
+
*
|
156
|
+
* channel.subscribe((message, name) => {
|
157
|
+
* // Received data
|
158
|
+
* });
|
159
|
+
* ```
|
160
|
+
* @since v15.1.0, v14.17.0
|
161
|
+
* @deprecated Since v18.7.0,v16.17.0 - Use {@link subscribe(name, onMessage)}
|
162
|
+
* @param onMessage The handler to receive channel messages
|
163
|
+
*/
|
164
|
+
subscribe(onMessage: ChannelListener): void;
|
165
|
+
/**
|
166
|
+
* Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`.
|
167
|
+
*
|
168
|
+
* ```js
|
169
|
+
* import diagnostics_channel from 'node:diagnostics_channel';
|
170
|
+
*
|
171
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
172
|
+
*
|
173
|
+
* function onMessage(message, name) {
|
174
|
+
* // Received data
|
175
|
+
* }
|
176
|
+
*
|
177
|
+
* channel.subscribe(onMessage);
|
178
|
+
*
|
179
|
+
* channel.unsubscribe(onMessage);
|
180
|
+
* ```
|
181
|
+
* @since v15.1.0, v14.17.0
|
182
|
+
* @deprecated Since v18.7.0,v16.17.0 - Use {@link unsubscribe(name, onMessage)}
|
183
|
+
* @param onMessage The previous subscribed handler to remove
|
184
|
+
* @return `true` if the handler was found, `false` otherwise.
|
185
|
+
*/
|
186
|
+
unsubscribe(onMessage: ChannelListener): void;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
declare module "node:diagnostics_channel" {
|
190
|
+
export * from "diagnostics_channel";
|
191
|
+
}
|
@@ -0,0 +1,425 @@
|
|
1
|
+
/**
|
2
|
+
* The `dns.promises` API provides an alternative set of asynchronous DNS methods
|
3
|
+
* that return `Promise` objects rather than using callbacks. The API is accessible
|
4
|
+
* via `require('node:dns').promises` or `require('node:dns/promises')`.
|
5
|
+
* @since v10.6.0
|
6
|
+
*/
|
7
|
+
declare module "dns/promises" {
|
8
|
+
import {
|
9
|
+
AnyRecord,
|
10
|
+
CaaRecord,
|
11
|
+
LookupAddress,
|
12
|
+
LookupAllOptions,
|
13
|
+
LookupOneOptions,
|
14
|
+
LookupOptions,
|
15
|
+
MxRecord,
|
16
|
+
NaptrRecord,
|
17
|
+
RecordWithTtl,
|
18
|
+
ResolveOptions,
|
19
|
+
ResolverOptions,
|
20
|
+
ResolveWithTtlOptions,
|
21
|
+
SoaRecord,
|
22
|
+
SrvRecord,
|
23
|
+
} from "node:dns";
|
24
|
+
/**
|
25
|
+
* Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
|
26
|
+
* that are currently configured for DNS resolution. A string will include a port
|
27
|
+
* section if a custom port is used.
|
28
|
+
*
|
29
|
+
* ```js
|
30
|
+
* [
|
31
|
+
* '4.4.4.4',
|
32
|
+
* '2001:4860:4860::8888',
|
33
|
+
* '4.4.4.4:1053',
|
34
|
+
* '[2001:4860:4860::8888]:1053',
|
35
|
+
* ]
|
36
|
+
* ```
|
37
|
+
* @since v10.6.0
|
38
|
+
*/
|
39
|
+
function getServers(): string[];
|
40
|
+
/**
|
41
|
+
* Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or
|
42
|
+
* AAAA (IPv6) record. All `option` properties are optional. If `options` is an
|
43
|
+
* integer, then it must be `4` or `6` – if `options` is not provided, then IPv4
|
44
|
+
* and IPv6 addresses are both returned if found.
|
45
|
+
*
|
46
|
+
* With the `all` option set to `true`, the `Promise` is resolved with `addresses`being an array of objects with the properties `address` and `family`.
|
47
|
+
*
|
48
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code.
|
49
|
+
* Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
|
50
|
+
* the host name does not exist but also when the lookup fails in other ways
|
51
|
+
* such as no available file descriptors.
|
52
|
+
*
|
53
|
+
* `dnsPromises.lookup()` does not necessarily have anything to do with the DNS
|
54
|
+
* protocol. The implementation uses an operating system facility that can
|
55
|
+
* associate names with addresses and vice versa. This implementation can have
|
56
|
+
* subtle but important consequences on the behavior of any Node.js program. Please
|
57
|
+
* take some time to consult the `Implementation considerations section` before
|
58
|
+
* using `dnsPromises.lookup()`.
|
59
|
+
*
|
60
|
+
* Example usage:
|
61
|
+
*
|
62
|
+
* ```js
|
63
|
+
* const dns = require('node:dns');
|
64
|
+
* const dnsPromises = dns.promises;
|
65
|
+
* const options = {
|
66
|
+
* family: 6,
|
67
|
+
* hints: dns.ADDRCONFIG | dns.V4MAPPED,
|
68
|
+
* };
|
69
|
+
*
|
70
|
+
* dnsPromises.lookup('example.com', options).then((result) => {
|
71
|
+
* console.log('address: %j family: IPv%s', result.address, result.family);
|
72
|
+
* // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6
|
73
|
+
* });
|
74
|
+
*
|
75
|
+
* // When options.all is true, the result will be an Array.
|
76
|
+
* options.all = true;
|
77
|
+
* dnsPromises.lookup('example.com', options).then((result) => {
|
78
|
+
* console.log('addresses: %j', result);
|
79
|
+
* // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
|
80
|
+
* });
|
81
|
+
* ```
|
82
|
+
* @since v10.6.0
|
83
|
+
*/
|
84
|
+
function lookup(hostname: string, family: number): Promise<LookupAddress>;
|
85
|
+
function lookup(hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
|
86
|
+
function lookup(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
|
87
|
+
function lookup(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
|
88
|
+
function lookup(hostname: string): Promise<LookupAddress>;
|
89
|
+
/**
|
90
|
+
* Resolves the given `address` and `port` into a host name and service using
|
91
|
+
* the operating system's underlying `getnameinfo` implementation.
|
92
|
+
*
|
93
|
+
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
94
|
+
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown.
|
95
|
+
*
|
96
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code.
|
97
|
+
*
|
98
|
+
* ```js
|
99
|
+
* const dnsPromises = require('node:dns').promises;
|
100
|
+
* dnsPromises.lookupService('127.0.0.1', 22).then((result) => {
|
101
|
+
* console.log(result.hostname, result.service);
|
102
|
+
* // Prints: localhost ssh
|
103
|
+
* });
|
104
|
+
* ```
|
105
|
+
* @since v10.6.0
|
106
|
+
*/
|
107
|
+
function lookupService(
|
108
|
+
address: string,
|
109
|
+
port: number,
|
110
|
+
): Promise<{
|
111
|
+
hostname: string;
|
112
|
+
service: string;
|
113
|
+
}>;
|
114
|
+
/**
|
115
|
+
* Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
|
116
|
+
* of the resource records. When successful, the `Promise` is resolved with an
|
117
|
+
* array of resource records. The type and structure of individual results vary
|
118
|
+
* based on `rrtype`:
|
119
|
+
*
|
120
|
+
* <omitted>
|
121
|
+
*
|
122
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
|
123
|
+
* @since v10.6.0
|
124
|
+
* @param hostname Host name to resolve.
|
125
|
+
* @param [rrtype='A'] Resource record type.
|
126
|
+
*/
|
127
|
+
function resolve(hostname: string): Promise<string[]>;
|
128
|
+
function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
|
129
|
+
function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
|
130
|
+
function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
|
131
|
+
function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
|
132
|
+
function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
|
133
|
+
function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
|
134
|
+
function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
|
135
|
+
function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
|
136
|
+
function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
|
137
|
+
function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
|
138
|
+
function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
|
139
|
+
function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
|
140
|
+
function resolve(
|
141
|
+
hostname: string,
|
142
|
+
rrtype: string,
|
143
|
+
): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
|
144
|
+
/**
|
145
|
+
* Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv4
|
146
|
+
* addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
|
147
|
+
* @since v10.6.0
|
148
|
+
* @param hostname Host name to resolve.
|
149
|
+
*/
|
150
|
+
function resolve4(hostname: string): Promise<string[]>;
|
151
|
+
function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
152
|
+
function resolve4(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
153
|
+
/**
|
154
|
+
* Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv6
|
155
|
+
* addresses.
|
156
|
+
* @since v10.6.0
|
157
|
+
* @param hostname Host name to resolve.
|
158
|
+
*/
|
159
|
+
function resolve6(hostname: string): Promise<string[]>;
|
160
|
+
function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
|
161
|
+
function resolve6(hostname: string, options: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
|
162
|
+
/**
|
163
|
+
* Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
|
164
|
+
* On success, the `Promise` is resolved with an array containing various types of
|
165
|
+
* records. Each object has a property `type` that indicates the type of the
|
166
|
+
* current record. And depending on the `type`, additional properties will be
|
167
|
+
* present on the object:
|
168
|
+
*
|
169
|
+
* <omitted>
|
170
|
+
*
|
171
|
+
* Here is an example of the result object:
|
172
|
+
*
|
173
|
+
* ```js
|
174
|
+
* [ { type: 'A', address: '127.0.0.1', ttl: 299 },
|
175
|
+
* { type: 'CNAME', value: 'example.com' },
|
176
|
+
* { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
|
177
|
+
* { type: 'NS', value: 'ns1.example.com' },
|
178
|
+
* { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
|
179
|
+
* { type: 'SOA',
|
180
|
+
* nsname: 'ns1.example.com',
|
181
|
+
* hostmaster: 'admin.example.com',
|
182
|
+
* serial: 156696742,
|
183
|
+
* refresh: 900,
|
184
|
+
* retry: 900,
|
185
|
+
* expire: 1800,
|
186
|
+
* minttl: 60 } ]
|
187
|
+
* ```
|
188
|
+
* @since v10.6.0
|
189
|
+
*/
|
190
|
+
function resolveAny(hostname: string): Promise<AnyRecord[]>;
|
191
|
+
/**
|
192
|
+
* Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success,
|
193
|
+
* the `Promise` is resolved with an array of objects containing available
|
194
|
+
* certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`).
|
195
|
+
* @since v15.0.0, v14.17.0
|
196
|
+
*/
|
197
|
+
function resolveCaa(hostname: string): Promise<CaaRecord[]>;
|
198
|
+
/**
|
199
|
+
* Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success,
|
200
|
+
* the `Promise` is resolved with an array of canonical name records available for
|
201
|
+
* the `hostname` (e.g. `['bar.example.com']`).
|
202
|
+
* @since v10.6.0
|
203
|
+
*/
|
204
|
+
function resolveCname(hostname: string): Promise<string[]>;
|
205
|
+
/**
|
206
|
+
* Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects
|
207
|
+
* containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`).
|
208
|
+
* @since v10.6.0
|
209
|
+
*/
|
210
|
+
function resolveMx(hostname: string): Promise<MxRecord[]>;
|
211
|
+
/**
|
212
|
+
* Uses the DNS protocol to resolve regular expression-based records (`NAPTR`records) for the `hostname`. On success, the `Promise` is resolved with an array
|
213
|
+
* of objects with the following properties:
|
214
|
+
*
|
215
|
+
* * `flags`
|
216
|
+
* * `service`
|
217
|
+
* * `regexp`
|
218
|
+
* * `replacement`
|
219
|
+
* * `order`
|
220
|
+
* * `preference`
|
221
|
+
*
|
222
|
+
* ```js
|
223
|
+
* {
|
224
|
+
* flags: 's',
|
225
|
+
* service: 'SIP+D2U',
|
226
|
+
* regexp: '',
|
227
|
+
* replacement: '_sip._udp.example.com',
|
228
|
+
* order: 30,
|
229
|
+
* preference: 100
|
230
|
+
* }
|
231
|
+
* ```
|
232
|
+
* @since v10.6.0
|
233
|
+
*/
|
234
|
+
function resolveNaptr(hostname: string): Promise<NaptrRecord[]>;
|
235
|
+
/**
|
236
|
+
* Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. On success, the `Promise` is resolved with an array of name server
|
237
|
+
* records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`).
|
238
|
+
* @since v10.6.0
|
239
|
+
*/
|
240
|
+
function resolveNs(hostname: string): Promise<string[]>;
|
241
|
+
/**
|
242
|
+
* Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. On success, the `Promise` is resolved with an array of strings
|
243
|
+
* containing the reply records.
|
244
|
+
* @since v10.6.0
|
245
|
+
*/
|
246
|
+
function resolvePtr(hostname: string): Promise<string[]>;
|
247
|
+
/**
|
248
|
+
* Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
|
249
|
+
* the `hostname`. On success, the `Promise` is resolved with an object with the
|
250
|
+
* following properties:
|
251
|
+
*
|
252
|
+
* * `nsname`
|
253
|
+
* * `hostmaster`
|
254
|
+
* * `serial`
|
255
|
+
* * `refresh`
|
256
|
+
* * `retry`
|
257
|
+
* * `expire`
|
258
|
+
* * `minttl`
|
259
|
+
*
|
260
|
+
* ```js
|
261
|
+
* {
|
262
|
+
* nsname: 'ns.example.com',
|
263
|
+
* hostmaster: 'root.example.com',
|
264
|
+
* serial: 2013101809,
|
265
|
+
* refresh: 10000,
|
266
|
+
* retry: 2400,
|
267
|
+
* expire: 604800,
|
268
|
+
* minttl: 3600
|
269
|
+
* }
|
270
|
+
* ```
|
271
|
+
* @since v10.6.0
|
272
|
+
*/
|
273
|
+
function resolveSoa(hostname: string): Promise<SoaRecord>;
|
274
|
+
/**
|
275
|
+
* Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects with
|
276
|
+
* the following properties:
|
277
|
+
*
|
278
|
+
* * `priority`
|
279
|
+
* * `weight`
|
280
|
+
* * `port`
|
281
|
+
* * `name`
|
282
|
+
*
|
283
|
+
* ```js
|
284
|
+
* {
|
285
|
+
* priority: 10,
|
286
|
+
* weight: 5,
|
287
|
+
* port: 21223,
|
288
|
+
* name: 'service.example.com'
|
289
|
+
* }
|
290
|
+
* ```
|
291
|
+
* @since v10.6.0
|
292
|
+
*/
|
293
|
+
function resolveSrv(hostname: string): Promise<SrvRecord[]>;
|
294
|
+
/**
|
295
|
+
* Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. On success, the `Promise` is resolved with a two-dimensional array
|
296
|
+
* of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
|
297
|
+
* one record. Depending on the use case, these could be either joined together or
|
298
|
+
* treated separately.
|
299
|
+
* @since v10.6.0
|
300
|
+
*/
|
301
|
+
function resolveTxt(hostname: string): Promise<string[][]>;
|
302
|
+
/**
|
303
|
+
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
304
|
+
* array of host names.
|
305
|
+
*
|
306
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
|
307
|
+
* @since v10.6.0
|
308
|
+
*/
|
309
|
+
function reverse(ip: string): Promise<string[]>;
|
310
|
+
/**
|
311
|
+
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
|
312
|
+
*
|
313
|
+
* * `ipv4first`: for `verbatim` defaulting to `false`.
|
314
|
+
* * `verbatim`: for `verbatim` defaulting to `true`.
|
315
|
+
* @since v20.1.0
|
316
|
+
*/
|
317
|
+
function getDefaultResultOrder(): "ipv4first" | "verbatim";
|
318
|
+
/**
|
319
|
+
* Sets the IP address and port of servers to be used when performing DNS
|
320
|
+
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
|
321
|
+
* addresses. If the port is the IANA default DNS port (53) it can be omitted.
|
322
|
+
*
|
323
|
+
* ```js
|
324
|
+
* dnsPromises.setServers([
|
325
|
+
* '4.4.4.4',
|
326
|
+
* '[2001:4860:4860::8888]',
|
327
|
+
* '4.4.4.4:1053',
|
328
|
+
* '[2001:4860:4860::8888]:1053',
|
329
|
+
* ]);
|
330
|
+
* ```
|
331
|
+
*
|
332
|
+
* An error will be thrown if an invalid address is provided.
|
333
|
+
*
|
334
|
+
* The `dnsPromises.setServers()` method must not be called while a DNS query is in
|
335
|
+
* progress.
|
336
|
+
*
|
337
|
+
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
338
|
+
* That is, if attempting to resolve with the first server provided results in a`NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
|
339
|
+
* subsequent servers provided. Fallback DNS servers will only be used if the
|
340
|
+
* earlier ones time out or result in some other error.
|
341
|
+
* @since v10.6.0
|
342
|
+
* @param servers array of `RFC 5952` formatted addresses
|
343
|
+
*/
|
344
|
+
function setServers(servers: readonly string[]): void;
|
345
|
+
/**
|
346
|
+
* Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be:
|
347
|
+
*
|
348
|
+
* * `ipv4first`: sets default `verbatim` `false`.
|
349
|
+
* * `verbatim`: sets default `verbatim` `true`.
|
350
|
+
*
|
351
|
+
* The default is `verbatim` and `dnsPromises.setDefaultResultOrder()` have
|
352
|
+
* higher priority than `--dns-result-order`. When using `worker threads`,`dnsPromises.setDefaultResultOrder()` from the main thread won't affect the
|
353
|
+
* default dns orders in workers.
|
354
|
+
* @since v16.4.0, v14.18.0
|
355
|
+
* @param order must be `'ipv4first'` or `'verbatim'`.
|
356
|
+
*/
|
357
|
+
function setDefaultResultOrder(order: "ipv4first" | "verbatim"): void;
|
358
|
+
/**
|
359
|
+
* An independent resolver for DNS requests.
|
360
|
+
*
|
361
|
+
* Creating a new resolver uses the default server settings. Setting
|
362
|
+
* the servers used for a resolver using `resolver.setServers()` does not affect
|
363
|
+
* other resolvers:
|
364
|
+
*
|
365
|
+
* ```js
|
366
|
+
* const { Resolver } = require('node:dns').promises;
|
367
|
+
* const resolver = new Resolver();
|
368
|
+
* resolver.setServers(['4.4.4.4']);
|
369
|
+
*
|
370
|
+
* // This request will use the server at 4.4.4.4, independent of global settings.
|
371
|
+
* resolver.resolve4('example.org').then((addresses) => {
|
372
|
+
* // ...
|
373
|
+
* });
|
374
|
+
*
|
375
|
+
* // Alternatively, the same code can be written using async-await style.
|
376
|
+
* (async function() {
|
377
|
+
* const addresses = await resolver.resolve4('example.org');
|
378
|
+
* })();
|
379
|
+
* ```
|
380
|
+
*
|
381
|
+
* The following methods from the `dnsPromises` API are available:
|
382
|
+
*
|
383
|
+
* * `resolver.getServers()`
|
384
|
+
* * `resolver.resolve()`
|
385
|
+
* * `resolver.resolve4()`
|
386
|
+
* * `resolver.resolve6()`
|
387
|
+
* * `resolver.resolveAny()`
|
388
|
+
* * `resolver.resolveCaa()`
|
389
|
+
* * `resolver.resolveCname()`
|
390
|
+
* * `resolver.resolveMx()`
|
391
|
+
* * `resolver.resolveNaptr()`
|
392
|
+
* * `resolver.resolveNs()`
|
393
|
+
* * `resolver.resolvePtr()`
|
394
|
+
* * `resolver.resolveSoa()`
|
395
|
+
* * `resolver.resolveSrv()`
|
396
|
+
* * `resolver.resolveTxt()`
|
397
|
+
* * `resolver.reverse()`
|
398
|
+
* * `resolver.setServers()`
|
399
|
+
* @since v10.6.0
|
400
|
+
*/
|
401
|
+
class Resolver {
|
402
|
+
constructor(options?: ResolverOptions);
|
403
|
+
cancel(): void;
|
404
|
+
getServers: typeof getServers;
|
405
|
+
resolve: typeof resolve;
|
406
|
+
resolve4: typeof resolve4;
|
407
|
+
resolve6: typeof resolve6;
|
408
|
+
resolveAny: typeof resolveAny;
|
409
|
+
resolveCaa: typeof resolveCaa;
|
410
|
+
resolveCname: typeof resolveCname;
|
411
|
+
resolveMx: typeof resolveMx;
|
412
|
+
resolveNaptr: typeof resolveNaptr;
|
413
|
+
resolveNs: typeof resolveNs;
|
414
|
+
resolvePtr: typeof resolvePtr;
|
415
|
+
resolveSoa: typeof resolveSoa;
|
416
|
+
resolveSrv: typeof resolveSrv;
|
417
|
+
resolveTxt: typeof resolveTxt;
|
418
|
+
reverse: typeof reverse;
|
419
|
+
setLocalAddress(ipv4?: string, ipv6?: string): void;
|
420
|
+
setServers: typeof setServers;
|
421
|
+
}
|
422
|
+
}
|
423
|
+
declare module "node:dns/promises" {
|
424
|
+
export * from "dns/promises";
|
425
|
+
}
|