cloudstructs 0.5.4 → 0.5.7
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.d.ts +0 -1
- package/lib/codecommit-mirror/index.js +5 -6
- package/lib/ecs-service-roller/index.d.ts +0 -1
- package/lib/ecs-service-roller/index.js +5 -6
- package/lib/email-receiver/index.d.ts +0 -1
- package/lib/email-receiver/receiver.d.ts +0 -1
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/email-receiver/s3-function.d.ts +0 -1
- package/lib/email-receiver/s3-function.js +2 -2
- package/lib/email-receiver/s3.lambda.d.ts +0 -1
- package/lib/email-receiver/whitelist-function.d.ts +0 -1
- package/lib/email-receiver/whitelist-function.js +2 -2
- package/lib/email-receiver/whitelist.lambda.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/saml-identity-provider/index.d.ts +0 -1
- package/lib/saml-identity-provider/index.js +4 -5
- package/lib/slack-app/index.d.ts +0 -1
- package/lib/slack-app/manifest.d.ts +0 -1
- package/lib/slack-app/manifest.js +33 -35
- package/lib/slack-app/provider-function.d.ts +0 -1
- package/lib/slack-app/provider-function.js +2 -2
- package/lib/slack-app/provider.d.ts +0 -1
- package/lib/slack-app/provider.js +2 -3
- package/lib/slack-app/provider.lambda.d.ts +0 -1
- package/lib/slack-app/provider.lambda.js +3 -4
- package/lib/slack-app/slack-app.d.ts +0 -1
- package/lib/slack-app/slack-app.js +4 -5
- package/lib/slack-events/events-function.d.ts +0 -1
- package/lib/slack-events/events-function.js +2 -2
- package/lib/slack-events/events.lambda.d.ts +0 -1
- package/lib/slack-events/index.d.ts +0 -1
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-events/signature.d.ts +0 -1
- package/lib/slack-textract/detect-function.d.ts +0 -1
- package/lib/slack-textract/detect-function.js +2 -2
- package/lib/slack-textract/detect.lambda.d.ts +0 -1
- package/lib/slack-textract/index.d.ts +0 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/state-machine-cr-provider/index.d.ts +0 -1
- package/lib/state-machine-cr-provider/index.js +3 -4
- package/lib/state-machine-cr-provider/runtime/http.d.ts +0 -1
- package/lib/state-machine-cr-provider/runtime/http.js +3 -4
- package/lib/state-machine-cr-provider/runtime/index.d.ts +0 -1
- package/lib/state-machine-cr-provider/runtime/index.js +5 -7
- package/lib/static-website/index.d.ts +0 -1
- package/lib/static-website/index.js +3 -4
- package/lib/static-website/origin-request-function.d.ts +0 -1
- package/lib/static-website/origin-request-function.js +2 -2
- package/lib/static-website/origin-request.edge-lambda.d.ts +0 -1
- package/lib/toolkit-cleaner/clean-images-function.d.ts +0 -1
- package/lib/toolkit-cleaner/clean-images-function.js +2 -2
- package/lib/toolkit-cleaner/clean-images.lambda.d.ts +0 -1
- package/lib/toolkit-cleaner/clean-images.lambda.js +3 -4
- package/lib/toolkit-cleaner/clean-objects-function.d.ts +0 -1
- package/lib/toolkit-cleaner/clean-objects-function.js +2 -2
- package/lib/toolkit-cleaner/clean-objects.lambda.d.ts +0 -1
- package/lib/toolkit-cleaner/clean-objects.lambda.js +3 -4
- package/lib/toolkit-cleaner/extract-template-hashes-function.d.ts +0 -1
- package/lib/toolkit-cleaner/extract-template-hashes-function.js +2 -2
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.d.ts +0 -1
- package/lib/toolkit-cleaner/get-stack-names-function.d.ts +0 -1
- package/lib/toolkit-cleaner/get-stack-names-function.js +2 -2
- package/lib/toolkit-cleaner/get-stack-names.lambda.d.ts +0 -1
- package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
- package/lib/toolkit-cleaner/index.d.ts +0 -1
- package/lib/toolkit-cleaner/index.js +4 -5
- package/lib/url-shortener/index.d.ts +0 -1
- package/lib/url-shortener/index.js +4 -5
- package/lib/url-shortener/redirect-function.d.ts +0 -1
- package/lib/url-shortener/redirect-function.js +2 -2
- package/lib/url-shortener/redirect.edge-lambda.d.ts +0 -1
- package/lib/url-shortener/redirect.edge-lambda.js +2 -3
- package/lib/url-shortener/shortener-function.d.ts +0 -1
- package/lib/url-shortener/shortener-function.js +2 -2
- package/lib/url-shortener/shortener.lambda.d.ts +0 -1
- package/lib/url-shortener/shortener.lambda.js +3 -4
- 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 +40 -17
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +33 -44
- 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 +3 -3
- 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 +14 -13
- 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 +80 -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 +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +18 -10
- 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 +40 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +33 -44
- 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 +3 -3
- 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 +14 -13
- 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 +80 -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 +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +18 -10
- 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 +40 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +33 -44
- 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 +3 -3
- 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 +14 -13
- 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 +80 -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 +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +18 -10
- 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 +40 -17
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +33 -44
- 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 +3 -3
- 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 +14 -13
- 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 +80 -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 +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +18 -10
- 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 +40 -17
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +33 -44
- 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 +3 -3
- 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 +14 -13
- 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 +80 -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 +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +18 -10
- 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 +40 -17
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +33 -44
- 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 +3 -3
- 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 +14 -13
- 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 +80 -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 +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +18 -10
- 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/changelog.md +0 -7
- package/lib/codecommit-mirror/index.d.ts.map +0 -1
- package/lib/ecs-service-roller/index.d.ts.map +0 -1
- package/lib/email-receiver/index.d.ts.map +0 -1
- package/lib/email-receiver/receiver.d.ts.map +0 -1
- package/lib/email-receiver/s3-function.d.ts.map +0 -1
- package/lib/email-receiver/s3.lambda.d.ts.map +0 -1
- package/lib/email-receiver/whitelist-function.d.ts.map +0 -1
- package/lib/email-receiver/whitelist.lambda.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/saml-identity-provider/index.d.ts.map +0 -1
- package/lib/slack-app/index.d.ts.map +0 -1
- package/lib/slack-app/manifest.d.ts.map +0 -1
- package/lib/slack-app/provider-function.d.ts.map +0 -1
- package/lib/slack-app/provider.d.ts.map +0 -1
- package/lib/slack-app/provider.lambda.d.ts.map +0 -1
- package/lib/slack-app/slack-app.d.ts.map +0 -1
- package/lib/slack-events/events-function.d.ts.map +0 -1
- package/lib/slack-events/events.lambda.d.ts.map +0 -1
- package/lib/slack-events/index.d.ts.map +0 -1
- package/lib/slack-events/signature.d.ts.map +0 -1
- package/lib/slack-textract/detect-function.d.ts.map +0 -1
- package/lib/slack-textract/detect.lambda.d.ts.map +0 -1
- package/lib/slack-textract/index.d.ts.map +0 -1
- package/lib/state-machine-cr-provider/index.d.ts.map +0 -1
- package/lib/state-machine-cr-provider/runtime/http.d.ts.map +0 -1
- package/lib/state-machine-cr-provider/runtime/index.d.ts.map +0 -1
- package/lib/static-website/index.d.ts.map +0 -1
- package/lib/static-website/origin-request-function.d.ts.map +0 -1
- package/lib/static-website/origin-request.edge-lambda.d.ts.map +0 -1
- package/lib/toolkit-cleaner/clean-images-function.d.ts.map +0 -1
- package/lib/toolkit-cleaner/clean-images.lambda.d.ts.map +0 -1
- package/lib/toolkit-cleaner/clean-objects-function.d.ts.map +0 -1
- package/lib/toolkit-cleaner/clean-objects.lambda.d.ts.map +0 -1
- package/lib/toolkit-cleaner/extract-template-hashes-function.d.ts.map +0 -1
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.d.ts.map +0 -1
- package/lib/toolkit-cleaner/get-stack-names-function.d.ts.map +0 -1
- package/lib/toolkit-cleaner/get-stack-names.lambda.d.ts.map +0 -1
- package/lib/toolkit-cleaner/index.d.ts.map +0 -1
- package/lib/url-shortener/index.d.ts.map +0 -1
- package/lib/url-shortener/redirect-function.d.ts.map +0 -1
- package/lib/url-shortener/redirect.edge-lambda.d.ts.map +0 -1
- package/lib/url-shortener/shortener-function.d.ts.map +0 -1
- package/lib/url-shortener/shortener.lambda.d.ts.map +0 -1
- 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
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* server.bind(41234);
|
|
24
24
|
* // Prints: server listening 0.0.0.0:41234
|
|
25
25
|
* ```
|
|
26
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
26
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/dgram.js)
|
|
27
27
|
*/
|
|
28
28
|
declare module 'dgram' {
|
|
29
29
|
import { AddressInfo } from 'node:net';
|
|
@@ -451,7 +451,7 @@ declare module 'dgram' {
|
|
|
451
451
|
* TTL. If the TTL is decremented to 0 by a router, it will not be forwarded.
|
|
452
452
|
* Changing TTL values is typically done for network probes or when multicasting.
|
|
453
453
|
*
|
|
454
|
-
* The `ttl` argument may be between
|
|
454
|
+
* The `ttl` argument may be between 1 and 255\. The default on most systems
|
|
455
455
|
* is 64.
|
|
456
456
|
*
|
|
457
457
|
* This method throws `EBADF` if called on an unbound socket.
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* should generally include the module name to avoid collisions with data from
|
|
21
21
|
* other modules.
|
|
22
22
|
* @experimental
|
|
23
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
23
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/diagnostics_channel.js)
|
|
24
24
|
*/
|
|
25
25
|
declare module 'diagnostics_channel' {
|
|
26
26
|
/**
|
|
@@ -143,6 +143,7 @@ declare module 'diagnostics_channel' {
|
|
|
143
143
|
* ```
|
|
144
144
|
* @since v15.1.0, v14.17.0
|
|
145
145
|
* @param onMessage The previous subscribed handler to remove
|
|
146
|
+
* @return `true` if the handler was found, `false` otherwise.
|
|
146
147
|
*/
|
|
147
148
|
unsubscribe(onMessage: ChannelListener): void;
|
|
148
149
|
}
|
|
@@ -119,7 +119,7 @@ declare module 'dns/promises' {
|
|
|
119
119
|
*
|
|
120
120
|
* <omitted>
|
|
121
121
|
*
|
|
122
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes
|
|
122
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
|
|
123
123
|
* @since v10.6.0
|
|
124
124
|
* @param hostname Host name to resolve.
|
|
125
125
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -300,7 +300,7 @@ declare module 'dns/promises' {
|
|
|
300
300
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
301
301
|
* array of host names.
|
|
302
302
|
*
|
|
303
|
-
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes
|
|
303
|
+
* On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`.
|
|
304
304
|
* @since v10.6.0
|
|
305
305
|
*/
|
|
306
306
|
function reverse(ip: string): Promise<string[]>;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* ```
|
|
43
43
|
*
|
|
44
44
|
* See the `Implementation considerations section` for more information.
|
|
45
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
45
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/dns.js)
|
|
46
46
|
*/
|
|
47
47
|
declare module 'dns' {
|
|
48
48
|
import * as dnsPromises from 'node:dns/promises';
|
|
@@ -244,7 +244,7 @@ declare module 'dns' {
|
|
|
244
244
|
*
|
|
245
245
|
* <omitted>
|
|
246
246
|
*
|
|
247
|
-
* On error, `err` is an `Error` object, where `err.code` is one of
|
|
247
|
+
* On error, `err` is an `Error` object, where `err.code` is one of the `DNS error codes`.
|
|
248
248
|
* @since v0.1.27
|
|
249
249
|
* @param hostname Host name to resolve.
|
|
250
250
|
* @param [rrtype='A'] Resource record type.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* **This module is pending deprecation.** Once a replacement API has been
|
|
3
|
-
* finalized, this module will be fully deprecated. Most developers should
|
|
3
|
+
* finalized, this module will be fully deprecated. Most developers should
|
|
4
|
+
* **not** have cause to use this module. Users who absolutely must have
|
|
4
5
|
* the functionality that domains provide may rely on it for the time being
|
|
5
6
|
* but should expect to have to migrate to a different solution
|
|
6
7
|
* in the future.
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
* will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to
|
|
12
13
|
* exit immediately with an error code.
|
|
13
14
|
* @deprecated Since v1.4.2 - Deprecated
|
|
14
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/domain.js)
|
|
15
16
|
*/
|
|
16
17
|
declare module 'domain' {
|
|
17
18
|
import EventEmitter = require('node:events');
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* });
|
|
33
33
|
* myEmitter.emit('event');
|
|
34
34
|
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
35
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/events.js)
|
|
36
36
|
*/
|
|
37
37
|
declare module 'events' {
|
|
38
38
|
interface EventEmitterOptions {
|
|
@@ -50,7 +50,7 @@ declare module 'events' {
|
|
|
50
50
|
listener: (...args: any[]) => void,
|
|
51
51
|
opts?: {
|
|
52
52
|
once: boolean;
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
): any;
|
|
55
55
|
}
|
|
56
56
|
interface StaticEventEmitterOptions {
|
|
@@ -154,11 +154,7 @@ declare module 'events' {
|
|
|
154
154
|
* ```
|
|
155
155
|
* @since v11.13.0, v10.16.0
|
|
156
156
|
*/
|
|
157
|
-
static once(
|
|
158
|
-
emitter: NodeEventTarget,
|
|
159
|
-
eventName: string | symbol,
|
|
160
|
-
options?: StaticEventEmitterOptions,
|
|
161
|
-
): Promise<any[]>;
|
|
157
|
+
static once(emitter: NodeEventTarget, eventName: string | symbol, options?: StaticEventEmitterOptions): Promise<any[]>;
|
|
162
158
|
static once(emitter: DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
|
|
163
159
|
/**
|
|
164
160
|
* ```js
|
|
@@ -218,11 +214,7 @@ declare module 'events' {
|
|
|
218
214
|
* @param eventName The name of the event being listened for
|
|
219
215
|
* @return that iterates `eventName` events emitted by the `emitter`
|
|
220
216
|
*/
|
|
221
|
-
static on(
|
|
222
|
-
emitter: NodeJS.EventEmitter,
|
|
223
|
-
eventName: string,
|
|
224
|
-
options?: StaticEventEmitterOptions,
|
|
225
|
-
): AsyncIterableIterator<any>;
|
|
217
|
+
static on(emitter: NodeJS.EventEmitter, eventName: string, options?: StaticEventEmitterOptions): AsyncIterableIterator<any>;
|
|
226
218
|
/**
|
|
227
219
|
* A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
|
|
228
220
|
*
|
|
@@ -269,23 +261,21 @@ declare module 'events' {
|
|
|
269
261
|
*/
|
|
270
262
|
static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
271
263
|
/**
|
|
272
|
-
* By default `EventEmitter`s will print a warning if more than `10` listeners are
|
|
273
|
-
* added for a particular event. This is a useful default that helps finding
|
|
274
|
-
* memory leaks. The `EventEmitter.setMaxListeners()` method allows the default limit to be
|
|
275
|
-
* modified (if eventTargets is empty) or modify the limit specified in every `EventTarget` | `EventEmitter` passed as arguments.
|
|
276
|
-
* The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners.
|
|
277
|
-
*
|
|
278
264
|
* ```js
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
265
|
+
* const {
|
|
266
|
+
* setMaxListeners,
|
|
267
|
+
* EventEmitter
|
|
268
|
+
* } = require('events');
|
|
269
|
+
*
|
|
270
|
+
* const target = new EventTarget();
|
|
271
|
+
* const emitter = new EventEmitter();
|
|
272
|
+
*
|
|
273
|
+
* setMaxListeners(5, target, emitter);
|
|
287
274
|
* ```
|
|
288
|
-
* @since v15.
|
|
275
|
+
* @since v15.4.0
|
|
276
|
+
* @param n A non-negative number. The maximum number of listeners per `EventTarget` event.
|
|
277
|
+
* @param eventsTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
|
|
278
|
+
* objects.
|
|
289
279
|
*/
|
|
290
280
|
static setMaxListeners(n?: number, ...eventTargets: Array<DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
291
281
|
/**
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
declare module 'fs/promises' {
|
|
12
12
|
import { Abortable } from 'node:events';
|
|
13
13
|
import { Stream } from 'node:stream';
|
|
14
|
+
import { ReadableStream } from 'node:stream/web';
|
|
14
15
|
import {
|
|
15
16
|
Stats,
|
|
16
17
|
BigIntStats,
|
|
@@ -163,9 +164,9 @@ declare module 'fs/promises' {
|
|
|
163
164
|
/**
|
|
164
165
|
* `options` may also include a `start` option to allow writing data at some
|
|
165
166
|
* position past the beginning of the file, allowed values are in the
|
|
166
|
-
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
|
|
167
|
-
* it may require the `flags` `open` option to be set to `r+` rather than
|
|
168
|
-
* default `r`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
167
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
|
|
168
|
+
* replacing it may require the `flags` `open` option to be set to `r+` rather than
|
|
169
|
+
* the default `r`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
169
170
|
*
|
|
170
171
|
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
171
172
|
* then the file descriptor won't be closed, even if there's an error.
|
|
@@ -209,6 +210,29 @@ declare module 'fs/promises' {
|
|
|
209
210
|
*/
|
|
210
211
|
read<T extends NodeJS.ArrayBufferView>(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise<FileReadResult<T>>;
|
|
211
212
|
read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
|
|
213
|
+
/**
|
|
214
|
+
* Returns a `ReadableStream` that may be used to read the files data.
|
|
215
|
+
*
|
|
216
|
+
* An error will be thrown if this method is called more than once or is called after the `FileHandle` is closed
|
|
217
|
+
* or closing.
|
|
218
|
+
*
|
|
219
|
+
* ```js
|
|
220
|
+
* import { open } from 'node:fs/promises';
|
|
221
|
+
*
|
|
222
|
+
* const file = await open('./some/file/to/read');
|
|
223
|
+
*
|
|
224
|
+
* for await (const chunk of file.readableWebStream())
|
|
225
|
+
* console.log(chunk);
|
|
226
|
+
*
|
|
227
|
+
* await file.close();
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* While the `ReadableStream` will read the file to completion, it will not close the `FileHandle` automatically. User code must still call the `fileHandle.close()` method.
|
|
231
|
+
*
|
|
232
|
+
* @since v17.0.0
|
|
233
|
+
* @experimental
|
|
234
|
+
*/
|
|
235
|
+
readableWebStream(): ReadableStream;
|
|
212
236
|
/**
|
|
213
237
|
* Asynchronously reads the entire contents of a file.
|
|
214
238
|
*
|
|
@@ -309,9 +333,8 @@ declare module 'fs/promises' {
|
|
|
309
333
|
/**
|
|
310
334
|
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an
|
|
311
335
|
* [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface) or
|
|
312
|
-
* [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object
|
|
313
|
-
*
|
|
314
|
-
* property. The promise is resolved with no arguments upon success.
|
|
336
|
+
* [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
|
|
337
|
+
* The promise is resolved with no arguments upon success.
|
|
315
338
|
*
|
|
316
339
|
* If `options` is a string, then it specifies the `encoding`.
|
|
317
340
|
*
|
|
@@ -329,20 +352,18 @@ declare module 'fs/promises' {
|
|
|
329
352
|
/**
|
|
330
353
|
* Write `buffer` to the file.
|
|
331
354
|
*
|
|
332
|
-
* If `buffer` is a plain object, it must have an own (not inherited) `toString`function property.
|
|
333
|
-
*
|
|
334
355
|
* The promise is resolved with an object containing two properties:
|
|
335
356
|
*
|
|
336
357
|
* It is unsafe to use `filehandle.write()` multiple times on the same file
|
|
337
358
|
* without waiting for the promise to be resolved (or rejected). For this
|
|
338
|
-
* scenario, use `
|
|
359
|
+
* scenario, use `filehandle.createWriteStream()`.
|
|
339
360
|
*
|
|
340
361
|
* On Linux, positional writes do not work when the file is opened in append mode.
|
|
341
362
|
* The kernel ignores the position argument and always appends the data to
|
|
342
363
|
* the end of the file.
|
|
343
364
|
* @since v10.0.0
|
|
344
365
|
* @param [offset=0] The start position from within `buffer` where the data to write begins.
|
|
345
|
-
* @param [length=buffer.byteLength] The number of bytes from `buffer` to write.
|
|
366
|
+
* @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write.
|
|
346
367
|
* @param position The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current position.
|
|
347
368
|
* See the POSIX pwrite(2) documentation for more detail.
|
|
348
369
|
*/
|
|
@@ -408,9 +429,9 @@ declare module 'fs/promises' {
|
|
|
408
429
|
/**
|
|
409
430
|
* Tests a user's permissions for the file or directory specified by `path`.
|
|
410
431
|
* The `mode` argument is an optional integer that specifies the accessibility
|
|
411
|
-
* checks to be performed.
|
|
412
|
-
*
|
|
413
|
-
*
|
|
432
|
+
* checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,`fs.constants.W_OK`, and `fs.constants.X_OK`
|
|
433
|
+
* (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
434
|
+
* possible values of `mode`.
|
|
414
435
|
*
|
|
415
436
|
* If the accessibility check is successful, the promise is resolved with no
|
|
416
437
|
* value. If any of the accessibility checks fail, the promise is rejected
|
|
@@ -487,7 +508,7 @@ declare module 'fs/promises' {
|
|
|
487
508
|
* @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
|
|
488
509
|
* @return Fulfills with a {FileHandle} object.
|
|
489
510
|
*/
|
|
490
|
-
function open(path: PathLike, flags
|
|
511
|
+
function open(path: PathLike, flags?: string | number, mode?: Mode): Promise<FileHandle>;
|
|
491
512
|
/**
|
|
492
513
|
* Renames `oldPath` to `newPath`.
|
|
493
514
|
* @since v10.0.0
|
|
@@ -830,7 +851,9 @@ declare module 'fs/promises' {
|
|
|
830
851
|
*/
|
|
831
852
|
function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
|
|
832
853
|
/**
|
|
833
|
-
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a
|
|
854
|
+
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an
|
|
855
|
+
* [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface) or
|
|
856
|
+
* [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
|
|
834
857
|
*
|
|
835
858
|
* The `encoding` option is ignored if `data` is a buffer.
|
|
836
859
|
*
|
|
@@ -845,7 +868,7 @@ declare module 'fs/promises' {
|
|
|
845
868
|
*
|
|
846
869
|
* Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience
|
|
847
870
|
* method that performs multiple `write` calls internally to write the buffer
|
|
848
|
-
* passed to it. For performance sensitive code consider using `fs.createWriteStream()`.
|
|
871
|
+
* passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`.
|
|
849
872
|
*
|
|
850
873
|
* It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`.
|
|
851
874
|
* Cancelation is "best effort", and some amount of data is likely still
|
|
@@ -1084,7 +1107,7 @@ declare module 'fs/promises' {
|
|
|
1084
1107
|
* @param dest destination path to copy to.
|
|
1085
1108
|
* @return Fulfills with `undefined` upon success.
|
|
1086
1109
|
*/
|
|
1087
|
-
function cp(source: string, destination: string, opts?: CopyOptions): Promise<void>;
|
|
1110
|
+
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1088
1111
|
}
|
|
1089
1112
|
declare module 'node:fs/promises' {
|
|
1090
1113
|
export * from 'fs/promises';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* All file system operations have synchronous, callback, and promise-based
|
|
18
18
|
* forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM).
|
|
19
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
19
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/fs.js)
|
|
20
20
|
*/
|
|
21
21
|
declare module 'fs' {
|
|
22
22
|
import * as stream from 'node:stream';
|
|
@@ -1123,15 +1123,15 @@ declare module 'fs' {
|
|
|
1123
1123
|
* ```js
|
|
1124
1124
|
* import { symlink } from 'fs';
|
|
1125
1125
|
*
|
|
1126
|
-
* symlink('./mew', './
|
|
1126
|
+
* symlink('./mew', './mewtwo', callback);
|
|
1127
1127
|
* ```
|
|
1128
1128
|
*
|
|
1129
|
-
* The above example creates a symbolic link `mewtwo`
|
|
1130
|
-
*
|
|
1129
|
+
* The above example creates a symbolic link `mewtwo` which points to `mew` in the
|
|
1130
|
+
* same directory:
|
|
1131
1131
|
*
|
|
1132
1132
|
* ```bash
|
|
1133
|
-
* $ tree
|
|
1134
|
-
*
|
|
1133
|
+
* $ tree .
|
|
1134
|
+
* .
|
|
1135
1135
|
* ├── mew
|
|
1136
1136
|
* └── mewtwo -> ./mew
|
|
1137
1137
|
* ```
|
|
@@ -1998,12 +1998,19 @@ declare module 'fs' {
|
|
|
1998
1998
|
* @param [flags='r'] See `support of file system `flags``.
|
|
1999
1999
|
* @param [mode=0o666]
|
|
2000
2000
|
*/
|
|
2001
|
-
export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2001
|
+
export function open(path: PathLike, flags: OpenMode | undefined, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2002
|
+
/**
|
|
2003
|
+
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2004
|
+
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2005
|
+
* @param [flags='r'] See `support of file system `flags``.
|
|
2006
|
+
*/
|
|
2007
|
+
export function open(path: PathLike, flags: OpenMode | undefined, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2002
2008
|
/**
|
|
2003
2009
|
* Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
|
|
2004
2010
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2005
2011
|
*/
|
|
2006
|
-
export function open(path: PathLike,
|
|
2012
|
+
export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
|
|
2013
|
+
|
|
2007
2014
|
export namespace open {
|
|
2008
2015
|
/**
|
|
2009
2016
|
* Asynchronous open(2) - open and possibly create a file.
|
|
@@ -2092,8 +2099,7 @@ declare module 'fs' {
|
|
|
2092
2099
|
*/
|
|
2093
2100
|
export function fsyncSync(fd: number): void;
|
|
2094
2101
|
/**
|
|
2095
|
-
* Write `buffer` to the file specified by `fd`.
|
|
2096
|
-
* must have an own `toString` function property.
|
|
2102
|
+
* Write `buffer` to the file specified by `fd`.
|
|
2097
2103
|
*
|
|
2098
2104
|
* `offset` determines the part of the buffer to be written, and `length` is
|
|
2099
2105
|
* an integer specifying the number of bytes to write.
|
|
@@ -2216,8 +2222,6 @@ declare module 'fs' {
|
|
|
2216
2222
|
}>;
|
|
2217
2223
|
}
|
|
2218
2224
|
/**
|
|
2219
|
-
* If `buffer` is a plain object, it must have an own (not inherited) `toString`function property.
|
|
2220
|
-
*
|
|
2221
2225
|
* For detailed information, see the documentation of the asynchronous version of
|
|
2222
2226
|
* this API: {@link write}.
|
|
2223
2227
|
* @since v0.1.21
|
|
@@ -2289,10 +2293,7 @@ declare module 'fs' {
|
|
|
2289
2293
|
options: ReadAsyncOptions<TBuffer>,
|
|
2290
2294
|
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
|
|
2291
2295
|
): void;
|
|
2292
|
-
export function read(
|
|
2293
|
-
fd: number,
|
|
2294
|
-
callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void
|
|
2295
|
-
): void;
|
|
2296
|
+
export function read(fd: number, callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void): void;
|
|
2296
2297
|
export namespace read {
|
|
2297
2298
|
/**
|
|
2298
2299
|
* @param fd A file descriptor.
|
|
@@ -2318,9 +2319,7 @@ declare module 'fs' {
|
|
|
2318
2319
|
bytesRead: number;
|
|
2319
2320
|
buffer: TBuffer;
|
|
2320
2321
|
}>;
|
|
2321
|
-
function __promisify__(
|
|
2322
|
-
fd: number
|
|
2323
|
-
): Promise<{
|
|
2322
|
+
function __promisify__(fd: number): Promise<{
|
|
2324
2323
|
bytesRead: number;
|
|
2325
2324
|
buffer: NodeJS.ArrayBufferView;
|
|
2326
2325
|
}>;
|
|
@@ -2588,8 +2587,6 @@ declare module 'fs' {
|
|
|
2588
2587
|
*
|
|
2589
2588
|
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2590
2589
|
*
|
|
2591
|
-
* If `data` is a plain object, it must have an own (not inherited) `toString`function property.
|
|
2592
|
-
*
|
|
2593
2590
|
* ```js
|
|
2594
2591
|
* import { writeFile } from 'fs';
|
|
2595
2592
|
* import { Buffer } from 'buffer';
|
|
@@ -2666,8 +2663,6 @@ declare module 'fs' {
|
|
|
2666
2663
|
/**
|
|
2667
2664
|
* Returns `undefined`.
|
|
2668
2665
|
*
|
|
2669
|
-
* If `data` is a plain object, it must have an own (not inherited) `toString`function property.
|
|
2670
|
-
*
|
|
2671
2666
|
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2672
2667
|
*
|
|
2673
2668
|
* For detailed information, see the documentation of the asynchronous version of
|
|
@@ -3265,9 +3260,9 @@ declare module 'fs' {
|
|
|
3265
3260
|
/**
|
|
3266
3261
|
* Tests a user's permissions for the file or directory specified by `path`.
|
|
3267
3262
|
* The `mode` argument is an optional integer that specifies the accessibility
|
|
3268
|
-
* checks to be performed.
|
|
3269
|
-
*
|
|
3270
|
-
*
|
|
3263
|
+
* checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,`fs.constants.W_OK`, and `fs.constants.X_OK`
|
|
3264
|
+
* (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
3265
|
+
* possible values of `mode`.
|
|
3271
3266
|
*
|
|
3272
3267
|
* The final argument, `callback`, is a callback function that is invoked with
|
|
3273
3268
|
* a possible error argument. If any of the accessibility checks fail, the error
|
|
@@ -3293,14 +3288,9 @@ declare module 'fs' {
|
|
|
3293
3288
|
* console.log(`${file} ${err ? 'is not writable' : 'is writable'}`);
|
|
3294
3289
|
* });
|
|
3295
3290
|
*
|
|
3296
|
-
* // Check if the file
|
|
3297
|
-
* access(file, constants.
|
|
3298
|
-
*
|
|
3299
|
-
* console.error(
|
|
3300
|
-
* `${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);
|
|
3301
|
-
* } else {
|
|
3302
|
-
* console.log(`${file} exists, and it is writable`);
|
|
3303
|
-
* }
|
|
3291
|
+
* // Check if the file is readable and writable.
|
|
3292
|
+
* access(file, constants.R_OK | constants.W_OK, (err) => {
|
|
3293
|
+
* console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`);
|
|
3304
3294
|
* });
|
|
3305
3295
|
* ```
|
|
3306
3296
|
*
|
|
@@ -3444,10 +3434,9 @@ declare module 'fs' {
|
|
|
3444
3434
|
/**
|
|
3445
3435
|
* Synchronously tests a user's permissions for the file or directory specified
|
|
3446
3436
|
* by `path`. The `mode` argument is an optional integer that specifies the
|
|
3447
|
-
* accessibility checks to be performed.
|
|
3448
|
-
*
|
|
3449
|
-
*
|
|
3450
|
-
* (e.g. `fs.constants.W_OK | fs.constants.R_OK`).
|
|
3437
|
+
* accessibility checks to be performed. `mode` should be either the value`fs.constants.F_OK` or a mask consisting of the bitwise OR of any of`fs.constants.R_OK`, `fs.constants.W_OK`, and
|
|
3438
|
+
* `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
3439
|
+
* possible values of `mode`.
|
|
3451
3440
|
*
|
|
3452
3441
|
* If any of the accessibility checks fail, an `Error` will be thrown. Otherwise,
|
|
3453
3442
|
* the method will return `undefined`.
|
|
@@ -3550,9 +3539,9 @@ declare module 'fs' {
|
|
|
3550
3539
|
/**
|
|
3551
3540
|
* `options` may also include a `start` option to allow writing data at some
|
|
3552
3541
|
* position past the beginning of the file, allowed values are in the
|
|
3553
|
-
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
|
|
3554
|
-
* it may require the `flags` option to be set to `r+` rather than the
|
|
3555
|
-
* The `encoding` can be any one of those accepted by `Buffer`.
|
|
3542
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than
|
|
3543
|
+
* replacing it may require the `flags` option to be set to `r+` rather than the
|
|
3544
|
+
* default `w`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
3556
3545
|
*
|
|
3557
3546
|
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3558
3547
|
* then the file descriptor won't be closed, even if there's an error.
|
|
@@ -3849,8 +3838,8 @@ declare module 'fs' {
|
|
|
3849
3838
|
* @param src source path to copy.
|
|
3850
3839
|
* @param dest destination path to copy to.
|
|
3851
3840
|
*/
|
|
3852
|
-
export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3853
|
-
export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3841
|
+
export function cp(source: string | URL, destination: string | URL, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3842
|
+
export function cp(source: string | URL, destination: string | URL, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void;
|
|
3854
3843
|
/**
|
|
3855
3844
|
* Synchronously copies the entire directory structure from `src` to `dest`,
|
|
3856
3845
|
* including subdirectories and files.
|
|
@@ -3862,7 +3851,7 @@ declare module 'fs' {
|
|
|
3862
3851
|
* @param src source path to copy.
|
|
3863
3852
|
* @param dest destination path to copy to.
|
|
3864
3853
|
*/
|
|
3865
|
-
export function cpSync(source: string, destination: string, opts?: CopyOptions): void;
|
|
3854
|
+
export function cpSync(source: string | URL, destination: string | URL, opts?: CopyOptions): void;
|
|
3866
3855
|
}
|
|
3867
3856
|
declare module 'node:fs' {
|
|
3868
3857
|
export * from 'fs';
|