cloudstructs 0.9.18 → 0.9.20
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-textract/detect.lambda/index.js +27 -11
- 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/mjml-template/index.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/@babel/runtime/helpers/esm/superPropGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
- package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
- package/node_modules/@babel/runtime/package.json +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 +3 -3
- 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.buffer.d.ts +385 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +11 -3
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +36 -17
- 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 +103 -8
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +5 -5
- 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 +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +88 -34
- 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 +23 -23
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +36 -4
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +23 -10
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +7 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +5 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts +15 -3
- package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts +77 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +3 -3
- 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.buffer.d.ts +385 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +11 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +36 -17
- 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 +103 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +5 -5
- 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 +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +88 -34
- 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 +23 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/@slack/web-api/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +3 -3
- 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.buffer.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +11 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +36 -17
- 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 +103 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
- 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 +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +88 -34
- 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 +23 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
- 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 +3 -3
- 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.buffer.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +11 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +36 -17
- 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 +103 -8
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
- 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 +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +88 -34
- 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 +23 -23
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
- 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 +3 -3
- 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.buffer.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +11 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +36 -17
- 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 +103 -8
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
- 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 +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +88 -34
- 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 +23 -23
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/form-data/Readme.md +4 -4
- package/node_modules/form-data/lib/form_data.js +1 -1
- package/node_modules/form-data/package.json +9 -6
- package/node_modules/package-json-from-dist/README.md +21 -6
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +11 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -1
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js +11 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -1
- package/node_modules/package-json-from-dist/package.json +2 -2
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/doctype.js +2 -4
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/error-codes.js +1 -2
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +7 -9
- package/node_modules/parse5/dist/cjs/common/html.d.ts +32 -31
- package/node_modules/parse5/dist/cjs/common/html.js +41 -42
- package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/token.js +3 -4
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +1 -8
- package/node_modules/parse5/dist/cjs/common/unicode.js +7 -14
- package/node_modules/parse5/dist/cjs/index.d.ts +15 -4
- package/node_modules/parse5/dist/cjs/index.js +3 -6
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +1 -2
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +72 -8
- package/node_modules/parse5/dist/cjs/parser/index.js +81 -9
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +95 -87
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +1 -2
- package/node_modules/parse5/dist/cjs/serializer/index.js +8 -9
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +130 -131
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +87 -281
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +3 -4
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +8 -7
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +9 -10
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +7 -2
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/dist/common/doctype.d.ts +0 -1
- package/node_modules/parse5/dist/common/doctype.js +0 -1
- package/node_modules/parse5/dist/common/error-codes.d.ts +0 -1
- package/node_modules/parse5/dist/common/error-codes.js +1 -2
- package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -1
- package/node_modules/parse5/dist/common/foreign-content.js +0 -2
- package/node_modules/parse5/dist/common/html.d.ts +32 -31
- package/node_modules/parse5/dist/common/html.js +38 -38
- package/node_modules/parse5/dist/common/token.d.ts +0 -1
- package/node_modules/parse5/dist/common/token.js +1 -2
- package/node_modules/parse5/dist/common/unicode.d.ts +1 -8
- package/node_modules/parse5/dist/common/unicode.js +1 -8
- package/node_modules/parse5/dist/index.d.ts +15 -4
- package/node_modules/parse5/dist/index.js +0 -3
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -1
- package/node_modules/parse5/dist/parser/formatting-element-list.js +1 -2
- package/node_modules/parse5/dist/parser/index.d.ts +72 -8
- package/node_modules/parse5/dist/parser/index.js +82 -10
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/parser/open-element-stack.js +96 -88
- package/node_modules/parse5/dist/serializer/index.d.ts +1 -2
- package/node_modules/parse5/dist/serializer/index.js +6 -6
- package/node_modules/parse5/dist/tokenizer/index.d.ts +130 -131
- package/node_modules/parse5/dist/tokenizer/index.js +88 -282
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +3 -4
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +8 -7
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -1
- package/node_modules/parse5/dist/tree-adapters/default.js +9 -10
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +7 -2
- package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/package.json +4 -4
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +1 -2
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +11 -12
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +1 -2
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +9 -10
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +7 -6
- package/package.json +18 -18
- package/node_modules/@slack/logger/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/form-data/README.md.bak +0 -358
|
@@ -166,6 +166,9 @@ declare module "stream/web" {
|
|
|
166
166
|
interface ReadableStreamErrorCallback {
|
|
167
167
|
(reason: any): void | PromiseLike<void>;
|
|
168
168
|
}
|
|
169
|
+
interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
|
|
170
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
171
|
+
}
|
|
169
172
|
/** This Streams API interface represents a readable stream of byte data. */
|
|
170
173
|
interface ReadableStream<R = any> {
|
|
171
174
|
readonly locked: boolean;
|
|
@@ -176,8 +179,8 @@ declare module "stream/web" {
|
|
|
176
179
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
177
180
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
178
181
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
179
|
-
values(options?: { preventCancel?: boolean }):
|
|
180
|
-
[Symbol.asyncIterator]():
|
|
182
|
+
values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
|
|
183
|
+
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
|
|
181
184
|
}
|
|
182
185
|
const ReadableStream: {
|
|
183
186
|
prototype: ReadableStream;
|
|
@@ -418,7 +421,7 @@ declare module "stream/web" {
|
|
|
418
421
|
global {
|
|
419
422
|
interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {}
|
|
420
423
|
/**
|
|
421
|
-
* `ByteLengthQueuingStrategy` class is a global reference for `
|
|
424
|
+
* `ByteLengthQueuingStrategy` class is a global reference for `import { ByteLengthQueuingStrategy } from 'node:stream/web'`.
|
|
422
425
|
* https://nodejs.org/api/globals.html#class-bytelengthqueuingstrategy
|
|
423
426
|
* @since v18.0.0
|
|
424
427
|
*/
|
|
@@ -428,7 +431,7 @@ declare module "stream/web" {
|
|
|
428
431
|
|
|
429
432
|
interface CompressionStream extends _CompressionStream {}
|
|
430
433
|
/**
|
|
431
|
-
* `CompressionStream` class is a global reference for `
|
|
434
|
+
* `CompressionStream` class is a global reference for `import { CompressionStream } from 'node:stream/web'`.
|
|
432
435
|
* https://nodejs.org/api/globals.html#class-compressionstream
|
|
433
436
|
* @since v18.0.0
|
|
434
437
|
*/
|
|
@@ -448,7 +451,7 @@ declare module "stream/web" {
|
|
|
448
451
|
|
|
449
452
|
interface CountQueuingStrategy extends _CountQueuingStrategy {}
|
|
450
453
|
/**
|
|
451
|
-
* `CountQueuingStrategy` class is a global reference for `
|
|
454
|
+
* `CountQueuingStrategy` class is a global reference for `import { CountQueuingStrategy } from 'node:stream/web'`.
|
|
452
455
|
* https://nodejs.org/api/globals.html#class-countqueuingstrategy
|
|
453
456
|
* @since v18.0.0
|
|
454
457
|
*/
|
|
@@ -457,7 +460,7 @@ declare module "stream/web" {
|
|
|
457
460
|
|
|
458
461
|
interface DecompressionStream extends _DecompressionStream {}
|
|
459
462
|
/**
|
|
460
|
-
* `DecompressionStream` class is a global reference for `
|
|
463
|
+
* `DecompressionStream` class is a global reference for `import { DecompressionStream } from 'node:stream/web'`.
|
|
461
464
|
* https://nodejs.org/api/globals.html#class-decompressionstream
|
|
462
465
|
* @since v18.0.0
|
|
463
466
|
*/
|
|
@@ -477,7 +480,7 @@ declare module "stream/web" {
|
|
|
477
480
|
|
|
478
481
|
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
479
482
|
/**
|
|
480
|
-
* `ReadableByteStreamController` class is a global reference for `
|
|
483
|
+
* `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
|
|
481
484
|
* https://nodejs.org/api/globals.html#class-readablebytestreamcontroller
|
|
482
485
|
* @since v18.0.0
|
|
483
486
|
*/
|
|
@@ -487,7 +490,7 @@ declare module "stream/web" {
|
|
|
487
490
|
|
|
488
491
|
interface ReadableStream<R = any> extends _ReadableStream<R> {}
|
|
489
492
|
/**
|
|
490
|
-
* `ReadableStream` class is a global reference for `
|
|
493
|
+
* `ReadableStream` class is a global reference for `import { ReadableStream } from 'node:stream/web'`.
|
|
491
494
|
* https://nodejs.org/api/globals.html#class-readablestream
|
|
492
495
|
* @since v18.0.0
|
|
493
496
|
*/
|
|
@@ -496,7 +499,7 @@ declare module "stream/web" {
|
|
|
496
499
|
|
|
497
500
|
interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {}
|
|
498
501
|
/**
|
|
499
|
-
* `ReadableStreamBYOBReader` class is a global reference for `
|
|
502
|
+
* `ReadableStreamBYOBReader` class is a global reference for `import { ReadableStreamBYOBReader } from 'node:stream/web'`.
|
|
500
503
|
* https://nodejs.org/api/globals.html#class-readablestreambyobreader
|
|
501
504
|
* @since v18.0.0
|
|
502
505
|
*/
|
|
@@ -506,7 +509,7 @@ declare module "stream/web" {
|
|
|
506
509
|
|
|
507
510
|
interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {}
|
|
508
511
|
/**
|
|
509
|
-
* `ReadableStreamBYOBRequest` class is a global reference for `
|
|
512
|
+
* `ReadableStreamBYOBRequest` class is a global reference for `import { ReadableStreamBYOBRequest } from 'node:stream/web'`.
|
|
510
513
|
* https://nodejs.org/api/globals.html#class-readablestreambyobrequest
|
|
511
514
|
* @since v18.0.0
|
|
512
515
|
*/
|
|
@@ -516,7 +519,7 @@ declare module "stream/web" {
|
|
|
516
519
|
|
|
517
520
|
interface ReadableStreamDefaultController<R = any> extends _ReadableStreamDefaultController<R> {}
|
|
518
521
|
/**
|
|
519
|
-
* `ReadableStreamDefaultController` class is a global reference for `
|
|
522
|
+
* `ReadableStreamDefaultController` class is a global reference for `import { ReadableStreamDefaultController } from 'node:stream/web'`.
|
|
520
523
|
* https://nodejs.org/api/globals.html#class-readablestreamdefaultcontroller
|
|
521
524
|
* @since v18.0.0
|
|
522
525
|
*/
|
|
@@ -526,7 +529,7 @@ declare module "stream/web" {
|
|
|
526
529
|
|
|
527
530
|
interface ReadableStreamDefaultReader<R = any> extends _ReadableStreamDefaultReader<R> {}
|
|
528
531
|
/**
|
|
529
|
-
* `ReadableStreamDefaultReader` class is a global reference for `
|
|
532
|
+
* `ReadableStreamDefaultReader` class is a global reference for `import { ReadableStreamDefaultReader } from 'node:stream/web'`.
|
|
530
533
|
* https://nodejs.org/api/globals.html#class-readablestreamdefaultreader
|
|
531
534
|
* @since v18.0.0
|
|
532
535
|
*/
|
|
@@ -536,7 +539,7 @@ declare module "stream/web" {
|
|
|
536
539
|
|
|
537
540
|
interface TextDecoderStream extends _TextDecoderStream {}
|
|
538
541
|
/**
|
|
539
|
-
* `TextDecoderStream` class is a global reference for `
|
|
542
|
+
* `TextDecoderStream` class is a global reference for `import { TextDecoderStream } from 'node:stream/web'`.
|
|
540
543
|
* https://nodejs.org/api/globals.html#class-textdecoderstream
|
|
541
544
|
* @since v18.0.0
|
|
542
545
|
*/
|
|
@@ -545,7 +548,7 @@ declare module "stream/web" {
|
|
|
545
548
|
|
|
546
549
|
interface TextEncoderStream extends _TextEncoderStream {}
|
|
547
550
|
/**
|
|
548
|
-
* `TextEncoderStream` class is a global reference for `
|
|
551
|
+
* `TextEncoderStream` class is a global reference for `import { TextEncoderStream } from 'node:stream/web'`.
|
|
549
552
|
* https://nodejs.org/api/globals.html#class-textencoderstream
|
|
550
553
|
* @since v18.0.0
|
|
551
554
|
*/
|
|
@@ -554,7 +557,7 @@ declare module "stream/web" {
|
|
|
554
557
|
|
|
555
558
|
interface TransformStream<I = any, O = any> extends _TransformStream<I, O> {}
|
|
556
559
|
/**
|
|
557
|
-
* `TransformStream` class is a global reference for `
|
|
560
|
+
* `TransformStream` class is a global reference for `import { TransformStream } from 'node:stream/web'`.
|
|
558
561
|
* https://nodejs.org/api/globals.html#class-transformstream
|
|
559
562
|
* @since v18.0.0
|
|
560
563
|
*/
|
|
@@ -563,7 +566,7 @@ declare module "stream/web" {
|
|
|
563
566
|
|
|
564
567
|
interface TransformStreamDefaultController<O = any> extends _TransformStreamDefaultController<O> {}
|
|
565
568
|
/**
|
|
566
|
-
* `TransformStreamDefaultController` class is a global reference for `
|
|
569
|
+
* `TransformStreamDefaultController` class is a global reference for `import { TransformStreamDefaultController } from 'node:stream/web'`.
|
|
567
570
|
* https://nodejs.org/api/globals.html#class-transformstreamdefaultcontroller
|
|
568
571
|
* @since v18.0.0
|
|
569
572
|
*/
|
|
@@ -573,7 +576,7 @@ declare module "stream/web" {
|
|
|
573
576
|
|
|
574
577
|
interface WritableStream<W = any> extends _WritableStream<W> {}
|
|
575
578
|
/**
|
|
576
|
-
* `WritableStream` class is a global reference for `
|
|
579
|
+
* `WritableStream` class is a global reference for `import { WritableStream } from 'node:stream/web'`.
|
|
577
580
|
* https://nodejs.org/api/globals.html#class-writablestream
|
|
578
581
|
* @since v18.0.0
|
|
579
582
|
*/
|
|
@@ -582,7 +585,7 @@ declare module "stream/web" {
|
|
|
582
585
|
|
|
583
586
|
interface WritableStreamDefaultController extends _WritableStreamDefaultController {}
|
|
584
587
|
/**
|
|
585
|
-
* `WritableStreamDefaultController` class is a global reference for `
|
|
588
|
+
* `WritableStreamDefaultController` class is a global reference for `import { WritableStreamDefaultController } from 'node:stream/web'`.
|
|
586
589
|
* https://nodejs.org/api/globals.html#class-writablestreamdefaultcontroller
|
|
587
590
|
* @since v18.0.0
|
|
588
591
|
*/
|
|
@@ -592,7 +595,7 @@ declare module "stream/web" {
|
|
|
592
595
|
|
|
593
596
|
interface WritableStreamDefaultWriter<W = any> extends _WritableStreamDefaultWriter<W> {}
|
|
594
597
|
/**
|
|
595
|
-
* `WritableStreamDefaultWriter` class is a global reference for `
|
|
598
|
+
* `WritableStreamDefaultWriter` class is a global reference for `import { WritableStreamDefaultWriter } from 'node:stream/web'`.
|
|
596
599
|
* https://nodejs.org/api/globals.html#class-writablestreamdefaultwriter
|
|
597
600
|
* @since v18.0.0
|
|
598
601
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* To access the `node:stream` module:
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
|
-
*
|
|
13
|
+
* import stream from 'node:stream';
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* The `node:stream` module is useful for creating new types of stream instances.
|
|
@@ -303,7 +303,7 @@ declare module "stream" {
|
|
|
303
303
|
* the method does nothing.
|
|
304
304
|
*
|
|
305
305
|
* ```js
|
|
306
|
-
*
|
|
306
|
+
* import fs from 'node:fs';
|
|
307
307
|
* const readable = getReadableStreamSomehow();
|
|
308
308
|
* const writable = fs.createWriteStream('file.txt');
|
|
309
309
|
* // All the data from readable goes into 'file.txt',
|
|
@@ -341,7 +341,7 @@ declare module "stream" {
|
|
|
341
341
|
* // Pull off a header delimited by \n\n.
|
|
342
342
|
* // Use unshift() if we get too much.
|
|
343
343
|
* // Call the callback with (error, header, stream).
|
|
344
|
-
*
|
|
344
|
+
* import { StringDecoder } from 'node:string_decoder';
|
|
345
345
|
* function parseHeader(stream, callback) {
|
|
346
346
|
* stream.on('error', callback);
|
|
347
347
|
* stream.on('readable', onReadable);
|
|
@@ -399,8 +399,8 @@ declare module "stream" {
|
|
|
399
399
|
* libraries.
|
|
400
400
|
*
|
|
401
401
|
* ```js
|
|
402
|
-
*
|
|
403
|
-
*
|
|
402
|
+
* import { OldReader } from './old-api-module.js';
|
|
403
|
+
* import { Readable } from 'node:stream';
|
|
404
404
|
* const oreader = new OldReader();
|
|
405
405
|
* const myReader = new Readable().wrap(oreader);
|
|
406
406
|
*
|
|
@@ -422,7 +422,7 @@ declare module "stream" {
|
|
|
422
422
|
* or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream.
|
|
423
423
|
* **Default: `true`**.
|
|
424
424
|
*/
|
|
425
|
-
iterator(options?: { destroyOnReturn?: boolean }):
|
|
425
|
+
iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator<any>;
|
|
426
426
|
/**
|
|
427
427
|
* This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
|
|
428
428
|
* If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
|
|
@@ -651,7 +651,7 @@ declare module "stream" {
|
|
|
651
651
|
removeListener(event: "readable", listener: () => void): this;
|
|
652
652
|
removeListener(event: "resume", listener: () => void): this;
|
|
653
653
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
654
|
-
[Symbol.asyncIterator]():
|
|
654
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
655
655
|
/**
|
|
656
656
|
* Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
|
|
657
657
|
* @since v20.4.0
|
|
@@ -806,7 +806,7 @@ declare module "stream" {
|
|
|
806
806
|
*
|
|
807
807
|
* ```js
|
|
808
808
|
* // Write 'hello, ' and then end with 'world!'.
|
|
809
|
-
*
|
|
809
|
+
* import fs from 'node:fs';
|
|
810
810
|
* const file = fs.createWriteStream('example.txt');
|
|
811
811
|
* file.write('hello, ');
|
|
812
812
|
* file.end('world!');
|
|
@@ -1250,6 +1250,25 @@ declare module "stream" {
|
|
|
1250
1250
|
removeListener(event: "unpipe", listener: (src: Readable) => void): this;
|
|
1251
1251
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1252
1252
|
}
|
|
1253
|
+
/**
|
|
1254
|
+
* The utility function `duplexPair` returns an Array with two items,
|
|
1255
|
+
* each being a `Duplex` stream connected to the other side:
|
|
1256
|
+
*
|
|
1257
|
+
* ```js
|
|
1258
|
+
* const [ sideA, sideB ] = duplexPair();
|
|
1259
|
+
* ```
|
|
1260
|
+
*
|
|
1261
|
+
* Whatever is written to one stream is made readable on the other. It provides
|
|
1262
|
+
* behavior analogous to a network connection, where the data written by the client
|
|
1263
|
+
* becomes readable by the server, and vice-versa.
|
|
1264
|
+
*
|
|
1265
|
+
* The Duplex streams are symmetrical; one or the other may be used without any
|
|
1266
|
+
* difference in behavior.
|
|
1267
|
+
* @param options A value to pass to both {@link Duplex} constructors,
|
|
1268
|
+
* to set options such as buffering.
|
|
1269
|
+
* @since v22.6.0
|
|
1270
|
+
*/
|
|
1271
|
+
function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
|
|
1253
1272
|
type TransformCallback = (error?: Error | null, data?: any) => void;
|
|
1254
1273
|
interface TransformOptions extends DuplexOptions {
|
|
1255
1274
|
construct?(this: Transform, callback: (error?: Error | null) => void): void;
|
|
@@ -1304,7 +1323,7 @@ declare module "stream" {
|
|
|
1304
1323
|
* stream, and `controller.error(new AbortError())` for webstreams.
|
|
1305
1324
|
*
|
|
1306
1325
|
* ```js
|
|
1307
|
-
*
|
|
1326
|
+
* import fs from 'node:fs';
|
|
1308
1327
|
*
|
|
1309
1328
|
* const controller = new AbortController();
|
|
1310
1329
|
* const read = addAbortSignal(
|
|
@@ -1398,8 +1417,8 @@ declare module "stream" {
|
|
|
1398
1417
|
* or has experienced an error or a premature close event.
|
|
1399
1418
|
*
|
|
1400
1419
|
* ```js
|
|
1401
|
-
*
|
|
1402
|
-
*
|
|
1420
|
+
* import { finished } from 'node:stream';
|
|
1421
|
+
* import fs from 'node:fs';
|
|
1403
1422
|
*
|
|
1404
1423
|
* const rs = fs.createReadStream('archive.tar');
|
|
1405
1424
|
*
|
|
@@ -1482,9 +1501,9 @@ declare module "stream" {
|
|
|
1482
1501
|
* properly cleaning up and provide a callback when the pipeline is complete.
|
|
1483
1502
|
*
|
|
1484
1503
|
* ```js
|
|
1485
|
-
*
|
|
1486
|
-
*
|
|
1487
|
-
*
|
|
1504
|
+
* import { pipeline } from 'node:stream';
|
|
1505
|
+
* import fs from 'node:fs';
|
|
1506
|
+
* import zlib from 'node:zlib';
|
|
1488
1507
|
*
|
|
1489
1508
|
* // Use the pipeline API to easily pipe a series of streams
|
|
1490
1509
|
* // together and get notified when the pipeline is fully done.
|
|
@@ -1524,9 +1543,9 @@ declare module "stream" {
|
|
|
1524
1543
|
* See the example below:
|
|
1525
1544
|
*
|
|
1526
1545
|
* ```js
|
|
1527
|
-
*
|
|
1528
|
-
*
|
|
1529
|
-
*
|
|
1546
|
+
* import fs from 'node:fs';
|
|
1547
|
+
* import http from 'node:http';
|
|
1548
|
+
* import { pipeline } from 'node:stream';
|
|
1530
1549
|
*
|
|
1531
1550
|
* const server = http.createServer((req, res) => {
|
|
1532
1551
|
* const fileStream = fs.createReadStream('./fileNotExist.txt');
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* characters. It can be accessed using:
|
|
5
5
|
*
|
|
6
6
|
* ```js
|
|
7
|
-
*
|
|
7
|
+
* import { StringDecoder } from 'node:string_decoder';
|
|
8
8
|
* ```
|
|
9
9
|
*
|
|
10
10
|
* The following example shows the basic use of the `StringDecoder` class.
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
|
-
*
|
|
13
|
+
* import { StringDecoder } from 'node:string_decoder';
|
|
14
14
|
* const decoder = new StringDecoder('utf8');
|
|
15
15
|
*
|
|
16
16
|
* const cent = Buffer.from([0xC2, 0xA2]);
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* symbol (`€`) are written over three separate operations:
|
|
30
30
|
*
|
|
31
31
|
* ```js
|
|
32
|
-
*
|
|
32
|
+
* import { StringDecoder } from 'node:string_decoder';
|
|
33
33
|
* const decoder = new StringDecoder('utf8');
|
|
34
34
|
*
|
|
35
35
|
* decoder.write(Buffer.from([0xE2]));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* work:
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
|
-
* import test from 'test';
|
|
13
|
+
* import test from 'node:test';
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
16
|
* Tests created via the `test` module consist of a single function that is
|
|
@@ -331,13 +331,31 @@ declare module "node:test" {
|
|
|
331
331
|
* @default false
|
|
332
332
|
*/
|
|
333
333
|
forceExit?: boolean | undefined;
|
|
334
|
+
/**
|
|
335
|
+
* An array containing the list of glob patterns to match test files.
|
|
336
|
+
* This option cannot be used together with `files`. If omitted, files are run according to the
|
|
337
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v22.x/api/test.html#test-runner-execution-model).
|
|
338
|
+
* @since v22.6.0
|
|
339
|
+
*/
|
|
340
|
+
globPatterns?: readonly string[] | undefined;
|
|
334
341
|
/**
|
|
335
342
|
* Sets inspector port of test child process.
|
|
336
|
-
*
|
|
337
|
-
*
|
|
343
|
+
* This can be a number, or a function that takes no arguments and returns a
|
|
344
|
+
* number. If a nullish value is provided, each process gets its own port,
|
|
345
|
+
* incremented from the primary's `process.debugPort`. This option is ignored
|
|
346
|
+
* if the `isolation` option is set to `'none'` as no child processes are
|
|
347
|
+
* spawned.
|
|
338
348
|
* @default undefined
|
|
339
349
|
*/
|
|
340
350
|
inspectPort?: number | (() => number) | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* Configures the type of test isolation. If set to
|
|
353
|
+
* `'process'`, each test file is run in a separate child process. If set to
|
|
354
|
+
* `'none'`, all test files run in the current process.
|
|
355
|
+
* @default 'process'
|
|
356
|
+
* @since v22.8.0
|
|
357
|
+
*/
|
|
358
|
+
isolation?: "process" | "none" | undefined;
|
|
341
359
|
/**
|
|
342
360
|
* If truthy, the test context will only run tests that have the `only` option set
|
|
343
361
|
*/
|
|
@@ -479,7 +497,7 @@ declare module "node:test" {
|
|
|
479
497
|
/**
|
|
480
498
|
* An object containing assertion methods bound to the test context.
|
|
481
499
|
* The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
|
|
482
|
-
* @since v22.2.0
|
|
500
|
+
* @since v22.2.0, v20.15.0
|
|
483
501
|
*/
|
|
484
502
|
readonly assert: TestContextAssert;
|
|
485
503
|
/**
|
|
@@ -528,6 +546,12 @@ declare module "node:test" {
|
|
|
528
546
|
* @param message Message to be reported.
|
|
529
547
|
*/
|
|
530
548
|
diagnostic(message: string): void;
|
|
549
|
+
/**
|
|
550
|
+
* The absolute path of the test file that created the current test. If a test file imports
|
|
551
|
+
* additional modules that generate tests, the imported tests will return the path of the root test file.
|
|
552
|
+
* @since v22.6.0
|
|
553
|
+
*/
|
|
554
|
+
readonly filePath: string | undefined;
|
|
531
555
|
/**
|
|
532
556
|
* The name of the test and each of its ancestors, separated by `>`.
|
|
533
557
|
* @since v22.3.0
|
|
@@ -657,6 +681,22 @@ declare module "node:test" {
|
|
|
657
681
|
deepEqual: typeof import("node:assert").deepEqual;
|
|
658
682
|
/**
|
|
659
683
|
* Identical to the `deepStrictEqual` function from the `node:assert` module, but bound to the test context.
|
|
684
|
+
*
|
|
685
|
+
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
686
|
+
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
687
|
+
* ```ts
|
|
688
|
+
* import { test, type TestContext } from 'node:test';
|
|
689
|
+
*
|
|
690
|
+
* // The test function's context parameter must have a type annotation.
|
|
691
|
+
* test('example', (t: TestContext) => {
|
|
692
|
+
* t.assert.deepStrictEqual(actual, expected);
|
|
693
|
+
* });
|
|
694
|
+
*
|
|
695
|
+
* // Omitting the type annotation will result in a compilation error.
|
|
696
|
+
* test('example', t => {
|
|
697
|
+
* t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
698
|
+
* });
|
|
699
|
+
* ```
|
|
660
700
|
*/
|
|
661
701
|
deepStrictEqual: typeof import("node:assert").deepStrictEqual;
|
|
662
702
|
/**
|
|
@@ -681,6 +721,22 @@ declare module "node:test" {
|
|
|
681
721
|
fail: typeof import("node:assert").fail;
|
|
682
722
|
/**
|
|
683
723
|
* Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
|
|
724
|
+
*
|
|
725
|
+
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
726
|
+
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
727
|
+
* ```ts
|
|
728
|
+
* import { test, type TestContext } from 'node:test';
|
|
729
|
+
*
|
|
730
|
+
* // The test function's context parameter must have a type annotation.
|
|
731
|
+
* test('example', (t: TestContext) => {
|
|
732
|
+
* t.assert.ifError(err);
|
|
733
|
+
* });
|
|
734
|
+
*
|
|
735
|
+
* // Omitting the type annotation will result in a compilation error.
|
|
736
|
+
* test('example', t => {
|
|
737
|
+
* t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
|
|
738
|
+
* });
|
|
739
|
+
* ```
|
|
684
740
|
*/
|
|
685
741
|
ifError: typeof import("node:assert").ifError;
|
|
686
742
|
/**
|
|
@@ -705,6 +761,22 @@ declare module "node:test" {
|
|
|
705
761
|
notStrictEqual: typeof import("node:assert").notStrictEqual;
|
|
706
762
|
/**
|
|
707
763
|
* Identical to the `ok` function from the `node:assert` module, but bound to the test context.
|
|
764
|
+
*
|
|
765
|
+
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
766
|
+
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
767
|
+
* ```ts
|
|
768
|
+
* import { test, type TestContext } from 'node:test';
|
|
769
|
+
*
|
|
770
|
+
* // The test function's context parameter must have a type annotation.
|
|
771
|
+
* test('example', (t: TestContext) => {
|
|
772
|
+
* t.assert.ok(condition);
|
|
773
|
+
* });
|
|
774
|
+
*
|
|
775
|
+
* // Omitting the type annotation will result in a compilation error.
|
|
776
|
+
* test('example', t => {
|
|
777
|
+
* t.assert.ok(condition)); // Error: 't' needs an explicit type annotation.
|
|
778
|
+
* });
|
|
779
|
+
* ```
|
|
708
780
|
*/
|
|
709
781
|
ok: typeof import("node:assert").ok;
|
|
710
782
|
/**
|
|
@@ -713,6 +785,22 @@ declare module "node:test" {
|
|
|
713
785
|
rejects: typeof import("node:assert").rejects;
|
|
714
786
|
/**
|
|
715
787
|
* Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
|
|
788
|
+
*
|
|
789
|
+
* **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
|
|
790
|
+
* type annotation, otherwise an error will be raised by the TypeScript compiler:
|
|
791
|
+
* ```ts
|
|
792
|
+
* import { test, type TestContext } from 'node:test';
|
|
793
|
+
*
|
|
794
|
+
* // The test function's context parameter must have a type annotation.
|
|
795
|
+
* test('example', (t: TestContext) => {
|
|
796
|
+
* t.assert.strictEqual(actual, expected);
|
|
797
|
+
* });
|
|
798
|
+
*
|
|
799
|
+
* // Omitting the type annotation will result in a compilation error.
|
|
800
|
+
* test('example', t => {
|
|
801
|
+
* t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
|
|
802
|
+
* });
|
|
803
|
+
* ```
|
|
716
804
|
*/
|
|
717
805
|
strictEqual: typeof import("node:assert").strictEqual;
|
|
718
806
|
/**
|
|
@@ -758,6 +846,12 @@ declare module "node:test" {
|
|
|
758
846
|
* @since v18.7.0, v16.17.0
|
|
759
847
|
*/
|
|
760
848
|
class SuiteContext {
|
|
849
|
+
/**
|
|
850
|
+
* The absolute path of the test file that created the current suite. If a test file imports
|
|
851
|
+
* additional modules that generate suites, the imported suites will return the path of the root test file.
|
|
852
|
+
* @since v22.6.0
|
|
853
|
+
*/
|
|
854
|
+
readonly filePath: string | undefined;
|
|
761
855
|
/**
|
|
762
856
|
* The name of the suite.
|
|
763
857
|
* @since v18.8.0, v16.18.0
|
|
@@ -1552,9 +1646,10 @@ declare module "node:test" {
|
|
|
1552
1646
|
* This function is used to set a custom resolver for the location of the snapshot file used for snapshot testing.
|
|
1553
1647
|
* By default, the snapshot filename is the same as the entry point filename with `.snapshot` appended.
|
|
1554
1648
|
* @since v22.3.0
|
|
1555
|
-
* @param fn A function
|
|
1556
|
-
* The function receives the path of the test file as its only argument.
|
|
1557
|
-
*
|
|
1649
|
+
* @param fn A function used to compute the location of the snapshot file.
|
|
1650
|
+
* The function receives the path of the test file as its only argument. If the
|
|
1651
|
+
* test is not associated with a file (for example in the REPL), the input is
|
|
1652
|
+
* undefined. `fn()` must return a string specifying the location of the snapshot file.
|
|
1558
1653
|
*/
|
|
1559
1654
|
function setResolveSnapshotPath(fn: (path: string | undefined) => string): void;
|
|
1560
1655
|
}
|
|
@@ -1946,7 +2041,7 @@ interface TestStdout {
|
|
|
1946
2041
|
* work:
|
|
1947
2042
|
*
|
|
1948
2043
|
* ```js
|
|
1949
|
-
* import test from 'test/reporters';
|
|
2044
|
+
* import test from 'node:test/reporters';
|
|
1950
2045
|
* ```
|
|
1951
2046
|
* @since v19.9.0
|
|
1952
2047
|
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/test/reporters.js)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `timers/promises` API provides an alternative set of timer functions
|
|
3
|
-
* that return `Promise` objects. The API is accessible via `
|
|
3
|
+
* that return `Promise` objects. The API is accessible via `import timersPromises from 'node:timers/promises'`.
|
|
4
4
|
*
|
|
5
5
|
* ```js
|
|
6
6
|
* import {
|
|
7
7
|
* setTimeout,
|
|
8
8
|
* setImmediate,
|
|
9
9
|
* setInterval,
|
|
10
|
-
* } from 'timers/promises';
|
|
10
|
+
* } from 'node:timers/promises';
|
|
11
11
|
* ```
|
|
12
12
|
* @since v15.0.0
|
|
13
13
|
*/
|
|
@@ -17,7 +17,7 @@ declare module "timers/promises" {
|
|
|
17
17
|
* ```js
|
|
18
18
|
* import {
|
|
19
19
|
* setTimeout,
|
|
20
|
-
* } from 'timers/promises';
|
|
20
|
+
* } from 'node:timers/promises';
|
|
21
21
|
*
|
|
22
22
|
* const res = await setTimeout(100, 'result');
|
|
23
23
|
*
|
|
@@ -32,7 +32,7 @@ declare module "timers/promises" {
|
|
|
32
32
|
* ```js
|
|
33
33
|
* import {
|
|
34
34
|
* setImmediate,
|
|
35
|
-
* } from 'timers/promises';
|
|
35
|
+
* } from 'node:timers/promises';
|
|
36
36
|
*
|
|
37
37
|
* const res = await setImmediate('result');
|
|
38
38
|
*
|
|
@@ -50,7 +50,7 @@ declare module "timers/promises" {
|
|
|
50
50
|
* ```js
|
|
51
51
|
* import {
|
|
52
52
|
* setInterval,
|
|
53
|
-
* } from 'timers/promises';
|
|
53
|
+
* } from 'node:timers/promises';
|
|
54
54
|
*
|
|
55
55
|
* const interval = 100;
|
|
56
56
|
* for await (const startTime of setInterval(interval, Date.now())) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `timer` module exposes a global API for scheduling functions to
|
|
3
3
|
* be called at some future period of time. Because the timer functions are
|
|
4
|
-
* globals, there is no need to
|
|
4
|
+
* globals, there is no need to import `node:timers` to use the API.
|
|
5
5
|
*
|
|
6
6
|
* The timer functions within Node.js implement a similar API as the timers API
|
|
7
7
|
* provided by Web Browsers but use a different internal implementation that is
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The module can be accessed using:
|
|
5
5
|
*
|
|
6
6
|
* ```js
|
|
7
|
-
*
|
|
7
|
+
* import tls from 'node:tls';
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/tls.js)
|
|
10
10
|
*/
|
|
@@ -1003,8 +1003,8 @@ declare module "tls" {
|
|
|
1003
1003
|
* The following illustrates a simple echo server:
|
|
1004
1004
|
*
|
|
1005
1005
|
* ```js
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1006
|
+
* import tls from 'node:tls';
|
|
1007
|
+
* import fs from 'node:fs';
|
|
1008
1008
|
*
|
|
1009
1009
|
* const options = {
|
|
1010
1010
|
* key: fs.readFileSync('server-key.pem'),
|
|
@@ -1049,8 +1049,8 @@ declare module "tls" {
|
|
|
1049
1049
|
*
|
|
1050
1050
|
* ```js
|
|
1051
1051
|
* // Assumes an echo server that is listening on port 8000.
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1052
|
+
* import tls from 'node:tls';
|
|
1053
|
+
* import fs from 'node:fs';
|
|
1054
1054
|
*
|
|
1055
1055
|
* const options = {
|
|
1056
1056
|
* // Necessary only if the server requires client certificate authentication.
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
* Alternatively, trace events may be enabled using the `node:trace_events` module:
|
|
54
54
|
*
|
|
55
55
|
* ```js
|
|
56
|
-
*
|
|
56
|
+
* import trace_events from 'node:trace_events';
|
|
57
57
|
* const tracing = trace_events.createTracing({ categories: ['node.perf'] });
|
|
58
58
|
* tracing.enable(); // Enable trace event capture for the 'node.perf' category
|
|
59
59
|
*
|
|
@@ -118,7 +118,7 @@ declare module "trace_events" {
|
|
|
118
118
|
* will be disabled.
|
|
119
119
|
*
|
|
120
120
|
* ```js
|
|
121
|
-
*
|
|
121
|
+
* import trace_events from 'node:trace_events';
|
|
122
122
|
* const t1 = trace_events.createTracing({ categories: ['node', 'v8'] });
|
|
123
123
|
* const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] });
|
|
124
124
|
* t1.enable();
|
|
@@ -159,7 +159,7 @@ declare module "trace_events" {
|
|
|
159
159
|
* Creates and returns a `Tracing` object for the given set of `categories`.
|
|
160
160
|
*
|
|
161
161
|
* ```js
|
|
162
|
-
*
|
|
162
|
+
* import trace_events from 'node:trace_events';
|
|
163
163
|
* const categories = ['node.perf', 'node.async_hooks'];
|
|
164
164
|
* const tracing = trace_events.createTracing({ categories });
|
|
165
165
|
* tracing.enable();
|
|
@@ -178,7 +178,7 @@ declare module "trace_events" {
|
|
|
178
178
|
* Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console.
|
|
179
179
|
*
|
|
180
180
|
* ```js
|
|
181
|
-
*
|
|
181
|
+
* import trace_events from 'node:trace_events';
|
|
182
182
|
* const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] });
|
|
183
183
|
* const t2 = trace_events.createTracing({ categories: ['node.perf'] });
|
|
184
184
|
* const t3 = trace_events.createTracing({ categories: ['v8'] });
|