cloudstructs 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/assets/slack-app/provider.lambda/index.js +46 -96
- package/assets/slack-events/events.lambda/index.js +4 -8
- package/assets/slack-textract/detect.lambda/index.js +617 -492
- package/assets/ssl-server-test/analyze.lambda/index.js +46 -96
- package/assets/static-website/origin-request.edge-lambda/index.js +1 -2
- package/assets/url-shortener/shortener.lambda/index.js +1 -2
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +41 -44
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +7 -7
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +1 -1
- 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 +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +38 -3
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +13 -13
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +29 -37
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +43 -37
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +77 -47
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +50 -8
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +28 -11
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +214 -43
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +7 -7
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +55 -49
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +28 -23
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +115 -22
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +35 -17
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +16 -16
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +41 -44
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +7 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +1 -1
- 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 +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +38 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +13 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +29 -37
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +43 -37
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +77 -47
- 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/inspector.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +50 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +28 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +214 -43
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +7 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +55 -49
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +28 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +115 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +35 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +16 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +41 -44
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1 -1
- 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 +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +38 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +29 -37
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +43 -37
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +77 -47
- 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/inspector.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +50 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +28 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +214 -43
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +55 -49
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +28 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +115 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +35 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +16 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +41 -44
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +7 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +1 -1
- 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 +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +38 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +13 -13
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +29 -37
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +12 -12
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +43 -37
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +77 -47
- 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/inspector.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +50 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +28 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +214 -43
- package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +7 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +55 -49
- package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +28 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +5 -5
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +115 -22
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +6 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +35 -17
- package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +16 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +41 -44
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1 -1
- 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 +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +38 -3
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +29 -37
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +43 -37
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +77 -47
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +50 -8
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +28 -11
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +214 -43
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +55 -49
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +28 -23
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +115 -22
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +35 -17
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +16 -16
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +41 -44
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1 -1
- 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 +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +38 -3
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +29 -37
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +43 -37
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +77 -47
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +50 -8
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +28 -11
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +214 -43
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +55 -49
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +28 -23
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +115 -22
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +35 -17
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +16 -16
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/axios/CHANGELOG.md +868 -790
- package/node_modules/axios/README.md +60 -15
- package/node_modules/axios/dist/axios.js +1018 -294
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +688 -308
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +688 -308
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +597 -246
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +9 -6
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/defaults/index.js +7 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +4 -3
- package/package.json +18 -18
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* asynchronous I/O operations are more efficient than Workers can be.
|
|
12
12
|
*
|
|
13
13
|
* Unlike `child_process` or `cluster`, `worker_threads` can share memory. They do
|
|
14
|
-
* so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer`instances.
|
|
14
|
+
* so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
|
|
15
15
|
*
|
|
16
16
|
* ```js
|
|
17
17
|
* const {
|
|
@@ -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/v20.2
|
|
52
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/worker_threads.js)
|
|
53
53
|
*/
|
|
54
54
|
declare module "worker_threads" {
|
|
55
55
|
import { Blob } from "node:buffer";
|
|
@@ -69,7 +69,7 @@ declare module "worker_threads" {
|
|
|
69
69
|
/**
|
|
70
70
|
* Instances of the `worker.MessageChannel` class represent an asynchronous,
|
|
71
71
|
* two-way communications channel.
|
|
72
|
-
* The `MessageChannel` has no methods of its own. `new MessageChannel()`yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
|
72
|
+
* The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
|
73
73
|
*
|
|
74
74
|
* ```js
|
|
75
75
|
* const { MessageChannel } = require('node:worker_threads');
|
|
@@ -92,7 +92,7 @@ declare module "worker_threads" {
|
|
|
92
92
|
/**
|
|
93
93
|
* Instances of the `worker.MessagePort` class represent one end of an
|
|
94
94
|
* asynchronous, two-way communications channel. It can be used to transfer
|
|
95
|
-
* structured data, memory regions and other `MessagePort`s between different `Worker`
|
|
95
|
+
* structured data, memory regions and other `MessagePort`s between different `Worker`s.
|
|
96
96
|
*
|
|
97
97
|
* This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
|
|
98
98
|
* @since v10.5.0
|
|
@@ -100,7 +100,7 @@ declare module "worker_threads" {
|
|
|
100
100
|
class MessagePort extends EventEmitter {
|
|
101
101
|
/**
|
|
102
102
|
* Disables further sending of messages on either side of the connection.
|
|
103
|
-
* This method can be called when no further communication will happen over this`MessagePort`.
|
|
103
|
+
* This method can be called when no further communication will happen over this `MessagePort`.
|
|
104
104
|
*
|
|
105
105
|
* The `'close' event` is emitted on both `MessagePort` instances that
|
|
106
106
|
* are part of the channel.
|
|
@@ -108,13 +108,13 @@ declare module "worker_threads" {
|
|
|
108
108
|
*/
|
|
109
109
|
close(): void;
|
|
110
110
|
/**
|
|
111
|
-
* Sends a JavaScript value to the receiving side of this channel
|
|
111
|
+
* Sends a JavaScript value to the receiving side of this channel. `value` is transferred in a way which is compatible with
|
|
112
112
|
* the [HTML structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
|
|
113
113
|
*
|
|
114
114
|
* In particular, the significant differences to `JSON` are:
|
|
115
115
|
*
|
|
116
116
|
* * `value` may contain circular references.
|
|
117
|
-
* * `value` may contain instances of builtin JS types such as `RegExp`s
|
|
117
|
+
* * `value` may contain instances of builtin JS types such as `RegExp`s, `BigInt`s, `Map`s, `Set`s, etc.
|
|
118
118
|
* * `value` may contain typed arrays, both using `ArrayBuffer`s
|
|
119
119
|
* and `SharedArrayBuffer`s.
|
|
120
120
|
* * `value` may contain [`WebAssembly.Module`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module) instances.
|
|
@@ -140,7 +140,7 @@ declare module "worker_threads" {
|
|
|
140
140
|
* If `value` contains [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances, those are accessible
|
|
141
141
|
* from either thread. They cannot be listed in `transferList`.
|
|
142
142
|
*
|
|
143
|
-
* `value` may still contain `ArrayBuffer` instances that are not in`transferList`; in that case, the underlying memory is copied rather than moved.
|
|
143
|
+
* `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
|
|
144
144
|
*
|
|
145
145
|
* ```js
|
|
146
146
|
* const { MessageChannel } = require('node:worker_threads');
|
|
@@ -186,16 +186,16 @@ declare module "worker_threads" {
|
|
|
186
186
|
ref(): void;
|
|
187
187
|
/**
|
|
188
188
|
* Calling `unref()` on a port allows the thread to exit if this is the only
|
|
189
|
-
* active handle in the event system. If the port is already `unref()`ed calling`unref()` again has no effect.
|
|
189
|
+
* active handle in the event system. If the port is already `unref()`ed calling `unref()` again has no effect.
|
|
190
190
|
*
|
|
191
|
-
* If listeners are attached or removed using `.on('message')`, the port is`ref()`ed and `unref()`ed automatically depending on whether
|
|
191
|
+
* If listeners are attached or removed using `.on('message')`, the port is `ref()`ed and `unref()`ed automatically depending on whether
|
|
192
192
|
* listeners for the event exist.
|
|
193
193
|
* @since v10.5.0
|
|
194
194
|
*/
|
|
195
195
|
unref(): void;
|
|
196
196
|
/**
|
|
197
197
|
* Starts receiving messages on this `MessagePort`. When using this port
|
|
198
|
-
* as an event emitter, this is called automatically once `'message'`listeners are attached.
|
|
198
|
+
* as an event emitter, this is called automatically once `'message'` listeners are attached.
|
|
199
199
|
*
|
|
200
200
|
* This method exists for parity with the Web `MessagePort` API. In Node.js,
|
|
201
201
|
* it is only useful for ignoring messages when no event listener is present.
|
|
@@ -415,7 +415,7 @@ declare module "worker_threads" {
|
|
|
415
415
|
ref(): void;
|
|
416
416
|
/**
|
|
417
417
|
* Calling `unref()` on a worker allows the thread to exit if this is the only
|
|
418
|
-
* active handle in the event system. If the worker is already `unref()`ed calling`unref()` again has no effect.
|
|
418
|
+
* active handle in the event system. If the worker is already `unref()`ed calling `unref()` again has no effect.
|
|
419
419
|
* @since v10.5.0
|
|
420
420
|
*/
|
|
421
421
|
unref(): void;
|
|
@@ -574,7 +574,7 @@ declare module "worker_threads" {
|
|
|
574
574
|
*/
|
|
575
575
|
function markAsUntransferable(object: object): void;
|
|
576
576
|
/**
|
|
577
|
-
* Transfer a `MessagePort` to a different `vm` Context. The original `port`object is rendered unusable, and the returned `MessagePort` instance
|
|
577
|
+
* Transfer a `MessagePort` to a different `vm` Context. The original `port` object is rendered unusable, and the returned `MessagePort` instance
|
|
578
578
|
* takes its place.
|
|
579
579
|
*
|
|
580
580
|
* The returned `MessagePort` is an object in the target context and
|
|
@@ -592,7 +592,7 @@ declare module "worker_threads" {
|
|
|
592
592
|
function moveMessagePortToContext(port: MessagePort, contextifiedSandbox: Context): MessagePort;
|
|
593
593
|
/**
|
|
594
594
|
* Receive a single message from a given `MessagePort`. If no message is available,`undefined` is returned, otherwise an object with a single `message` property
|
|
595
|
-
* that contains the message payload, corresponding to the oldest message in the`MessagePort`'s queue.
|
|
595
|
+
* that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
|
|
596
596
|
*
|
|
597
597
|
* ```js
|
|
598
598
|
* const { MessageChannel, receiveMessageOnPort } = require('node:worker_threads');
|
|
@@ -605,7 +605,7 @@ declare module "worker_threads" {
|
|
|
605
605
|
* // Prints: undefined
|
|
606
606
|
* ```
|
|
607
607
|
*
|
|
608
|
-
* When this function is used, no `'message'` event is emitted and the`onmessage` listener is not invoked.
|
|
608
|
+
* When this function is used, no `'message'` event is emitted and the `onmessage` listener is not invoked.
|
|
609
609
|
* @since v12.3.0
|
|
610
610
|
*/
|
|
611
611
|
function receiveMessageOnPort(port: MessagePort):
|
|
@@ -640,7 +640,7 @@ declare module "worker_threads" {
|
|
|
640
640
|
*/
|
|
641
641
|
function getEnvironmentData(key: Serializable): Serializable;
|
|
642
642
|
/**
|
|
643
|
-
* The `worker.setEnvironmentData()` API sets the content of`worker.getEnvironmentData()` in the current thread and all new `Worker`instances spawned from the current context.
|
|
643
|
+
* The `worker.setEnvironmentData()` API sets the content of `worker.getEnvironmentData()` in the current thread and all new `Worker` instances spawned from the current context.
|
|
644
644
|
* @since v15.12.0, v14.18.0
|
|
645
645
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
646
646
|
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
* const zlib = require('node:zlib');
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
|
-
* Compression and decompression are built around the Node.js
|
|
11
|
+
* Compression and decompression are built around the Node.js
|
|
12
|
+
* [Streams API](https://nodejs.org/docs/latest-v20.x/api/stream.html).
|
|
12
13
|
*
|
|
13
14
|
* Compressing or decompressing a stream (such as a file) can be accomplished by
|
|
14
15
|
* piping the source stream through a `zlib` `Transform` stream into a destination
|
|
@@ -88,7 +89,7 @@
|
|
|
88
89
|
* });
|
|
89
90
|
* ```
|
|
90
91
|
* @since v0.5.8
|
|
91
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.2
|
|
92
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/zlib.js)
|
|
92
93
|
*/
|
|
93
94
|
declare module "zlib" {
|
|
94
95
|
import * as stream from "node:stream";
|
|
@@ -110,7 +111,14 @@ declare module "zlib" {
|
|
|
110
111
|
memLevel?: number | undefined; // compression only
|
|
111
112
|
strategy?: number | undefined; // compression only
|
|
112
113
|
dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined; // deflate/inflate only, empty dictionary by default
|
|
114
|
+
/**
|
|
115
|
+
* If `true`, returns an object with `buffer` and `engine`.
|
|
116
|
+
*/
|
|
113
117
|
info?: boolean | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Limits output size when using convenience methods.
|
|
120
|
+
* @default buffer.kMaxLength
|
|
121
|
+
*/
|
|
114
122
|
maxOutputLength?: number | undefined;
|
|
115
123
|
}
|
|
116
124
|
interface BrotliOptions {
|
|
@@ -134,6 +142,10 @@ declare module "zlib" {
|
|
|
134
142
|
[key: number]: boolean | number;
|
|
135
143
|
}
|
|
136
144
|
| undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v20.x/api/zlib.html#convenience-methods).
|
|
147
|
+
* @default buffer.kMaxLength
|
|
148
|
+
*/
|
|
137
149
|
maxOutputLength?: number | undefined;
|
|
138
150
|
}
|
|
139
151
|
interface Zlib {
|
|
@@ -194,7 +206,7 @@ declare module "zlib" {
|
|
|
194
206
|
/**
|
|
195
207
|
* Creates and returns a new `DeflateRaw` object.
|
|
196
208
|
*
|
|
197
|
-
* An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits`is set to 8 for raw deflate streams. zlib would automatically set `windowBits`to 9 if was initially set to 8
|
|
209
|
+
* An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits` is set to 8 for raw deflate streams. zlib would automatically set `windowBits` to 9 if was initially set to 8. Newer
|
|
198
210
|
* versions of zlib will throw an exception,
|
|
199
211
|
* so Node.js restored the original behavior of upgrading a value of 8 to 9,
|
|
200
212
|
* since passing `windowBits = 9` to zlib actually results in a compressed stream
|
|
@@ -433,6 +445,7 @@ declare module "zlib" {
|
|
|
433
445
|
const Z_FIXED: number;
|
|
434
446
|
const Z_DEFAULT_STRATEGY: number;
|
|
435
447
|
const Z_DEFAULT_WINDOWBITS: number;
|
|
448
|
+
|
|
436
449
|
const Z_MIN_WINDOWBITS: number;
|
|
437
450
|
const Z_MAX_WINDOWBITS: number;
|
|
438
451
|
const Z_MIN_CHUNK: number;
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 14 May 2024 06:09:35 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `node:assert` module provides a set of assertion functions for verifying
|
|
3
3
|
* invariants.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.2
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/assert.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module "assert" {
|
|
7
7
|
/**
|
|
@@ -12,7 +12,7 @@ declare module "assert" {
|
|
|
12
12
|
function assert(value: unknown, message?: string | Error): asserts value;
|
|
13
13
|
namespace assert {
|
|
14
14
|
/**
|
|
15
|
-
* Indicates the failure of an assertion. All errors thrown by the `node:assert`module will be instances of the `AssertionError` class.
|
|
15
|
+
* Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
|
|
16
16
|
*/
|
|
17
17
|
class AssertionError extends Error {
|
|
18
18
|
/**
|
|
@@ -76,7 +76,7 @@ declare module "assert" {
|
|
|
76
76
|
* @since v14.2.0, v12.19.0
|
|
77
77
|
* @param [fn='A no-op function']
|
|
78
78
|
* @param [exact=1]
|
|
79
|
-
* @return that wraps `fn`.
|
|
79
|
+
* @return A function that wraps `fn`.
|
|
80
80
|
*/
|
|
81
81
|
calls(exact?: number): () => void;
|
|
82
82
|
calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
|
|
@@ -96,8 +96,7 @@ declare module "assert" {
|
|
|
96
96
|
* [{ thisArg: undefined, arguments: [1, 2, 3] }]);
|
|
97
97
|
* ```
|
|
98
98
|
* @since v18.8.0, v16.18.0
|
|
99
|
-
* @
|
|
100
|
-
* @return An Array with all the calls to a tracked function.
|
|
99
|
+
* @return An array with all the calls to a tracked function.
|
|
101
100
|
*/
|
|
102
101
|
getCalls(fn: Function): CallTrackerCall[];
|
|
103
102
|
/**
|
|
@@ -130,12 +129,11 @@ declare module "assert" {
|
|
|
130
129
|
* // ]
|
|
131
130
|
* ```
|
|
132
131
|
* @since v14.2.0, v12.19.0
|
|
133
|
-
* @return An
|
|
132
|
+
* @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}.
|
|
134
133
|
*/
|
|
135
134
|
report(): CallTrackerReportInformation[];
|
|
136
135
|
/**
|
|
137
|
-
* Reset calls of the call tracker.
|
|
138
|
-
* If a tracked function is passed as an argument, the calls will be reset for it.
|
|
136
|
+
* Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it.
|
|
139
137
|
* If no arguments are passed, all tracked functions will be reset.
|
|
140
138
|
*
|
|
141
139
|
* ```js
|
|
@@ -158,7 +156,7 @@ declare module "assert" {
|
|
|
158
156
|
*/
|
|
159
157
|
reset(fn?: Function): void;
|
|
160
158
|
/**
|
|
161
|
-
* Iterates through the list of functions passed to
|
|
159
|
+
* Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that
|
|
162
160
|
* have not been called the expected number of times.
|
|
163
161
|
*
|
|
164
162
|
* ```js
|
|
@@ -232,10 +230,10 @@ declare module "assert" {
|
|
|
232
230
|
stackStartFn?: Function,
|
|
233
231
|
): never;
|
|
234
232
|
/**
|
|
235
|
-
* Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`.
|
|
233
|
+
* Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`.
|
|
236
234
|
*
|
|
237
|
-
* If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default
|
|
238
|
-
* error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
|
|
235
|
+
* If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default
|
|
236
|
+
* error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
|
|
239
237
|
* If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``.
|
|
240
238
|
*
|
|
241
239
|
* Be aware that in the `repl` the error message will be different to the one
|
|
@@ -317,8 +315,8 @@ declare module "assert" {
|
|
|
317
315
|
* // AssertionError: { a: { b: 1 } } == { a: { b: 1 } }
|
|
318
316
|
* ```
|
|
319
317
|
*
|
|
320
|
-
* If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default
|
|
321
|
-
* error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
|
|
318
|
+
* If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
|
|
319
|
+
* error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
|
|
322
320
|
* @since v0.1.21
|
|
323
321
|
*/
|
|
324
322
|
function equal(actual: unknown, expected: unknown, message?: string | Error): void;
|
|
@@ -347,8 +345,8 @@ declare module "assert" {
|
|
|
347
345
|
* // AssertionError: 1 != '1'
|
|
348
346
|
* ```
|
|
349
347
|
*
|
|
350
|
-
* If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error
|
|
351
|
-
* message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`.
|
|
348
|
+
* If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error
|
|
349
|
+
* message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
|
|
352
350
|
* @since v0.1.21
|
|
353
351
|
*/
|
|
354
352
|
function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
|
|
@@ -414,8 +412,8 @@ declare module "assert" {
|
|
|
414
412
|
* // OK
|
|
415
413
|
* ```
|
|
416
414
|
*
|
|
417
|
-
* If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default
|
|
418
|
-
* error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
|
|
415
|
+
* If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default
|
|
416
|
+
* error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
|
|
419
417
|
* instead of the `AssertionError`.
|
|
420
418
|
* @since v0.1.21
|
|
421
419
|
*/
|
|
@@ -452,8 +450,8 @@ declare module "assert" {
|
|
|
452
450
|
* // TypeError: Inputs are not identical
|
|
453
451
|
* ```
|
|
454
452
|
*
|
|
455
|
-
* If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
|
|
456
|
-
* default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
|
|
453
|
+
* If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
|
|
454
|
+
* default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
|
|
457
455
|
* instead of the `AssertionError`.
|
|
458
456
|
* @since v0.1.21
|
|
459
457
|
*/
|
|
@@ -477,8 +475,8 @@ declare module "assert" {
|
|
|
477
475
|
* // OK
|
|
478
476
|
* ```
|
|
479
477
|
*
|
|
480
|
-
* If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a
|
|
481
|
-
* default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown
|
|
478
|
+
* If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a
|
|
479
|
+
* default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown
|
|
482
480
|
* instead of the `AssertionError`.
|
|
483
481
|
* @since v0.1.21
|
|
484
482
|
*/
|
|
@@ -519,7 +517,7 @@ declare module "assert" {
|
|
|
519
517
|
* using an object, it is also possible to use a regular expression, when
|
|
520
518
|
* validating against a string property. See below for examples.
|
|
521
519
|
*
|
|
522
|
-
* If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation
|
|
520
|
+
* If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation
|
|
523
521
|
* fails.
|
|
524
522
|
*
|
|
525
523
|
* Custom validation object/error instance:
|
|
@@ -649,8 +647,8 @@ declare module "assert" {
|
|
|
649
647
|
* ```
|
|
650
648
|
*
|
|
651
649
|
* `error` cannot be a string. If a string is provided as the second
|
|
652
|
-
* argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same
|
|
653
|
-
* message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
|
|
650
|
+
* argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same
|
|
651
|
+
* message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
|
|
654
652
|
* a string as the second argument gets considered:
|
|
655
653
|
*
|
|
656
654
|
* ```js
|
|
@@ -703,9 +701,9 @@ declare module "assert" {
|
|
|
703
701
|
* adding a comment next to the specific code path that should not throw and keep
|
|
704
702
|
* error messages as expressive as possible.
|
|
705
703
|
*
|
|
706
|
-
* When `assert.doesNotThrow()` is called, it will immediately call the `fn`function.
|
|
704
|
+
* When `assert.doesNotThrow()` is called, it will immediately call the `fn` function.
|
|
707
705
|
*
|
|
708
|
-
* If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a
|
|
706
|
+
* If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a
|
|
709
707
|
* different type, or if the `error` parameter is undefined, the error is
|
|
710
708
|
* propagated back to the caller.
|
|
711
709
|
*
|
|
@@ -741,7 +739,7 @@ declare module "assert" {
|
|
|
741
739
|
* );
|
|
742
740
|
* ```
|
|
743
741
|
*
|
|
744
|
-
* If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message:
|
|
742
|
+
* If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message:
|
|
745
743
|
*
|
|
746
744
|
* ```js
|
|
747
745
|
* import assert from 'node:assert/strict';
|
|
@@ -762,7 +760,7 @@ declare module "assert" {
|
|
|
762
760
|
/**
|
|
763
761
|
* Throws `value` if `value` is not `undefined` or `null`. This is useful when
|
|
764
762
|
* testing the `error` argument in callbacks. The stack trace contains all frames
|
|
765
|
-
* from the error passed to `ifError()` including the potential new frames for`ifError()` itself.
|
|
763
|
+
* from the error passed to `ifError()` including the potential new frames for `ifError()` itself.
|
|
766
764
|
*
|
|
767
765
|
* ```js
|
|
768
766
|
* import assert from 'node:assert/strict';
|
|
@@ -797,18 +795,18 @@ declare module "assert" {
|
|
|
797
795
|
* calls the function and awaits the returned promise to complete. It will then
|
|
798
796
|
* check that the promise is rejected.
|
|
799
797
|
*
|
|
800
|
-
* If `asyncFn` is a function and it throws an error synchronously
|
|
801
|
-
* function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an
|
|
802
|
-
* handler is skipped.
|
|
798
|
+
* If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
|
|
799
|
+
* function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value)
|
|
800
|
+
* error. In both cases the error handler is skipped.
|
|
803
801
|
*
|
|
804
802
|
* Besides the async nature to await the completion behaves identically to {@link throws}.
|
|
805
803
|
*
|
|
806
804
|
* If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
|
|
807
805
|
* [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
|
|
808
806
|
* an object where each property will be tested for, or an instance of error where
|
|
809
|
-
* each property will be tested for including the non-enumerable `message` and`name` properties.
|
|
807
|
+
* each property will be tested for including the non-enumerable `message` and `name` properties.
|
|
810
808
|
*
|
|
811
|
-
* If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
|
|
809
|
+
* If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject.
|
|
812
810
|
*
|
|
813
811
|
* ```js
|
|
814
812
|
* import assert from 'node:assert/strict';
|
|
@@ -850,10 +848,9 @@ declare module "assert" {
|
|
|
850
848
|
* });
|
|
851
849
|
* ```
|
|
852
850
|
*
|
|
853
|
-
* `error` cannot be a string. If a string is provided as the second
|
|
854
|
-
*
|
|
855
|
-
* example in {@link throws} carefully if using a string as the second
|
|
856
|
-
* argument gets considered.
|
|
851
|
+
* `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to
|
|
852
|
+
* be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the
|
|
853
|
+
* example in {@link throws} carefully if using a string as the second argument gets considered.
|
|
857
854
|
* @since v10.0.0
|
|
858
855
|
*/
|
|
859
856
|
function rejects(block: (() => Promise<unknown>) | Promise<unknown>, message?: string | Error): Promise<void>;
|
|
@@ -867,9 +864,9 @@ declare module "assert" {
|
|
|
867
864
|
* calls the function and awaits the returned promise to complete. It will then
|
|
868
865
|
* check that the promise is not rejected.
|
|
869
866
|
*
|
|
870
|
-
* If `asyncFn` is a function and it throws an error synchronously
|
|
867
|
+
* If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
|
|
871
868
|
* the function does not return a promise, `assert.doesNotReject()` will return a
|
|
872
|
-
* rejected `Promise` with an
|
|
869
|
+
* rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) error. In both cases
|
|
873
870
|
* the error handler is skipped.
|
|
874
871
|
*
|
|
875
872
|
* Using `assert.doesNotReject()` is actually not useful because there is little
|
|
@@ -929,10 +926,10 @@ declare module "assert" {
|
|
|
929
926
|
* // OK
|
|
930
927
|
* ```
|
|
931
928
|
*
|
|
932
|
-
* If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
|
|
929
|
+
* If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
|
|
933
930
|
* to the value of the `message` parameter. If the `message` parameter is
|
|
934
931
|
* undefined, a default error message is assigned. If the `message` parameter is an
|
|
935
|
-
* instance of an
|
|
932
|
+
* instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
|
|
936
933
|
* @since v13.6.0, v12.16.0
|
|
937
934
|
*/
|
|
938
935
|
function match(value: string, regExp: RegExp, message?: string | Error): void;
|
|
@@ -952,10 +949,10 @@ declare module "assert" {
|
|
|
952
949
|
* // OK
|
|
953
950
|
* ```
|
|
954
951
|
*
|
|
955
|
-
* If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal
|
|
952
|
+
* If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
|
|
956
953
|
* to the value of the `message` parameter. If the `message` parameter is
|
|
957
954
|
* undefined, a default error message is assigned. If the `message` parameter is an
|
|
958
|
-
* instance of an
|
|
955
|
+
* instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
|
|
959
956
|
* @since v13.6.0, v12.16.0
|
|
960
957
|
*/
|
|
961
958
|
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* We strongly discourage the use of the `async_hooks` API.
|
|
3
3
|
* Other APIs that can cover most of its use cases include:
|
|
4
4
|
*
|
|
5
|
-
* * `AsyncLocalStorage` tracks async context
|
|
6
|
-
* * `process.getActiveResourcesInfo()` tracks active resources
|
|
5
|
+
* * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v20.x/api/async_context.html#class-asynclocalstorage) tracks async context
|
|
6
|
+
* * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
|
|
7
7
|
*
|
|
8
8
|
* The `node:async_hooks` module provides an API to track asynchronous resources.
|
|
9
9
|
* It can be accessed using:
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* import async_hooks from 'node:async_hooks';
|
|
13
13
|
* ```
|
|
14
14
|
* @experimental
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.2
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/async_hooks.js)
|
|
16
16
|
*/
|
|
17
17
|
declare module "async_hooks" {
|
|
18
18
|
/**
|
|
@@ -44,7 +44,7 @@ declare module "async_hooks" {
|
|
|
44
44
|
* ```
|
|
45
45
|
*
|
|
46
46
|
* Promise contexts may not get precise `executionAsyncIds` by default.
|
|
47
|
-
* See the section on
|
|
47
|
+
* See the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking).
|
|
48
48
|
* @since v8.1.0
|
|
49
49
|
* @return The `asyncId` of the current execution context. Useful to track when something calls.
|
|
50
50
|
*/
|
|
@@ -117,17 +117,17 @@ declare module "async_hooks" {
|
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* Promise contexts may not get valid `triggerAsyncId`s by default. See
|
|
120
|
-
* the section on
|
|
120
|
+
* the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking).
|
|
121
121
|
* @return The ID of the resource responsible for calling the callback that is currently being executed.
|
|
122
122
|
*/
|
|
123
123
|
function triggerAsyncId(): number;
|
|
124
124
|
interface HookCallbacks {
|
|
125
125
|
/**
|
|
126
126
|
* Called when a class is constructed that has the possibility to emit an asynchronous event.
|
|
127
|
-
* @param asyncId
|
|
128
|
-
* @param type
|
|
129
|
-
* @param triggerAsyncId
|
|
130
|
-
* @param resource
|
|
127
|
+
* @param asyncId A unique ID for the async resource
|
|
128
|
+
* @param type The type of the async resource
|
|
129
|
+
* @param triggerAsyncId The unique ID of the async resource in whose execution context this async resource was created
|
|
130
|
+
* @param resource Reference to the resource representing the async operation, needs to be released during destroy
|
|
131
131
|
*/
|
|
132
132
|
init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
|
|
133
133
|
/**
|
|
@@ -137,7 +137,9 @@ declare module "async_hooks" {
|
|
|
137
137
|
*/
|
|
138
138
|
before?(asyncId: number): void;
|
|
139
139
|
/**
|
|
140
|
-
* Called immediately after the callback specified in before is completed.
|
|
140
|
+
* Called immediately after the callback specified in `before` is completed.
|
|
141
|
+
*
|
|
142
|
+
* If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs.
|
|
141
143
|
* @param asyncId the unique identifier assigned to the resource which has executed the callback.
|
|
142
144
|
*/
|
|
143
145
|
after?(asyncId: number): void;
|
|
@@ -321,7 +323,7 @@ declare module "async_hooks" {
|
|
|
321
323
|
/**
|
|
322
324
|
* This class creates stores that stay coherent through asynchronous operations.
|
|
323
325
|
*
|
|
324
|
-
* While you can create your own implementation on top of the `node:async_hooks`module, `AsyncLocalStorage` should be preferred as it is a performant and memory
|
|
326
|
+
* While you can create your own implementation on top of the `node:async_hooks` module, `AsyncLocalStorage` should be preferred as it is a performant and memory
|
|
325
327
|
* safe implementation that involves significant optimizations that are non-obvious
|
|
326
328
|
* to implement.
|
|
327
329
|
*
|
|
@@ -407,12 +409,12 @@ declare module "async_hooks" {
|
|
|
407
409
|
static snapshot(): <R, TArgs extends any[]>(fn: (...args: TArgs) => R, ...args: TArgs) => R;
|
|
408
410
|
/**
|
|
409
411
|
* Disables the instance of `AsyncLocalStorage`. All subsequent calls
|
|
410
|
-
* to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
|
|
412
|
+
* to `asyncLocalStorage.getStore()` will return `undefined` until `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
|
|
411
413
|
*
|
|
412
414
|
* When calling `asyncLocalStorage.disable()`, all current contexts linked to the
|
|
413
415
|
* instance will be exited.
|
|
414
416
|
*
|
|
415
|
-
* Calling `asyncLocalStorage.disable()` is required before the`asyncLocalStorage` can be garbage collected. This does not apply to stores
|
|
417
|
+
* Calling `asyncLocalStorage.disable()` is required before the `asyncLocalStorage` can be garbage collected. This does not apply to stores
|
|
416
418
|
* provided by the `asyncLocalStorage`, as those objects are garbage collected
|
|
417
419
|
* along with the corresponding async resources.
|
|
418
420
|
*
|
|
@@ -465,7 +467,7 @@ declare module "async_hooks" {
|
|
|
465
467
|
/**
|
|
466
468
|
* Runs a function synchronously outside of a context and returns its
|
|
467
469
|
* return value. The store is not accessible within the callback function or
|
|
468
|
-
* the asynchronous operations created within the callback. Any `getStore()`call done within the callback function will always return `undefined`.
|
|
470
|
+
* the asynchronous operations created within the callback. Any `getStore()` call done within the callback function will always return `undefined`.
|
|
469
471
|
*
|
|
470
472
|
* The optional `args` are passed to the callback function.
|
|
471
473
|
*
|
|
@@ -511,7 +513,7 @@ declare module "async_hooks" {
|
|
|
511
513
|
* This transition will continue for the _entire_ synchronous execution.
|
|
512
514
|
* This means that if, for example, the context is entered within an event
|
|
513
515
|
* handler subsequent event handlers will also run within that context unless
|
|
514
|
-
* specifically bound to another context with an `AsyncResource`. That is why`run()` should be preferred over `enterWith()` unless there are strong reasons
|
|
516
|
+
* specifically bound to another context with an `AsyncResource`. That is why `run()` should be preferred over `enterWith()` unless there are strong reasons
|
|
515
517
|
* to use the latter method.
|
|
516
518
|
*
|
|
517
519
|
* ```js
|
|
@@ -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/v20.2
|
|
44
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
46
|
declare module "buffer" {
|
|
47
47
|
import { BinaryLike } from "node:crypto";
|
|
@@ -311,12 +311,12 @@ declare module "buffer" {
|
|
|
311
311
|
*
|
|
312
312
|
* If `array` is an `Array`\-like object (that is, one with a `length` property of
|
|
313
313
|
* type `number`), it is treated as if it is an array, unless it is a `Buffer` or
|
|
314
|
-
* a `Uint8Array`. This means all other `TypedArray` variants get treated as an`Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use `Buffer.copyBytesFrom()`.
|
|
314
|
+
* a `Uint8Array`. This means all other `TypedArray` variants get treated as an `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use `Buffer.copyBytesFrom()`.
|
|
315
315
|
*
|
|
316
316
|
* A `TypeError` will be thrown if `array` is not an `Array` or another type
|
|
317
317
|
* appropriate for `Buffer.from()` variants.
|
|
318
318
|
*
|
|
319
|
-
* `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does.
|
|
319
|
+
* `Buffer.from(array)` and `Buffer.from(string)` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
|
|
320
320
|
* @since v5.10.0
|
|
321
321
|
*/
|
|
322
322
|
from(
|
|
@@ -420,9 +420,9 @@ declare module "buffer" {
|
|
|
420
420
|
encoding?: BufferEncoding,
|
|
421
421
|
): number;
|
|
422
422
|
/**
|
|
423
|
-
* Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together.
|
|
423
|
+
* Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together.
|
|
424
424
|
*
|
|
425
|
-
* If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned.
|
|
425
|
+
* If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned.
|
|
426
426
|
*
|
|
427
427
|
* If `totalLength` is not provided, it is calculated from the `Buffer` instances
|
|
428
428
|
* in `list` by adding their lengths.
|
|
@@ -476,7 +476,7 @@ declare module "buffer" {
|
|
|
476
476
|
*/
|
|
477
477
|
copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer;
|
|
478
478
|
/**
|
|
479
|
-
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
|
|
479
|
+
* Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`.
|
|
480
480
|
*
|
|
481
481
|
* ```js
|
|
482
482
|
* import { Buffer } from 'node:buffer';
|
|
@@ -2098,7 +2098,7 @@ declare module "buffer" {
|
|
|
2098
2098
|
* // Prints: 6
|
|
2099
2099
|
* ```
|
|
2100
2100
|
*
|
|
2101
|
-
* If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value,
|
|
2101
|
+
* If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value,
|
|
2102
2102
|
* an integer between 0 and 255.
|
|
2103
2103
|
*
|
|
2104
2104
|
* If `byteOffset` is not a number, it will be coerced to a number. If the result
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
* For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
|
|
64
64
|
* the synchronous methods can have significant impact on performance due to
|
|
65
65
|
* stalling the event loop while spawned processes complete.
|
|
66
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.2
|
|
66
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/child_process.js)
|
|
67
67
|
*/
|
|
68
68
|
declare module "child_process" {
|
|
69
69
|
import { ObjectEncodingOptions } from "node:fs";
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
52
|
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
|
53
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
53
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.12.2/lib/cluster.js)
|
|
54
54
|
*/
|
|
55
55
|
declare module "cluster" {
|
|
56
56
|
import * as child from "node:child_process";
|