cloudstructs 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/assets/slack-textract/detect.lambda/index.js +14 -9
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/email-receiver/whitelist.lambda.js +2 -3
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/provider.lambda.js +2 -3
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/events.lambda.js +2 -3
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-events/signature.js +2 -3
- package/lib/slack-textract/detect.lambda.js +2 -3
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/analyze.lambda.js +2 -3
- package/lib/ssl-server-test/extract-grade.lambda.js +2 -3
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/state-machine-cr-provider/runtime/http.js +3 -3
- package/lib/state-machine-cr-provider/runtime/index.js +5 -5
- package/lib/static-website/index.js +1 -1
- package/lib/static-website/origin-request.edge-lambda.js +2 -3
- package/lib/toolkit-cleaner/clean-images.lambda.js +2 -3
- package/lib/toolkit-cleaner/clean-objects.lambda.js +2 -3
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +2 -3
- package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/lib/url-shortener/redirect.edge-lambda.js +2 -3
- package/lib/url-shortener/shortener.lambda.js +2 -3
- package/node_modules/@babel/runtime/helpers/extends.js +2 -2
- package/node_modules/@babel/runtime/helpers/get.js +2 -2
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +2 -2
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +2 -2
- package/node_modules/@babel/runtime/helpers/typeof.js +2 -2
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +2 -2
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +47 -48
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +13 -0
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +35 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +18 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +47 -48
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +13 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +35 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +18 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +178 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +378 -101
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +19 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/balanced-pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/client.d.ts +12 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/diagnostics-channel.d.ts +1 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/dispatcher.d.ts +18 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/errors.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts +25 -25
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/formdata.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts +10 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-interceptor.d.ts +4 -4
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/package.json +1 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/proxy-agent.d.ts +0 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/readable.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts +10 -8
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/websocket.d.ts +22 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +178 -19
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +378 -101
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -2
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +19 -2
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +152 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +178 -19
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +378 -101
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -2
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +19 -2
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -7
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +152 -0
- package/node_modules/axios/CHANGELOG.md +16 -0
- package/node_modules/axios/README.md +6 -57
- package/node_modules/axios/dist/axios.js +29 -22
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +17 -10
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +17 -10
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +18 -11
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +4 -1
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/core/AxiosError.js +5 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/node_modules/axios/lib/platform/common/utils.js +5 -4
- package/node_modules/axios/package.json +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +4 -2
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +4 -2
- package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +4 -2
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.js +4 -2
- package/node_modules/foreground-child/dist/esm/index.js.map +1 -1
- package/node_modules/foreground-child/package.json +1 -1
- package/node_modules/juice/package.json +3 -3
- package/node_modules/uglify-js/bin/uglifyjs +6 -3
- package/node_modules/uglify-js/lib/compress.js +117 -75
- package/node_modules/uglify-js/lib/minify.js +4 -3
- package/node_modules/uglify-js/lib/output.js +16 -5
- package/node_modules/uglify-js/package.json +1 -1
- package/node_modules/uglify-js/tools/node.js +6 -1
- package/package.json +18 -18
- package/node_modules/undici-types/handlers.d.ts +0 -9
- package/node_modules/undici-types/interceptors.d.ts +0 -5
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/connector.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/filereader.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/header.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/patch.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool-stats.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Clusters of Node.js processes can be used to run multiple instances of Node.js
|
|
3
3
|
* that can distribute workloads among their application threads. When process isolation
|
|
4
|
-
* is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-
|
|
4
|
+
* is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html)
|
|
5
5
|
* module instead, which allows running multiple application threads within a single Node.js instance.
|
|
6
6
|
*
|
|
7
7
|
* The cluster module allows easy creation of child processes that all share
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
52
|
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
|
53
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
53
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/cluster.js)
|
|
54
54
|
*/
|
|
55
55
|
declare module "cluster" {
|
|
56
56
|
import * as child from "node:child_process";
|
|
@@ -80,8 +80,8 @@ declare module "cluster" {
|
|
|
80
80
|
silent?: boolean | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must
|
|
83
|
-
* contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-
|
|
84
|
-
* [`stdio`](https://nodejs.org/docs/latest-
|
|
83
|
+
* contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processspawncommand-args-options)'s
|
|
84
|
+
* [`stdio`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#optionsstdio).
|
|
85
85
|
*/
|
|
86
86
|
stdio?: any[] | undefined;
|
|
87
87
|
/**
|
|
@@ -99,7 +99,7 @@ declare module "cluster" {
|
|
|
99
99
|
inspectPort?: number | (() => number) | undefined;
|
|
100
100
|
/**
|
|
101
101
|
* Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`.
|
|
102
|
-
* See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-
|
|
102
|
+
* See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#advanced-serialization) for more details.
|
|
103
103
|
* @default false
|
|
104
104
|
*/
|
|
105
105
|
serialization?: SerializationType | undefined;
|
|
@@ -142,10 +142,10 @@ declare module "cluster" {
|
|
|
142
142
|
*/
|
|
143
143
|
id: number;
|
|
144
144
|
/**
|
|
145
|
-
* All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-
|
|
145
|
+
* All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object
|
|
146
146
|
* from this function is stored as `.process`. In a worker, the global `process` is stored.
|
|
147
147
|
*
|
|
148
|
-
* See: [Child Process module](https://nodejs.org/docs/latest-
|
|
148
|
+
* See: [Child Process module](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processforkmodulepath-args-options).
|
|
149
149
|
*
|
|
150
150
|
* Workers will call `process.exit(0)` if the `'disconnect'` event occurs
|
|
151
151
|
* on `process` and `.exitedAfterDisconnect` is not `true`. This protects against
|
|
@@ -156,7 +156,7 @@ declare module "cluster" {
|
|
|
156
156
|
/**
|
|
157
157
|
* Send a message to a worker or primary, optionally with a handle.
|
|
158
158
|
*
|
|
159
|
-
* In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-
|
|
159
|
+
* In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback).
|
|
160
160
|
*
|
|
161
161
|
* In a worker, this sends a message to the primary. It is identical to `process.send()`.
|
|
162
162
|
*
|
|
@@ -198,7 +198,7 @@ declare module "cluster" {
|
|
|
198
198
|
* This method is aliased as `worker.destroy()` for backwards compatibility.
|
|
199
199
|
*
|
|
200
200
|
* In a worker, `process.kill()` exists, but it is not this function;
|
|
201
|
-
* it is [`kill()`](https://nodejs.org/docs/latest-
|
|
201
|
+
* it is [`kill()`](https://nodejs.org/docs/latest-v22.x/api/process.html#processkillpid-signal).
|
|
202
202
|
* @since v0.9.12
|
|
203
203
|
* @param [signal='SIGTERM'] Name of the kill signal to send to the worker process.
|
|
204
204
|
*/
|
|
@@ -411,7 +411,7 @@ declare module "cluster" {
|
|
|
411
411
|
readonly isWorker: boolean;
|
|
412
412
|
/**
|
|
413
413
|
* The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a
|
|
414
|
-
* global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
414
|
+
* global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clustersetupprimarysettings)
|
|
415
415
|
* is called, whichever comes first.
|
|
416
416
|
*
|
|
417
417
|
* `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute
|
|
@@ -422,24 +422,24 @@ declare module "cluster" {
|
|
|
422
422
|
*/
|
|
423
423
|
schedulingPolicy: number;
|
|
424
424
|
/**
|
|
425
|
-
* After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
426
|
-
* (or [`.fork()`](https://nodejs.org/docs/latest-
|
|
425
|
+
* After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clustersetupprimarysettings)
|
|
426
|
+
* (or [`.fork()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clusterforkenv)) this settings object will contain
|
|
427
427
|
* the settings, including the default values.
|
|
428
428
|
*
|
|
429
429
|
* This object is not intended to be changed or set manually.
|
|
430
430
|
* @since v0.7.1
|
|
431
431
|
*/
|
|
432
432
|
readonly settings: ClusterSettings;
|
|
433
|
-
/** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
433
|
+
/** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clustersetupprimarysettings) instead. */
|
|
434
434
|
setupMaster(settings?: ClusterSettings): void;
|
|
435
435
|
/**
|
|
436
436
|
* `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`.
|
|
437
437
|
*
|
|
438
|
-
* Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-
|
|
438
|
+
* Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clusterforkenv)
|
|
439
439
|
* and have no effect on workers that are already running.
|
|
440
440
|
*
|
|
441
441
|
* The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to
|
|
442
|
-
* [`.fork()`](https://nodejs.org/docs/latest-
|
|
442
|
+
* [`.fork()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clusterforkenv).
|
|
443
443
|
*
|
|
444
444
|
* The defaults above apply to the first call only; the defaults for later calls are the current values at the time of
|
|
445
445
|
* `cluster.setupPrimary()` is called.
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* The module exports two specific components:
|
|
6
6
|
*
|
|
7
7
|
* * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream.
|
|
8
|
-
* * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-
|
|
9
|
-
* [`process.stderr`](https://nodejs.org/docs/latest-
|
|
8
|
+
* * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdout) and
|
|
9
|
+
* [`process.stderr`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstderr). The global `console` can be used without calling `require('node:console')`.
|
|
10
10
|
*
|
|
11
11
|
* _**Warning**_: The global console object's methods are neither consistently
|
|
12
12
|
* synchronous like the browser APIs they resemble, nor are they consistently
|
|
13
|
-
* asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-
|
|
13
|
+
* asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v22.x/api/process.html#a-note-on-process-io) for
|
|
14
14
|
* more information.
|
|
15
15
|
*
|
|
16
16
|
* Example using the global `console`:
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
* myConsole.warn(`Danger ${name}! Danger!`);
|
|
55
55
|
* // Prints: Danger Will Robinson! Danger!, to err
|
|
56
56
|
* ```
|
|
57
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
57
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/console.js)
|
|
58
58
|
*/
|
|
59
59
|
declare module "console" {
|
|
60
60
|
import console = require("node:console");
|
|
@@ -70,7 +70,7 @@ declare module "node:console" {
|
|
|
70
70
|
* `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only
|
|
71
71
|
* writes a message and does not otherwise affect execution. The output always
|
|
72
72
|
* starts with `"Assertion failed"`. If provided, `message` is formatted using
|
|
73
|
-
* [`util.format()`](https://nodejs.org/docs/latest-
|
|
73
|
+
* [`util.format()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilformatformat-args).
|
|
74
74
|
*
|
|
75
75
|
* If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens.
|
|
76
76
|
*
|
|
@@ -152,7 +152,7 @@ declare module "node:console" {
|
|
|
152
152
|
*/
|
|
153
153
|
debug(message?: any, ...optionalParams: any[]): void;
|
|
154
154
|
/**
|
|
155
|
-
* Uses [`util.inspect()`](https://nodejs.org/docs/latest-
|
|
155
|
+
* Uses [`util.inspect()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`.
|
|
156
156
|
* This function bypasses any custom `inspect()` function defined on `obj`.
|
|
157
157
|
* @since v0.1.101
|
|
158
158
|
*/
|
|
@@ -167,7 +167,7 @@ declare module "node:console" {
|
|
|
167
167
|
* Prints to `stderr` with newline. Multiple arguments can be passed, with the
|
|
168
168
|
* first used as the primary message and all additional used as substitution
|
|
169
169
|
* values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html)
|
|
170
|
-
* (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-
|
|
170
|
+
* (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilformatformat-args)).
|
|
171
171
|
*
|
|
172
172
|
* ```js
|
|
173
173
|
* const code = 5;
|
|
@@ -178,8 +178,8 @@ declare module "node:console" {
|
|
|
178
178
|
* ```
|
|
179
179
|
*
|
|
180
180
|
* If formatting elements (e.g. `%d`) are not found in the first string then
|
|
181
|
-
* [`util.inspect()`](https://nodejs.org/docs/latest-
|
|
182
|
-
* resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-
|
|
181
|
+
* [`util.inspect()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilinspectobject-options) is called on each argument and the
|
|
182
|
+
* resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilformatformat-args)
|
|
183
183
|
* for more information.
|
|
184
184
|
* @since v0.1.100
|
|
185
185
|
*/
|
|
@@ -211,7 +211,7 @@ declare module "node:console" {
|
|
|
211
211
|
* Prints to `stdout` with newline. Multiple arguments can be passed, with the
|
|
212
212
|
* first used as the primary message and all additional used as substitution
|
|
213
213
|
* values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html)
|
|
214
|
-
* (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-
|
|
214
|
+
* (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilformatformat-args)).
|
|
215
215
|
*
|
|
216
216
|
* ```js
|
|
217
217
|
* const count = 5;
|
|
@@ -221,7 +221,7 @@ declare module "node:console" {
|
|
|
221
221
|
* // Prints: count: 5, to stdout
|
|
222
222
|
* ```
|
|
223
223
|
*
|
|
224
|
-
* See [`util.format()`](https://nodejs.org/docs/latest-
|
|
224
|
+
* See [`util.format()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilformatformat-args) for more information.
|
|
225
225
|
* @since v0.1.100
|
|
226
226
|
*/
|
|
227
227
|
log(message?: any, ...optionalParams: any[]): void;
|
|
@@ -297,7 +297,7 @@ declare module "node:console" {
|
|
|
297
297
|
*/
|
|
298
298
|
timeLog(label?: string, ...data: any[]): void;
|
|
299
299
|
/**
|
|
300
|
-
* Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-
|
|
300
|
+
* Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilformatformat-args)
|
|
301
301
|
* formatted message and stack trace to the current position in the code.
|
|
302
302
|
*
|
|
303
303
|
* ```js
|
|
@@ -361,12 +361,12 @@ declare module "node:console" {
|
|
|
361
361
|
* The module exports two specific components:
|
|
362
362
|
*
|
|
363
363
|
* * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream.
|
|
364
|
-
* * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-
|
|
365
|
-
* [`process.stderr`](https://nodejs.org/docs/latest-
|
|
364
|
+
* * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdout) and
|
|
365
|
+
* [`process.stderr`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstderr). The global `console` can be used without calling `require('console')`.
|
|
366
366
|
*
|
|
367
367
|
* _**Warning**_: The global console object's methods are neither consistently
|
|
368
368
|
* synchronous like the browser APIs they resemble, nor are they consistently
|
|
369
|
-
* asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-
|
|
369
|
+
* asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v22.x/api/process.html#a-note-on-process-io) for
|
|
370
370
|
* more information.
|
|
371
371
|
*
|
|
372
372
|
* Example using the global `console`:
|
|
@@ -410,7 +410,7 @@ declare module "node:console" {
|
|
|
410
410
|
* myConsole.warn(`Danger ${name}! Danger!`);
|
|
411
411
|
* // Prints: Danger Will Robinson! Danger!, to err
|
|
412
412
|
* ```
|
|
413
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
413
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/console.js)
|
|
414
414
|
*/
|
|
415
415
|
namespace console {
|
|
416
416
|
interface ConsoleConstructorOptions {
|
|
@@ -431,7 +431,7 @@ declare module "node:console" {
|
|
|
431
431
|
colorMode?: boolean | "auto" | undefined;
|
|
432
432
|
/**
|
|
433
433
|
* Specifies options that are passed along to
|
|
434
|
-
* [`util.inspect()`](https://nodejs.org/docs/latest-
|
|
434
|
+
* [`util.inspect()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilinspectobject-options).
|
|
435
435
|
*/
|
|
436
436
|
inspectOptions?: InspectOptions | undefined;
|
|
437
437
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* // Prints:
|
|
15
15
|
* // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
|
|
16
16
|
* ```
|
|
17
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
17
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/crypto.js)
|
|
18
18
|
*/
|
|
19
19
|
declare module "crypto" {
|
|
20
20
|
import * as stream from "node:stream";
|
|
@@ -96,7 +96,7 @@ declare module "crypto" {
|
|
|
96
96
|
verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
|
|
97
97
|
}
|
|
98
98
|
namespace constants {
|
|
99
|
-
// https://nodejs.org/dist/latest-
|
|
99
|
+
// https://nodejs.org/dist/latest-v22.x/docs/api/crypto.html#crypto-constants
|
|
100
100
|
const OPENSSL_VERSION_NUMBER: number;
|
|
101
101
|
/** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
|
|
102
102
|
const SSL_OP_ALL: number;
|
|
@@ -688,48 +688,6 @@ declare module "crypto" {
|
|
|
688
688
|
interface CipherOCBOptions extends stream.TransformOptions {
|
|
689
689
|
authTagLength: number;
|
|
690
690
|
}
|
|
691
|
-
/**
|
|
692
|
-
* Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
|
|
693
|
-
*
|
|
694
|
-
* The `options` argument controls stream behavior and is optional except when a
|
|
695
|
-
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
696
|
-
* authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
|
|
697
|
-
* tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
|
|
698
|
-
* For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
|
|
699
|
-
*
|
|
700
|
-
* The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
|
|
701
|
-
* recent OpenSSL releases, `openssl list -cipher-algorithms` will
|
|
702
|
-
* display the available cipher algorithms.
|
|
703
|
-
*
|
|
704
|
-
* The `password` is used to derive the cipher key and initialization vector (IV).
|
|
705
|
-
* The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
|
|
706
|
-
*
|
|
707
|
-
* **This function is semantically insecure for all**
|
|
708
|
-
* **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
|
|
709
|
-
* **GCM, or CCM).**
|
|
710
|
-
*
|
|
711
|
-
* The implementation of `crypto.createCipher()` derives keys using the OpenSSL
|
|
712
|
-
* function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
|
|
713
|
-
* iteration, and no salt. The lack of salt allows dictionary attacks as the same
|
|
714
|
-
* password always creates the same key. The low iteration count and
|
|
715
|
-
* non-cryptographically secure hash algorithm allow passwords to be tested very
|
|
716
|
-
* rapidly.
|
|
717
|
-
*
|
|
718
|
-
* In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
|
|
719
|
-
* developers derive a key and IV on
|
|
720
|
-
* their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
|
|
721
|
-
* (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
|
|
722
|
-
* they are used in order to avoid the risk of IV reuse that causes
|
|
723
|
-
* vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
|
|
724
|
-
* @since v0.1.94
|
|
725
|
-
* @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
|
|
726
|
-
* @param options `stream.transform` options
|
|
727
|
-
*/
|
|
728
|
-
function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
|
729
|
-
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
730
|
-
function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
|
|
731
|
-
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
732
|
-
function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
|
|
733
691
|
/**
|
|
734
692
|
* Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
|
|
735
693
|
* initialization vector (`iv`).
|
|
@@ -793,7 +751,7 @@ declare module "crypto" {
|
|
|
793
751
|
* * Using the `cipher.update()` and `cipher.final()` methods to produce
|
|
794
752
|
* the encrypted data.
|
|
795
753
|
*
|
|
796
|
-
* The {@link
|
|
754
|
+
* The {@link createCipheriv} method is
|
|
797
755
|
* used to create `Cipher` instances. `Cipher` objects are not to be created
|
|
798
756
|
* directly using the `new` keyword.
|
|
799
757
|
*
|
|
@@ -977,37 +935,6 @@ declare module "crypto" {
|
|
|
977
935
|
): this;
|
|
978
936
|
getAuthTag(): Buffer;
|
|
979
937
|
}
|
|
980
|
-
/**
|
|
981
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
|
|
982
|
-
*
|
|
983
|
-
* The `options` argument controls stream behavior and is optional except when a
|
|
984
|
-
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
|
|
985
|
-
* authentication tag in bytes, see `CCM mode`.
|
|
986
|
-
* For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
|
|
987
|
-
*
|
|
988
|
-
* **This function is semantically insecure for all**
|
|
989
|
-
* **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
|
|
990
|
-
* **GCM, or CCM).**
|
|
991
|
-
*
|
|
992
|
-
* The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
|
|
993
|
-
* function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
|
|
994
|
-
* iteration, and no salt. The lack of salt allows dictionary attacks as the same
|
|
995
|
-
* password always creates the same key. The low iteration count and
|
|
996
|
-
* non-cryptographically secure hash algorithm allow passwords to be tested very
|
|
997
|
-
* rapidly.
|
|
998
|
-
*
|
|
999
|
-
* In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
|
|
1000
|
-
* developers derive a key and IV on
|
|
1001
|
-
* their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
|
|
1002
|
-
* @since v0.1.94
|
|
1003
|
-
* @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
|
|
1004
|
-
* @param options `stream.transform` options
|
|
1005
|
-
*/
|
|
1006
|
-
function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
|
1007
|
-
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
1008
|
-
function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
|
|
1009
|
-
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
1010
|
-
function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
|
|
1011
938
|
/**
|
|
1012
939
|
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
|
|
1013
940
|
*
|
|
@@ -1070,7 +997,7 @@ declare module "crypto" {
|
|
|
1070
997
|
* * Using the `decipher.update()` and `decipher.final()` methods to
|
|
1071
998
|
* produce the unencrypted data.
|
|
1072
999
|
*
|
|
1073
|
-
* The {@link
|
|
1000
|
+
* The {@link createDecipheriv} method is
|
|
1074
1001
|
* used to create `Decipher` instances. `Decipher` objects are not to be created
|
|
1075
1002
|
* directly using the `new` keyword.
|
|
1076
1003
|
*
|
|
@@ -3406,7 +3333,7 @@ declare module "crypto" {
|
|
|
3406
3333
|
* @since v21.7.0, v20.12.0
|
|
3407
3334
|
* @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
|
|
3408
3335
|
* could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
|
|
3409
|
-
* @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-
|
|
3336
|
+
* @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v22.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
|
|
3410
3337
|
*/
|
|
3411
3338
|
function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
|
|
3412
3339
|
function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* server.bind(41234);
|
|
24
24
|
* // Prints: server listening 0.0.0.0:41234
|
|
25
25
|
* ```
|
|
26
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
26
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/dgram.js)
|
|
27
27
|
*/
|
|
28
28
|
declare module "dgram" {
|
|
29
29
|
import { AddressInfo } from "node:net";
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* should generally include the module name to avoid collisions with data from
|
|
21
21
|
* other modules.
|
|
22
22
|
* @since v15.1.0, v14.17.0
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/diagnostics_channel.js)
|
|
24
24
|
*/
|
|
25
25
|
declare module "diagnostics_channel" {
|
|
26
26
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
* });
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
|
-
* See the [Implementation considerations section](https://nodejs.org/docs/latest-
|
|
45
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
44
|
+
* See the [Implementation considerations section](https://nodejs.org/docs/latest-v22.x/api/dns.html#implementation-considerations) for more information.
|
|
45
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/dns.js)
|
|
46
46
|
*/
|
|
47
47
|
declare module "dns" {
|
|
48
48
|
import * as dnsPromises from "node:dns/promises";
|
|
@@ -71,7 +71,7 @@ declare module "dns" {
|
|
|
71
71
|
*/
|
|
72
72
|
family?: number | "IPv4" | "IPv6" | undefined;
|
|
73
73
|
/**
|
|
74
|
-
* One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-
|
|
74
|
+
* One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v22.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be
|
|
75
75
|
* passed by bitwise `OR`ing their values.
|
|
76
76
|
*/
|
|
77
77
|
hints?: number | undefined;
|
|
@@ -84,16 +84,17 @@ declare module "dns" {
|
|
|
84
84
|
* When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted
|
|
85
85
|
* by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6
|
|
86
86
|
* addresses before IPv4 addresses. Default value is configurable using
|
|
87
|
-
* {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-
|
|
87
|
+
* {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--dns-result-orderorder).
|
|
88
88
|
* @default `verbatim` (addresses are not reordered)
|
|
89
|
+
* @since v22.1.0
|
|
89
90
|
*/
|
|
90
91
|
order?: "ipv4first" | "ipv6first" | "verbatim" | undefined;
|
|
91
92
|
/**
|
|
92
93
|
* When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4
|
|
93
94
|
* addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified,
|
|
94
95
|
* `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder}
|
|
95
|
-
* or [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder).
|
|
96
96
|
* @default true (addresses are not reordered)
|
|
97
|
+
* @deprecated Please use `order` option
|
|
97
98
|
*/
|
|
98
99
|
verbatim?: boolean | undefined;
|
|
99
100
|
}
|
|
@@ -132,7 +133,7 @@ declare module "dns" {
|
|
|
132
133
|
* The implementation uses an operating system facility that can associate names
|
|
133
134
|
* with addresses and vice versa. This implementation can have subtle but
|
|
134
135
|
* important consequences on the behavior of any Node.js program. Please take some
|
|
135
|
-
* time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-
|
|
136
|
+
* time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v22.x/api/dns.html#implementation-considerations)
|
|
136
137
|
* before using `dns.lookup()`.
|
|
137
138
|
*
|
|
138
139
|
* Example usage:
|
|
@@ -154,7 +155,7 @@ declare module "dns" {
|
|
|
154
155
|
* // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
|
|
155
156
|
* ```
|
|
156
157
|
*
|
|
157
|
-
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-
|
|
158
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v22.x/api/util.html#utilpromisifyoriginal) ed
|
|
158
159
|
* version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties.
|
|
159
160
|
* @since v0.1.90
|
|
160
161
|
*/
|
|
@@ -194,7 +195,7 @@ declare module "dns" {
|
|
|
194
195
|
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
195
196
|
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
196
197
|
*
|
|
197
|
-
* On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-
|
|
198
|
+
* On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object,
|
|
198
199
|
* where `err.code` is the error code.
|
|
199
200
|
*
|
|
200
201
|
* ```js
|
|
@@ -205,7 +206,7 @@ declare module "dns" {
|
|
|
205
206
|
* });
|
|
206
207
|
* ```
|
|
207
208
|
*
|
|
208
|
-
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-
|
|
209
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v22.x/api/util.html#utilpromisifyoriginal) ed
|
|
209
210
|
* version, it returns a `Promise` for an `Object` with `hostname` and `service` properties.
|
|
210
211
|
* @since v0.11.14
|
|
211
212
|
*/
|
|
@@ -322,7 +323,7 @@ declare module "dns" {
|
|
|
322
323
|
*
|
|
323
324
|
* <omitted>
|
|
324
325
|
*
|
|
325
|
-
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-
|
|
326
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object,
|
|
326
327
|
* where `err.code` is one of the `DNS error codes`.
|
|
327
328
|
* @since v0.1.27
|
|
328
329
|
* @param hostname Host name to resolve.
|
|
@@ -663,8 +664,8 @@ declare module "dns" {
|
|
|
663
664
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
664
665
|
* array of host names.
|
|
665
666
|
*
|
|
666
|
-
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-
|
|
667
|
-
* one of the [DNS error codes](https://nodejs.org/docs/latest-
|
|
667
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object, where `err.code` is
|
|
668
|
+
* one of the [DNS error codes](https://nodejs.org/docs/latest-v22.x/api/dns.html#error-codes).
|
|
668
669
|
* @since v0.1.16
|
|
669
670
|
*/
|
|
670
671
|
export function reverse(
|
|
@@ -672,7 +673,7 @@ declare module "dns" {
|
|
|
672
673
|
callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
|
|
673
674
|
): void;
|
|
674
675
|
/**
|
|
675
|
-
* Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-
|
|
676
|
+
* Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
676
677
|
* The value could be:
|
|
677
678
|
*
|
|
678
679
|
* * `ipv4first`: for `order` defaulting to `ipv4first`.
|
|
@@ -727,7 +728,7 @@ declare module "dns" {
|
|
|
727
728
|
*/
|
|
728
729
|
export function getServers(): string[];
|
|
729
730
|
/**
|
|
730
|
-
* Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-
|
|
731
|
+
* Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
731
732
|
* The value could be:
|
|
732
733
|
*
|
|
733
734
|
* * `ipv4first`: sets default `order` to `ipv4first`.
|
|
@@ -735,8 +736,8 @@ declare module "dns" {
|
|
|
735
736
|
* * `verbatim`: sets default `order` to `verbatim`.
|
|
736
737
|
*
|
|
737
738
|
* The default is `verbatim` and {@link setDefaultResultOrder} have higher
|
|
738
|
-
* priority than [`--dns-result-order`](https://nodejs.org/docs/latest-
|
|
739
|
-
* [worker threads](https://nodejs.org/docs/latest-
|
|
739
|
+
* priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--dns-result-orderorder). When using
|
|
740
|
+
* [worker threads](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
|
|
740
741
|
* thread won't affect the default dns orders in workers.
|
|
741
742
|
* @since v16.4.0, v14.18.0
|
|
742
743
|
* @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
|
|
@@ -782,7 +783,7 @@ declare module "dns" {
|
|
|
782
783
|
* An independent resolver for DNS requests.
|
|
783
784
|
*
|
|
784
785
|
* Creating a new resolver uses the default server settings. Setting
|
|
785
|
-
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-
|
|
786
|
+
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnssetserversservers) does not affect
|
|
786
787
|
* other resolvers:
|
|
787
788
|
*
|
|
788
789
|
* ```js
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to
|
|
13
13
|
* exit immediately with an error code.
|
|
14
14
|
* @deprecated Since v1.4.2 - Deprecated
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/domain.js)
|
|
16
16
|
*/
|
|
17
17
|
declare module "domain" {
|
|
18
18
|
import EventEmitter = require("node:events");
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* });
|
|
33
33
|
* myEmitter.emit('event');
|
|
34
34
|
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
35
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/events.js)
|
|
36
36
|
*/
|
|
37
37
|
declare module "events" {
|
|
38
38
|
import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
|
|
@@ -20,6 +20,9 @@ declare module "fs/promises" {
|
|
|
20
20
|
CopyOptions,
|
|
21
21
|
Dir,
|
|
22
22
|
Dirent,
|
|
23
|
+
GlobOptions,
|
|
24
|
+
GlobOptionsWithFileTypes,
|
|
25
|
+
GlobOptionsWithoutFileTypes,
|
|
23
26
|
MakeDirectoryOptions,
|
|
24
27
|
Mode,
|
|
25
28
|
ObjectEncodingOptions,
|
|
@@ -1239,6 +1242,22 @@ declare module "fs/promises" {
|
|
|
1239
1242
|
* @return Fulfills with `undefined` upon success.
|
|
1240
1243
|
*/
|
|
1241
1244
|
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Retrieves the files matching the specified pattern.
|
|
1247
|
+
*/
|
|
1248
|
+
function glob(pattern: string | string[]): AsyncIterableIterator<string>;
|
|
1249
|
+
function glob(
|
|
1250
|
+
pattern: string | string[],
|
|
1251
|
+
opt: GlobOptionsWithFileTypes,
|
|
1252
|
+
): AsyncIterableIterator<Dirent>;
|
|
1253
|
+
function glob(
|
|
1254
|
+
pattern: string | string[],
|
|
1255
|
+
opt: GlobOptionsWithoutFileTypes,
|
|
1256
|
+
): AsyncIterableIterator<string>;
|
|
1257
|
+
function glob(
|
|
1258
|
+
pattern: string | string[],
|
|
1259
|
+
opt: GlobOptions,
|
|
1260
|
+
): AsyncIterableIterator<Dirent> | AsyncIterableIterator<string>;
|
|
1242
1261
|
}
|
|
1243
1262
|
declare module "node:fs/promises" {
|
|
1244
1263
|
export * from "fs/promises";
|