cloudstructs 0.1.39 → 0.2.0
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/.gitattributes +19 -19
- package/.jsii +2743 -1551
- package/API.md +71 -71
- package/README.md +2 -0
- package/lib/codecommit-mirror/index.d.ts +6 -6
- package/lib/codecommit-mirror/index.js +13 -12
- package/lib/ecs-service-roller/index.d.ts +5 -5
- package/lib/ecs-service-roller/index.js +10 -9
- package/lib/email-receiver/receiver.d.ts +5 -5
- package/lib/email-receiver/receiver.js +15 -14
- package/lib/saml-identity-provider/index.d.ts +4 -4
- package/lib/saml-identity-provider/index.js +10 -9
- package/lib/slack-events/index.d.ts +5 -4
- package/lib/slack-events/index.js +13 -14
- package/lib/slack-textract/index.d.ts +6 -5
- package/lib/slack-textract/index.js +12 -11
- package/lib/state-machine-cr-provider/index.d.ts +2 -1
- package/lib/state-machine-cr-provider/index.js +14 -13
- package/lib/static-website/index.d.ts +6 -6
- package/lib/static-website/index.js +16 -15
- package/lib/url-shortener/index.d.ts +8 -7
- package/lib/url-shortener/index.handler.js +2 -1
- package/lib/url-shortener/index.js +19 -18
- package/node_modules/@sindresorhus/is/dist/index.d.ts +9 -4
- package/node_modules/@sindresorhus/is/dist/index.js +9 -0
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +26 -0
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +13 -13
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +13 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +13 -2
- 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 +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +18 -7
- 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 +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +75 -7
- 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/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +49 -11
- 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 +6 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +13 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +18 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +49 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +6 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/keyv/README.md +1 -1
- package/node_modules/@types/keyv/index.d.ts +10 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +13 -2
- 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 +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +18 -7
- 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 +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- 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 +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +49 -11
- 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 +6 -3
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/@types/keyv/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +31 -20
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +106 -23
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +13 -2
- 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 +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +107 -13
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +107 -46
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +18 -7
- 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 +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +9 -2
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +8 -4
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +75 -7
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- 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 +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +2 -4
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +26 -3
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +49 -11
- 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 +6 -3
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +9 -4
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/axios/CHANGELOG.md +98 -8
- package/node_modules/axios/README.md +74 -6
- package/node_modules/axios/SECURITY.md +5 -0
- package/node_modules/axios/dist/axios.js +2028 -1591
- package/node_modules/axios/dist/axios.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.map +1 -1
- package/node_modules/axios/index.d.ts +8 -1
- package/node_modules/axios/lib/adapters/http.js +33 -5
- package/node_modules/axios/lib/adapters/xhr.js +35 -25
- package/node_modules/axios/lib/core/Axios.js +60 -7
- package/node_modules/axios/lib/core/InterceptorManager.js +4 -2
- package/node_modules/axios/lib/core/README.md +1 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +6 -3
- package/node_modules/axios/lib/core/transformData.js +3 -1
- package/node_modules/axios/lib/defaults.js +43 -7
- package/node_modules/axios/lib/helpers/validator.js +105 -0
- package/node_modules/axios/lib/utils.js +1 -3
- package/node_modules/axios/package.json +19 -21
- package/node_modules/follow-redirects/index.js +59 -21
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/got/dist/source/as-promise/parse-body.d.ts +1 -1
- package/node_modules/got/dist/source/as-promise/types.js +2 -0
- package/node_modules/got/dist/source/core/index.d.ts +1 -1
- package/node_modules/got/dist/source/core/index.js +9 -3
- package/node_modules/got/dist/source/types.d.ts +14 -12
- package/node_modules/got/package.json +2 -2
- package/node_modules/got/readme.md +11 -10
- package/node_modules/keyv/LICENSE +1 -1
- package/node_modules/keyv/README.md +12 -10
- package/node_modules/keyv/package.json +17 -12
- package/node_modules/keyv/src/index.js +14 -16
- package/node_modules/mime-db/HISTORY.md +13 -0
- package/node_modules/mime-db/db.json +54 -0
- package/node_modules/mime-db/package.json +7 -7
- package/node_modules/mime-types/HISTORY.md +13 -3
- package/node_modules/mime-types/package.json +7 -7
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/index.d.ts +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/index.js +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/license +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/package.json +0 -0
- package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/readme.md +0 -0
- package/package.json +33 -84
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* // Prints:
|
|
14
14
|
* // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
|
|
15
15
|
* ```
|
|
16
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
16
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/crypto.js)
|
|
17
17
|
*/
|
|
18
18
|
declare module 'crypto' {
|
|
19
19
|
import * as stream from 'node:stream';
|
|
@@ -250,7 +250,7 @@ declare module 'crypto' {
|
|
|
250
250
|
*/
|
|
251
251
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
252
252
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
253
|
-
type BinaryToTextEncoding = 'base64' | 'hex';
|
|
253
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
|
|
254
254
|
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
|
255
255
|
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
|
256
256
|
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
|
@@ -508,6 +508,18 @@ declare module 'crypto' {
|
|
|
508
508
|
* Public exponent (RSA).
|
|
509
509
|
*/
|
|
510
510
|
publicExponent?: bigint | undefined;
|
|
511
|
+
/**
|
|
512
|
+
* Name of the message digest (RSA-PSS).
|
|
513
|
+
*/
|
|
514
|
+
hashAlgorithm?: string | undefined;
|
|
515
|
+
/**
|
|
516
|
+
* Name of the message digest used by MGF1 (RSA-PSS).
|
|
517
|
+
*/
|
|
518
|
+
mgf1HashAlgorithm?: string | undefined;
|
|
519
|
+
/**
|
|
520
|
+
* Minimal salt length in bytes (RSA-PSS).
|
|
521
|
+
*/
|
|
522
|
+
saltLength?: number | undefined;
|
|
511
523
|
/**
|
|
512
524
|
* Size of q in bits (DSA).
|
|
513
525
|
*/
|
|
@@ -535,6 +547,26 @@ declare module 'crypto' {
|
|
|
535
547
|
*/
|
|
536
548
|
class KeyObject {
|
|
537
549
|
private constructor();
|
|
550
|
+
/**
|
|
551
|
+
* Example: Converting a `CryptoKey` instance to a `KeyObject`:
|
|
552
|
+
*
|
|
553
|
+
* ```js
|
|
554
|
+
* const { webcrypto, KeyObject } = await import('crypto');
|
|
555
|
+
* const { subtle } = webcrypto;
|
|
556
|
+
*
|
|
557
|
+
* const key = await subtle.generateKey({
|
|
558
|
+
* name: 'HMAC',
|
|
559
|
+
* hash: 'SHA-256',
|
|
560
|
+
* length: 256
|
|
561
|
+
* }, true, ['sign', 'verify']);
|
|
562
|
+
*
|
|
563
|
+
* const keyObject = KeyObject.from(key);
|
|
564
|
+
* console.log(keyObject.symmetricKeySize);
|
|
565
|
+
* // Prints: 32 (symmetric key size in bytes)
|
|
566
|
+
* ```
|
|
567
|
+
* @since v15.0.0
|
|
568
|
+
*/
|
|
569
|
+
static from(key: webcrypto.CryptoKey): KeyObject;
|
|
538
570
|
/**
|
|
539
571
|
* For asymmetric keys, this property represents the type of the key. Supported key
|
|
540
572
|
* types are:
|
|
@@ -565,8 +597,11 @@ declare module 'crypto' {
|
|
|
565
597
|
* through this property can be used to uniquely identify a key or to compromise
|
|
566
598
|
* the security of the key.
|
|
567
599
|
*
|
|
568
|
-
* RSA-PSS
|
|
569
|
-
*
|
|
600
|
+
* For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence,
|
|
601
|
+
* the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be
|
|
602
|
+
* set.
|
|
603
|
+
*
|
|
604
|
+
* Other key details might be exposed via this API using additional attributes.
|
|
570
605
|
* @since v15.7.0
|
|
571
606
|
*/
|
|
572
607
|
asymmetricKeyDetails?: AsymmetricKeyDetails | undefined;
|
|
@@ -641,7 +676,7 @@ declare module 'crypto' {
|
|
|
641
676
|
* non-cryptographically secure hash algorithm allow passwords to be tested very
|
|
642
677
|
* rapidly.
|
|
643
678
|
*
|
|
644
|
-
* In line with OpenSSL's recommendation to use a more modern algorithm instead of[`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
|
|
679
|
+
* In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
|
|
645
680
|
* developers derive a key and IV on
|
|
646
681
|
* their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
|
|
647
682
|
* (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
|
|
@@ -669,7 +704,7 @@ declare module 'crypto' {
|
|
|
669
704
|
* recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
|
|
670
705
|
* display the available cipher algorithms.
|
|
671
706
|
*
|
|
672
|
-
* The `key` is the raw key used by the `algorithm` and `iv` is an[initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
|
|
707
|
+
* The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
|
|
673
708
|
* strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
|
|
674
709
|
* a `KeyObject` of type `secret`. If the cipher does not need
|
|
675
710
|
* an initialization vector, `iv` may be `null`.
|
|
@@ -886,7 +921,7 @@ declare module 'crypto' {
|
|
|
886
921
|
* non-cryptographically secure hash algorithm allow passwords to be tested very
|
|
887
922
|
* rapidly.
|
|
888
923
|
*
|
|
889
|
-
* In line with OpenSSL's recommendation to use a more modern algorithm instead of[`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
|
|
924
|
+
* In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that
|
|
890
925
|
* developers derive a key and IV on
|
|
891
926
|
* their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
|
|
892
927
|
* @since v0.1.94
|
|
@@ -910,7 +945,7 @@ declare module 'crypto' {
|
|
|
910
945
|
* recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will
|
|
911
946
|
* display the available cipher algorithms.
|
|
912
947
|
*
|
|
913
|
-
* The `key` is the raw key used by the `algorithm` and `iv` is an[initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
|
|
948
|
+
* The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded
|
|
914
949
|
* strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be
|
|
915
950
|
* a `KeyObject` of type `secret`. If the cipher does not need
|
|
916
951
|
* an initialization vector, `iv` may be `null`.
|
|
@@ -1132,6 +1167,26 @@ declare module 'crypto' {
|
|
|
1132
1167
|
},
|
|
1133
1168
|
callback: (err: Error | null, key: KeyObject) => void
|
|
1134
1169
|
): void;
|
|
1170
|
+
/**
|
|
1171
|
+
* Synchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
|
|
1172
|
+
*
|
|
1173
|
+
* ```js
|
|
1174
|
+
* const {
|
|
1175
|
+
* generateKeySync
|
|
1176
|
+
* } = await import('crypto');
|
|
1177
|
+
*
|
|
1178
|
+
* const key = generateKeySync('hmac', { length: 64 });
|
|
1179
|
+
* console.log(key.export().toString('hex')); // e89..........41e
|
|
1180
|
+
* ```
|
|
1181
|
+
* @since v15.0.0
|
|
1182
|
+
* @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`.
|
|
1183
|
+
*/
|
|
1184
|
+
function generateKeySync(
|
|
1185
|
+
type: 'hmac' | 'aes',
|
|
1186
|
+
options: {
|
|
1187
|
+
length: number;
|
|
1188
|
+
}
|
|
1189
|
+
): KeyObject;
|
|
1135
1190
|
interface JsonWebKeyInput {
|
|
1136
1191
|
key: JsonWebKey;
|
|
1137
1192
|
format: 'jwk';
|
|
@@ -1505,7 +1560,7 @@ declare module 'crypto' {
|
|
|
1505
1560
|
}
|
|
1506
1561
|
/**
|
|
1507
1562
|
* Creates a predefined `DiffieHellmanGroup` key exchange object. The
|
|
1508
|
-
* supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in[RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`,
|
|
1563
|
+
* supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`,
|
|
1509
1564
|
* `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The
|
|
1510
1565
|
* returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
|
|
1511
1566
|
* the keys (with `diffieHellman.setPublicKey()`, for example). The
|
|
@@ -2105,7 +2160,7 @@ declare module 'crypto' {
|
|
|
2105
2160
|
key: BinaryLike,
|
|
2106
2161
|
curve: string,
|
|
2107
2162
|
inputEncoding?: BinaryToTextEncoding,
|
|
2108
|
-
outputEncoding?: 'latin1' | 'hex' | 'base64',
|
|
2163
|
+
outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url',
|
|
2109
2164
|
format?: 'uncompressed' | 'compressed' | 'hybrid'
|
|
2110
2165
|
): Buffer | string;
|
|
2111
2166
|
/**
|
|
@@ -2190,7 +2245,7 @@ declare module 'crypto' {
|
|
|
2190
2245
|
* This function is based on a constant-time algorithm.
|
|
2191
2246
|
* Returns true if `a` is equal to `b`, without leaking timing information that
|
|
2192
2247
|
* would allow an attacker to guess one of the values. This is suitable for
|
|
2193
|
-
* comparing HMAC digests or secret values like authentication cookies or[capability urls](https://www.w3.org/TR/capability-urls/).
|
|
2248
|
+
* comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/).
|
|
2194
2249
|
*
|
|
2195
2250
|
* `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they
|
|
2196
2251
|
* must have the same byte length.
|
|
@@ -2224,7 +2279,7 @@ declare module 'crypto' {
|
|
|
2224
2279
|
interface X448KeyPairKeyObjectOptions {}
|
|
2225
2280
|
interface ECKeyPairKeyObjectOptions {
|
|
2226
2281
|
/**
|
|
2227
|
-
* Name of the curve to use
|
|
2282
|
+
* Name of the curve to use
|
|
2228
2283
|
*/
|
|
2229
2284
|
namedCurve: string;
|
|
2230
2285
|
}
|
|
@@ -2234,6 +2289,7 @@ declare module 'crypto' {
|
|
|
2234
2289
|
*/
|
|
2235
2290
|
modulusLength: number;
|
|
2236
2291
|
/**
|
|
2292
|
+
* Public exponent
|
|
2237
2293
|
* @default 0x10001
|
|
2238
2294
|
*/
|
|
2239
2295
|
publicExponent?: number | undefined;
|
|
@@ -2244,9 +2300,22 @@ declare module 'crypto' {
|
|
|
2244
2300
|
*/
|
|
2245
2301
|
modulusLength: number;
|
|
2246
2302
|
/**
|
|
2303
|
+
* Public exponent
|
|
2247
2304
|
* @default 0x10001
|
|
2248
2305
|
*/
|
|
2249
2306
|
publicExponent?: number | undefined;
|
|
2307
|
+
/**
|
|
2308
|
+
* Name of the message digest
|
|
2309
|
+
*/
|
|
2310
|
+
hashAlgorithm?: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* Name of the message digest used by MGF1
|
|
2313
|
+
*/
|
|
2314
|
+
mgf1HashAlgorithm?: string;
|
|
2315
|
+
/**
|
|
2316
|
+
* Minimal salt length in bytes
|
|
2317
|
+
*/
|
|
2318
|
+
saltLength?: string;
|
|
2250
2319
|
}
|
|
2251
2320
|
interface DSAKeyPairKeyObjectOptions {
|
|
2252
2321
|
/**
|
|
@@ -2264,6 +2333,7 @@ declare module 'crypto' {
|
|
|
2264
2333
|
*/
|
|
2265
2334
|
modulusLength: number;
|
|
2266
2335
|
/**
|
|
2336
|
+
* Public exponent
|
|
2267
2337
|
* @default 0x10001
|
|
2268
2338
|
*/
|
|
2269
2339
|
publicExponent?: number | undefined;
|
|
@@ -2281,9 +2351,22 @@ declare module 'crypto' {
|
|
|
2281
2351
|
*/
|
|
2282
2352
|
modulusLength: number;
|
|
2283
2353
|
/**
|
|
2354
|
+
* Public exponent
|
|
2284
2355
|
* @default 0x10001
|
|
2285
2356
|
*/
|
|
2286
2357
|
publicExponent?: number | undefined;
|
|
2358
|
+
/**
|
|
2359
|
+
* Name of the message digest
|
|
2360
|
+
*/
|
|
2361
|
+
hashAlgorithm?: string;
|
|
2362
|
+
/**
|
|
2363
|
+
* Name of the message digest used by MGF1
|
|
2364
|
+
*/
|
|
2365
|
+
mgf1HashAlgorithm?: string;
|
|
2366
|
+
/**
|
|
2367
|
+
* Minimal salt length in bytes
|
|
2368
|
+
*/
|
|
2369
|
+
saltLength?: string;
|
|
2287
2370
|
publicKeyEncoding: {
|
|
2288
2371
|
type: 'spki';
|
|
2289
2372
|
format: PubF;
|
|
@@ -2363,8 +2446,8 @@ declare module 'crypto' {
|
|
|
2363
2446
|
privateKey: T2;
|
|
2364
2447
|
}
|
|
2365
2448
|
/**
|
|
2366
|
-
* Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC,
|
|
2367
|
-
* Ed448, X25519, X448, and DH are currently supported.
|
|
2449
|
+
* Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
|
|
2450
|
+
* Ed25519, Ed448, X25519, X448, and DH are currently supported.
|
|
2368
2451
|
*
|
|
2369
2452
|
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
|
2370
2453
|
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
|
@@ -2444,8 +2527,8 @@ declare module 'crypto' {
|
|
|
2444
2527
|
function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
|
|
2445
2528
|
function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
|
|
2446
2529
|
/**
|
|
2447
|
-
* Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC,
|
|
2448
|
-
* Ed448, X25519, X448, and DH are currently supported.
|
|
2530
|
+
* Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
|
|
2531
|
+
* Ed25519, Ed448, X25519, X448, and DH are currently supported.
|
|
2449
2532
|
*
|
|
2450
2533
|
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
|
|
2451
2534
|
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
|
|
@@ -2480,7 +2563,7 @@ declare module 'crypto' {
|
|
|
2480
2563
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2481
2564
|
* a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
|
|
2482
2565
|
* @since v10.12.0
|
|
2483
|
-
* @param type Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
|
|
2566
|
+
* @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`.
|
|
2484
2567
|
*/
|
|
2485
2568
|
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
|
|
2486
2569
|
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
|
|
@@ -2861,7 +2944,7 @@ declare module 'crypto' {
|
|
|
2861
2944
|
*
|
|
2862
2945
|
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
2863
2946
|
* otherwise `err` will be `null`. The successfully generated `derivedKey` will
|
|
2864
|
-
* be passed to the callback as an [
|
|
2947
|
+
* be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
|
|
2865
2948
|
* of the input arguments specify invalid values or types.
|
|
2866
2949
|
*
|
|
2867
2950
|
* ```js
|
|
@@ -2888,7 +2971,7 @@ declare module 'crypto' {
|
|
|
2888
2971
|
* Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
|
|
2889
2972
|
* given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes.
|
|
2890
2973
|
*
|
|
2891
|
-
* The successfully generated `derivedKey` will be returned as an [
|
|
2974
|
+
* The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
|
|
2892
2975
|
*
|
|
2893
2976
|
* An error will be thrown if any of the input arguments specify invalid values or
|
|
2894
2977
|
* types, or if the derived key cannot be generated.
|
|
@@ -3150,8 +3233,8 @@ declare module 'crypto' {
|
|
|
3150
3233
|
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
|
|
3151
3234
|
*
|
|
3152
3235
|
* By default, the prime is encoded as a big-endian sequence of octets
|
|
3153
|
-
* in an [
|
|
3154
|
-
* [
|
|
3236
|
+
* in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
|
|
3237
|
+
* [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
|
|
3155
3238
|
* @since v15.8.0
|
|
3156
3239
|
* @param size The size (in bits) of the prime to generate.
|
|
3157
3240
|
*/
|
|
@@ -3181,8 +3264,8 @@ declare module 'crypto' {
|
|
|
3181
3264
|
* if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
|
|
3182
3265
|
*
|
|
3183
3266
|
* By default, the prime is encoded as a big-endian sequence of octets
|
|
3184
|
-
* in an [
|
|
3185
|
-
* [
|
|
3267
|
+
* in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
|
|
3268
|
+
* [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided.
|
|
3186
3269
|
* @since v15.8.0
|
|
3187
3270
|
* @param size The size (in bits) of the prime to generate.
|
|
3188
3271
|
*/
|
|
@@ -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/v16.
|
|
26
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/dgram.js)
|
|
27
27
|
*/
|
|
28
28
|
declare module 'dgram' {
|
|
29
29
|
import { AddressInfo } from 'node:net';
|
|
@@ -166,17 +166,17 @@ declare module 'dgram' {
|
|
|
166
166
|
* @since v0.1.99
|
|
167
167
|
* @param callback with no parameters. Called when binding is complete.
|
|
168
168
|
*/
|
|
169
|
-
bind(port?: number, address?: string, callback?: () => void):
|
|
170
|
-
bind(port?: number, callback?: () => void):
|
|
171
|
-
bind(callback?: () => void):
|
|
172
|
-
bind(options: BindOptions, callback?: () => void):
|
|
169
|
+
bind(port?: number, address?: string, callback?: () => void): this;
|
|
170
|
+
bind(port?: number, callback?: () => void): this;
|
|
171
|
+
bind(callback?: () => void): this;
|
|
172
|
+
bind(options: BindOptions, callback?: () => void): this;
|
|
173
173
|
/**
|
|
174
174
|
* Close the underlying socket and stop listening for data on it. If a callback is
|
|
175
175
|
* provided, it is added as a listener for the `'close'` event.
|
|
176
176
|
* @since v0.1.99
|
|
177
177
|
* @param callback Called when the socket has been closed.
|
|
178
178
|
*/
|
|
179
|
-
close(callback?: () => void):
|
|
179
|
+
close(callback?: () => void): this;
|
|
180
180
|
/**
|
|
181
181
|
* Associates the `dgram.Socket` to a remote address and port. Every
|
|
182
182
|
* message sent by this handle is automatically sent to that destination. Also,
|
|
@@ -350,7 +350,7 @@ declare module 'dgram' {
|
|
|
350
350
|
*/
|
|
351
351
|
setBroadcast(flag: boolean): void;
|
|
352
352
|
/**
|
|
353
|
-
* _All references to scope in this section are referring to[IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC
|
|
353
|
+
* _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC
|
|
354
354
|
* 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_
|
|
355
355
|
* _with a scope index is written as `'IP%scope'` where scope is an interface name_
|
|
356
356
|
* _or interface number._
|
|
@@ -414,7 +414,7 @@ declare module 'dgram' {
|
|
|
414
414
|
* This method throws `EBADF` if called on an unbound socket.
|
|
415
415
|
* @since v0.3.8
|
|
416
416
|
*/
|
|
417
|
-
setMulticastLoopback(flag: boolean):
|
|
417
|
+
setMulticastLoopback(flag: boolean): boolean;
|
|
418
418
|
/**
|
|
419
419
|
* Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for
|
|
420
420
|
* "Time to Live", in this context it specifies the number of IP hops that a
|
|
@@ -427,7 +427,7 @@ declare module 'dgram' {
|
|
|
427
427
|
* This method throws `EBADF` if called on an unbound socket.
|
|
428
428
|
* @since v0.3.8
|
|
429
429
|
*/
|
|
430
|
-
setMulticastTTL(ttl: number):
|
|
430
|
+
setMulticastTTL(ttl: number): number;
|
|
431
431
|
/**
|
|
432
432
|
* Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer
|
|
433
433
|
* in bytes.
|
|
@@ -457,7 +457,7 @@ declare module 'dgram' {
|
|
|
457
457
|
* This method throws `EBADF` if called on an unbound socket.
|
|
458
458
|
* @since v0.1.101
|
|
459
459
|
*/
|
|
460
|
-
setTTL(ttl: number):
|
|
460
|
+
setTTL(ttl: number): number;
|
|
461
461
|
/**
|
|
462
462
|
* By default, binding a socket will cause it to block the Node.js process from
|
|
463
463
|
* exiting as long as the socket is open. The `socket.unref()` method can be used
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* should generally include the module name to avoid collisions with data from
|
|
21
21
|
* other modules.
|
|
22
22
|
* @experimental
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/diagnostics_channel.js)
|
|
24
24
|
*/
|
|
25
25
|
declare module 'diagnostics_channel' {
|
|
26
26
|
/**
|
|
@@ -37,6 +37,7 @@ declare module 'diagnostics_channel' {
|
|
|
37
37
|
* // There are subscribers, prepare and publish message
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
|
+
* @since v15.1.0, v14.17.0
|
|
40
41
|
* @param name The channel name
|
|
41
42
|
* @return If there are active subscribers
|
|
42
43
|
*/
|
|
@@ -51,6 +52,7 @@ declare module 'diagnostics_channel' {
|
|
|
51
52
|
*
|
|
52
53
|
* const channel = diagnostics_channel.channel('my-channel');
|
|
53
54
|
* ```
|
|
55
|
+
* @since v15.1.0, v14.17.0
|
|
54
56
|
* @param name The channel name
|
|
55
57
|
* @return The named channel object
|
|
56
58
|
*/
|
|
@@ -63,6 +65,7 @@ declare module 'diagnostics_channel' {
|
|
|
63
65
|
* lookups at publish time, enabling very fast publish speeds and allowing
|
|
64
66
|
* for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly
|
|
65
67
|
* with `new Channel(name)` is not supported.
|
|
68
|
+
* @since v15.1.0, v14.17.0
|
|
66
69
|
*/
|
|
67
70
|
class Channel {
|
|
68
71
|
readonly name: string;
|
|
@@ -82,6 +85,7 @@ declare module 'diagnostics_channel' {
|
|
|
82
85
|
* // There are subscribers, prepare and publish message
|
|
83
86
|
* }
|
|
84
87
|
* ```
|
|
88
|
+
* @since v15.1.0, v14.17.0
|
|
85
89
|
*/
|
|
86
90
|
readonly hasSubscribers: boolean;
|
|
87
91
|
private constructor(name: string);
|
|
@@ -99,6 +103,7 @@ declare module 'diagnostics_channel' {
|
|
|
99
103
|
* // Received data
|
|
100
104
|
* });
|
|
101
105
|
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
102
107
|
* @param onMessage The handler to receive channel messages
|
|
103
108
|
*/
|
|
104
109
|
subscribe(onMessage: ChannelListener): void;
|
|
@@ -118,6 +123,7 @@ declare module 'diagnostics_channel' {
|
|
|
118
123
|
*
|
|
119
124
|
* channel.unsubscribe(onMessage);
|
|
120
125
|
* ```
|
|
126
|
+
* @since v15.1.0, v14.17.0
|
|
121
127
|
* @param onMessage The previous subscribed handler to remove
|
|
122
128
|
*/
|
|
123
129
|
unsubscribe(onMessage: ChannelListener): void;
|
|
@@ -323,7 +323,7 @@ declare module 'dns/promises' {
|
|
|
323
323
|
* The `dnsPromises.setServers()` method must not be called while a DNS query is in
|
|
324
324
|
* progress.
|
|
325
325
|
*
|
|
326
|
-
* This method works much like[resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
326
|
+
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
327
327
|
* 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
|
|
328
328
|
* subsequent servers provided. Fallback DNS servers will only be used if the
|
|
329
329
|
* earlier ones time out or result in some other error.
|
|
@@ -331,6 +331,17 @@ declare module 'dns/promises' {
|
|
|
331
331
|
* @param servers array of `RFC 5952` formatted addresses
|
|
332
332
|
*/
|
|
333
333
|
function setServers(servers: ReadonlyArray<string>): void;
|
|
334
|
+
/**
|
|
335
|
+
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
336
|
+
* - `ipv4first`: sets default `verbatim` `false`.
|
|
337
|
+
* - `verbatim`: sets default `verbatim` `true`.
|
|
338
|
+
*
|
|
339
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher priority than `--dns-result-order`.
|
|
340
|
+
* When using worker threads, {@link setDefaultResultOrder} from the main thread won't affect the default dns orders in workers.
|
|
341
|
+
* @since v14.18.0
|
|
342
|
+
* @param order must be 'ipv4first' or 'verbatim'.
|
|
343
|
+
*/
|
|
344
|
+
function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
334
345
|
class Resolver {
|
|
335
346
|
constructor(options?: ResolverOptions);
|
|
336
347
|
cancel(): void;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
44
|
* See the `Implementation considerations section` for more information.
|
|
45
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
45
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/dns.js)
|
|
46
46
|
*/
|
|
47
47
|
declare module 'dns' {
|
|
48
48
|
import * as dnsPromises from 'node:dns/promises';
|
|
@@ -502,7 +502,7 @@ declare module 'dns' {
|
|
|
502
502
|
*
|
|
503
503
|
* The {@link setServers} method affects only {@link resolve},`dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}).
|
|
504
504
|
*
|
|
505
|
-
* This method works much like[resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
505
|
+
* This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
|
|
506
506
|
* 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
|
|
507
507
|
* subsequent servers provided. Fallback DNS servers will only be used if the
|
|
508
508
|
* earlier ones time out or result in some other error.
|
|
@@ -526,6 +526,17 @@ declare module 'dns' {
|
|
|
526
526
|
* @since v0.11.3
|
|
527
527
|
*/
|
|
528
528
|
export function getServers(): string[];
|
|
529
|
+
/**
|
|
530
|
+
* Set the default value of `verbatim` in {@link lookup}. The value could be:
|
|
531
|
+
* - `ipv4first`: sets default `verbatim` `false`.
|
|
532
|
+
* - `verbatim`: sets default `verbatim` `true`.
|
|
533
|
+
*
|
|
534
|
+
* The default is `ipv4first` and {@link setDefaultResultOrder} have higher priority than `--dns-result-order`.
|
|
535
|
+
* When using worker threads, {@link setDefaultResultOrder} from the main thread won't affect the default dns orders in workers.
|
|
536
|
+
* @since v14.18.0
|
|
537
|
+
* @param order must be 'ipv4first' or 'verbatim'.
|
|
538
|
+
*/
|
|
539
|
+
export function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void;
|
|
529
540
|
// Error codes
|
|
530
541
|
export const NODATA: string;
|
|
531
542
|
export const FORMERR: string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
|
|
12
12
|
* exit immediately with an error code.
|
|
13
13
|
* @deprecated Since v1.4.2 - Deprecated
|
|
14
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
14
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/domain.js)
|
|
15
15
|
*/
|
|
16
16
|
declare module 'domain' {
|
|
17
17
|
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/v16.
|
|
35
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/events.js)
|
|
36
36
|
*/
|
|
37
37
|
declare module 'events' {
|
|
38
38
|
interface EventEmitterOptions {
|
|
@@ -78,7 +78,7 @@ declare module 'events' {
|
|
|
78
78
|
* The `Promise` will resolve with an array of all the arguments emitted to the
|
|
79
79
|
* given event.
|
|
80
80
|
*
|
|
81
|
-
* This method is intentionally generic and works with the web platform[EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event
|
|
81
|
+
* This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event
|
|
82
82
|
* semantics and does not listen to the `'error'` event.
|
|
83
83
|
*
|
|
84
84
|
* ```js
|