cloudstructs 0.6.36 → 0.6.38
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 +12 -12
- package/assets/slack-textract/detect.lambda/index.js +30 -30
- package/assets/ssl-server-test/analyze.lambda/index.js +12 -12
- 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 +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -7
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/cluster.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/cluster.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +2 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/cluster.d.ts +2 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +64 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +13 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -2
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +17 -4
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -7
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +554 -144
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +64 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +17 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +6 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +553 -143
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +75 -11
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +75 -11
- package/node_modules/keyv/README.md +2 -0
- package/node_modules/keyv/package.json +12 -13
- package/node_modules/keyv/src/index.d.ts +6 -10
- package/node_modules/keyv/src/index.js +1 -1
- package/package.json +23 -22
- /package/node_modules/{p-retry/node_modules/retry → retry}/License +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/README.md +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/example/dns.js +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/example/stop.js +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/index.js +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/lib/retry.js +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/lib/retry_operation.js +0 -0
- /package/node_modules/{p-retry/node_modules/retry → retry}/package.json +0 -0
|
@@ -68,6 +68,11 @@ declare module 'timers' {
|
|
|
68
68
|
*/
|
|
69
69
|
hasRef(): boolean;
|
|
70
70
|
_onImmediate: Function; // to distinguish it from the Timeout class
|
|
71
|
+
/**
|
|
72
|
+
* Cancels the immediate. This is similar to calling `clearImmediate()`.
|
|
73
|
+
* @since v20.5.0
|
|
74
|
+
*/
|
|
75
|
+
[Symbol.dispose](): void;
|
|
71
76
|
}
|
|
72
77
|
/**
|
|
73
78
|
* This object is created internally and is returned from `setTimeout()` and `setInterval()`. It can be passed to either `clearTimeout()` or `clearInterval()` in order to cancel the
|
|
@@ -114,6 +119,11 @@ declare module 'timers' {
|
|
|
114
119
|
*/
|
|
115
120
|
refresh(): this;
|
|
116
121
|
[Symbol.toPrimitive](): number;
|
|
122
|
+
/**
|
|
123
|
+
* Cancels the timeout.
|
|
124
|
+
* @since v20.5.0
|
|
125
|
+
*/
|
|
126
|
+
[Symbol.dispose](): void;
|
|
117
127
|
}
|
|
118
128
|
}
|
|
119
129
|
/**
|
|
@@ -163,10 +173,10 @@ declare module 'timers' {
|
|
|
163
173
|
* @param args Optional arguments to pass when the `callback` is called.
|
|
164
174
|
* @return for use with {@link clearInterval}
|
|
165
175
|
*/
|
|
166
|
-
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.
|
|
176
|
+
function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
|
|
167
177
|
// util.promisify no rest args compability
|
|
168
178
|
// tslint:disable-next-line void-return
|
|
169
|
-
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.
|
|
179
|
+
function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
|
|
170
180
|
namespace setInterval {
|
|
171
181
|
const __promisify__: typeof setIntervalPromise;
|
|
172
182
|
}
|
|
@@ -728,6 +728,17 @@ declare module 'tls' {
|
|
|
728
728
|
}
|
|
729
729
|
type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
|
|
730
730
|
interface SecureContextOptions {
|
|
731
|
+
/**
|
|
732
|
+
* If set, this will be called when a client opens a connection using the ALPN extension.
|
|
733
|
+
* One argument will be passed to the callback: an object containing `servername` and `protocols` fields,
|
|
734
|
+
* respectively containing the server name from the SNI extension (if any) and an array of
|
|
735
|
+
* ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`,
|
|
736
|
+
* which will be returned to the client as the selected ALPN protocol, or `undefined`,
|
|
737
|
+
* to reject the connection with a fatal alert. If a string is returned that does not match one of
|
|
738
|
+
* the client's ALPN protocols, an error will be thrown.
|
|
739
|
+
* This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
|
|
740
|
+
*/
|
|
741
|
+
ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
|
|
731
742
|
/**
|
|
732
743
|
* Optionally override the trusted CA certificates. Default is to trust
|
|
733
744
|
* the well-known CAs curated by Mozilla. Mozilla's CAs are completely
|
|
@@ -394,6 +394,20 @@ declare module 'url' {
|
|
|
394
394
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
395
395
|
*/
|
|
396
396
|
static revokeObjectURL(objectUrl: string): void;
|
|
397
|
+
/**
|
|
398
|
+
* Checks if an `input` relative to the `base` can be parsed to a `URL`.
|
|
399
|
+
*
|
|
400
|
+
* ```js
|
|
401
|
+
* const isValid = URL.canParse('/foo', 'https://example.org/'); // true
|
|
402
|
+
*
|
|
403
|
+
* const isNotValid = URL.canParse('/foo'); // false
|
|
404
|
+
* ```
|
|
405
|
+
* @since v19.9.0
|
|
406
|
+
* @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
|
|
407
|
+
* `converted to a string` first.
|
|
408
|
+
* @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
|
|
409
|
+
*/
|
|
410
|
+
static canParse(input: string, base?: string): boolean;
|
|
397
411
|
constructor(input: string, base?: string | URL);
|
|
398
412
|
/**
|
|
399
413
|
* Gets and sets the fragment portion of the URL.
|
|
@@ -1460,32 +1460,72 @@ declare module 'util' {
|
|
|
1460
1460
|
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Gets and sets the type portion of the MIME.
|
|
1463
|
+
*
|
|
1464
|
+
* ```js
|
|
1465
|
+
* import { MIMEType } from 'node:util';
|
|
1466
|
+
*
|
|
1467
|
+
* const myMIME = new MIMEType('text/javascript');
|
|
1468
|
+
* console.log(myMIME.type);
|
|
1469
|
+
* // Prints: text
|
|
1470
|
+
* myMIME.type = 'application';
|
|
1471
|
+
* console.log(myMIME.type);
|
|
1472
|
+
* // Prints: application
|
|
1473
|
+
* console.log(String(myMIME));
|
|
1474
|
+
* // Prints: application/javascript
|
|
1475
|
+
* ```
|
|
1463
1476
|
*/
|
|
1464
1477
|
type: string;
|
|
1465
1478
|
/**
|
|
1466
1479
|
* Gets and sets the subtype portion of the MIME.
|
|
1480
|
+
*
|
|
1481
|
+
* ```js
|
|
1482
|
+
* import { MIMEType } from 'node:util';
|
|
1483
|
+
*
|
|
1484
|
+
* const myMIME = new MIMEType('text/ecmascript');
|
|
1485
|
+
* console.log(myMIME.subtype);
|
|
1486
|
+
* // Prints: ecmascript
|
|
1487
|
+
* myMIME.subtype = 'javascript';
|
|
1488
|
+
* console.log(myMIME.subtype);
|
|
1489
|
+
* // Prints: javascript
|
|
1490
|
+
* console.log(String(myMIME));
|
|
1491
|
+
* // Prints: text/javascript
|
|
1492
|
+
* ```
|
|
1467
1493
|
*/
|
|
1468
1494
|
subtype: string;
|
|
1469
1495
|
/**
|
|
1470
|
-
* Gets the essence of the MIME.
|
|
1471
|
-
*
|
|
1496
|
+
* Gets the essence of the MIME. This property is read only.
|
|
1472
1497
|
* Use `mime.type` or `mime.subtype` to alter the MIME.
|
|
1498
|
+
*
|
|
1499
|
+
* ```js
|
|
1500
|
+
* import { MIMEType } from 'node:util';
|
|
1501
|
+
*
|
|
1502
|
+
* const myMIME = new MIMEType('text/javascript;key=value');
|
|
1503
|
+
* console.log(myMIME.essence);
|
|
1504
|
+
* // Prints: text/javascript
|
|
1505
|
+
* myMIME.type = 'application';
|
|
1506
|
+
* console.log(myMIME.essence);
|
|
1507
|
+
* // Prints: application/javascript
|
|
1508
|
+
* console.log(String(myMIME));
|
|
1509
|
+
* // Prints: application/javascript;key=value
|
|
1510
|
+
* ```
|
|
1473
1511
|
*/
|
|
1474
1512
|
readonly essence: string;
|
|
1475
1513
|
/**
|
|
1476
|
-
* Gets the `MIMEParams` object representing the
|
|
1514
|
+
* Gets the `MIMEParams` object representing the
|
|
1515
|
+
* parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
|
|
1477
1516
|
*/
|
|
1478
1517
|
readonly params: MIMEParams;
|
|
1479
1518
|
/**
|
|
1480
|
-
*
|
|
1519
|
+
* The `toString()` method on the `MIMEType` object returns the serialized MIME.
|
|
1481
1520
|
*
|
|
1482
|
-
* Because of the need for standard compliance, this method
|
|
1483
|
-
*
|
|
1521
|
+
* Because of the need for standard compliance, this method does not allow users
|
|
1522
|
+
* to customize the serialization process of the MIME.
|
|
1484
1523
|
*/
|
|
1485
1524
|
toString(): string;
|
|
1486
1525
|
}
|
|
1487
1526
|
/**
|
|
1488
|
-
*
|
|
1527
|
+
* The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
|
|
1528
|
+
* @since v19.1.0, v18.13.0
|
|
1489
1529
|
*/
|
|
1490
1530
|
export class MIMEParams {
|
|
1491
1531
|
/**
|
|
@@ -1494,11 +1534,14 @@ declare module 'util' {
|
|
|
1494
1534
|
delete(name: string): void;
|
|
1495
1535
|
/**
|
|
1496
1536
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1537
|
+
* Each item of the iterator is a JavaScript `Array`. The first item of the array
|
|
1538
|
+
* is the `name`, the second item of the array is the `value`.
|
|
1497
1539
|
*/
|
|
1498
1540
|
entries(): IterableIterator<[string, string]>;
|
|
1499
1541
|
/**
|
|
1500
|
-
* Returns the value of the first name-value pair whose name is `name`.
|
|
1501
|
-
*
|
|
1542
|
+
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
1543
|
+
* are no such pairs, `null` is returned.
|
|
1544
|
+
* @return or `null` if there is no name-value pair with the given `name`.
|
|
1502
1545
|
*/
|
|
1503
1546
|
get(name: string): string | null;
|
|
1504
1547
|
/**
|
|
@@ -1507,12 +1550,33 @@ declare module 'util' {
|
|
|
1507
1550
|
has(name: string): boolean;
|
|
1508
1551
|
/**
|
|
1509
1552
|
* Returns an iterator over the names of each name-value pair.
|
|
1553
|
+
*
|
|
1554
|
+
* ```js
|
|
1555
|
+
* import { MIMEType } from 'node:util';
|
|
1556
|
+
*
|
|
1557
|
+
* const { params } = new MIMEType('text/plain;foo=0;bar=1');
|
|
1558
|
+
* for (const name of params.keys()) {
|
|
1559
|
+
* console.log(name);
|
|
1560
|
+
* }
|
|
1561
|
+
* // Prints:
|
|
1562
|
+
* // foo
|
|
1563
|
+
* // bar
|
|
1564
|
+
* ```
|
|
1510
1565
|
*/
|
|
1511
1566
|
keys(): IterableIterator<string>;
|
|
1512
1567
|
/**
|
|
1513
|
-
* Sets the value in the `MIMEParams` object associated with `name` to
|
|
1514
|
-
* If there are any pre-existing name-value pairs whose names are `name`,
|
|
1568
|
+
* Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
1515
1569
|
* set the first such pair's value to `value`.
|
|
1570
|
+
*
|
|
1571
|
+
* ```js
|
|
1572
|
+
* import { MIMEType } from 'node:util';
|
|
1573
|
+
*
|
|
1574
|
+
* const { params } = new MIMEType('text/plain;foo=0;bar=1');
|
|
1575
|
+
* params.set('foo', 'def');
|
|
1576
|
+
* params.set('baz', 'xyz');
|
|
1577
|
+
* console.log(params.toString());
|
|
1578
|
+
* // Prints: foo=def&bar=1&baz=xyz
|
|
1579
|
+
* ```
|
|
1516
1580
|
*/
|
|
1517
1581
|
set(name: string, value: string): void;
|
|
1518
1582
|
/**
|
|
@@ -394,6 +394,20 @@ declare module 'url' {
|
|
|
394
394
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
395
395
|
*/
|
|
396
396
|
static revokeObjectURL(objectUrl: string): void;
|
|
397
|
+
/**
|
|
398
|
+
* Checks if an `input` relative to the `base` can be parsed to a `URL`.
|
|
399
|
+
*
|
|
400
|
+
* ```js
|
|
401
|
+
* const isValid = URL.canParse('/foo', 'https://example.org/'); // true
|
|
402
|
+
*
|
|
403
|
+
* const isNotValid = URL.canParse('/foo'); // false
|
|
404
|
+
* ```
|
|
405
|
+
* @since v19.9.0
|
|
406
|
+
* @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
|
|
407
|
+
* `converted to a string` first.
|
|
408
|
+
* @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
|
|
409
|
+
*/
|
|
410
|
+
static canParse(input: string, base?: string): boolean;
|
|
397
411
|
constructor(input: string, base?: string | URL);
|
|
398
412
|
/**
|
|
399
413
|
* Gets and sets the fragment portion of the URL.
|
|
@@ -1460,32 +1460,72 @@ declare module 'util' {
|
|
|
1460
1460
|
|
|
1461
1461
|
/**
|
|
1462
1462
|
* Gets and sets the type portion of the MIME.
|
|
1463
|
+
*
|
|
1464
|
+
* ```js
|
|
1465
|
+
* import { MIMEType } from 'node:util';
|
|
1466
|
+
*
|
|
1467
|
+
* const myMIME = new MIMEType('text/javascript');
|
|
1468
|
+
* console.log(myMIME.type);
|
|
1469
|
+
* // Prints: text
|
|
1470
|
+
* myMIME.type = 'application';
|
|
1471
|
+
* console.log(myMIME.type);
|
|
1472
|
+
* // Prints: application
|
|
1473
|
+
* console.log(String(myMIME));
|
|
1474
|
+
* // Prints: application/javascript
|
|
1475
|
+
* ```
|
|
1463
1476
|
*/
|
|
1464
1477
|
type: string;
|
|
1465
1478
|
/**
|
|
1466
1479
|
* Gets and sets the subtype portion of the MIME.
|
|
1480
|
+
*
|
|
1481
|
+
* ```js
|
|
1482
|
+
* import { MIMEType } from 'node:util';
|
|
1483
|
+
*
|
|
1484
|
+
* const myMIME = new MIMEType('text/ecmascript');
|
|
1485
|
+
* console.log(myMIME.subtype);
|
|
1486
|
+
* // Prints: ecmascript
|
|
1487
|
+
* myMIME.subtype = 'javascript';
|
|
1488
|
+
* console.log(myMIME.subtype);
|
|
1489
|
+
* // Prints: javascript
|
|
1490
|
+
* console.log(String(myMIME));
|
|
1491
|
+
* // Prints: text/javascript
|
|
1492
|
+
* ```
|
|
1467
1493
|
*/
|
|
1468
1494
|
subtype: string;
|
|
1469
1495
|
/**
|
|
1470
|
-
* Gets the essence of the MIME.
|
|
1471
|
-
*
|
|
1496
|
+
* Gets the essence of the MIME. This property is read only.
|
|
1472
1497
|
* Use `mime.type` or `mime.subtype` to alter the MIME.
|
|
1498
|
+
*
|
|
1499
|
+
* ```js
|
|
1500
|
+
* import { MIMEType } from 'node:util';
|
|
1501
|
+
*
|
|
1502
|
+
* const myMIME = new MIMEType('text/javascript;key=value');
|
|
1503
|
+
* console.log(myMIME.essence);
|
|
1504
|
+
* // Prints: text/javascript
|
|
1505
|
+
* myMIME.type = 'application';
|
|
1506
|
+
* console.log(myMIME.essence);
|
|
1507
|
+
* // Prints: application/javascript
|
|
1508
|
+
* console.log(String(myMIME));
|
|
1509
|
+
* // Prints: application/javascript;key=value
|
|
1510
|
+
* ```
|
|
1473
1511
|
*/
|
|
1474
1512
|
readonly essence: string;
|
|
1475
1513
|
/**
|
|
1476
|
-
* Gets the `MIMEParams` object representing the
|
|
1514
|
+
* Gets the `MIMEParams` object representing the
|
|
1515
|
+
* parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
|
|
1477
1516
|
*/
|
|
1478
1517
|
readonly params: MIMEParams;
|
|
1479
1518
|
/**
|
|
1480
|
-
*
|
|
1519
|
+
* The `toString()` method on the `MIMEType` object returns the serialized MIME.
|
|
1481
1520
|
*
|
|
1482
|
-
* Because of the need for standard compliance, this method
|
|
1483
|
-
*
|
|
1521
|
+
* Because of the need for standard compliance, this method does not allow users
|
|
1522
|
+
* to customize the serialization process of the MIME.
|
|
1484
1523
|
*/
|
|
1485
1524
|
toString(): string;
|
|
1486
1525
|
}
|
|
1487
1526
|
/**
|
|
1488
|
-
*
|
|
1527
|
+
* The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
|
|
1528
|
+
* @since v19.1.0, v18.13.0
|
|
1489
1529
|
*/
|
|
1490
1530
|
export class MIMEParams {
|
|
1491
1531
|
/**
|
|
@@ -1494,11 +1534,14 @@ declare module 'util' {
|
|
|
1494
1534
|
delete(name: string): void;
|
|
1495
1535
|
/**
|
|
1496
1536
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1537
|
+
* Each item of the iterator is a JavaScript `Array`. The first item of the array
|
|
1538
|
+
* is the `name`, the second item of the array is the `value`.
|
|
1497
1539
|
*/
|
|
1498
1540
|
entries(): IterableIterator<[name: string, value: string]>;
|
|
1499
1541
|
/**
|
|
1500
|
-
* Returns the value of the first name-value pair whose name is `name`.
|
|
1501
|
-
*
|
|
1542
|
+
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
1543
|
+
* are no such pairs, `null` is returned.
|
|
1544
|
+
* @return or `null` if there is no name-value pair with the given `name`.
|
|
1502
1545
|
*/
|
|
1503
1546
|
get(name: string): string | null;
|
|
1504
1547
|
/**
|
|
@@ -1507,12 +1550,33 @@ declare module 'util' {
|
|
|
1507
1550
|
has(name: string): boolean;
|
|
1508
1551
|
/**
|
|
1509
1552
|
* Returns an iterator over the names of each name-value pair.
|
|
1553
|
+
*
|
|
1554
|
+
* ```js
|
|
1555
|
+
* import { MIMEType } from 'node:util';
|
|
1556
|
+
*
|
|
1557
|
+
* const { params } = new MIMEType('text/plain;foo=0;bar=1');
|
|
1558
|
+
* for (const name of params.keys()) {
|
|
1559
|
+
* console.log(name);
|
|
1560
|
+
* }
|
|
1561
|
+
* // Prints:
|
|
1562
|
+
* // foo
|
|
1563
|
+
* // bar
|
|
1564
|
+
* ```
|
|
1510
1565
|
*/
|
|
1511
1566
|
keys(): IterableIterator<string>;
|
|
1512
1567
|
/**
|
|
1513
|
-
* Sets the value in the `MIMEParams` object associated with `name` to
|
|
1514
|
-
* If there are any pre-existing name-value pairs whose names are `name`,
|
|
1568
|
+
* Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
|
|
1515
1569
|
* set the first such pair's value to `value`.
|
|
1570
|
+
*
|
|
1571
|
+
* ```js
|
|
1572
|
+
* import { MIMEType } from 'node:util';
|
|
1573
|
+
*
|
|
1574
|
+
* const { params } = new MIMEType('text/plain;foo=0;bar=1');
|
|
1575
|
+
* params.set('foo', 'def');
|
|
1576
|
+
* params.set('baz', 'xyz');
|
|
1577
|
+
* console.log(params.toString());
|
|
1578
|
+
* // Prints: foo=def&bar=1&baz=xyz
|
|
1579
|
+
* ```
|
|
1516
1580
|
*/
|
|
1517
1581
|
set(name: string, value: string): void;
|
|
1518
1582
|
/**
|
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (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:
|
|
11
|
+
* Last updated: Sun, 13 Aug 2023 19:32:51 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|
|
@@ -530,7 +530,7 @@ declare module 'buffer' {
|
|
|
530
530
|
* @param [fill=0] A value to pre-fill the new `Buffer` with.
|
|
531
531
|
* @param [encoding='utf8'] If `fill` is a string, this is its encoding.
|
|
532
532
|
*/
|
|
533
|
-
alloc(size: number, fill?: string |
|
|
533
|
+
alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer;
|
|
534
534
|
/**
|
|
535
535
|
* Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown.
|
|
536
536
|
*
|
|
@@ -302,6 +302,11 @@ declare module 'child_process' {
|
|
|
302
302
|
* @since v0.1.90
|
|
303
303
|
*/
|
|
304
304
|
kill(signal?: NodeJS.Signals | number): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Calls {@link ChildProcess.kill} with `'SIGTERM'`.
|
|
307
|
+
* @since v20.5.0
|
|
308
|
+
*/
|
|
309
|
+
[Symbol.dispose](): void;
|
|
305
310
|
/**
|
|
306
311
|
* When an IPC channel has been established between the parent and child (
|
|
307
312
|
* i.e. when using {@link fork}), the `subprocess.send()` method can
|
|
@@ -67,6 +67,8 @@ declare module 'cluster' {
|
|
|
67
67
|
gid?: number | undefined;
|
|
68
68
|
inspectPort?: number | (() => number) | undefined;
|
|
69
69
|
serialization?: SerializationType | undefined;
|
|
70
|
+
cwd?: string | undefined;
|
|
71
|
+
windowsHide?: boolean | undefined;
|
|
70
72
|
}
|
|
71
73
|
export interface Address {
|
|
72
74
|
address: string;
|
|
@@ -1516,10 +1516,15 @@ declare module 'crypto' {
|
|
|
1516
1516
|
class DiffieHellman {
|
|
1517
1517
|
private constructor();
|
|
1518
1518
|
/**
|
|
1519
|
-
* Generates private and public Diffie-Hellman key values
|
|
1519
|
+
* Generates private and public Diffie-Hellman key values unless they have been
|
|
1520
|
+
* generated or computed already, and returns
|
|
1520
1521
|
* the public key in the specified `encoding`. This key should be
|
|
1521
1522
|
* transferred to the other party.
|
|
1522
1523
|
* If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
|
|
1524
|
+
*
|
|
1525
|
+
* This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular,
|
|
1526
|
+
* once a private key has been generated or set, calling this function only updates
|
|
1527
|
+
* the public key but does not generate a new private key.
|
|
1523
1528
|
* @since v0.5.0
|
|
1524
1529
|
* @param encoding The `encoding` of the return value.
|
|
1525
1530
|
*/
|
|
@@ -1591,6 +1596,9 @@ declare module 'crypto' {
|
|
|
1591
1596
|
* Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected
|
|
1592
1597
|
* to be a string. If no `encoding` is provided, `privateKey` is expected
|
|
1593
1598
|
* to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1599
|
+
*
|
|
1600
|
+
* This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be
|
|
1601
|
+
* used to manually provide the public key or to automatically derive it.
|
|
1594
1602
|
* @since v0.5.0
|
|
1595
1603
|
* @param encoding The `encoding` of the `privateKey` string.
|
|
1596
1604
|
*/
|
|
@@ -538,6 +538,11 @@ declare module 'dgram' {
|
|
|
538
538
|
prependOnceListener(event: 'error', listener: (err: Error) => void): this;
|
|
539
539
|
prependOnceListener(event: 'listening', listener: () => void): this;
|
|
540
540
|
prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
|
|
541
|
+
/**
|
|
542
|
+
* Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
|
|
543
|
+
* @since v20.5.0
|
|
544
|
+
*/
|
|
545
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
541
546
|
}
|
|
542
547
|
}
|
|
543
548
|
declare module 'node:dgram' {
|
|
@@ -294,6 +294,35 @@ declare module 'events' {
|
|
|
294
294
|
* @since v15.2.0, v14.17.0
|
|
295
295
|
*/
|
|
296
296
|
static getEventListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
297
|
+
/**
|
|
298
|
+
* Returns the currently set max amount of listeners.
|
|
299
|
+
*
|
|
300
|
+
* For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on
|
|
301
|
+
* the emitter.
|
|
302
|
+
*
|
|
303
|
+
* For `EventTarget`s this is the only way to get the max event listeners for the
|
|
304
|
+
* event target. If the number of event handlers on a single EventTarget exceeds
|
|
305
|
+
* the max set, the EventTarget will print a warning.
|
|
306
|
+
*
|
|
307
|
+
* ```js
|
|
308
|
+
* import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
|
|
309
|
+
*
|
|
310
|
+
* {
|
|
311
|
+
* const ee = new EventEmitter();
|
|
312
|
+
* console.log(getMaxListeners(ee)); // 10
|
|
313
|
+
* setMaxListeners(11, ee);
|
|
314
|
+
* console.log(getMaxListeners(ee)); // 11
|
|
315
|
+
* }
|
|
316
|
+
* {
|
|
317
|
+
* const et = new EventTarget();
|
|
318
|
+
* console.log(getMaxListeners(et)); // 10
|
|
319
|
+
* setMaxListeners(11, et);
|
|
320
|
+
* console.log(getMaxListeners(et)); // 11
|
|
321
|
+
* }
|
|
322
|
+
* ```
|
|
323
|
+
* @since v19.9.0
|
|
324
|
+
*/
|
|
325
|
+
static getMaxListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter): number;
|
|
297
326
|
/**
|
|
298
327
|
* ```js
|
|
299
328
|
* import { setMaxListeners, EventEmitter } from 'node:events';
|
|
@@ -309,6 +338,41 @@ declare module 'events' {
|
|
|
309
338
|
* objects.
|
|
310
339
|
*/
|
|
311
340
|
static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
341
|
+
/**
|
|
342
|
+
* Listens once to the `abort` event on the provided `signal`.
|
|
343
|
+
*
|
|
344
|
+
* Listening to the `abort` event on abort signals is unsafe and may
|
|
345
|
+
* lead to resource leaks since another third party with the signal can
|
|
346
|
+
* call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change
|
|
347
|
+
* this since it would violate the web standard. Additionally, the original
|
|
348
|
+
* API makes it easy to forget to remove listeners.
|
|
349
|
+
*
|
|
350
|
+
* This API allows safely using `AbortSignal`s in Node.js APIs by solving these
|
|
351
|
+
* two issues by listening to the event such that `stopImmediatePropagation` does
|
|
352
|
+
* not prevent the listener from running.
|
|
353
|
+
*
|
|
354
|
+
* Returns a disposable so that it may be unsubscribed from more easily.
|
|
355
|
+
*
|
|
356
|
+
* ```js
|
|
357
|
+
* import { addAbortListener } from 'node:events';
|
|
358
|
+
*
|
|
359
|
+
* function example(signal) {
|
|
360
|
+
* let disposable;
|
|
361
|
+
* try {
|
|
362
|
+
* signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
|
|
363
|
+
* disposable = addAbortListener(signal, (e) => {
|
|
364
|
+
* // Do something when signal is aborted.
|
|
365
|
+
* });
|
|
366
|
+
* } finally {
|
|
367
|
+
* disposable?.[Symbol.dispose]();
|
|
368
|
+
* }
|
|
369
|
+
* }
|
|
370
|
+
* ```
|
|
371
|
+
* @since v20.5.0
|
|
372
|
+
* @experimental
|
|
373
|
+
* @return that removes the `abort` listener.
|
|
374
|
+
*/
|
|
375
|
+
static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
|
|
312
376
|
/**
|
|
313
377
|
* This symbol shall be used to install a listener for only monitoring `'error'`events. Listeners installed using this symbol are called before the regular`'error'` listeners are called.
|
|
314
378
|
*
|
|
@@ -82,6 +82,13 @@ declare module 'fs/promises' {
|
|
|
82
82
|
emitClose?: boolean | undefined;
|
|
83
83
|
start?: number | undefined;
|
|
84
84
|
}
|
|
85
|
+
interface ReadableWebStreamOptions {
|
|
86
|
+
/**
|
|
87
|
+
* Whether to open a normal or a `'bytes'` stream.
|
|
88
|
+
* @since v20.0.0
|
|
89
|
+
*/
|
|
90
|
+
type?: 'bytes' | undefined;
|
|
91
|
+
}
|
|
85
92
|
// TODO: Add `EventEmitter` close
|
|
86
93
|
interface FileHandle {
|
|
87
94
|
/**
|
|
@@ -240,7 +247,7 @@ declare module 'fs/promises' {
|
|
|
240
247
|
* @since v17.0.0
|
|
241
248
|
* @experimental
|
|
242
249
|
*/
|
|
243
|
-
readableWebStream(): ReadableStream;
|
|
250
|
+
readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
|
|
244
251
|
/**
|
|
245
252
|
* Asynchronously reads the entire contents of a file.
|
|
246
253
|
*
|
|
@@ -449,6 +456,11 @@ declare module 'fs/promises' {
|
|
|
449
456
|
* @return Fulfills with `undefined` upon success.
|
|
450
457
|
*/
|
|
451
458
|
close(): Promise<void>;
|
|
459
|
+
/**
|
|
460
|
+
* An alias for {@link FileHandle.close()}.
|
|
461
|
+
* @since v20.4.0
|
|
462
|
+
*/
|
|
463
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
452
464
|
}
|
|
453
465
|
const constants: typeof fsConstants;
|
|
454
466
|
/**
|
|
@@ -84,6 +84,28 @@ declare var AbortSignal: typeof globalThis extends {onmessage: any; AbortSignal:
|
|
|
84
84
|
};
|
|
85
85
|
//#endregion borrowed
|
|
86
86
|
|
|
87
|
+
//#region Disposable
|
|
88
|
+
interface SymbolConstructor {
|
|
89
|
+
/**
|
|
90
|
+
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
|
|
91
|
+
*/
|
|
92
|
+
readonly dispose: unique symbol;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
|
|
96
|
+
*/
|
|
97
|
+
readonly asyncDispose: unique symbol;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface Disposable {
|
|
101
|
+
[Symbol.dispose](): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface AsyncDisposable {
|
|
105
|
+
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
106
|
+
}
|
|
107
|
+
//#endregion Disposable
|
|
108
|
+
|
|
87
109
|
//#region ArrayLike.at()
|
|
88
110
|
interface RelativeIndexable<T> {
|
|
89
111
|
/**
|
|
@@ -128,7 +128,7 @@ declare module 'http2' {
|
|
|
128
128
|
* value will be `undefined` after the `Http2Stream` instance is destroyed.
|
|
129
129
|
* @since v8.4.0
|
|
130
130
|
*/
|
|
131
|
-
readonly session: Http2Session;
|
|
131
|
+
readonly session: Http2Session | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Provides miscellaneous information about the current state of the`Http2Stream`.
|
|
134
134
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for non-npm package Node.js 20.
|
|
1
|
+
// Type definitions for non-npm package Node.js 20.5
|
|
2
2
|
// Project: https://nodejs.org/
|
|
3
3
|
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
4
|
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
// Nikita Galkin <https://github.com/galkin>
|
|
22
22
|
// Parambir Singh <https://github.com/parambirs>
|
|
23
23
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
-
// Simon Schick <https://github.com/SimonSchick>
|
|
25
24
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
26
25
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
27
26
|
// wwwy3y3 <https://github.com/wwwy3y3>
|
|
@@ -73,11 +73,24 @@ declare module 'module' {
|
|
|
73
73
|
readonly payload: SourceMapPayload;
|
|
74
74
|
constructor(payload: SourceMapPayload);
|
|
75
75
|
/**
|
|
76
|
-
* Given a line
|
|
77
|
-
* an object representing the
|
|
78
|
-
*
|
|
76
|
+
* Given a line offset and column offset in the generated source
|
|
77
|
+
* file, returns an object representing the SourceMap range in the
|
|
78
|
+
* original file if found, or an empty object if not.
|
|
79
|
+
*
|
|
80
|
+
* The object returned contains the following keys:
|
|
81
|
+
*
|
|
82
|
+
* The returned value represents the raw range as it appears in the
|
|
83
|
+
* SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
|
|
84
|
+
* column numbers as they appear in Error messages and CallSite
|
|
85
|
+
* objects.
|
|
86
|
+
*
|
|
87
|
+
* To get the corresponding 1-indexed line and column numbers from a
|
|
88
|
+
* lineNumber and columnNumber as they are reported by Error stacks
|
|
89
|
+
* and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
|
|
90
|
+
* @param lineOffset The zero-indexed line number offset in the generated source
|
|
91
|
+
* @param columnOffset The zero-indexed column number offset in the generated source
|
|
79
92
|
*/
|
|
80
|
-
findEntry(
|
|
93
|
+
findEntry(lineOffset: number, columnOffset: number): SourceMapping;
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
96
|
interface Module extends NodeModule {}
|