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
|
@@ -1,5 +1,390 @@
|
|
|
1
1
|
declare module 'stream/web' {
|
|
2
2
|
// stub module, pending copy&paste from .d.ts or manual impl
|
|
3
|
+
// copy from lib.dom.d.ts
|
|
4
|
+
|
|
5
|
+
interface ReadableWritablePair<R = any, W = any> {
|
|
6
|
+
readable: ReadableStream<R>;
|
|
7
|
+
/**
|
|
8
|
+
* Provides a convenient, chainable way of piping this readable stream
|
|
9
|
+
* through a transform stream (or any other { writable, readable }
|
|
10
|
+
* pair). It simply pipes the stream into the writable side of the
|
|
11
|
+
* supplied pair, and returns the readable side for further use.
|
|
12
|
+
*
|
|
13
|
+
* Piping a stream will lock it for the duration of the pipe, preventing
|
|
14
|
+
* any other consumer from acquiring a reader.
|
|
15
|
+
*/
|
|
16
|
+
writable: WritableStream<W>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface StreamPipeOptions {
|
|
20
|
+
preventAbort?: boolean;
|
|
21
|
+
preventCancel?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Pipes this readable stream to a given writable stream destination.
|
|
24
|
+
* The way in which the piping process behaves under various error
|
|
25
|
+
* conditions can be customized with a number of passed options. It
|
|
26
|
+
* returns a promise that fulfills when the piping process completes
|
|
27
|
+
* successfully, or rejects if any errors were encountered.
|
|
28
|
+
*
|
|
29
|
+
* Piping a stream will lock it for the duration of the pipe, preventing
|
|
30
|
+
* any other consumer from acquiring a reader.
|
|
31
|
+
*
|
|
32
|
+
* Errors and closures of the source and destination streams propagate
|
|
33
|
+
* as follows:
|
|
34
|
+
*
|
|
35
|
+
* An error in this source readable stream will abort destination,
|
|
36
|
+
* unless preventAbort is truthy. The returned promise will be rejected
|
|
37
|
+
* with the source's error, or with any error that occurs during
|
|
38
|
+
* aborting the destination.
|
|
39
|
+
*
|
|
40
|
+
* An error in destination will cancel this source readable stream,
|
|
41
|
+
* unless preventCancel is truthy. The returned promise will be rejected
|
|
42
|
+
* with the destination's error, or with any error that occurs during
|
|
43
|
+
* canceling the source.
|
|
44
|
+
*
|
|
45
|
+
* When this source readable stream closes, destination will be closed,
|
|
46
|
+
* unless preventClose is truthy. The returned promise will be fulfilled
|
|
47
|
+
* once this process completes, unless an error is encountered while
|
|
48
|
+
* closing the destination, in which case it will be rejected with that
|
|
49
|
+
* error.
|
|
50
|
+
*
|
|
51
|
+
* If destination starts out closed or closing, this source readable
|
|
52
|
+
* stream will be canceled, unless preventCancel is true. The returned
|
|
53
|
+
* promise will be rejected with an error indicating piping to a closed
|
|
54
|
+
* stream failed, or with any error that occurs during canceling the
|
|
55
|
+
* source.
|
|
56
|
+
*
|
|
57
|
+
* The signal option can be set to an AbortSignal to allow aborting an
|
|
58
|
+
* ongoing pipe operation via the corresponding AbortController. In this
|
|
59
|
+
* case, this source readable stream will be canceled, and destination
|
|
60
|
+
* aborted, unless the respective options preventCancel or preventAbort
|
|
61
|
+
* are set.
|
|
62
|
+
*/
|
|
63
|
+
preventClose?: boolean;
|
|
64
|
+
signal?: AbortSignal;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface ReadableStreamGenericReader {
|
|
68
|
+
readonly closed: Promise<undefined>;
|
|
69
|
+
cancel(reason?: any): Promise<void>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface ReadableStreamDefaultReadValueResult<T> {
|
|
73
|
+
done: false;
|
|
74
|
+
value: T;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface ReadableStreamDefaultReadDoneResult {
|
|
78
|
+
done: true;
|
|
79
|
+
value?: undefined;
|
|
80
|
+
}
|
|
81
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
82
|
+
type ReadableStreamDefaultReadResult<T> =
|
|
83
|
+
| ReadableStreamDefaultReadValueResult<T>
|
|
84
|
+
| ReadableStreamDefaultReadDoneResult;
|
|
85
|
+
|
|
86
|
+
interface ReadableByteStreamControllerCallback {
|
|
87
|
+
(controller: ReadableByteStreamController): void | PromiseLike<void>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface UnderlyingSinkAbortCallback {
|
|
91
|
+
(reason?: any): void | PromiseLike<void>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface UnderlyingSinkCloseCallback {
|
|
95
|
+
(): void | PromiseLike<void>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface UnderlyingSinkStartCallback {
|
|
99
|
+
(controller: WritableStreamDefaultController): any;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface UnderlyingSinkWriteCallback<W> {
|
|
103
|
+
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface UnderlyingSourceCancelCallback {
|
|
107
|
+
(reason?: any): void | PromiseLike<void>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface UnderlyingSourcePullCallback<R> {
|
|
111
|
+
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface UnderlyingSourceStartCallback<R> {
|
|
115
|
+
(controller: ReadableStreamController<R>): any;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface TransformerFlushCallback<O> {
|
|
119
|
+
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface TransformerStartCallback<O> {
|
|
123
|
+
(controller: TransformStreamDefaultController<O>): any;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface TransformerTransformCallback<I, O> {
|
|
127
|
+
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
interface UnderlyingByteSource {
|
|
131
|
+
autoAllocateChunkSize?: number;
|
|
132
|
+
cancel?: ReadableStreamErrorCallback;
|
|
133
|
+
pull?: ReadableByteStreamControllerCallback;
|
|
134
|
+
start?: ReadableByteStreamControllerCallback;
|
|
135
|
+
type: 'bytes';
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface UnderlyingSource<R = any> {
|
|
139
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
140
|
+
pull?: UnderlyingSourcePullCallback<R>;
|
|
141
|
+
start?: UnderlyingSourceStartCallback<R>;
|
|
142
|
+
type?: undefined;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
interface UnderlyingSink<W = any> {
|
|
146
|
+
abort?: UnderlyingSinkAbortCallback;
|
|
147
|
+
close?: UnderlyingSinkCloseCallback;
|
|
148
|
+
start?: UnderlyingSinkStartCallback;
|
|
149
|
+
type?: undefined;
|
|
150
|
+
write?: UnderlyingSinkWriteCallback<W>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface ReadableStreamErrorCallback {
|
|
154
|
+
(reason: any): void | PromiseLike<void>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** This Streams API interface represents a readable stream of byte data. */
|
|
158
|
+
interface ReadableStream<R = any> {
|
|
159
|
+
readonly locked: boolean;
|
|
160
|
+
cancel(reason?: any): Promise<void>;
|
|
161
|
+
getReader(): ReadableStreamDefaultReader<R>;
|
|
162
|
+
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
163
|
+
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
164
|
+
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
165
|
+
[Symbol.asyncIterator](options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const ReadableStream: {
|
|
169
|
+
prototype: ReadableStream;
|
|
170
|
+
new (
|
|
171
|
+
underlyingSource: UnderlyingByteSource,
|
|
172
|
+
strategy?: QueuingStrategy<Uint8Array>,
|
|
173
|
+
): ReadableStream<Uint8Array>;
|
|
174
|
+
new <R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
178
|
+
read(): Promise<ReadableStreamDefaultReadResult<R>>;
|
|
179
|
+
releaseLock(): void;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const ReadableStreamDefaultReader: {
|
|
183
|
+
prototype: ReadableStreamDefaultReader;
|
|
184
|
+
new <R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const ReadableStreamBYOBReader: any;
|
|
188
|
+
const ReadableStreamBYOBRequest: any;
|
|
189
|
+
|
|
190
|
+
interface ReadableByteStreamController {
|
|
191
|
+
readonly byobRequest: undefined;
|
|
192
|
+
readonly desiredSize: number | null;
|
|
193
|
+
close(): void;
|
|
194
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
195
|
+
error(error?: any): void;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const ReadableByteStreamController: {
|
|
199
|
+
prototype: ReadableByteStreamController;
|
|
200
|
+
new (): ReadableByteStreamController;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
interface ReadableStreamDefaultController<R = any> {
|
|
204
|
+
readonly desiredSize: number | null;
|
|
205
|
+
close(): void;
|
|
206
|
+
enqueue(chunk?: R): void;
|
|
207
|
+
error(e?: any): void;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const ReadableStreamDefaultController: {
|
|
211
|
+
prototype: ReadableStreamDefaultController;
|
|
212
|
+
new (): ReadableStreamDefaultController;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
interface Transformer<I = any, O = any> {
|
|
216
|
+
flush?: TransformerFlushCallback<O>;
|
|
217
|
+
readableType?: undefined;
|
|
218
|
+
start?: TransformerStartCallback<O>;
|
|
219
|
+
transform?: TransformerTransformCallback<I, O>;
|
|
220
|
+
writableType?: undefined;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
interface TransformStream<I = any, O = any> {
|
|
224
|
+
readonly readable: ReadableStream<O>;
|
|
225
|
+
readonly writable: WritableStream<I>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const TransformStream: {
|
|
229
|
+
prototype: TransformStream;
|
|
230
|
+
new <I = any, O = any>(
|
|
231
|
+
transformer?: Transformer<I, O>,
|
|
232
|
+
writableStrategy?: QueuingStrategy<I>,
|
|
233
|
+
readableStrategy?: QueuingStrategy<O>,
|
|
234
|
+
): TransformStream<I, O>;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
interface TransformStreamDefaultController<O = any> {
|
|
238
|
+
readonly desiredSize: number | null;
|
|
239
|
+
enqueue(chunk?: O): void;
|
|
240
|
+
error(reason?: any): void;
|
|
241
|
+
terminate(): void;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const TransformStreamDefaultController: {
|
|
245
|
+
prototype: TransformStreamDefaultController;
|
|
246
|
+
new (): TransformStreamDefaultController;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* This Streams API interface provides a standard abstraction for writing
|
|
251
|
+
* streaming data to a destination, known as a sink. This object comes with
|
|
252
|
+
* built-in back pressure and queuing.
|
|
253
|
+
*/
|
|
254
|
+
interface WritableStream<W = any> {
|
|
255
|
+
readonly locked: boolean;
|
|
256
|
+
abort(reason?: any): Promise<void>;
|
|
257
|
+
close(): Promise<void>;
|
|
258
|
+
getWriter(): WritableStreamDefaultWriter<W>;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const WritableStream: {
|
|
262
|
+
prototype: WritableStream;
|
|
263
|
+
new <W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* This Streams API interface is the object returned by
|
|
268
|
+
* WritableStream.getWriter() and once created locks the < writer to the
|
|
269
|
+
* WritableStream ensuring that no other streams can write to the underlying
|
|
270
|
+
* sink.
|
|
271
|
+
*/
|
|
272
|
+
interface WritableStreamDefaultWriter<W = any> {
|
|
273
|
+
readonly closed: Promise<undefined>;
|
|
274
|
+
readonly desiredSize: number | null;
|
|
275
|
+
readonly ready: Promise<undefined>;
|
|
276
|
+
abort(reason?: any): Promise<void>;
|
|
277
|
+
close(): Promise<void>;
|
|
278
|
+
releaseLock(): void;
|
|
279
|
+
write(chunk?: W): Promise<void>;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const WritableStreamDefaultWriter: {
|
|
283
|
+
prototype: WritableStreamDefaultWriter;
|
|
284
|
+
new <W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* This Streams API interface represents a controller allowing control of a
|
|
289
|
+
* WritableStream's state. When constructing a WritableStream, the
|
|
290
|
+
* underlying sink is given a corresponding WritableStreamDefaultController
|
|
291
|
+
* instance to manipulate.
|
|
292
|
+
*/
|
|
293
|
+
interface WritableStreamDefaultController {
|
|
294
|
+
error(e?: any): void;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const WritableStreamDefaultController: {
|
|
298
|
+
prototype: WritableStreamDefaultController;
|
|
299
|
+
new (): WritableStreamDefaultController;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
interface QueuingStrategy<T = any> {
|
|
303
|
+
highWaterMark?: number;
|
|
304
|
+
size?: QueuingStrategySize<T>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface QueuingStrategySize<T = any> {
|
|
308
|
+
(chunk?: T): number;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
interface QueuingStrategyInit {
|
|
312
|
+
/**
|
|
313
|
+
* Creates a new ByteLengthQueuingStrategy with the provided high water
|
|
314
|
+
* mark.
|
|
315
|
+
*
|
|
316
|
+
* Note that the provided high water mark will not be validated ahead of
|
|
317
|
+
* time. Instead, if it is negative, NaN, or not a number, the resulting
|
|
318
|
+
* ByteLengthQueuingStrategy will cause the corresponding stream
|
|
319
|
+
* constructor to throw.
|
|
320
|
+
*/
|
|
321
|
+
highWaterMark: number;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* This Streams API interface provides a built-in byte length queuing
|
|
326
|
+
* strategy that can be used when constructing streams.
|
|
327
|
+
*/
|
|
328
|
+
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
329
|
+
readonly highWaterMark: number;
|
|
330
|
+
readonly size: QueuingStrategySize<ArrayBufferView>;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
const ByteLengthQueuingStrategy: {
|
|
334
|
+
prototype: ByteLengthQueuingStrategy;
|
|
335
|
+
new (init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* This Streams API interface provides a built-in byte length queuing
|
|
340
|
+
* strategy that can be used when constructing streams.
|
|
341
|
+
*/
|
|
342
|
+
interface CountQueuingStrategy extends QueuingStrategy {
|
|
343
|
+
readonly highWaterMark: number;
|
|
344
|
+
readonly size: QueuingStrategySize;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const CountQueuingStrategy: {
|
|
348
|
+
prototype: CountQueuingStrategy;
|
|
349
|
+
new (init: QueuingStrategyInit): CountQueuingStrategy;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
interface TextEncoderStream {
|
|
353
|
+
/** Returns "utf-8". */
|
|
354
|
+
readonly encoding: 'utf-8';
|
|
355
|
+
readonly readable: ReadableStream<Uint8Array>;
|
|
356
|
+
readonly writable: WritableStream<string>;
|
|
357
|
+
readonly [Symbol.toStringTag]: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
const TextEncoderStream: {
|
|
361
|
+
prototype: TextEncoderStream;
|
|
362
|
+
new (): TextEncoderStream;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
interface TextDecoderOptions {
|
|
366
|
+
fatal?: boolean;
|
|
367
|
+
ignoreBOM?: boolean;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
371
|
+
|
|
372
|
+
interface TextDecoderStream {
|
|
373
|
+
/** Returns encoding's name, lower cased. */
|
|
374
|
+
readonly encoding: string;
|
|
375
|
+
/** Returns `true` if error mode is "fatal", and `false` otherwise. */
|
|
376
|
+
readonly fatal: boolean;
|
|
377
|
+
/** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
|
|
378
|
+
readonly ignoreBOM: boolean;
|
|
379
|
+
readonly readable: ReadableStream<string>;
|
|
380
|
+
readonly writable: WritableStream<BufferSource>;
|
|
381
|
+
readonly [Symbol.toStringTag]: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
const TextDecoderStream: {
|
|
385
|
+
prototype: TextDecoderStream;
|
|
386
|
+
new (label?: string, options?: TextDecoderOptions): TextDecoderStream;
|
|
387
|
+
};
|
|
3
388
|
}
|
|
4
389
|
declare module 'node:stream/web' {
|
|
5
390
|
export * from 'stream/web';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* The `stream` module is useful for creating new types of stream instances. It is
|
|
16
16
|
* usually not necessary to use the `stream` module to consume streams.
|
|
17
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
17
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/stream.js)
|
|
18
18
|
*/
|
|
19
19
|
declare module 'stream' {
|
|
20
20
|
import { EventEmitter, Abortable } from 'node:events';
|
|
@@ -52,12 +52,29 @@ declare module 'stream' {
|
|
|
52
52
|
* A utility method for creating Readable Streams out of iterators.
|
|
53
53
|
*/
|
|
54
54
|
static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
|
|
55
|
+
/**
|
|
56
|
+
* Returns whether the stream has been read from or cancelled.
|
|
57
|
+
* @since v16.8.0
|
|
58
|
+
*/
|
|
59
|
+
static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Returns whether the stream was destroyed or errored before emitting `'end'`.
|
|
62
|
+
* @since v16.8.0
|
|
63
|
+
* @experimental
|
|
64
|
+
*/
|
|
65
|
+
readonly readableAborted: boolean;
|
|
55
66
|
/**
|
|
56
67
|
* Is `true` if it is safe to call `readable.read()`, which means
|
|
57
68
|
* the stream has not been destroyed or emitted `'error'` or `'end'`.
|
|
58
69
|
* @since v11.4.0
|
|
59
70
|
*/
|
|
60
71
|
readable: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Returns whether `'data'` has been emitted.
|
|
74
|
+
* @since v16.7.0
|
|
75
|
+
* @experimental
|
|
76
|
+
*/
|
|
77
|
+
readonly readableDidRead: boolean;
|
|
61
78
|
/**
|
|
62
79
|
* Getter for the property `encoding` of a given `Readable` stream. The `encoding`property can be set using the `readable.setEncoding()` method.
|
|
63
80
|
* @since v12.7.0
|
|
@@ -790,8 +807,39 @@ declare module 'stream' {
|
|
|
790
807
|
readonly writableLength: number;
|
|
791
808
|
readonly writableObjectMode: boolean;
|
|
792
809
|
readonly writableCorked: number;
|
|
810
|
+
/**
|
|
811
|
+
* If `false` then the stream will automatically end the writable side when the
|
|
812
|
+
* readable side ends. Set initially by the `allowHalfOpen` constructor option,
|
|
813
|
+
* which defaults to `false`.
|
|
814
|
+
*
|
|
815
|
+
* This can be changed manually to change the half-open behavior of an existing`Duplex` stream instance, but must be changed before the `'end'` event is
|
|
816
|
+
* emitted.
|
|
817
|
+
* @since v0.9.4
|
|
818
|
+
*/
|
|
793
819
|
allowHalfOpen: boolean;
|
|
794
820
|
constructor(opts?: DuplexOptions);
|
|
821
|
+
/**
|
|
822
|
+
* A utility method for creating duplex streams.
|
|
823
|
+
*
|
|
824
|
+
* - `Stream` converts writable stream into writable `Duplex` and readable stream
|
|
825
|
+
* to `Duplex`.
|
|
826
|
+
* - `Blob` converts into readable `Duplex`.
|
|
827
|
+
* - `string` converts into readable `Duplex`.
|
|
828
|
+
* - `ArrayBuffer` converts into readable `Duplex`.
|
|
829
|
+
* - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`.
|
|
830
|
+
* - `AsyncGeneratorFunction` converts into a readable/writable transform
|
|
831
|
+
* `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield
|
|
832
|
+
* `null`.
|
|
833
|
+
* - `AsyncFunction` converts into a writable `Duplex`. Must return
|
|
834
|
+
* either `null` or `undefined`
|
|
835
|
+
* - `Object ({ writable, readable })` converts `readable` and
|
|
836
|
+
* `writable` into `Stream` and then combines them into `Duplex` where the
|
|
837
|
+
* `Duplex` will write to the `writable` and read from the `readable`.
|
|
838
|
+
* - `Promise` converts into readable `Duplex`. Value `null` is ignored.
|
|
839
|
+
*
|
|
840
|
+
* @since v16.8.0
|
|
841
|
+
*/
|
|
842
|
+
static from(src: Stream | Blob | ArrayBuffer | string | Iterable<any> | AsyncIterable<any> | AsyncGeneratorFunction | Promise<any> | Object): Duplex;
|
|
795
843
|
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
796
844
|
_writev?(
|
|
797
845
|
chunks: Array<{
|
|
@@ -1035,16 +1083,14 @@ declare module 'stream' {
|
|
|
1035
1083
|
*
|
|
1036
1084
|
* async function run() {
|
|
1037
1085
|
* const ac = new AbortController();
|
|
1038
|
-
* const
|
|
1039
|
-
* signal: ac.signal,
|
|
1040
|
-
* };
|
|
1086
|
+
* const signal = ac.signal;
|
|
1041
1087
|
*
|
|
1042
1088
|
* setTimeout(() => ac.abort(), 1);
|
|
1043
1089
|
* await pipeline(
|
|
1044
1090
|
* fs.createReadStream('archive.tar'),
|
|
1045
1091
|
* zlib.createGzip(),
|
|
1046
1092
|
* fs.createWriteStream('archive.tar.gz'),
|
|
1047
|
-
*
|
|
1093
|
+
* { signal },
|
|
1048
1094
|
* );
|
|
1049
1095
|
* }
|
|
1050
1096
|
*
|
|
@@ -1060,10 +1106,10 @@ declare module 'stream' {
|
|
|
1060
1106
|
* async function run() {
|
|
1061
1107
|
* await pipeline(
|
|
1062
1108
|
* fs.createReadStream('lowercase.txt'),
|
|
1063
|
-
* async function* (source) {
|
|
1109
|
+
* async function* (source, signal) {
|
|
1064
1110
|
* source.setEncoding('utf8'); // Work with strings rather than `Buffer`s.
|
|
1065
1111
|
* for await (const chunk of source) {
|
|
1066
|
-
* yield chunk
|
|
1112
|
+
* yield await processChunk(chunk, { signal });
|
|
1067
1113
|
* }
|
|
1068
1114
|
* },
|
|
1069
1115
|
* fs.createWriteStream('uppercase.txt')
|
|
@@ -1074,6 +1120,28 @@ declare module 'stream' {
|
|
|
1074
1120
|
* run().catch(console.error);
|
|
1075
1121
|
* ```
|
|
1076
1122
|
*
|
|
1123
|
+
* Remember to handle the `signal` argument passed into the async generator.
|
|
1124
|
+
* Especially in the case where the async generator is the source for the
|
|
1125
|
+
* pipeline (i.e. first argument) or the pipeline will never complete.
|
|
1126
|
+
*
|
|
1127
|
+
* ```js
|
|
1128
|
+
* const { pipeline } = require('stream/promises');
|
|
1129
|
+
* const fs = require('fs');
|
|
1130
|
+
*
|
|
1131
|
+
* async function run() {
|
|
1132
|
+
* await pipeline(
|
|
1133
|
+
* async function * (signal) {
|
|
1134
|
+
* await someLongRunningfn({ signal });
|
|
1135
|
+
* yield 'asd';
|
|
1136
|
+
* },
|
|
1137
|
+
* fs.createWriteStream('uppercase.txt')
|
|
1138
|
+
* );
|
|
1139
|
+
* console.log('Pipeline succeeded.');
|
|
1140
|
+
* }
|
|
1141
|
+
*
|
|
1142
|
+
* run().catch(console.error);
|
|
1143
|
+
* ```
|
|
1144
|
+
*
|
|
1077
1145
|
* `stream.pipeline()` will call `stream.destroy(err)` on all streams except:
|
|
1078
1146
|
*
|
|
1079
1147
|
* * `Readable` streams which have emitted `'end'` or `'close'`.
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* decoder.write(Buffer.from([0x82]));
|
|
37
37
|
* console.log(decoder.end(Buffer.from([0xAC])));
|
|
38
38
|
* ```
|
|
39
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
39
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/string_decoder.js)
|
|
40
40
|
*/
|
|
41
41
|
declare module 'string_decoder' {
|
|
42
42
|
class StringDecoder {
|
|
@@ -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/v16.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.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/v16.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tls.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'tls' {
|
|
12
12
|
import { X509Certificate } from 'node:crypto';
|
|
@@ -189,7 +189,7 @@ declare module 'tls' {
|
|
|
189
189
|
* }
|
|
190
190
|
* ```
|
|
191
191
|
*
|
|
192
|
-
* See[SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html)for more information.
|
|
192
|
+
* See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information.
|
|
193
193
|
* @since v0.11.4
|
|
194
194
|
*/
|
|
195
195
|
getCipher(): CipherNameAndProtocol;
|
|
@@ -274,7 +274,7 @@ declare module 'tls' {
|
|
|
274
274
|
*/
|
|
275
275
|
getSession(): Buffer | undefined;
|
|
276
276
|
/**
|
|
277
|
-
* See[SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html)for more information.
|
|
277
|
+
* See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information.
|
|
278
278
|
* @since v12.11.0
|
|
279
279
|
* @return List of signature algorithms shared between the server and the client in the order of decreasing preference.
|
|
280
280
|
*/
|
|
@@ -810,8 +810,8 @@ declare module 'tls' {
|
|
|
810
810
|
/**
|
|
811
811
|
* Verifies the certificate `cert` is issued to `hostname`.
|
|
812
812
|
*
|
|
813
|
-
* Returns [
|
|
814
|
-
* failure. On success, returns [
|
|
813
|
+
* Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
|
|
814
|
+
* failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
|
|
815
815
|
*
|
|
816
816
|
* This function can be overwritten by providing alternative function as part of
|
|
817
817
|
* the `options.checkServerIdentity` option passed to `tls.connect()`. The
|
|
@@ -962,7 +962,7 @@ declare module 'tls' {
|
|
|
962
962
|
*
|
|
963
963
|
* A key is _required_ for ciphers that use certificates. Either `key` or`pfx` can be used to provide it.
|
|
964
964
|
*
|
|
965
|
-
* If the `ca` option is not given, then Node.js will default to using[Mozilla's publicly trusted list of
|
|
965
|
+
* If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of
|
|
966
966
|
* CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt).
|
|
967
967
|
* @since v0.11.13
|
|
968
968
|
*/
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
58
|
* Running Node.js with tracing enabled will produce log files that can be opened
|
|
59
|
-
* in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool)tab of Chrome.
|
|
59
|
+
* in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome.
|
|
60
60
|
*
|
|
61
61
|
* The logging file is by default called `node_trace.${rotation}.log`, where`${rotation}` is an incrementing log-rotation id. The filepath pattern can
|
|
62
62
|
* be specified with `--trace-event-file-pattern` that accepts a template
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
*
|
|
74
74
|
* The features from this module are not available in `Worker` threads.
|
|
75
75
|
* @experimental
|
|
76
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
76
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/trace_events.js)
|
|
77
77
|
*/
|
|
78
78
|
declare module 'trace_events' {
|
|
79
79
|
/**
|
|
@@ -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/v16.
|
|
25
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/tty.js)
|
|
26
26
|
*/
|
|
27
27
|
declare module 'tty' {
|
|
28
28
|
import * as net from 'node:net';
|
|
@@ -129,9 +129,7 @@ declare module 'tty' {
|
|
|
129
129
|
* * `1` for 2,
|
|
130
130
|
* * `4` for 16,
|
|
131
131
|
* * `8` for 256,
|
|
132
|
-
* * `24` for 16,777,216
|
|
133
|
-
*
|
|
134
|
-
* colors supported.
|
|
132
|
+
* * `24` for 16,777,216 colors supported.
|
|
135
133
|
*
|
|
136
134
|
* Use this to determine what colors the terminal supports. Due to the nature of
|
|
137
135
|
* colors in terminals it is possible to either have false positives or false
|