cloudstructs 0.5.5 → 0.5.6
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 +4 -4
- package/assets/slack-app/provider.lambda/index.js +107 -105
- package/assets/slack-textract/detect.lambda/index.js +113 -110
- package/assets/url-shortener/shortener.lambda/index.js +9 -23
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +7 -8
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +11 -5
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +6 -3
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +14 -18
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +668 -42
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +17 -27
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +15 -16
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +24 -42
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +79 -23
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +7 -2
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +11 -1
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +10 -13
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +27 -7
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +5 -4
- 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 +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +16 -2
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +67 -15
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +142 -0
- 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 +17 -9
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +11 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +4 -2
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +25 -19
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +20 -9
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +19 -1
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +5 -3
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +2 -5
- 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 +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +7 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +11 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +6 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +14 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +668 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +17 -27
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +15 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +24 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +79 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +7 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +11 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +10 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +27 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +5 -4
- 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 +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +16 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +67 -15
- 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/test.d.ts +142 -0
- 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 +17 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +11 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +4 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +25 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +20 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +19 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +5 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +2 -5
- 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 +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +7 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +11 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +6 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +14 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +668 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +17 -27
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +15 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +24 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +79 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +7 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +10 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +27 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +5 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- 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 +16 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +2 -2
- 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 +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +67 -15
- 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 +142 -0
- 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 +17 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +4 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +25 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +20 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -3
- 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 +2 -5
- 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 +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +7 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +11 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +6 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +14 -18
- package/node_modules/@types/is-stream/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +668 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dns/promises.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +3 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +17 -27
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +15 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +24 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +79 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +7 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +11 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/inspector.d.ts +10 -13
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +27 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +5 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
- 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 +16 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +67 -15
- 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/test.d.ts +142 -0
- 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 +17 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +11 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +4 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +25 -19
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +20 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +19 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +5 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +2 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +1 -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 +7 -8
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +11 -5
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +6 -3
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +14 -18
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +668 -42
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +17 -27
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +15 -16
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +24 -42
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +79 -23
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +7 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +10 -13
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +27 -7
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +5 -4
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- 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 +16 -2
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +2 -2
- 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 +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +67 -15
- 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 +142 -0
- 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 +17 -9
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +4 -2
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +25 -19
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +20 -9
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -3
- 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 +2 -5
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +1 -1
- 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 +7 -8
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +11 -5
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +6 -3
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +14 -18
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +668 -42
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +17 -27
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +15 -16
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +24 -42
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +79 -23
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +7 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +10 -13
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +27 -7
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +5 -4
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- 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 +16 -2
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +2 -2
- 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 +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +67 -15
- 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 +142 -0
- 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 +17 -9
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +4 -2
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +25 -19
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +20 -9
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -3
- 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 +2 -5
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
- package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/buffer-stream.js +0 -0
- package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.d.ts +0 -0
- package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.js +0 -0
- package/node_modules/{decompress-response/node_modules/mimic-response → cacheable-request/node_modules/get-stream}/license +0 -0
- package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/package.json +0 -0
- package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/readme.md +0 -0
- package/node_modules/clone-response/node_modules/mimic-response/index.js +32 -0
- package/node_modules/{get-stream → clone-response/node_modules/mimic-response}/license +1 -1
- package/node_modules/clone-response/node_modules/mimic-response/package.json +37 -0
- package/node_modules/clone-response/node_modules/mimic-response/readme.md +54 -0
- package/node_modules/clone-response/package.json +3 -6
- package/node_modules/keyv/README.md +16 -3
- package/node_modules/keyv/package.json +6 -8
- package/node_modules/keyv/src/index.d.ts +16 -2
- package/node_modules/{decompress-response/node_modules/mimic-response → mimic-response}/index.d.ts +0 -0
- package/node_modules/mimic-response/index.js +58 -13
- package/node_modules/mimic-response/license +1 -1
- package/node_modules/mimic-response/package.json +40 -35
- package/node_modules/mimic-response/readme.md +33 -9
- package/node_modules/responselike/package.json +3 -2
- package/package.json +13 -13
- package/node_modules/decompress-response/node_modules/mimic-response/index.js +0 -77
- package/node_modules/decompress-response/node_modules/mimic-response/package.json +0 -42
- package/node_modules/decompress-response/node_modules/mimic-response/readme.md +0 -78
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:test` module provides a standalone testing module.
|
|
3
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
|
|
4
|
+
*/
|
|
5
|
+
declare module 'node:test' {
|
|
6
|
+
/**
|
|
7
|
+
* The `test()` function is the value imported from the test module. Each invocation of this
|
|
8
|
+
* function results in the creation of a test point in the TAP output.
|
|
9
|
+
*
|
|
10
|
+
* The {@link TestContext} object passed to the fn argument can be used to perform actions
|
|
11
|
+
* related to the current test. Examples include skipping the test, adding additional TAP
|
|
12
|
+
* diagnostic information, or creating subtests.
|
|
13
|
+
*
|
|
14
|
+
* `test()` returns a {@link Promise} that resolves once the test completes. The return value
|
|
15
|
+
* can usually be discarded for top level tests. However, the return value from subtests should
|
|
16
|
+
* be used to prevent the parent test from finishing first and cancelling the subtest as shown
|
|
17
|
+
* in the following example.
|
|
18
|
+
*
|
|
19
|
+
* ```js
|
|
20
|
+
* test('top level test', async (t) => {
|
|
21
|
+
* // The setTimeout() in the following subtest would cause it to outlive its
|
|
22
|
+
* // parent test if 'await' is removed on the next line. Once the parent test
|
|
23
|
+
* // completes, it will cancel any outstanding subtests.
|
|
24
|
+
* await t.test('longer running subtest', async (t) => {
|
|
25
|
+
* return new Promise((resolve, reject) => {
|
|
26
|
+
* setTimeout(resolve, 1000);
|
|
27
|
+
* });
|
|
28
|
+
* });
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
* @since v18.0.0
|
|
32
|
+
* @param name The name of the test, which is displayed when reporting test results.
|
|
33
|
+
* Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
|
|
34
|
+
* @param options Configuration options for the test
|
|
35
|
+
* @param fn The function under test. This first argument to this function is a
|
|
36
|
+
* {@link TestContext} object. If the test uses callbacks, the callback function is
|
|
37
|
+
* passed as the second argument. Default: A no-op function.
|
|
38
|
+
* @returns A {@link Promise} resolved with `undefined` once the test completes.
|
|
39
|
+
*/
|
|
40
|
+
function test(name?: string, fn?: TestFn): Promise<void>;
|
|
41
|
+
function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
|
|
42
|
+
function test(options?: TestOptions, fn?: TestFn): Promise<void>;
|
|
43
|
+
function test(fn?: TestFn): Promise<void>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The type of a function under test. This first argument to this function is a
|
|
47
|
+
* {@link TestContext} object. If the test uses callbacks, the callback function is passed as
|
|
48
|
+
* the second argument.
|
|
49
|
+
*/
|
|
50
|
+
type TestFn = ((t: TestContext, done: (result?: any) => void) => any);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* An instance of `TestContext` is passed to each test function in order to interact with the
|
|
54
|
+
* test runner. However, the `TestContext` constructor is not exposed as part of the API.
|
|
55
|
+
* @since v18.0.0
|
|
56
|
+
*/
|
|
57
|
+
interface TestContext {
|
|
58
|
+
/**
|
|
59
|
+
* This function is used to write TAP diagnostics to the output. Any diagnostic information is
|
|
60
|
+
* included at the end of the test's results. This function does not return a value.
|
|
61
|
+
* @param message Message to be displayed as a TAP diagnostic.
|
|
62
|
+
* @since v18.0.0
|
|
63
|
+
*/
|
|
64
|
+
diagnostic(message: string): void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* If `shouldRunOnlyTests` is truthy, the test context will only run tests that have the `only`
|
|
68
|
+
* option set. Otherwise, all tests are run. If Node.js was not started with the `--test-only`
|
|
69
|
+
* command-line option, this function is a no-op.
|
|
70
|
+
* @param shouldRunOnlyTests Whether or not to run `only` tests.
|
|
71
|
+
* @since v18.0.0
|
|
72
|
+
*/
|
|
73
|
+
runOnly(shouldRunOnlyTests: boolean): void;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* This function causes the test's output to indicate the test as skipped. If `message` is
|
|
77
|
+
* provided, it is included in the TAP output. Calling `skip()` does not terminate execution of
|
|
78
|
+
* the test function. This function does not return a value.
|
|
79
|
+
* @param message Optional skip message to be displayed in TAP output.
|
|
80
|
+
* @since v18.0.0
|
|
81
|
+
*/
|
|
82
|
+
skip(message?: string): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* This function adds a `TODO` directive to the test's output. If `message` is provided, it is
|
|
86
|
+
* included in the TAP output. Calling `todo()` does not terminate execution of the test
|
|
87
|
+
* function. This function does not return a value.
|
|
88
|
+
* @param message Optional `TODO` message to be displayed in TAP output.
|
|
89
|
+
* @since v18.0.0
|
|
90
|
+
*/
|
|
91
|
+
todo(message?: string): void;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* This function is used to create subtests under the current test. This function behaves in
|
|
95
|
+
* the same fashion as the top level {@link test} function.
|
|
96
|
+
* @since v18.0.0
|
|
97
|
+
* @param name The name of the test, which is displayed when reporting test results.
|
|
98
|
+
* Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
|
|
99
|
+
* @param options Configuration options for the test
|
|
100
|
+
* @param fn The function under test. This first argument to this function is a
|
|
101
|
+
* {@link TestContext} object. If the test uses callbacks, the callback function is
|
|
102
|
+
* passed as the second argument. Default: A no-op function.
|
|
103
|
+
* @returns A {@link Promise} resolved with `undefined` once the test completes.
|
|
104
|
+
*/
|
|
105
|
+
test: typeof test;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
interface TestOptions {
|
|
109
|
+
/**
|
|
110
|
+
* The number of tests that can be run at the same time. If unspecified, subtests inherit this
|
|
111
|
+
* value from their parent.
|
|
112
|
+
* @default 1
|
|
113
|
+
*/
|
|
114
|
+
concurrency?: number;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* If truthy, and the test context is configured to run `only` tests, then this test will be
|
|
118
|
+
* run. Otherwise, the test is skipped.
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
only?: boolean;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* If truthy, the test is skipped. If a string is provided, that string is displayed in the
|
|
125
|
+
* test results as the reason for skipping the test.
|
|
126
|
+
* @default false
|
|
127
|
+
*/
|
|
128
|
+
skip?: boolean | string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in
|
|
132
|
+
* the test results as the reason why the test is `TODO`.
|
|
133
|
+
* @default false
|
|
134
|
+
*/
|
|
135
|
+
todo?: boolean | string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export {
|
|
139
|
+
test as default,
|
|
140
|
+
test,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The timer functions within Node.js implement a similar API as the timers API
|
|
7
7
|
* provided by Web Browsers but use a different internal implementation that is
|
|
8
8
|
* built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/timers.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'timers' {
|
|
12
12
|
import { Abortable } from 'node:events';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const tls = require('tls');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tls.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'tls' {
|
|
12
12
|
import { X509Certificate } from 'node:crypto';
|
|
@@ -143,8 +143,8 @@ declare module 'tls' {
|
|
|
143
143
|
*/
|
|
144
144
|
constructor(socket: net.Socket, options?: TLSSocketOptions);
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
147
|
-
* when creating the `tls.TLSSocket` instance, otherwise `false`.
|
|
146
|
+
* This property is `true` if the peer certificate was signed by one of the CAs
|
|
147
|
+
* specified when creating the `tls.TLSSocket` instance, otherwise `false`.
|
|
148
148
|
* @since v0.11.4
|
|
149
149
|
*/
|
|
150
150
|
authorized: boolean;
|
|
@@ -343,9 +343,9 @@ declare module 'tls' {
|
|
|
343
343
|
* When enabled, TLS packet trace information is written to `stderr`. This can be
|
|
344
344
|
* used to debug TLS connection problems.
|
|
345
345
|
*
|
|
346
|
-
*
|
|
347
|
-
* undocumented, can change
|
|
348
|
-
* and should not be relied on.
|
|
346
|
+
* The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by
|
|
347
|
+
* OpenSSL's `SSL_trace()` function, the format is undocumented, can change
|
|
348
|
+
* without notice, and should not be relied on.
|
|
349
349
|
* @since v12.2.0
|
|
350
350
|
*/
|
|
351
351
|
enableTrace(): void;
|
|
@@ -374,7 +374,7 @@ declare module 'tls' {
|
|
|
374
374
|
* 128,
|
|
375
375
|
* 'client finished');
|
|
376
376
|
*
|
|
377
|
-
*
|
|
377
|
+
* /*
|
|
378
378
|
* Example return value of keyingMaterial:
|
|
379
379
|
* <Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
|
|
380
380
|
* 12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
|
|
@@ -814,13 +814,19 @@ declare module 'tls' {
|
|
|
814
814
|
* Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
|
|
815
815
|
* failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
|
|
816
816
|
*
|
|
817
|
-
* This function can be
|
|
818
|
-
*
|
|
817
|
+
* This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as
|
|
818
|
+
* such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead.
|
|
819
|
+
*
|
|
820
|
+
* This function can be overwritten by providing an alternative function as the`options.checkServerIdentity` option that is passed to `tls.connect()`. The
|
|
819
821
|
* overwriting function can call `tls.checkServerIdentity()` of course, to augment
|
|
820
822
|
* the checks done with additional verification.
|
|
821
823
|
*
|
|
822
824
|
* This function is only called if the certificate passed all other checks, such as
|
|
823
825
|
* being issued by trusted CA (`options.ca`).
|
|
826
|
+
*
|
|
827
|
+
* Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name
|
|
828
|
+
* was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use
|
|
829
|
+
* a custom`options.checkServerIdentity` function that implements the desired behavior.
|
|
824
830
|
* @since v0.8.4
|
|
825
831
|
* @param hostname The host name or IP address to verify the certificate against.
|
|
826
832
|
* @param cert A `certificate object` representing the peer's certificate.
|
|
@@ -973,6 +979,8 @@ declare module 'tls' {
|
|
|
973
979
|
* lower-case for historical reasons, but must be uppercased to be used in
|
|
974
980
|
* the `ciphers` option of {@link createSecureContext}.
|
|
975
981
|
*
|
|
982
|
+
* Not all supported ciphers are enabled by default. See `Modifying the default TLS cipher suite`.
|
|
983
|
+
*
|
|
976
984
|
* Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
|
|
977
985
|
* TLSv1.2 and below.
|
|
978
986
|
*
|
|
@@ -66,6 +66,16 @@
|
|
|
66
66
|
* node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
|
|
67
67
|
* ```
|
|
68
68
|
*
|
|
69
|
+
* To guarantee that the log file is properly generated after signal events like`SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
|
|
70
|
+
* in your code, such as:
|
|
71
|
+
*
|
|
72
|
+
* ```js
|
|
73
|
+
* process.on('SIGINT', function onSigint() {
|
|
74
|
+
* console.info('Received SIGINT.');
|
|
75
|
+
* process.exit(130); // Or applicable exit code depending on OS and signal
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
69
79
|
* The tracing system uses the same time source
|
|
70
80
|
* as the one used by `process.hrtime()`.
|
|
71
81
|
* However the trace-event timestamps are expressed in microseconds,
|
|
@@ -73,7 +83,7 @@
|
|
|
73
83
|
*
|
|
74
84
|
* The features from this module are not available in `Worker` threads.
|
|
75
85
|
* @experimental
|
|
76
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
86
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/trace_events.js)
|
|
77
87
|
*/
|
|
78
88
|
declare module 'trace_events' {
|
|
79
89
|
/**
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* In most cases, there should be little to no reason for an application to
|
|
24
24
|
* manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
|
|
25
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
25
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tty.js)
|
|
26
26
|
*/
|
|
27
27
|
declare module 'tty' {
|
|
28
28
|
import * as net from 'node:net';
|
|
@@ -52,7 +52,9 @@ declare module 'tty' {
|
|
|
52
52
|
*
|
|
53
53
|
* When in raw mode, input is always available character-by-character, not
|
|
54
54
|
* including modifiers. Additionally, all special processing of characters by the
|
|
55
|
-
* terminal is disabled, including echoing input
|
|
55
|
+
* terminal is disabled, including echoing input
|
|
56
|
+
* characters. Ctrl+C will no longer cause a `SIGINT` when
|
|
57
|
+
* in this mode.
|
|
56
58
|
* @since v0.7.7
|
|
57
59
|
* @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw`
|
|
58
60
|
* property will be set to the resulting mode.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```js
|
|
6
6
|
* import url from 'url';
|
|
7
7
|
* ```
|
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module 'url' {
|
|
11
11
|
import { Blob } from 'node:buffer';
|
|
@@ -59,8 +59,12 @@ declare module 'url' {
|
|
|
59
59
|
* lenient, non-standard algorithm for parsing URL strings, security
|
|
60
60
|
* issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and
|
|
61
61
|
* incorrect handling of usernames and passwords have been identified.
|
|
62
|
+
*
|
|
63
|
+
* Deprecation of this API has been shelved for now primarily due to the the
|
|
64
|
+
* inability of the [WHATWG API to parse relative URLs](https://github.com/nodejs/node/issues/12682#issuecomment-1154492373).
|
|
65
|
+
* [Discussions are ongoing](https://github.com/whatwg/url/issues/531) for the best way to resolve this.
|
|
66
|
+
*
|
|
62
67
|
* @since v0.1.25
|
|
63
|
-
* @deprecated Legacy: Use the WHATWG URL API instead.
|
|
64
68
|
* @param urlString The URL string to parse.
|
|
65
69
|
* @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property
|
|
66
70
|
* on the returned URL object will be an unparsed, undecoded string.
|
|
@@ -201,7 +205,7 @@ declare module 'url' {
|
|
|
201
205
|
function format(urlObject: UrlObject | string): string;
|
|
202
206
|
/**
|
|
203
207
|
* The `url.resolve()` method resolves a target URL relative to a base URL in a
|
|
204
|
-
* manner similar to that of a
|
|
208
|
+
* manner similar to that of a web browser resolving an anchor tag.
|
|
205
209
|
*
|
|
206
210
|
* ```js
|
|
207
211
|
* const url = require('url');
|
|
@@ -210,7 +214,7 @@ declare module 'url' {
|
|
|
210
214
|
* url.resolve('http://example.com/one', '/two'); // 'http://example.com/two'
|
|
211
215
|
* ```
|
|
212
216
|
*
|
|
213
|
-
*
|
|
217
|
+
* To achieve the same result using the WHATWG URL API:
|
|
214
218
|
*
|
|
215
219
|
* ```js
|
|
216
220
|
* function resolve(from, to) {
|
|
@@ -229,8 +233,8 @@ declare module 'url' {
|
|
|
229
233
|
* ```
|
|
230
234
|
* @since v0.1.25
|
|
231
235
|
* @deprecated Legacy: Use the WHATWG URL API instead.
|
|
232
|
-
* @param from The
|
|
233
|
-
* @param to The
|
|
236
|
+
* @param from The base URL to use if `to` is a relative URL.
|
|
237
|
+
* @param to The target URL to resolve.
|
|
234
238
|
*/
|
|
235
239
|
function resolve(from: string, to: string): string;
|
|
236
240
|
/**
|
|
@@ -328,7 +332,7 @@ declare module 'url' {
|
|
|
328
332
|
* const myURL = new URL('https://a:b@測試?abc#foo');
|
|
329
333
|
*
|
|
330
334
|
* console.log(urlToHttpOptions(myURL));
|
|
331
|
-
*
|
|
335
|
+
* /*
|
|
332
336
|
* {
|
|
333
337
|
* protocol: 'https:',
|
|
334
338
|
* hostname: 'xn--g6w251d',
|
|
@@ -393,7 +397,8 @@ declare module 'url' {
|
|
|
393
397
|
*/
|
|
394
398
|
static createObjectURL(blob: Blob): string;
|
|
395
399
|
/**
|
|
396
|
-
* Removes the stored `Blob` identified by the given ID.
|
|
400
|
+
* Removes the stored `Blob` identified by the given ID. Attempting to revoke a
|
|
401
|
+
* ID that isn’t registered will silently fail.
|
|
397
402
|
* @since v16.7.0
|
|
398
403
|
* @experimental
|
|
399
404
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
@@ -855,7 +860,6 @@ declare module 'url' {
|
|
|
855
860
|
values(): IterableIterator<string>;
|
|
856
861
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
857
862
|
}
|
|
858
|
-
|
|
859
863
|
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
|
|
860
864
|
global {
|
|
861
865
|
interface URLSearchParams extends _URLSearchParams {}
|
|
@@ -869,21 +873,23 @@ declare module 'url' {
|
|
|
869
873
|
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
870
874
|
* @since v10.0.0
|
|
871
875
|
*/
|
|
872
|
-
var URL:
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
876
|
+
var URL: typeof globalThis extends {
|
|
877
|
+
onmessage: any;
|
|
878
|
+
URL: infer URL;
|
|
879
|
+
}
|
|
880
|
+
? URL
|
|
881
|
+
: typeof _URL;
|
|
877
882
|
/**
|
|
878
883
|
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
|
|
879
884
|
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
880
885
|
* @since v10.0.0
|
|
881
886
|
*/
|
|
882
|
-
var URLSearchParams:
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
+
var URLSearchParams: typeof globalThis extends {
|
|
888
|
+
onmessage: any;
|
|
889
|
+
URLSearchParams: infer URLSearchParams;
|
|
890
|
+
}
|
|
891
|
+
? URLSearchParams
|
|
892
|
+
: typeof _URLSearchParams;
|
|
887
893
|
}
|
|
888
894
|
}
|
|
889
895
|
declare module 'node:url' {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const util = require('util');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'util' {
|
|
12
12
|
import * as types from 'node:util/types';
|
|
@@ -309,6 +309,21 @@ declare module 'util' {
|
|
|
309
309
|
* );
|
|
310
310
|
* ```
|
|
311
311
|
*
|
|
312
|
+
* The `numericSeparator` option adds an underscore every three digits to all
|
|
313
|
+
* numbers.
|
|
314
|
+
*
|
|
315
|
+
* ```js
|
|
316
|
+
* const { inspect } = require('util');
|
|
317
|
+
*
|
|
318
|
+
* const thousand = 1_000;
|
|
319
|
+
* const million = 1_000_000;
|
|
320
|
+
* const bigNumber = 123_456_789n;
|
|
321
|
+
* const bigDecimal = 1_234.123_45;
|
|
322
|
+
*
|
|
323
|
+
* console.log(thousand, million, bigNumber, bigDecimal);
|
|
324
|
+
* // 1_000 1_000_000 123_456_789n 1_234.123_45
|
|
325
|
+
* ```
|
|
326
|
+
*
|
|
312
327
|
* `util.inspect()` is a synchronous method intended for debugging. Its maximum
|
|
313
328
|
* output length is approximately 128 MB. Inputs that result in longer output will
|
|
314
329
|
* be truncated.
|
|
@@ -859,7 +874,7 @@ declare module 'util' {
|
|
|
859
874
|
* callbackFunction((err, ret) => {
|
|
860
875
|
* // When the Promise was rejected with `null` it is wrapped with an Error and
|
|
861
876
|
* // the original value is stored in `reason`.
|
|
862
|
-
* err &&
|
|
877
|
+
* err && Object.hasOwn(err, 'reason') && err.reason === null; // true
|
|
863
878
|
* });
|
|
864
879
|
* ```
|
|
865
880
|
* @since v8.2.0
|
|
@@ -998,13 +1013,9 @@ declare module 'util' {
|
|
|
998
1013
|
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
|
|
999
1014
|
*
|
|
1000
1015
|
* ```js
|
|
1001
|
-
* const decoder = new TextDecoder(
|
|
1002
|
-
*
|
|
1003
|
-
*
|
|
1004
|
-
* while (buffer = getNextChunkSomehow()) {
|
|
1005
|
-
* string += decoder.decode(buffer, { stream: true });
|
|
1006
|
-
* }
|
|
1007
|
-
* string += decoder.decode(); // end-of-stream
|
|
1016
|
+
* const decoder = new TextDecoder();
|
|
1017
|
+
* const u8arr = new Uint8Array([72, 101, 108, 108, 111]);
|
|
1018
|
+
* console.log(decoder.decode(u8arr)); // Hello
|
|
1008
1019
|
* ```
|
|
1009
1020
|
* @since v8.3.0
|
|
1010
1021
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* ```js
|
|
5
5
|
* const v8 = require('v8');
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module 'v8' {
|
|
10
10
|
import { Readable } from 'node:stream';
|
|
@@ -163,6 +163,13 @@ declare module 'v8' {
|
|
|
163
163
|
* Chrome DevTools. The JSON schema is undocumented and specific to the
|
|
164
164
|
* V8 engine. Therefore, the schema may change from one version of V8 to the next.
|
|
165
165
|
*
|
|
166
|
+
* Creating a heap snapshot requires memory about twice the size of the heap at
|
|
167
|
+
* the time the snapshot is created. This results in the risk of OOM killers
|
|
168
|
+
* terminating the process.
|
|
169
|
+
*
|
|
170
|
+
* Generating a snapshot is a synchronous operation which blocks the event loop
|
|
171
|
+
* for a duration depending on the heap size.
|
|
172
|
+
*
|
|
166
173
|
* ```js
|
|
167
174
|
* // Print heap snapshot to the console
|
|
168
175
|
* const v8 = require('v8');
|
|
@@ -182,6 +189,13 @@ declare module 'v8' {
|
|
|
182
189
|
* A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will
|
|
183
190
|
* not contain any information about the workers, and vice versa.
|
|
184
191
|
*
|
|
192
|
+
* Creating a heap snapshot requires memory about twice the size of the heap at
|
|
193
|
+
* the time the snapshot is created. This results in the risk of OOM killers
|
|
194
|
+
* terminating the process.
|
|
195
|
+
*
|
|
196
|
+
* Generating a snapshot is a synchronous operation which blocks the event loop
|
|
197
|
+
* for a duration depending on the heap size.
|
|
198
|
+
*
|
|
185
199
|
* ```js
|
|
186
200
|
* const { writeHeapSnapshot } = require('v8');
|
|
187
201
|
* const {
|
|
@@ -344,6 +358,10 @@ declare module 'v8' {
|
|
|
344
358
|
class DefaultDeserializer extends Deserializer {}
|
|
345
359
|
/**
|
|
346
360
|
* Uses a `DefaultSerializer` to serialize `value` into a buffer.
|
|
361
|
+
*
|
|
362
|
+
* `ERR_BUFFER_TOO_LARGE` will be thrown when trying to
|
|
363
|
+
* serialize a huge object which requires buffer
|
|
364
|
+
* larger than `buffer.constants.MAX_LENGTH`.
|
|
347
365
|
* @since v8.0.0
|
|
348
366
|
*/
|
|
349
367
|
function serialize(value: any): Buffer;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `vm` module enables compiling and running code within V8 Virtual
|
|
3
|
-
* Machine contexts.
|
|
4
|
-
*
|
|
3
|
+
* Machine contexts.
|
|
4
|
+
*
|
|
5
|
+
* **The `vm` module is not a security**
|
|
6
|
+
* **mechanism. Do not use it to run untrusted code.**
|
|
5
7
|
*
|
|
6
8
|
* JavaScript code can be compiled and run immediately or
|
|
7
9
|
* compiled, saved, and run later.
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
*
|
|
33
35
|
* console.log(x); // 1; y is not defined.
|
|
34
36
|
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
37
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/vm.js)
|
|
36
38
|
*/
|
|
37
39
|
declare module 'vm' {
|
|
38
40
|
interface Context extends NodeJS.Dict<any> {}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
* The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
|
|
69
69
|
* example to run.
|
|
70
70
|
* @experimental
|
|
71
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
71
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/wasi.js)
|
|
72
72
|
*/
|
|
73
73
|
declare module 'wasi' {
|
|
74
74
|
interface WASIOptions {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* }
|
|
40
40
|
* ```
|
|
41
41
|
*
|
|
42
|
-
* The above example spawns a Worker thread for each `
|
|
42
|
+
* The above example spawns a Worker thread for each `parseJSAsync()` call. In
|
|
43
43
|
* practice, use a pool of Workers for these kinds of tasks. Otherwise, the
|
|
44
44
|
* overhead of creating Workers would likely exceed their benefit.
|
|
45
45
|
*
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*
|
|
50
50
|
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
51
51
|
* specifically `argv` and `execArgv` options.
|
|
52
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module 'worker_threads' {
|
|
55
55
|
import { Blob } from 'node:buffer';
|
|
@@ -507,7 +507,6 @@ declare module 'worker_threads' {
|
|
|
507
507
|
* }
|
|
508
508
|
* ```
|
|
509
509
|
* @since v15.4.0
|
|
510
|
-
* @experimental
|
|
511
510
|
*/
|
|
512
511
|
class BroadcastChannel {
|
|
513
512
|
readonly name: string;
|
|
@@ -630,14 +629,12 @@ declare module 'worker_threads' {
|
|
|
630
629
|
* }
|
|
631
630
|
* ```
|
|
632
631
|
* @since v15.12.0, v14.18.0
|
|
633
|
-
* @experimental
|
|
634
632
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
635
633
|
*/
|
|
636
634
|
function getEnvironmentData(key: Serializable): Serializable;
|
|
637
635
|
/**
|
|
638
636
|
* The `worker.setEnvironmentData()` API sets the content of`worker.getEnvironmentData()` in the current thread and all new `Worker`instances spawned from the current context.
|
|
639
637
|
* @since v15.12.0, v14.18.0
|
|
640
|
-
* @experimental
|
|
641
638
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
642
639
|
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
643
640
|
* for the `key` will be deleted.
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* });
|
|
89
89
|
* ```
|
|
90
90
|
* @since v0.5.8
|
|
91
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
91
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/zlib.js)
|
|
92
92
|
*/
|
|
93
93
|
declare module 'zlib' {
|
|
94
94
|
import * as stream from 'node:stream';
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 17 Jul 2022 21:02:29 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `assert` module provides a set of assertion functions for verifying
|
|
3
3
|
* invariants.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/assert.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module 'assert' {
|
|
7
7
|
/**
|
|
@@ -237,8 +237,8 @@ declare module 'assert' {
|
|
|
237
237
|
* > Stability: 3 - Legacy: Use {@link strictEqual} instead.
|
|
238
238
|
*
|
|
239
239
|
* Tests shallow, coercive equality between the `actual` and `expected` parameters
|
|
240
|
-
* using the [
|
|
241
|
-
* and treated as being identical
|
|
240
|
+
* using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled
|
|
241
|
+
* and treated as being identical if both sides are `NaN`.
|
|
242
242
|
*
|
|
243
243
|
* ```js
|
|
244
244
|
* import assert from 'assert';
|
|
@@ -270,9 +270,8 @@ declare module 'assert' {
|
|
|
270
270
|
*
|
|
271
271
|
* > Stability: 3 - Legacy: Use {@link notStrictEqual} instead.
|
|
272
272
|
*
|
|
273
|
-
* Tests shallow, coercive inequality with the [
|
|
274
|
-
* being identical
|
|
275
|
-
* sides are `NaN`.
|
|
273
|
+
* Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is
|
|
274
|
+
* specially handled and treated as being identical if both sides are `NaN`.
|
|
276
275
|
*
|
|
277
276
|
* ```js
|
|
278
277
|
* import assert from 'assert';
|
|
@@ -362,7 +361,7 @@ declare module 'assert' {
|
|
|
362
361
|
function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
|
363
362
|
/**
|
|
364
363
|
* Tests strict equality between the `actual` and `expected` parameters as
|
|
365
|
-
* determined by
|
|
364
|
+
* determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
|
|
366
365
|
*
|
|
367
366
|
* ```js
|
|
368
367
|
* import assert from 'assert/strict';
|
|
@@ -400,7 +399,7 @@ declare module 'assert' {
|
|
|
400
399
|
function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
|
|
401
400
|
/**
|
|
402
401
|
* Tests strict inequality between the `actual` and `expected` parameters as
|
|
403
|
-
* determined by
|
|
402
|
+
* determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
|
|
404
403
|
*
|
|
405
404
|
* ```js
|
|
406
405
|
* import assert from 'assert/strict';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* import async_hooks from 'async_hooks';
|
|
7
7
|
* ```
|
|
8
8
|
* @experimental
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/async_hooks.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'async_hooks' {
|
|
12
12
|
/**
|
|
@@ -364,7 +364,7 @@ declare module 'async_hooks' {
|
|
|
364
364
|
*
|
|
365
365
|
* Each instance of `AsyncLocalStorage` maintains an independent storage context.
|
|
366
366
|
* Multiple instances can safely exist simultaneously without risk of interfering
|
|
367
|
-
* with each other data.
|
|
367
|
+
* with each other's data.
|
|
368
368
|
* @since v13.10.0, v12.17.0
|
|
369
369
|
*/
|
|
370
370
|
class AsyncLocalStorage<T> {
|