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
|
@@ -31,6 +31,8 @@ declare module 'fs/promises' {
|
|
|
31
31
|
WatchOptions,
|
|
32
32
|
WatchEventType,
|
|
33
33
|
CopyOptions,
|
|
34
|
+
ReadStream,
|
|
35
|
+
WriteStream,
|
|
34
36
|
} from 'node:fs';
|
|
35
37
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
36
38
|
eventType: WatchEventType;
|
|
@@ -59,6 +61,20 @@ declare module 'fs/promises' {
|
|
|
59
61
|
length?: number | null;
|
|
60
62
|
position?: number | null;
|
|
61
63
|
}
|
|
64
|
+
interface CreateReadStreamOptions {
|
|
65
|
+
encoding?: BufferEncoding | null | undefined;
|
|
66
|
+
autoClose?: boolean | undefined;
|
|
67
|
+
emitClose?: boolean | undefined;
|
|
68
|
+
start?: number | undefined;
|
|
69
|
+
end?: number | undefined;
|
|
70
|
+
highWaterMark?: number | undefined;
|
|
71
|
+
}
|
|
72
|
+
interface CreateWriteStreamOptions {
|
|
73
|
+
encoding?: BufferEncoding | null | undefined;
|
|
74
|
+
autoClose?: boolean | undefined;
|
|
75
|
+
emitClose?: boolean | undefined;
|
|
76
|
+
start?: number | undefined;
|
|
77
|
+
}
|
|
62
78
|
// TODO: Add `EventEmitter` close
|
|
63
79
|
interface FileHandle {
|
|
64
80
|
/**
|
|
@@ -90,9 +106,80 @@ declare module 'fs/promises' {
|
|
|
90
106
|
* @return Fulfills with `undefined` upon success.
|
|
91
107
|
*/
|
|
92
108
|
chmod(mode: Mode): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
111
|
+
* returned by this method has a default `highWaterMark` of 64 kb.
|
|
112
|
+
*
|
|
113
|
+
* `options` can include `start` and `end` values to read a range of bytes from
|
|
114
|
+
* the file instead of the entire file. Both `start` and `end` are inclusive and
|
|
115
|
+
* start counting at 0, allowed values are in the
|
|
116
|
+
* \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is
|
|
117
|
+
* omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from
|
|
118
|
+
* the current file position. The `encoding` can be any one of those accepted by `Buffer`.
|
|
119
|
+
*
|
|
120
|
+
* If the `FileHandle` points to a character device that only supports blocking
|
|
121
|
+
* reads (such as keyboard or sound card), read operations do not finish until data
|
|
122
|
+
* is available. This can prevent the process from exiting and the stream from
|
|
123
|
+
* closing naturally.
|
|
124
|
+
*
|
|
125
|
+
* By default, the stream will emit a `'close'` event after it has been
|
|
126
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
127
|
+
*
|
|
128
|
+
* ```js
|
|
129
|
+
* import { open } from 'fs/promises';
|
|
130
|
+
*
|
|
131
|
+
* const fd = await open('/dev/input/event0');
|
|
132
|
+
* // Create a stream from some character device.
|
|
133
|
+
* const stream = fd.createReadStream();
|
|
134
|
+
* setTimeout(() => {
|
|
135
|
+
* stream.close(); // This may not close the stream.
|
|
136
|
+
* // Artificially marking end-of-stream, as if the underlying resource had
|
|
137
|
+
* // indicated end-of-file by itself, allows the stream to close.
|
|
138
|
+
* // This does not cancel pending read operations, and if there is such an
|
|
139
|
+
* // operation, the process may still not be able to exit successfully
|
|
140
|
+
* // until it finishes.
|
|
141
|
+
* stream.push(null);
|
|
142
|
+
* stream.read(0);
|
|
143
|
+
* }, 100);
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* If `autoClose` is false, then the file descriptor won't be closed, even if
|
|
147
|
+
* there's an error. It is the application's responsibility to close it and make
|
|
148
|
+
* sure there's no file descriptor leak. If `autoClose` is set to true (default
|
|
149
|
+
* behavior), on `'error'` or `'end'` the file descriptor will be closed
|
|
150
|
+
* automatically.
|
|
151
|
+
*
|
|
152
|
+
* An example to read the last 10 bytes of a file which is 100 bytes long:
|
|
153
|
+
*
|
|
154
|
+
* ```js
|
|
155
|
+
* import { open } from 'fs/promises';
|
|
156
|
+
*
|
|
157
|
+
* const fd = await open('sample.txt');
|
|
158
|
+
* fd.createReadStream({ start: 90, end: 99 });
|
|
159
|
+
* ```
|
|
160
|
+
* @since v16.11.0
|
|
161
|
+
*/
|
|
162
|
+
createReadStream(options?: CreateReadStreamOptions): ReadStream;
|
|
163
|
+
/**
|
|
164
|
+
* `options` may also include a `start` option to allow writing data at some
|
|
165
|
+
* 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 replacing
|
|
167
|
+
* it may require the `flags` `open` option to be set to `r+` rather than the
|
|
168
|
+
* default `r`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
169
|
+
*
|
|
170
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
171
|
+
* then the file descriptor won't be closed, even if there's an error.
|
|
172
|
+
* It is the application's responsibility to close it and make sure there's no
|
|
173
|
+
* file descriptor leak.
|
|
174
|
+
*
|
|
175
|
+
* By default, the stream will emit a `'close'` event after it has been
|
|
176
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
177
|
+
* @since v16.11.0
|
|
178
|
+
*/
|
|
179
|
+
createWriteStream(options?: CreateWriteStreamOptions): WriteStream;
|
|
93
180
|
/**
|
|
94
181
|
* Forces all currently queued I/O operations associated with the file to the
|
|
95
|
-
* operating system's synchronized I/O completion state. Refer to the POSIX[`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details.
|
|
182
|
+
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details.
|
|
96
183
|
*
|
|
97
184
|
* Unlike `filehandle.sync` this method does not flush modified metadata.
|
|
98
185
|
* @since v10.0.0
|
|
@@ -114,8 +201,8 @@ declare module 'fs/promises' {
|
|
|
114
201
|
* number of bytes read is zero.
|
|
115
202
|
* @since v10.0.0
|
|
116
203
|
* @param buffer A buffer that will be filled with the file data read.
|
|
117
|
-
* @param
|
|
118
|
-
* @param
|
|
204
|
+
* @param offset The location in the buffer at which to start filling.
|
|
205
|
+
* @param length The number of bytes to read.
|
|
119
206
|
* @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an
|
|
120
207
|
* integer, the current file position will remain unchanged.
|
|
121
208
|
* @return Fulfills upon success with an object with two properties:
|
|
@@ -220,7 +307,10 @@ declare module 'fs/promises' {
|
|
|
220
307
|
*/
|
|
221
308
|
utimes(atime: string | number | Date, mtime: string | number | Date): Promise<void>;
|
|
222
309
|
/**
|
|
223
|
-
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer,
|
|
310
|
+
* Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an
|
|
311
|
+
* [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, or an
|
|
313
|
+
* object with an own `toString` function
|
|
224
314
|
* property. The promise is resolved with no arguments upon success.
|
|
225
315
|
*
|
|
226
316
|
* If `options` is a string, then it specifies the `encoding`.
|
|
@@ -274,7 +364,7 @@ declare module 'fs/promises' {
|
|
|
274
364
|
buffer: string;
|
|
275
365
|
}>;
|
|
276
366
|
/**
|
|
277
|
-
* Write an array of [
|
|
367
|
+
* Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file.
|
|
278
368
|
*
|
|
279
369
|
* The promise is resolved with an object containing a two properties:
|
|
280
370
|
*
|
|
@@ -290,7 +380,7 @@ declare module 'fs/promises' {
|
|
|
290
380
|
*/
|
|
291
381
|
writev(buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
|
|
292
382
|
/**
|
|
293
|
-
* Read from a file and write to an array of [
|
|
383
|
+
* Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s
|
|
294
384
|
* @since v13.13.0, v12.17.0
|
|
295
385
|
* @param position The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position.
|
|
296
386
|
* @return Fulfills upon success an object containing two properties:
|
|
@@ -324,7 +414,7 @@ declare module 'fs/promises' {
|
|
|
324
414
|
*
|
|
325
415
|
* If the accessibility check is successful, the promise is resolved with no
|
|
326
416
|
* value. If any of the accessibility checks fail, the promise is rejected
|
|
327
|
-
* with an [
|
|
417
|
+
* with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and
|
|
328
418
|
* written by the current process.
|
|
329
419
|
*
|
|
330
420
|
* ```js
|
|
@@ -391,7 +481,7 @@ declare module 'fs/promises' {
|
|
|
391
481
|
*
|
|
392
482
|
* Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented
|
|
393
483
|
* by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains
|
|
394
|
-
* a colon, Node.js will open a file system stream, as described by[this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
|
|
484
|
+
* a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
|
|
395
485
|
* @since v10.0.0
|
|
396
486
|
* @param [flags='r'] See `support of file system `flags``.
|
|
397
487
|
* @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created.
|
|
@@ -539,7 +629,7 @@ declare module 'fs/promises' {
|
|
|
539
629
|
}
|
|
540
630
|
): Promise<Dirent[]>;
|
|
541
631
|
/**
|
|
542
|
-
* Reads the contents of the symbolic link referred to by `path`. See the POSIX[`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is
|
|
632
|
+
* Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is
|
|
543
633
|
* resolved with the`linkString` upon success.
|
|
544
634
|
*
|
|
545
635
|
* The optional `options` argument can be a string specifying an encoding, or an
|
|
@@ -611,7 +701,7 @@ declare module 'fs/promises' {
|
|
|
611
701
|
): Promise<BigIntStats>;
|
|
612
702
|
function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
613
703
|
/**
|
|
614
|
-
* Creates a new link from the `existingPath` to the `newPath`. See the POSIX[`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail.
|
|
704
|
+
* Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail.
|
|
615
705
|
* @since v10.0.0
|
|
616
706
|
* @return Fulfills with `undefined` upon success.
|
|
617
707
|
*/
|
|
@@ -619,7 +709,7 @@ declare module 'fs/promises' {
|
|
|
619
709
|
/**
|
|
620
710
|
* If `path` refers to a symbolic link, then the link is removed without affecting
|
|
621
711
|
* the file or directory to which that link refers. If the `path` refers to a file
|
|
622
|
-
* path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html)documentation for more detail.
|
|
712
|
+
* path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail.
|
|
623
713
|
* @since v10.0.0
|
|
624
714
|
* @return Fulfills with `undefined` upon success.
|
|
625
715
|
*/
|
|
@@ -746,6 +836,8 @@ declare module 'fs/promises' {
|
|
|
746
836
|
*
|
|
747
837
|
* If `options` is a string, then it specifies the encoding.
|
|
748
838
|
*
|
|
839
|
+
* The `mode` option only affects the newly created file. See `fs.open()` for more details.
|
|
840
|
+
*
|
|
749
841
|
* Any specified `FileHandle` has to support writing.
|
|
750
842
|
*
|
|
751
843
|
* It is unsafe to use `fsPromises.writeFile()` multiple times on the same file
|
|
@@ -802,6 +894,8 @@ declare module 'fs/promises' {
|
|
|
802
894
|
*
|
|
803
895
|
* If `options` is a string, then it specifies the `encoding`.
|
|
804
896
|
*
|
|
897
|
+
* The `mode` option only affects the newly created file. See `fs.open()` for more details.
|
|
898
|
+
*
|
|
805
899
|
* The `path` may be specified as a `FileHandle` that has been opened
|
|
806
900
|
* for appending (using `fsPromises.open()`).
|
|
807
901
|
* @since v10.0.0
|
|
@@ -894,7 +988,7 @@ declare module 'fs/promises' {
|
|
|
894
988
|
| null
|
|
895
989
|
): Promise<string | Buffer>;
|
|
896
990
|
/**
|
|
897
|
-
* Asynchronously open a directory for iterative scanning. See the POSIX[`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
|
|
991
|
+
* Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
|
|
898
992
|
*
|
|
899
993
|
* Creates an `fs.Dir`, which contains all further functions for reading from
|
|
900
994
|
* and cleaning up the directory.
|
|
@@ -921,7 +1015,7 @@ declare module 'fs/promises' {
|
|
|
921
1015
|
* @since v12.12.0
|
|
922
1016
|
* @return Fulfills with an {fs.Dir}.
|
|
923
1017
|
*/
|
|
924
|
-
function opendir(path:
|
|
1018
|
+
function opendir(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
925
1019
|
/**
|
|
926
1020
|
* Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
|
|
927
1021
|
*
|
|
@@ -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/v16.
|
|
19
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/fs.js)
|
|
20
20
|
*/
|
|
21
21
|
declare module 'fs' {
|
|
22
22
|
import * as stream from 'node:stream';
|
|
@@ -260,6 +260,29 @@ declare module 'fs' {
|
|
|
260
260
|
*/
|
|
261
261
|
readSync(): Dirent | null;
|
|
262
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Class: fs.StatWatcher
|
|
265
|
+
* @since v14.3.0, v12.20.0
|
|
266
|
+
* Extends `EventEmitter`
|
|
267
|
+
* A successful call to {@link watchFile} method will return a new fs.StatWatcher object.
|
|
268
|
+
*/
|
|
269
|
+
export interface StatWatcher extends EventEmitter {
|
|
270
|
+
/**
|
|
271
|
+
* @since v14.3.0, v12.20.0
|
|
272
|
+
* When called, requests that the Node.js event loop not exit so long as the `fs.StatWatcher` is active.
|
|
273
|
+
* Calling `watcher.ref()` multiple times will have no effect.
|
|
274
|
+
* By default, all `fs.StatWatcher`` objects are "ref'ed", making it normally unnecessary to call `watcher.ref()`
|
|
275
|
+
* unless `watcher.unref()` had been called previously.
|
|
276
|
+
*/
|
|
277
|
+
ref(): this;
|
|
278
|
+
/**
|
|
279
|
+
* @since v14.3.0, v12.20.0
|
|
280
|
+
* When called, the active `fs.StatWatcher`` object will not require the Node.js event loop to remain active.
|
|
281
|
+
* If there is no other activity keeping the event loop running, the process may exit before the `fs.StatWatcher`` object's callback is invoked.
|
|
282
|
+
* `Calling watcher.unref()` multiple times will have no effect.
|
|
283
|
+
*/
|
|
284
|
+
unref(): this;
|
|
285
|
+
}
|
|
263
286
|
export interface FSWatcher extends EventEmitter {
|
|
264
287
|
/**
|
|
265
288
|
* Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable.
|
|
@@ -297,7 +320,7 @@ declare module 'fs' {
|
|
|
297
320
|
* @since v0.1.93
|
|
298
321
|
*/
|
|
299
322
|
export class ReadStream extends stream.Readable {
|
|
300
|
-
close(): void;
|
|
323
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
301
324
|
/**
|
|
302
325
|
* The number of bytes that have been read so far.
|
|
303
326
|
* @since v6.4.0
|
|
@@ -306,7 +329,7 @@ declare module 'fs' {
|
|
|
306
329
|
/**
|
|
307
330
|
* The path to the file the stream is reading from as specified in the first
|
|
308
331
|
* argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a
|
|
309
|
-
* `Buffer`.
|
|
332
|
+
* `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`.
|
|
310
333
|
* @since v0.1.93
|
|
311
334
|
*/
|
|
312
335
|
path: string | Buffer;
|
|
@@ -385,7 +408,7 @@ declare module 'fs' {
|
|
|
385
408
|
* callback that will be executed once the `writeStream`is closed.
|
|
386
409
|
* @since v0.9.4
|
|
387
410
|
*/
|
|
388
|
-
close(): void;
|
|
411
|
+
close(callback?: (err?: NodeJS.ErrnoException | null) => void): void;
|
|
389
412
|
/**
|
|
390
413
|
* The number of bytes written so far. Does not include data that is still queued
|
|
391
414
|
* for writing.
|
|
@@ -768,6 +791,7 @@ declare module 'fs' {
|
|
|
768
791
|
* @deprecated Since v0.4.7
|
|
769
792
|
*/
|
|
770
793
|
export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void;
|
|
794
|
+
/** @deprecated */
|
|
771
795
|
export namespace lchmod {
|
|
772
796
|
/**
|
|
773
797
|
* Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.
|
|
@@ -904,42 +928,42 @@ declare module 'fs' {
|
|
|
904
928
|
): Promise<BigIntStats>;
|
|
905
929
|
function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
906
930
|
}
|
|
907
|
-
export interface StatSyncFn
|
|
908
|
-
(path:
|
|
931
|
+
export interface StatSyncFn extends Function {
|
|
932
|
+
(path: PathLike, options?: undefined): Stats;
|
|
909
933
|
(
|
|
910
|
-
path:
|
|
911
|
-
options?:
|
|
934
|
+
path: PathLike,
|
|
935
|
+
options?: StatSyncOptions & {
|
|
912
936
|
bigint?: false | undefined;
|
|
913
937
|
throwIfNoEntry: false;
|
|
914
938
|
}
|
|
915
939
|
): Stats | undefined;
|
|
916
940
|
(
|
|
917
|
-
path:
|
|
918
|
-
options:
|
|
941
|
+
path: PathLike,
|
|
942
|
+
options: StatSyncOptions & {
|
|
919
943
|
bigint: true;
|
|
920
944
|
throwIfNoEntry: false;
|
|
921
945
|
}
|
|
922
946
|
): BigIntStats | undefined;
|
|
923
947
|
(
|
|
924
|
-
path:
|
|
925
|
-
options?:
|
|
948
|
+
path: PathLike,
|
|
949
|
+
options?: StatSyncOptions & {
|
|
926
950
|
bigint?: false | undefined;
|
|
927
951
|
}
|
|
928
952
|
): Stats;
|
|
929
953
|
(
|
|
930
|
-
path:
|
|
931
|
-
options:
|
|
954
|
+
path: PathLike,
|
|
955
|
+
options: StatSyncOptions & {
|
|
932
956
|
bigint: true;
|
|
933
957
|
}
|
|
934
958
|
): BigIntStats;
|
|
935
959
|
(
|
|
936
|
-
path:
|
|
937
|
-
options:
|
|
960
|
+
path: PathLike,
|
|
961
|
+
options: StatSyncOptions & {
|
|
938
962
|
bigint: boolean;
|
|
939
963
|
throwIfNoEntry?: false | undefined;
|
|
940
964
|
}
|
|
941
965
|
): Stats | BigIntStats;
|
|
942
|
-
(path:
|
|
966
|
+
(path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined;
|
|
943
967
|
}
|
|
944
968
|
/**
|
|
945
969
|
* Synchronous stat(2) - Get file status.
|
|
@@ -993,7 +1017,20 @@ declare module 'fs' {
|
|
|
993
1017
|
* Synchronous fstat(2) - Get file status.
|
|
994
1018
|
* @param fd A file descriptor.
|
|
995
1019
|
*/
|
|
996
|
-
export
|
|
1020
|
+
export function fstatSync(
|
|
1021
|
+
fd: number,
|
|
1022
|
+
options?: StatOptions & {
|
|
1023
|
+
bigint?: false | undefined;
|
|
1024
|
+
}
|
|
1025
|
+
): Stats;
|
|
1026
|
+
export function fstatSync(
|
|
1027
|
+
fd: number,
|
|
1028
|
+
options: StatOptions & {
|
|
1029
|
+
bigint: true;
|
|
1030
|
+
}
|
|
1031
|
+
): BigIntStats;
|
|
1032
|
+
export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
|
|
1033
|
+
|
|
997
1034
|
/**
|
|
998
1035
|
* Retrieves the `fs.Stats` for the symbolic link referred to by the path.
|
|
999
1036
|
* The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic
|
|
@@ -1045,8 +1082,8 @@ declare module 'fs' {
|
|
|
1045
1082
|
*/
|
|
1046
1083
|
export const lstatSync: StatSyncFn;
|
|
1047
1084
|
/**
|
|
1048
|
-
* Creates a new link from the `existingPath` to the `newPath`. See the POSIX[`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than
|
|
1049
|
-
* possible
|
|
1085
|
+
* Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than
|
|
1086
|
+
* a possible
|
|
1050
1087
|
* exception are given to the completion callback.
|
|
1051
1088
|
* @since v0.1.31
|
|
1052
1089
|
*/
|
|
@@ -1060,7 +1097,7 @@ declare module 'fs' {
|
|
|
1060
1097
|
function __promisify__(existingPath: PathLike, newPath: PathLike): Promise<void>;
|
|
1061
1098
|
}
|
|
1062
1099
|
/**
|
|
1063
|
-
* Creates a new link from the `existingPath` to the `newPath`. See the POSIX[`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`.
|
|
1100
|
+
* Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`.
|
|
1064
1101
|
* @since v0.1.31
|
|
1065
1102
|
*/
|
|
1066
1103
|
export function linkSync(existingPath: PathLike, newPath: PathLike): void;
|
|
@@ -1456,7 +1493,7 @@ declare module 'fs' {
|
|
|
1456
1493
|
* Asynchronously creates a directory.
|
|
1457
1494
|
*
|
|
1458
1495
|
* The callback is given a possible exception and, if `recursive` is `true`, the
|
|
1459
|
-
* first directory path created, `(err,
|
|
1496
|
+
* first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was
|
|
1460
1497
|
* created.
|
|
1461
1498
|
*
|
|
1462
1499
|
* The optional `options` argument can be an integer specifying `mode` (permission
|
|
@@ -1949,7 +1986,7 @@ declare module 'fs' {
|
|
|
1949
1986
|
*
|
|
1950
1987
|
* Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented
|
|
1951
1988
|
* by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains
|
|
1952
|
-
* a colon, Node.js will open a file system stream, as described by[this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
|
|
1989
|
+
* a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams).
|
|
1953
1990
|
*
|
|
1954
1991
|
* Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc.
|
|
1955
1992
|
* @since v0.0.2
|
|
@@ -2202,9 +2239,9 @@ declare module 'fs' {
|
|
|
2202
2239
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2203
2240
|
* a promise for an `Object` with `bytesRead` and `buffer` properties.
|
|
2204
2241
|
* @since v0.0.2
|
|
2205
|
-
* @param
|
|
2206
|
-
* @param
|
|
2207
|
-
* @param
|
|
2242
|
+
* @param buffer The buffer that the data will be written to.
|
|
2243
|
+
* @param offset The position in `buffer` to write the data to.
|
|
2244
|
+
* @param length The number of bytes to read.
|
|
2208
2245
|
* @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If
|
|
2209
2246
|
* `position` is an integer, the file position will be unchanged.
|
|
2210
2247
|
*/
|
|
@@ -2510,6 +2547,8 @@ declare module 'fs' {
|
|
|
2510
2547
|
*
|
|
2511
2548
|
* The `encoding` option is ignored if `data` is a buffer.
|
|
2512
2549
|
*
|
|
2550
|
+
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2551
|
+
*
|
|
2513
2552
|
* If `data` is a plain object, it must have an own (not inherited) `toString`function property.
|
|
2514
2553
|
*
|
|
2515
2554
|
* ```js
|
|
@@ -2590,6 +2629,8 @@ declare module 'fs' {
|
|
|
2590
2629
|
*
|
|
2591
2630
|
* If `data` is a plain object, it must have an own (not inherited) `toString`function property.
|
|
2592
2631
|
*
|
|
2632
|
+
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2633
|
+
*
|
|
2593
2634
|
* For detailed information, see the documentation of the asynchronous version of
|
|
2594
2635
|
* this API: {@link writeFile}.
|
|
2595
2636
|
* @since v0.1.29
|
|
@@ -2600,6 +2641,8 @@ declare module 'fs' {
|
|
|
2600
2641
|
* Asynchronously append data to a file, creating the file if it does not yet
|
|
2601
2642
|
* exist. `data` can be a string or a `Buffer`.
|
|
2602
2643
|
*
|
|
2644
|
+
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2645
|
+
*
|
|
2603
2646
|
* ```js
|
|
2604
2647
|
* import { appendFile } from 'fs';
|
|
2605
2648
|
*
|
|
@@ -2674,6 +2717,8 @@ declare module 'fs' {
|
|
|
2674
2717
|
* Synchronously append data to a file, creating the file if it does not yet
|
|
2675
2718
|
* exist. `data` can be a string or a `Buffer`.
|
|
2676
2719
|
*
|
|
2720
|
+
* The `mode` option only affects the newly created file. See {@link open} for more details.
|
|
2721
|
+
*
|
|
2677
2722
|
* ```js
|
|
2678
2723
|
* import { appendFileSync } from 'fs';
|
|
2679
2724
|
*
|
|
@@ -2741,7 +2786,7 @@ declare module 'fs' {
|
|
|
2741
2786
|
* the numeric values in these objects are specified as `BigInt`s.
|
|
2742
2787
|
*
|
|
2743
2788
|
* To be notified when the file was modified, not just accessed, it is necessary
|
|
2744
|
-
* to compare `curr.
|
|
2789
|
+
* to compare `curr.mtimeMs` and `prev.mtimeMs`.
|
|
2745
2790
|
*
|
|
2746
2791
|
* When an `fs.watchFile` operation results in an `ENOENT` error, it
|
|
2747
2792
|
* will invoke the listener once, with all the fields zeroed (or, for dates, the
|
|
@@ -2762,21 +2807,34 @@ declare module 'fs' {
|
|
|
2762
2807
|
* * the file is renamed and then renamed a second time back to its original name
|
|
2763
2808
|
* @since v0.1.31
|
|
2764
2809
|
*/
|
|
2810
|
+
export interface WatchFileOptions {
|
|
2811
|
+
bigint?: boolean | undefined;
|
|
2812
|
+
persistent?: boolean | undefined;
|
|
2813
|
+
interval?: number | undefined;
|
|
2814
|
+
}
|
|
2765
2815
|
export function watchFile(
|
|
2766
2816
|
filename: PathLike,
|
|
2767
2817
|
options:
|
|
2768
|
-
| {
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
}
|
|
2818
|
+
| (WatchFileOptions & {
|
|
2819
|
+
bigint?: false | undefined;
|
|
2820
|
+
})
|
|
2772
2821
|
| undefined,
|
|
2773
2822
|
listener: (curr: Stats, prev: Stats) => void
|
|
2774
|
-
):
|
|
2823
|
+
): StatWatcher;
|
|
2824
|
+
export function watchFile(
|
|
2825
|
+
filename: PathLike,
|
|
2826
|
+
options:
|
|
2827
|
+
| (WatchFileOptions & {
|
|
2828
|
+
bigint: true;
|
|
2829
|
+
})
|
|
2830
|
+
| undefined,
|
|
2831
|
+
listener: (curr: BigIntStats, prev: BigIntStats) => void
|
|
2832
|
+
): StatWatcher;
|
|
2775
2833
|
/**
|
|
2776
2834
|
* Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
|
|
2777
2835
|
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
2778
2836
|
*/
|
|
2779
|
-
export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void):
|
|
2837
|
+
export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): StatWatcher;
|
|
2780
2838
|
/**
|
|
2781
2839
|
* Stop watching for changes on `filename`. If `listener` is specified, only that
|
|
2782
2840
|
* particular listener is removed. Otherwise, _all_ listeners are removed,
|
|
@@ -2979,6 +3037,7 @@ declare module 'fs' {
|
|
|
2979
3037
|
* @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead.
|
|
2980
3038
|
*/
|
|
2981
3039
|
export function exists(path: PathLike, callback: (exists: boolean) => void): void;
|
|
3040
|
+
/** @deprecated */
|
|
2982
3041
|
export namespace exists {
|
|
2983
3042
|
/**
|
|
2984
3043
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
@@ -3339,7 +3398,7 @@ declare module 'fs' {
|
|
|
3339
3398
|
end?: number | undefined;
|
|
3340
3399
|
}
|
|
3341
3400
|
/**
|
|
3342
|
-
* Unlike the 16 kb default `highWaterMark` for a
|
|
3401
|
+
* Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream
|
|
3343
3402
|
* returned by this method has a default `highWaterMark` of 64 kb.
|
|
3344
3403
|
*
|
|
3345
3404
|
* `options` can include `start` and `end` values to read a range of bytes from
|
|
@@ -3359,10 +3418,11 @@ declare module 'fs' {
|
|
|
3359
3418
|
* closing naturally.
|
|
3360
3419
|
*
|
|
3361
3420
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3362
|
-
* destroyed
|
|
3421
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3363
3422
|
*
|
|
3364
3423
|
* By providing the `fs` option, it is possible to override the corresponding `fs`implementations for `open`, `read`, and `close`. When providing the `fs` option,
|
|
3365
|
-
*
|
|
3424
|
+
* an override for `read` is required. If no `fd` is provided, an override for`open` is also required. If `autoClose` is `true`, an override for `close` is
|
|
3425
|
+
* also required.
|
|
3366
3426
|
*
|
|
3367
3427
|
* ```js
|
|
3368
3428
|
* import { createReadStream } from 'fs';
|
|
@@ -3400,7 +3460,6 @@ declare module 'fs' {
|
|
|
3400
3460
|
*
|
|
3401
3461
|
* If `options` is a string, then it specifies the encoding.
|
|
3402
3462
|
* @since v0.1.31
|
|
3403
|
-
* @return See `Readable Stream`.
|
|
3404
3463
|
*/
|
|
3405
3464
|
export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
|
|
3406
3465
|
/**
|
|
@@ -3416,11 +3475,12 @@ declare module 'fs' {
|
|
|
3416
3475
|
* file descriptor leak.
|
|
3417
3476
|
*
|
|
3418
3477
|
* By default, the stream will emit a `'close'` event after it has been
|
|
3419
|
-
* destroyed
|
|
3478
|
+
* destroyed. Set the `emitClose` option to `false` to change this behavior.
|
|
3420
3479
|
*
|
|
3421
3480
|
* By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce
|
|
3422
3481
|
* performance as some optimizations (`_writev()`)
|
|
3423
|
-
* will be disabled. When providing the `fs` option,
|
|
3482
|
+
* will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override
|
|
3483
|
+
* for `open` is also required. If `autoClose` is `true`, an override for `close`is also required.
|
|
3424
3484
|
*
|
|
3425
3485
|
* Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be
|
|
3426
3486
|
* emitted. `fd` should be blocking; non-blocking `fd`s
|
|
@@ -3428,12 +3488,11 @@ declare module 'fs' {
|
|
|
3428
3488
|
*
|
|
3429
3489
|
* If `options` is a string, then it specifies the encoding.
|
|
3430
3490
|
* @since v0.1.31
|
|
3431
|
-
* @return See `Writable Stream`.
|
|
3432
3491
|
*/
|
|
3433
3492
|
export function createWriteStream(path: PathLike, options?: BufferEncoding | StreamOptions): WriteStream;
|
|
3434
3493
|
/**
|
|
3435
3494
|
* Forces all currently queued I/O operations associated with the file to the
|
|
3436
|
-
* operating system's synchronized I/O completion state. Refer to the POSIX[`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other
|
|
3495
|
+
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other
|
|
3437
3496
|
* than a possible
|
|
3438
3497
|
* exception are given to the completion callback.
|
|
3439
3498
|
* @since v0.1.96
|
|
@@ -3448,7 +3507,7 @@ declare module 'fs' {
|
|
|
3448
3507
|
}
|
|
3449
3508
|
/**
|
|
3450
3509
|
* Forces all currently queued I/O operations associated with the file to the
|
|
3451
|
-
* operating system's synchronized I/O completion state. Refer to the POSIX[`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`.
|
|
3510
|
+
* operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`.
|
|
3452
3511
|
* @since v0.1.96
|
|
3453
3512
|
*/
|
|
3454
3513
|
export function fdatasyncSync(fd: number): void;
|
|
@@ -3626,7 +3685,7 @@ declare module 'fs' {
|
|
|
3626
3685
|
* directory and subsequent read operations.
|
|
3627
3686
|
* @since v12.12.0
|
|
3628
3687
|
*/
|
|
3629
|
-
export function opendirSync(path:
|
|
3688
|
+
export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
|
|
3630
3689
|
/**
|
|
3631
3690
|
* Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for
|
|
3632
3691
|
* more details.
|
|
@@ -3638,10 +3697,10 @@ declare module 'fs' {
|
|
|
3638
3697
|
* directory and subsequent read operations.
|
|
3639
3698
|
* @since v12.12.0
|
|
3640
3699
|
*/
|
|
3641
|
-
export function opendir(path:
|
|
3642
|
-
export function opendir(path:
|
|
3700
|
+
export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3701
|
+
export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
|
|
3643
3702
|
export namespace opendir {
|
|
3644
|
-
function __promisify__(path:
|
|
3703
|
+
function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
|
|
3645
3704
|
}
|
|
3646
3705
|
export interface BigIntStats extends StatsBase<bigint> {
|
|
3647
3706
|
atimeNs: bigint;
|
|
@@ -3654,6 +3713,8 @@ declare module 'fs' {
|
|
|
3654
3713
|
}
|
|
3655
3714
|
export interface StatOptions {
|
|
3656
3715
|
bigint?: boolean | undefined;
|
|
3716
|
+
}
|
|
3717
|
+
export interface StatSyncOptions extends StatOptions {
|
|
3657
3718
|
throwIfNoEntry?: boolean | undefined;
|
|
3658
3719
|
}
|
|
3659
3720
|
export interface CopyOptions {
|