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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```js
|
|
6
6
|
* import url from 'url';
|
|
7
7
|
* ```
|
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module 'url' {
|
|
11
11
|
import { Blob } from 'node:buffer';
|
|
@@ -71,6 +71,30 @@ declare module 'url' {
|
|
|
71
71
|
function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
|
|
72
72
|
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
73
73
|
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
74
|
+
/**
|
|
75
|
+
* The URL object has both a `toString()` method and `href` property that return string serializations of the URL.
|
|
76
|
+
* These are not, however, customizable in any way. The `url.format(URL[, options])` method allows for basic
|
|
77
|
+
* customization of the output.
|
|
78
|
+
* Returns a customizable serialization of a URL `String` representation of a `WHATWG URL` object.
|
|
79
|
+
*
|
|
80
|
+
* ```js
|
|
81
|
+
* import url from 'url';
|
|
82
|
+
* const myURL = new URL('https://a:b@測試?abc#foo');
|
|
83
|
+
*
|
|
84
|
+
* console.log(myURL.href);
|
|
85
|
+
* // Prints https://a:b@xn--g6w251d/?abc#foo
|
|
86
|
+
*
|
|
87
|
+
* console.log(myURL.toString());
|
|
88
|
+
* // Prints https://a:b@xn--g6w251d/?abc#foo
|
|
89
|
+
*
|
|
90
|
+
* console.log(url.format(myURL, { fragment: false, unicode: true, auth: false }));
|
|
91
|
+
* // Prints 'https://測試/?abc'
|
|
92
|
+
* ```
|
|
93
|
+
* @since v7.6.0
|
|
94
|
+
* @param urlObject A `WHATWG URL` object
|
|
95
|
+
* @param options
|
|
96
|
+
*/
|
|
97
|
+
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
74
98
|
/**
|
|
75
99
|
* The `url.format()` method returns a formatted URL string derived from`urlObject`.
|
|
76
100
|
*
|
|
@@ -134,7 +158,6 @@ declare module 'url' {
|
|
|
134
158
|
* @deprecated Legacy: Use the WHATWG URL API instead.
|
|
135
159
|
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
|
|
136
160
|
*/
|
|
137
|
-
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
138
161
|
function format(urlObject: UrlObject | string): string;
|
|
139
162
|
/**
|
|
140
163
|
* The `url.resolve()` method resolves a target URL relative to a base URL in a
|
|
@@ -684,7 +707,7 @@ declare module 'url' {
|
|
|
684
707
|
* @since v7.5.0, v6.13.0
|
|
685
708
|
*/
|
|
686
709
|
class URLSearchParams implements Iterable<[string, string]> {
|
|
687
|
-
constructor(init?: URLSearchParams | string |
|
|
710
|
+
constructor(init?: URLSearchParams | string | Record<string, string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
|
|
688
711
|
/**
|
|
689
712
|
* Append a new name-value pair to the query string.
|
|
690
713
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* const util = require('util');
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'util' {
|
|
12
12
|
import * as types from 'node:util/types';
|
|
@@ -113,6 +113,20 @@ declare module 'util' {
|
|
|
113
113
|
* @since v10.0.0
|
|
114
114
|
*/
|
|
115
115
|
export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
|
116
|
+
/**
|
|
117
|
+
* Returns the string name for a numeric error code that comes from a Node.js API.
|
|
118
|
+
* The mapping between error codes and error names is platform-dependent.
|
|
119
|
+
* See `Common System Errors` for the names of common errors.
|
|
120
|
+
*
|
|
121
|
+
* ```js
|
|
122
|
+
* fs.access('file/that/does/not/exist', (err) => {
|
|
123
|
+
* const name = util.getSystemErrorName(err.errno);
|
|
124
|
+
* console.error(name); // ENOENT
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
* @since v9.7.0
|
|
128
|
+
*/
|
|
129
|
+
export function getSystemErrorName(err: number): string;
|
|
116
130
|
/**
|
|
117
131
|
* Returns a Map of all system error codes available from the Node.js API.
|
|
118
132
|
* The mapping between error codes and error names is platform-dependent.
|
|
@@ -141,6 +155,13 @@ declare module 'util' {
|
|
|
141
155
|
* @deprecated Since v6.0.0 - Use a third party module instead.
|
|
142
156
|
*/
|
|
143
157
|
export function log(string: string): void;
|
|
158
|
+
/**
|
|
159
|
+
* Returns the `string` after replacing any surrogate code points
|
|
160
|
+
* (or equivalently, any unpaired surrogate code units) with the
|
|
161
|
+
* Unicode "replacement character" U+FFFD.
|
|
162
|
+
* @since v16.8.0
|
|
163
|
+
*/
|
|
164
|
+
export function toUSVString(string: string): string;
|
|
144
165
|
/**
|
|
145
166
|
* The `util.inspect()` method returns a string representation of `object` that is
|
|
146
167
|
* intended for debugging. The output of `util.inspect` may change at any time
|
|
@@ -245,7 +266,7 @@ declare module 'util' {
|
|
|
245
266
|
* The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and
|
|
246
267
|
* [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be
|
|
247
268
|
* inspected. If there are more entries than `maxArrayLength`, there is no
|
|
248
|
-
* guarantee which entries are displayed. That means retrieving the same[`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may
|
|
269
|
+
* guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may
|
|
249
270
|
* result in different output. Furthermore, entries
|
|
250
271
|
* with no remaining strong references may be garbage collected at any time.
|
|
251
272
|
*
|
|
@@ -307,6 +328,9 @@ declare module 'util' {
|
|
|
307
328
|
* Allows changing inspect settings from the repl.
|
|
308
329
|
*/
|
|
309
330
|
let replDefaults: InspectOptions;
|
|
331
|
+
/**
|
|
332
|
+
* That can be used to declare custom inspect functions.
|
|
333
|
+
*/
|
|
310
334
|
const custom: unique symbol;
|
|
311
335
|
}
|
|
312
336
|
/**
|
|
@@ -513,6 +537,7 @@ declare module 'util' {
|
|
|
513
537
|
* @return The logging function
|
|
514
538
|
*/
|
|
515
539
|
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
540
|
+
export const debug: typeof debuglog;
|
|
516
541
|
/**
|
|
517
542
|
* Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
|
|
518
543
|
*
|
|
@@ -782,6 +807,16 @@ declare module 'util' {
|
|
|
782
807
|
* @since v9.0.0
|
|
783
808
|
*/
|
|
784
809
|
export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
|
|
810
|
+
/**
|
|
811
|
+
* Returns `str` with any ANSI escape codes removed.
|
|
812
|
+
*
|
|
813
|
+
* ```js
|
|
814
|
+
* console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));
|
|
815
|
+
* // Prints "value"
|
|
816
|
+
* ```
|
|
817
|
+
* @since v16.11.0
|
|
818
|
+
*/
|
|
819
|
+
export function stripVTControlCharacters(str: string): string;
|
|
785
820
|
/**
|
|
786
821
|
* Takes an `async` function (or a function that returns a `Promise`) and returns a
|
|
787
822
|
* function following the error-first callback style, i.e. taking
|
|
@@ -954,10 +989,13 @@ declare module 'util' {
|
|
|
954
989
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
955
990
|
export function promisify(fn: Function): Function;
|
|
956
991
|
export namespace promisify {
|
|
992
|
+
/**
|
|
993
|
+
* That can be used to declare custom promisified variants of functions.
|
|
994
|
+
*/
|
|
957
995
|
const custom: unique symbol;
|
|
958
996
|
}
|
|
959
997
|
/**
|
|
960
|
-
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/)`TextDecoder` API.
|
|
998
|
+
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
|
|
961
999
|
*
|
|
962
1000
|
* ```js
|
|
963
1001
|
* const decoder = new TextDecoder('shift_jis');
|
|
@@ -1019,7 +1057,7 @@ declare module 'util' {
|
|
|
1019
1057
|
}
|
|
1020
1058
|
export { types };
|
|
1021
1059
|
/**
|
|
1022
|
-
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/)`TextEncoder` API. All
|
|
1060
|
+
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All
|
|
1023
1061
|
* instances of `TextEncoder` only support UTF-8 encoding.
|
|
1024
1062
|
*
|
|
1025
1063
|
* ```js
|
|
@@ -1063,8 +1101,8 @@ declare module 'util/types' {
|
|
|
1063
1101
|
declare module 'util/types' {
|
|
1064
1102
|
import { KeyObject, webcrypto } from 'node:crypto';
|
|
1065
1103
|
/**
|
|
1066
|
-
* Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
|
|
1067
|
-
*
|
|
1104
|
+
* Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
|
|
1105
|
+
* [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
|
|
1068
1106
|
*
|
|
1069
1107
|
* See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`.
|
|
1070
1108
|
*
|
|
@@ -1099,9 +1137,9 @@ declare module 'util/types' {
|
|
|
1099
1137
|
*/
|
|
1100
1138
|
function isArrayBuffer(object: unknown): object is ArrayBuffer;
|
|
1101
1139
|
/**
|
|
1102
|
-
* Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)views, such as typed
|
|
1103
|
-
* objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent
|
|
1104
|
-
*
|
|
1140
|
+
* Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed
|
|
1141
|
+
* array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to
|
|
1142
|
+
* [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
|
|
1105
1143
|
*
|
|
1106
1144
|
* ```js
|
|
1107
1145
|
* util.types.isArrayBufferView(new Int8Array()); // true
|
|
@@ -1329,7 +1367,7 @@ declare module 'util/types' {
|
|
|
1329
1367
|
*/
|
|
1330
1368
|
function isMap<T>(object: T | {}): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>) : Map<unknown, unknown>;
|
|
1331
1369
|
/**
|
|
1332
|
-
* Returns `true` if the value is an iterator returned for a built-in[`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
|
|
1370
|
+
* Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
|
|
1333
1371
|
*
|
|
1334
1372
|
* ```js
|
|
1335
1373
|
* const map = new Map();
|
|
@@ -1415,7 +1453,7 @@ declare module 'util/types' {
|
|
|
1415
1453
|
*/
|
|
1416
1454
|
function isSet<T>(object: T | {}): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
|
|
1417
1455
|
/**
|
|
1418
|
-
* Returns `true` if the value is an iterator returned for a built-in[`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
|
|
1456
|
+
* Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
|
|
1419
1457
|
*
|
|
1420
1458
|
* ```js
|
|
1421
1459
|
* const set = new Set();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/)built into the Node.js binary. It can be accessed using:
|
|
2
|
+
* The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
|
|
3
3
|
*
|
|
4
4
|
* ```js
|
|
5
5
|
* const v8 = require('v8');
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module 'v8' {
|
|
10
10
|
import { Readable } from 'node:stream';
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*
|
|
33
33
|
* console.log(x); // 1; y is not defined.
|
|
34
34
|
* ```
|
|
35
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
35
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/vm.js)
|
|
36
36
|
*/
|
|
37
37
|
declare module 'vm' {
|
|
38
38
|
interface Context extends NodeJS.Dict<any> {}
|
|
@@ -267,13 +267,16 @@ declare module 'vm' {
|
|
|
267
267
|
* @since v10.6.0
|
|
268
268
|
*/
|
|
269
269
|
createCachedData(): Buffer;
|
|
270
|
+
/** @deprecated in favor of `script.createCachedData()` */
|
|
271
|
+
cachedDataProduced?: boolean | undefined;
|
|
270
272
|
cachedDataRejected?: boolean | undefined;
|
|
273
|
+
cachedData?: Buffer | undefined;
|
|
271
274
|
}
|
|
272
275
|
/**
|
|
273
276
|
* If given a `contextObject`, the `vm.createContext()` method will `prepare
|
|
274
277
|
* that object` so that it can be used in calls to {@link runInContext} or `script.runInContext()`. Inside such scripts,
|
|
275
278
|
* the `contextObject` will be the global object, retaining all of its existing
|
|
276
|
-
* properties but also having the built-in objects and functions any standard[global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables
|
|
279
|
+
* properties but also having the built-in objects and functions any standard [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables
|
|
277
280
|
* will remain unchanged.
|
|
278
281
|
*
|
|
279
282
|
* ```js
|
|
@@ -394,7 +397,7 @@ declare module 'vm' {
|
|
|
394
397
|
* ```
|
|
395
398
|
*
|
|
396
399
|
* Because `vm.runInThisContext()` does not have access to the local scope,`localVar` is unchanged. In contrast,
|
|
397
|
-
* [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval)_does_ have access to the
|
|
400
|
+
* [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
|
|
398
401
|
* local scope, so the value `localVar` is changed. In this way`vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
|
|
399
402
|
*
|
|
400
403
|
* ## Example: Running an HTTP server within a VM
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/)specification. WASI gives sandboxed WebAssembly applications access to the
|
|
2
|
+
* The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives sandboxed WebAssembly applications access to the
|
|
3
3
|
* underlying operating system via a collection of POSIX-like functions.
|
|
4
4
|
*
|
|
5
5
|
* ```js
|
|
6
|
-
* import
|
|
6
|
+
* import { readFile } from 'fs/promises';
|
|
7
7
|
* import { WASI } from 'wasi';
|
|
8
8
|
* import { argv, env } from 'process';
|
|
9
9
|
*
|
|
@@ -14,9 +14,14 @@
|
|
|
14
14
|
* '/sandbox': '/some/real/path/that/wasm/can/access'
|
|
15
15
|
* }
|
|
16
16
|
* });
|
|
17
|
+
*
|
|
18
|
+
* // Some WASI binaries require:
|
|
19
|
+
* // const importObject = { wasi_unstable: wasi.wasiImport };
|
|
17
20
|
* const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
|
|
18
21
|
*
|
|
19
|
-
* const wasm = await WebAssembly.compile(
|
|
22
|
+
* const wasm = await WebAssembly.compile(
|
|
23
|
+
* await readFile(new URL('./demo.wasm', import.meta.url))
|
|
24
|
+
* );
|
|
20
25
|
* const instance = await WebAssembly.instantiate(wasm, importObject);
|
|
21
26
|
*
|
|
22
27
|
* wasi.start(instance);
|
|
@@ -63,7 +68,7 @@
|
|
|
63
68
|
* The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
|
|
64
69
|
* example to run.
|
|
65
70
|
* @experimental
|
|
66
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
71
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/wasi.js)
|
|
67
72
|
*/
|
|
68
73
|
declare module 'wasi' {
|
|
69
74
|
interface WASIOptions {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
*
|
|
50
50
|
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
51
51
|
* specifically `argv` and `execArgv` options.
|
|
52
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module 'worker_threads' {
|
|
55
55
|
import { Blob } from 'node:buffer';
|
|
@@ -94,7 +94,7 @@ declare module 'worker_threads' {
|
|
|
94
94
|
* asynchronous, two-way communications channel. It can be used to transfer
|
|
95
95
|
* structured data, memory regions and other `MessagePort`s between different `Worker` s.
|
|
96
96
|
*
|
|
97
|
-
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort)s.
|
|
97
|
+
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
|
98
98
|
* @since v10.5.0
|
|
99
99
|
*/
|
|
100
100
|
class MessagePort extends EventEmitter {
|
|
@@ -572,11 +572,11 @@ declare module 'worker_threads' {
|
|
|
572
572
|
* takes its place.
|
|
573
573
|
*
|
|
574
574
|
* The returned `MessagePort` is an object in the target context and
|
|
575
|
-
* inherits from its global `Object` class. Objects passed to the[`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
|
|
575
|
+
* inherits from its global `Object` class. Objects passed to the [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
|
|
576
576
|
* target context
|
|
577
577
|
* and inherit from its global `Object` class.
|
|
578
578
|
*
|
|
579
|
-
* However, the created `MessagePort` no longer inherits from[`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
|
|
579
|
+
* However, the created `MessagePort` no longer inherits from [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
|
|
580
580
|
* [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
|
|
581
581
|
* events using it.
|
|
582
582
|
* @since v11.13.0
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* });
|
|
89
89
|
* ```
|
|
90
90
|
* @since v0.5.8
|
|
91
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
91
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/zlib.js)
|
|
92
92
|
*/
|
|
93
93
|
declare module 'zlib' {
|
|
94
94
|
import * as stream from 'node:stream';
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for keyv (https://github.com/lukechilds/k
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keyv.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 07 Sep 2021 09:31:23 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
|
@@ -22,7 +22,10 @@ declare class Keyv<TValue = any> extends EventEmitter {
|
|
|
22
22
|
constructor(uri?: string, opts?: Keyv.Options<TValue>);
|
|
23
23
|
|
|
24
24
|
/** Returns the value. */
|
|
25
|
-
get(key: string
|
|
25
|
+
get<TRaw extends boolean = false>(key: string, options?: { raw?: TRaw }):
|
|
26
|
+
Promise<(TRaw extends false
|
|
27
|
+
? TValue
|
|
28
|
+
: Keyv.DeserializedData<TValue>) | undefined>;
|
|
26
29
|
/**
|
|
27
30
|
* Set a value.
|
|
28
31
|
*
|
|
@@ -44,9 +47,9 @@ declare namespace Keyv {
|
|
|
44
47
|
/** Namespace for the current instance. */
|
|
45
48
|
namespace?: string | undefined;
|
|
46
49
|
/** A custom serialization function. */
|
|
47
|
-
serialize?: ((data: TValue) => string) | undefined;
|
|
50
|
+
serialize?: ((data: DeserializedData<TValue>) => string) | undefined;
|
|
48
51
|
/** A custom deserialization function. */
|
|
49
|
-
deserialize?: ((data: string) => TValue) | undefined;
|
|
52
|
+
deserialize?: ((data: string) => DeserializedData<TValue> | undefined) | undefined;
|
|
50
53
|
/** The connection string URI. */
|
|
51
54
|
uri?: string | undefined;
|
|
52
55
|
/** The storage adapter instance to be used by Keyv. */
|
|
@@ -59,6 +62,10 @@ declare namespace Keyv {
|
|
|
59
62
|
[key: string]: any;
|
|
60
63
|
}
|
|
61
64
|
|
|
65
|
+
interface DeserializedData<TValue> {
|
|
66
|
+
value: TValue; expires: number | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
interface Store<TValue> {
|
|
63
70
|
get(key: string): TValue | Promise<TValue | undefined> | undefined;
|
|
64
71
|
set(key: string, value: TValue, ttl?: number): any;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
> `npm install --save @types/node`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (
|
|
5
|
+
This package contains type definitions for Node.js (https://nodejs.org/).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 07 Dec 2021 06:31:07 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `assert` module provides a set of assertion functions for verifying
|
|
3
3
|
* invariants.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/assert.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module 'assert' {
|
|
7
7
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* import async_hooks from 'async_hooks';
|
|
7
7
|
* ```
|
|
8
8
|
* @experimental
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/async_hooks.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module 'async_hooks' {
|
|
12
12
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
|
|
6
6
|
* extends it with methods that cover additional use cases. Node.js APIs accept
|
|
7
|
-
* plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)s wherever `Buffer`s are supported as well.
|
|
7
|
+
* plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well.
|
|
8
8
|
*
|
|
9
9
|
* While the `Buffer` class is available within the global scope, it is still
|
|
10
10
|
* recommended to explicitly reference it via an import or require statement.
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
|
42
42
|
* const buf7 = Buffer.from('tést', 'latin1');
|
|
43
43
|
* ```
|
|
44
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
44
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
46
|
declare module 'buffer' {
|
|
47
47
|
import { BinaryLike } from 'node:crypto';
|
|
@@ -137,7 +137,7 @@ declare module 'buffer' {
|
|
|
137
137
|
*/
|
|
138
138
|
constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
|
|
139
139
|
/**
|
|
140
|
-
* Returns a promise that fulfills with an [
|
|
140
|
+
* Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
|
|
141
141
|
* the `Blob` data.
|
|
142
142
|
* @since v15.7.0
|
|
143
143
|
*/
|
|
@@ -176,7 +176,7 @@ declare module 'buffer' {
|
|
|
176
176
|
/**
|
|
177
177
|
* Raw data is stored in instances of the Buffer class.
|
|
178
178
|
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
|
|
179
|
-
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
|
|
179
|
+
* Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
|
|
180
180
|
*/
|
|
181
181
|
interface BufferConstructor {
|
|
182
182
|
/**
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
* For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
|
|
61
61
|
* the synchronous methods can have significant impact on performance due to
|
|
62
62
|
* stalling the event loop while spawned processes complete.
|
|
63
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
63
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/child_process.js)
|
|
64
64
|
*/
|
|
65
65
|
declare module 'child_process' {
|
|
66
66
|
import { ObjectEncodingOptions } from 'node:fs';
|
|
@@ -70,6 +70,14 @@ declare module 'child_process' {
|
|
|
70
70
|
import { URL } from 'node:url';
|
|
71
71
|
type Serializable = string | object | number | boolean | bigint;
|
|
72
72
|
type SendHandle = net.Socket | net.Server;
|
|
73
|
+
/**
|
|
74
|
+
* Instances of the `ChildProcess` represent spawned child processes.
|
|
75
|
+
*
|
|
76
|
+
* Instances of `ChildProcess` are not intended to be created directly. Rather,
|
|
77
|
+
* use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create
|
|
78
|
+
* instances of `ChildProcess`.
|
|
79
|
+
* @since v2.2.0
|
|
80
|
+
*/
|
|
73
81
|
class ChildProcess extends EventEmitter {
|
|
74
82
|
/**
|
|
75
83
|
* A `Writable Stream` that represents the child process's `stdin`.
|
|
@@ -236,8 +244,8 @@ declare module 'child_process' {
|
|
|
236
244
|
readonly spawnfile: string;
|
|
237
245
|
/**
|
|
238
246
|
* The `subprocess.kill()` method sends a signal to the child process. If no
|
|
239
|
-
* argument is given, the process will be sent the `'SIGTERM'` signal. See[`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
|
|
240
|
-
* returns `true` if[`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
|
|
247
|
+
* argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
|
|
248
|
+
* returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
|
|
241
249
|
*
|
|
242
250
|
* ```js
|
|
243
251
|
* const { spawn } = require('child_process');
|
|
@@ -781,6 +789,7 @@ declare module 'child_process' {
|
|
|
781
789
|
function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
|
|
782
790
|
interface ExecOptions extends CommonOptions {
|
|
783
791
|
shell?: string | undefined;
|
|
792
|
+
signal?: AbortSignal | undefined;
|
|
784
793
|
maxBuffer?: number | undefined;
|
|
785
794
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
786
795
|
}
|
|
@@ -799,7 +808,7 @@ declare module 'child_process' {
|
|
|
799
808
|
/**
|
|
800
809
|
* Spawns a shell then executes the `command` within that shell, buffering any
|
|
801
810
|
* generated output. The `command` string passed to the exec function is processed
|
|
802
|
-
* directly by the shell and special characters (vary based on[shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
|
|
811
|
+
* directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
|
|
803
812
|
* need to be dealt with accordingly:
|
|
804
813
|
*
|
|
805
814
|
* ```js
|
|
@@ -1271,12 +1280,13 @@ declare module 'child_process' {
|
|
|
1271
1280
|
* @param args List of string arguments.
|
|
1272
1281
|
*/
|
|
1273
1282
|
function spawnSync(command: string): SpawnSyncReturns<Buffer>;
|
|
1274
|
-
function spawnSync(command: string, options
|
|
1275
|
-
function spawnSync(command: string, options
|
|
1276
|
-
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
|
|
1277
|
-
function spawnSync(command: string, args
|
|
1278
|
-
function spawnSync(command: string, args
|
|
1279
|
-
function spawnSync(command: string, args
|
|
1283
|
+
function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
1284
|
+
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1285
|
+
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1286
|
+
function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
|
|
1287
|
+
function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
|
|
1288
|
+
function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1289
|
+
function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1280
1290
|
interface CommonExecOptions extends CommonOptions {
|
|
1281
1291
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1282
1292
|
stdio?: StdioOptions | undefined;
|
|
@@ -1310,9 +1320,9 @@ declare module 'child_process' {
|
|
|
1310
1320
|
* @return The stdout from the command.
|
|
1311
1321
|
*/
|
|
1312
1322
|
function execSync(command: string): Buffer;
|
|
1313
|
-
function execSync(command: string, options
|
|
1314
|
-
function execSync(command: string, options
|
|
1315
|
-
function execSync(command: string, options?: ExecSyncOptions): Buffer;
|
|
1323
|
+
function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
|
|
1324
|
+
function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
|
|
1325
|
+
function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
|
|
1316
1326
|
interface ExecFileSyncOptions extends CommonExecOptions {
|
|
1317
1327
|
shell?: boolean | string | undefined;
|
|
1318
1328
|
}
|
|
@@ -1320,7 +1330,7 @@ declare module 'child_process' {
|
|
|
1320
1330
|
encoding: BufferEncoding;
|
|
1321
1331
|
}
|
|
1322
1332
|
interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
|
|
1323
|
-
encoding
|
|
1333
|
+
encoding?: 'buffer' | null; // specify `null`.
|
|
1324
1334
|
}
|
|
1325
1335
|
/**
|
|
1326
1336
|
* The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not
|
|
@@ -1343,12 +1353,13 @@ declare module 'child_process' {
|
|
|
1343
1353
|
* @return The stdout from the command.
|
|
1344
1354
|
*/
|
|
1345
1355
|
function execFileSync(file: string): Buffer;
|
|
1346
|
-
function execFileSync(file: string, options
|
|
1347
|
-
function execFileSync(file: string, options
|
|
1348
|
-
function execFileSync(file: string, options?: ExecFileSyncOptions): Buffer;
|
|
1349
|
-
function execFileSync(file: string, args
|
|
1350
|
-
function execFileSync(file: string, args
|
|
1351
|
-
function execFileSync(file: string, args
|
|
1356
|
+
function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
1357
|
+
function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1358
|
+
function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
1359
|
+
function execFileSync(file: string, args: ReadonlyArray<string>): Buffer;
|
|
1360
|
+
function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithStringEncoding): string;
|
|
1361
|
+
function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1362
|
+
function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
1352
1363
|
}
|
|
1353
1364
|
declare module 'node:child_process' {
|
|
1354
1365
|
export * from 'child_process';
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
|
52
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/cluster.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module 'cluster' {
|
|
55
55
|
import * as child from 'node:child_process';
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
* myConsole.warn(`Danger ${name}! Danger!`);
|
|
54
54
|
* // Prints: Danger Will Robinson! Danger!, to err
|
|
55
55
|
* ```
|
|
56
|
-
* @see [source](https://github.com/nodejs/node/blob/v16.
|
|
56
|
+
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/console.js)
|
|
57
57
|
*/
|
|
58
58
|
declare module 'console' {
|
|
59
59
|
import console = require('node:console');
|
|
@@ -394,6 +394,11 @@ declare module 'node:console' {
|
|
|
394
394
|
ignoreErrors?: boolean | undefined;
|
|
395
395
|
colorMode?: boolean | 'auto' | undefined;
|
|
396
396
|
inspectOptions?: InspectOptions | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Set group indentation
|
|
399
|
+
* @default 2
|
|
400
|
+
*/
|
|
401
|
+
groupIndentation?: number | undefined;
|
|
397
402
|
}
|
|
398
403
|
interface ConsoleConstructor {
|
|
399
404
|
prototype: Console;
|