cloudstructs 0.7.1 → 0.7.3
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/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +2 -2
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +2 -2
- package/lib/email-receiver/whitelist.lambda.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +2 -2
- package/lib/slack-app/provider.lambda.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/events.lambda.js +1 -1
- package/lib/slack-events/index.js +2 -2
- package/lib/slack-events/signature.js +1 -1
- package/lib/slack-textract/detect.lambda.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 +3 -3
- package/lib/state-machine-cr-provider/runtime/http.js +1 -1
- package/lib/state-machine-cr-provider/runtime/index.js +1 -1
- package/lib/static-website/index.js +2 -2
- package/lib/toolkit-cleaner/clean-images.lambda.js +1 -1
- package/lib/toolkit-cleaner/clean-objects.lambda.js +1 -1
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +1 -1
- package/lib/toolkit-cleaner/get-stack-names.lambda.js +1 -1
- package/lib/toolkit-cleaner/index.js +3 -3
- package/lib/url-shortener/index.js +2 -2
- package/lib/url-shortener/redirect.edge-lambda.js +1 -1
- package/lib/url-shortener/shortener.lambda.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 +8 -7
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +35 -18
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +4 -2
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +8 -3
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -16
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +59 -42
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +134 -5
- 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 +8 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +35 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +4 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +8 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +59 -42
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +134 -5
- 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 +8 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +35 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +4 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +8 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +59 -42
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +134 -5
- 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 +8 -7
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +2 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +35 -18
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +4 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +8 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +59 -42
- package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +134 -5
- 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 +8 -7
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +35 -18
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +4 -2
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +8 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +59 -42
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +134 -5
- 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 +8 -7
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +35 -18
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +4 -2
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +8 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -16
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +59 -42
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +134 -5
- package/package.json +19 -19
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4482
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
|
@@ -128,9 +128,10 @@ declare module "buffer" {
|
|
|
128
128
|
*/
|
|
129
129
|
export interface BlobOptions {
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts
|
|
132
|
+
* will be converted to the platform native line-ending as specified by `require('node:os').EOL`.
|
|
132
133
|
*/
|
|
133
|
-
|
|
134
|
+
endings?: "transparent" | "native";
|
|
134
135
|
/**
|
|
135
136
|
* The Blob content-type. The intent is for `type` to convey
|
|
136
137
|
* the MIME media type of the data, however no validation of the type format
|
|
@@ -162,7 +163,7 @@ declare module "buffer" {
|
|
|
162
163
|
*
|
|
163
164
|
* String sources are also copied into the `Blob`.
|
|
164
165
|
*/
|
|
165
|
-
constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
|
|
166
|
+
constructor(sources: Array<ArrayBuffer | BinaryLike | Blob>, options?: BlobOptions);
|
|
166
167
|
/**
|
|
167
168
|
* Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
|
|
168
169
|
* the `Blob` data.
|
|
@@ -415,7 +416,7 @@ declare module "buffer" {
|
|
|
415
416
|
* @return The number of bytes contained within `string`.
|
|
416
417
|
*/
|
|
417
418
|
byteLength(
|
|
418
|
-
string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
|
|
419
|
+
string: string | Buffer | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
|
|
419
420
|
encoding?: BufferEncoding,
|
|
420
421
|
): number;
|
|
421
422
|
/**
|
|
@@ -470,7 +471,7 @@ declare module "buffer" {
|
|
|
470
471
|
* ```
|
|
471
472
|
* @since v19.8.0
|
|
472
473
|
* @param view The {TypedArray} to copy.
|
|
473
|
-
* @param [offset=
|
|
474
|
+
* @param [offset=0] The starting offset within `view`.
|
|
474
475
|
* @param [length=view.length - offset] The number of elements from `view` to copy.
|
|
475
476
|
*/
|
|
476
477
|
copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer;
|
|
@@ -563,8 +564,8 @@ declare module "buffer" {
|
|
|
563
564
|
* A `TypeError` will be thrown if `size` is not a number.
|
|
564
565
|
*
|
|
565
566
|
* The `Buffer` module pre-allocates an internal `Buffer` instance of
|
|
566
|
-
* size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`,
|
|
567
|
-
* and `Buffer.concat()` only when `size` is less than`Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two).
|
|
567
|
+
* size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`,
|
|
568
|
+
* and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two).
|
|
568
569
|
*
|
|
569
570
|
* Use of this pre-allocated internal memory pool is a key difference between
|
|
570
571
|
* calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
|
|
@@ -894,6 +894,8 @@ declare module "child_process" {
|
|
|
894
894
|
killed?: boolean | undefined;
|
|
895
895
|
code?: number | undefined;
|
|
896
896
|
signal?: NodeJS.Signals | undefined;
|
|
897
|
+
stdout?: string;
|
|
898
|
+
stderr?: string;
|
|
897
899
|
}
|
|
898
900
|
/**
|
|
899
901
|
* Spawns a shell then executes the `command` within that shell, buffering any
|
|
@@ -92,7 +92,24 @@ declare module "events" {
|
|
|
92
92
|
interface StaticEventEmitterOptions {
|
|
93
93
|
signal?: AbortSignal | undefined;
|
|
94
94
|
}
|
|
95
|
-
interface EventEmitter extends NodeJS.EventEmitter {}
|
|
95
|
+
interface EventEmitter<T extends EventMap<T> = DefaultEventMap> extends NodeJS.EventEmitter<T> {}
|
|
96
|
+
type EventMap<T> = Record<keyof T, any[]> | DefaultEventMap;
|
|
97
|
+
type DefaultEventMap = [never];
|
|
98
|
+
type AnyRest = [...args: any[]];
|
|
99
|
+
type Args<K, T> = T extends DefaultEventMap ? AnyRest : (
|
|
100
|
+
K extends keyof T ? T[K] : never
|
|
101
|
+
);
|
|
102
|
+
type Key<K, T> = T extends DefaultEventMap ? string | symbol : K | keyof T;
|
|
103
|
+
type Key2<K, T> = T extends DefaultEventMap ? string | symbol : K & keyof T;
|
|
104
|
+
type Listener<K, T, F> = T extends DefaultEventMap ? F : (
|
|
105
|
+
K extends keyof T ? (
|
|
106
|
+
T[K] extends unknown[] ? (...args: T[K]) => void : never
|
|
107
|
+
)
|
|
108
|
+
: never
|
|
109
|
+
);
|
|
110
|
+
type Listener1<K, T> = Listener<K, T, (...args: any[]) => void>;
|
|
111
|
+
type Listener2<K, T> = Listener<K, T, Function>;
|
|
112
|
+
|
|
96
113
|
/**
|
|
97
114
|
* The `EventEmitter` class is defined and exposed by the `node:events` module:
|
|
98
115
|
*
|
|
@@ -106,10 +123,10 @@ declare module "events" {
|
|
|
106
123
|
* It supports the following option:
|
|
107
124
|
* @since v0.1.26
|
|
108
125
|
*/
|
|
109
|
-
class EventEmitter {
|
|
126
|
+
class EventEmitter<T extends EventMap<T> = DefaultEventMap> {
|
|
110
127
|
constructor(options?: EventEmitterOptions);
|
|
111
128
|
|
|
112
|
-
[EventEmitter.captureRejectionSymbol]
|
|
129
|
+
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
|
|
113
130
|
|
|
114
131
|
/**
|
|
115
132
|
* Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
|
|
@@ -536,13 +553,13 @@ declare module "events" {
|
|
|
536
553
|
}
|
|
537
554
|
global {
|
|
538
555
|
namespace NodeJS {
|
|
539
|
-
interface EventEmitter {
|
|
540
|
-
[EventEmitter.captureRejectionSymbol]
|
|
556
|
+
interface EventEmitter<T extends EventMap<T> = DefaultEventMap> {
|
|
557
|
+
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
|
|
541
558
|
/**
|
|
542
559
|
* Alias for `emitter.on(eventName, listener)`.
|
|
543
560
|
* @since v0.1.26
|
|
544
561
|
*/
|
|
545
|
-
addListener(eventName:
|
|
562
|
+
addListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
546
563
|
/**
|
|
547
564
|
* Adds the `listener` function to the end of the listeners array for the
|
|
548
565
|
* event named `eventName`. No checks are made to see if the `listener` has
|
|
@@ -574,7 +591,7 @@ declare module "events" {
|
|
|
574
591
|
* @param eventName The name of the event.
|
|
575
592
|
* @param listener The callback function
|
|
576
593
|
*/
|
|
577
|
-
on(eventName:
|
|
594
|
+
on<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
578
595
|
/**
|
|
579
596
|
* Adds a **one-time**`listener` function for the event named `eventName`. The
|
|
580
597
|
* next time `eventName` is triggered, this listener is removed and then invoked.
|
|
@@ -604,7 +621,7 @@ declare module "events" {
|
|
|
604
621
|
* @param eventName The name of the event.
|
|
605
622
|
* @param listener The callback function
|
|
606
623
|
*/
|
|
607
|
-
once(eventName:
|
|
624
|
+
once<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
608
625
|
/**
|
|
609
626
|
* Removes the specified `listener` from the listener array for the event named`eventName`.
|
|
610
627
|
*
|
|
@@ -687,12 +704,12 @@ declare module "events" {
|
|
|
687
704
|
* Returns a reference to the `EventEmitter`, so that calls can be chained.
|
|
688
705
|
* @since v0.1.26
|
|
689
706
|
*/
|
|
690
|
-
removeListener(eventName:
|
|
707
|
+
removeListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
691
708
|
/**
|
|
692
709
|
* Alias for `emitter.removeListener()`.
|
|
693
710
|
* @since v10.0.0
|
|
694
711
|
*/
|
|
695
|
-
off(eventName:
|
|
712
|
+
off<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
696
713
|
/**
|
|
697
714
|
* Removes all listeners, or those of the specified `eventName`.
|
|
698
715
|
*
|
|
@@ -703,7 +720,7 @@ declare module "events" {
|
|
|
703
720
|
* Returns a reference to the `EventEmitter`, so that calls can be chained.
|
|
704
721
|
* @since v0.1.26
|
|
705
722
|
*/
|
|
706
|
-
removeAllListeners(event?:
|
|
723
|
+
removeAllListeners(event?: Key<unknown, T>): this;
|
|
707
724
|
/**
|
|
708
725
|
* By default `EventEmitter`s will print a warning if more than `10` listeners are
|
|
709
726
|
* added for a particular event. This is a useful default that helps finding
|
|
@@ -732,7 +749,7 @@ declare module "events" {
|
|
|
732
749
|
* ```
|
|
733
750
|
* @since v0.1.26
|
|
734
751
|
*/
|
|
735
|
-
listeners(eventName:
|
|
752
|
+
listeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
|
|
736
753
|
/**
|
|
737
754
|
* Returns a copy of the array of listeners for the event named `eventName`,
|
|
738
755
|
* including any wrappers (such as those created by `.once()`).
|
|
@@ -763,7 +780,7 @@ declare module "events" {
|
|
|
763
780
|
* ```
|
|
764
781
|
* @since v9.4.0
|
|
765
782
|
*/
|
|
766
|
-
rawListeners(eventName:
|
|
783
|
+
rawListeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
|
|
767
784
|
/**
|
|
768
785
|
* Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments
|
|
769
786
|
* to each.
|
|
@@ -804,7 +821,7 @@ declare module "events" {
|
|
|
804
821
|
* ```
|
|
805
822
|
* @since v0.1.26
|
|
806
823
|
*/
|
|
807
|
-
emit(eventName:
|
|
824
|
+
emit<K>(eventName: Key<K, T>, ...args: Args<K, T>): boolean;
|
|
808
825
|
/**
|
|
809
826
|
* Returns the number of listeners listening for the event named `eventName`.
|
|
810
827
|
* If `listener` is provided, it will return how many times the listener is found
|
|
@@ -813,7 +830,7 @@ declare module "events" {
|
|
|
813
830
|
* @param eventName The name of the event being listened for
|
|
814
831
|
* @param listener The event handler function
|
|
815
832
|
*/
|
|
816
|
-
listenerCount(eventName:
|
|
833
|
+
listenerCount<K>(eventName: Key<K, T>, listener?: Listener2<K, T>): number;
|
|
817
834
|
/**
|
|
818
835
|
* Adds the `listener` function to the _beginning_ of the listeners array for the
|
|
819
836
|
* event named `eventName`. No checks are made to see if the `listener` has
|
|
@@ -831,7 +848,7 @@ declare module "events" {
|
|
|
831
848
|
* @param eventName The name of the event.
|
|
832
849
|
* @param listener The callback function
|
|
833
850
|
*/
|
|
834
|
-
prependListener(eventName:
|
|
851
|
+
prependListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
835
852
|
/**
|
|
836
853
|
* Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this
|
|
837
854
|
* listener is removed, and then invoked.
|
|
@@ -847,7 +864,7 @@ declare module "events" {
|
|
|
847
864
|
* @param eventName The name of the event.
|
|
848
865
|
* @param listener The callback function
|
|
849
866
|
*/
|
|
850
|
-
prependOnceListener(eventName:
|
|
867
|
+
prependOnceListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
|
|
851
868
|
/**
|
|
852
869
|
* Returns an array listing the events for which the emitter has registered
|
|
853
870
|
* listeners. The values in the array are strings or `Symbol`s.
|
|
@@ -867,7 +884,7 @@ declare module "events" {
|
|
|
867
884
|
* ```
|
|
868
885
|
* @since v6.0.0
|
|
869
886
|
*/
|
|
870
|
-
eventNames(): Array<string | symbol
|
|
887
|
+
eventNames(): Array<(string | symbol) & Key2<unknown, T>>;
|
|
871
888
|
}
|
|
872
889
|
}
|
|
873
890
|
}
|
|
@@ -198,9 +198,11 @@ declare module "http" {
|
|
|
198
198
|
_defaultAgent?: Agent | undefined;
|
|
199
199
|
agent?: Agent | boolean | undefined;
|
|
200
200
|
auth?: string | null | undefined;
|
|
201
|
-
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
202
201
|
createConnection?:
|
|
203
|
-
| ((
|
|
202
|
+
| ((
|
|
203
|
+
options: ClientRequestArgs,
|
|
204
|
+
oncreate: (err: Error | null, socket: stream.Duplex) => void,
|
|
205
|
+
) => stream.Duplex | null | undefined)
|
|
204
206
|
| undefined;
|
|
205
207
|
defaultPort?: number | string | undefined;
|
|
206
208
|
family?: number | undefined;
|
|
@@ -18,8 +18,8 @@ declare module "net" {
|
|
|
18
18
|
import * as dns from "node:dns";
|
|
19
19
|
type LookupFunction = (
|
|
20
20
|
hostname: string,
|
|
21
|
-
options: dns.
|
|
22
|
-
callback: (err: NodeJS.ErrnoException | null,
|
|
21
|
+
options: dns.LookupOptions,
|
|
22
|
+
callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void,
|
|
23
23
|
) => void;
|
|
24
24
|
interface AddressInfo {
|
|
25
25
|
address: string;
|
|
@@ -628,7 +628,7 @@ declare module "net" {
|
|
|
628
628
|
* Indicates whether or not the server is listening for connections.
|
|
629
629
|
* @since v5.7.0
|
|
630
630
|
*/
|
|
631
|
-
listening: boolean;
|
|
631
|
+
readonly listening: boolean;
|
|
632
632
|
/**
|
|
633
633
|
* events.EventEmitter
|
|
634
634
|
* 1. close
|
|
@@ -736,6 +736,11 @@ declare module "net" {
|
|
|
736
736
|
*/
|
|
737
737
|
check(address: SocketAddress): boolean;
|
|
738
738
|
check(address: string, type?: IPVersion): boolean;
|
|
739
|
+
/**
|
|
740
|
+
* The list of rules added to the blocklist.
|
|
741
|
+
* @since v15.0.0, v14.18.0
|
|
742
|
+
*/
|
|
743
|
+
rules: readonly string[];
|
|
739
744
|
}
|
|
740
745
|
interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
|
|
741
746
|
timeout?: number | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.26",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -85,11 +85,6 @@
|
|
|
85
85
|
"githubUsername": "mohsen1",
|
|
86
86
|
"url": "https://github.com/mohsen1"
|
|
87
87
|
},
|
|
88
|
-
{
|
|
89
|
-
"name": "Nicolas Even",
|
|
90
|
-
"githubUsername": "n-e",
|
|
91
|
-
"url": "https://github.com/n-e"
|
|
92
|
-
},
|
|
93
88
|
{
|
|
94
89
|
"name": "Nikita Galkin",
|
|
95
90
|
"githubUsername": "galkin",
|
|
@@ -208,13 +203,6 @@
|
|
|
208
203
|
],
|
|
209
204
|
"main": "",
|
|
210
205
|
"types": "index.d.ts",
|
|
211
|
-
"typesVersions": {
|
|
212
|
-
"<=4.8": {
|
|
213
|
-
"*": [
|
|
214
|
-
"ts4.8/*"
|
|
215
|
-
]
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
206
|
"repository": {
|
|
219
207
|
"type": "git",
|
|
220
208
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -224,7 +212,6 @@
|
|
|
224
212
|
"dependencies": {
|
|
225
213
|
"undici-types": "~5.26.4"
|
|
226
214
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
228
|
-
"typeScriptVersion": "4.
|
|
229
|
-
"nonNpm": true
|
|
215
|
+
"typesPublisherContentHash": "9b3b3458b87d11d9c61fca99966320a6a0b1e0b7f7f8a4d54e69202006c304fe",
|
|
216
|
+
"typeScriptVersion": "4.7"
|
|
230
217
|
}
|
|
@@ -220,7 +220,7 @@ declare module "tls" {
|
|
|
220
220
|
/**
|
|
221
221
|
* Construct a new tls.TLSSocket object from an existing TCP socket.
|
|
222
222
|
*/
|
|
223
|
-
constructor(socket: net.Socket, options?: TLSSocketOptions);
|
|
223
|
+
constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions);
|
|
224
224
|
/**
|
|
225
225
|
* This property is `true` if the peer certificate was signed by one of the CAs
|
|
226
226
|
* specified when creating the `tls.TLSSocket` instance, otherwise `false`.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```js
|
|
6
6
|
* import url from 'node:url';
|
|
7
7
|
* ```
|
|
8
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
8
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.11.0/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module "url" {
|
|
11
11
|
import { Blob as NodeBlob } from "node:buffer";
|
|
@@ -74,7 +74,7 @@ declare module "url" {
|
|
|
74
74
|
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
75
75
|
function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
|
76
76
|
/**
|
|
77
|
-
* The `url.format()` method returns a formatted URL string derived from`urlObject`.
|
|
77
|
+
* The `url.format()` method returns a formatted URL string derived from `urlObject`.
|
|
78
78
|
*
|
|
79
79
|
* ```js
|
|
80
80
|
* const url = require('node:url');
|
|
@@ -100,33 +100,33 @@ declare module "url" {
|
|
|
100
100
|
* * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
|
|
101
101
|
* * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
|
|
102
102
|
* colon (`:`) character, the literal string `:` will be appended to `result`.
|
|
103
|
-
* * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
|
|
103
|
+
* * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
|
|
104
104
|
* * `urlObject.slashes` property is true;
|
|
105
|
-
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
|
|
106
|
-
* * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
|
|
107
|
-
* and appended to `result`followed by the literal string `@`.
|
|
105
|
+
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
|
|
106
|
+
* * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
|
|
107
|
+
* and appended to `result` followed by the literal string `@`.
|
|
108
108
|
* * If the `urlObject.host` property is `undefined` then:
|
|
109
109
|
* * If the `urlObject.hostname` is a string, it is appended to `result`.
|
|
110
110
|
* * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
|
|
111
111
|
* an `Error` is thrown.
|
|
112
|
-
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
|
|
112
|
+
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
|
|
113
113
|
* * The literal string `:` is appended to `result`, and
|
|
114
|
-
* * The value of `urlObject.port` is coerced to a string and appended to`result`.
|
|
115
|
-
* * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
|
|
114
|
+
* * The value of `urlObject.port` is coerced to a string and appended to `result`.
|
|
115
|
+
* * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
|
|
116
116
|
* * If the `urlObject.pathname` property is a string that is not an empty string:
|
|
117
|
-
* * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
|
|
117
|
+
* * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
|
|
118
118
|
* (`/`), then the literal string `'/'` is appended to `result`.
|
|
119
119
|
* * The value of `urlObject.pathname` is appended to `result`.
|
|
120
120
|
* * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
|
|
121
|
-
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
|
|
122
|
-
* `querystring` module's `stringify()`method passing the value of `urlObject.query`.
|
|
121
|
+
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
|
|
122
|
+
* `querystring` module's `stringify()` method passing the value of `urlObject.query`.
|
|
123
123
|
* * Otherwise, if `urlObject.search` is a string:
|
|
124
|
-
* * If the value of `urlObject.search`_does not start_ with the ASCII question
|
|
124
|
+
* * If the value of `urlObject.search` _does not start_ with the ASCII question
|
|
125
125
|
* mark (`?`) character, the literal string `?` is appended to `result`.
|
|
126
126
|
* * The value of `urlObject.search` is appended to `result`.
|
|
127
127
|
* * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
|
|
128
128
|
* * If the `urlObject.hash` property is a string:
|
|
129
|
-
* * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
|
|
129
|
+
* * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
|
|
130
130
|
* character, the literal string `#` is appended to `result`.
|
|
131
131
|
* * The value of `urlObject.hash` is appended to `result`.
|
|
132
132
|
* * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
|
|
@@ -138,18 +138,18 @@ declare module "url" {
|
|
|
138
138
|
*/
|
|
139
139
|
function format(urlObject: URL, options?: URLFormatOptions): string;
|
|
140
140
|
/**
|
|
141
|
-
* The `url.format()` method returns a formatted URL string derived from`urlObject`.
|
|
141
|
+
* The `url.format()` method returns a formatted URL string derived from `urlObject`.
|
|
142
142
|
*
|
|
143
143
|
* ```js
|
|
144
|
-
* const url = require('url');
|
|
144
|
+
* const url = require('node:url');
|
|
145
145
|
* url.format({
|
|
146
146
|
* protocol: 'https',
|
|
147
147
|
* hostname: 'example.com',
|
|
148
148
|
* pathname: '/some/path',
|
|
149
149
|
* query: {
|
|
150
150
|
* page: 1,
|
|
151
|
-
* format: 'json'
|
|
152
|
-
* }
|
|
151
|
+
* format: 'json',
|
|
152
|
+
* },
|
|
153
153
|
* });
|
|
154
154
|
*
|
|
155
155
|
* // => 'https://example.com/some/path?page=1&format=json'
|
|
@@ -164,33 +164,33 @@ declare module "url" {
|
|
|
164
164
|
* * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown.
|
|
165
165
|
* * For all string values of `urlObject.protocol` that _do not end_ with an ASCII
|
|
166
166
|
* colon (`:`) character, the literal string `:` will be appended to `result`.
|
|
167
|
-
* * If either of the following conditions is true, then the literal string `//`will be appended to `result`:
|
|
167
|
+
* * If either of the following conditions is true, then the literal string `//` will be appended to `result`:
|
|
168
168
|
* * `urlObject.slashes` property is true;
|
|
169
|
-
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`;
|
|
170
|
-
* * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string
|
|
171
|
-
* and appended to `result`followed by the literal string `@`.
|
|
169
|
+
* * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`;
|
|
170
|
+
* * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string
|
|
171
|
+
* and appended to `result` followed by the literal string `@`.
|
|
172
172
|
* * If the `urlObject.host` property is `undefined` then:
|
|
173
173
|
* * If the `urlObject.hostname` is a string, it is appended to `result`.
|
|
174
174
|
* * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string,
|
|
175
175
|
* an `Error` is thrown.
|
|
176
|
-
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`:
|
|
176
|
+
* * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`:
|
|
177
177
|
* * The literal string `:` is appended to `result`, and
|
|
178
|
-
* * The value of `urlObject.port` is coerced to a string and appended to`result`.
|
|
179
|
-
* * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`.
|
|
178
|
+
* * The value of `urlObject.port` is coerced to a string and appended to `result`.
|
|
179
|
+
* * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`.
|
|
180
180
|
* * If the `urlObject.pathname` property is a string that is not an empty string:
|
|
181
|
-
* * If the `urlObject.pathname`_does not start_ with an ASCII forward slash
|
|
181
|
+
* * If the `urlObject.pathname` _does not start_ with an ASCII forward slash
|
|
182
182
|
* (`/`), then the literal string `'/'` is appended to `result`.
|
|
183
183
|
* * The value of `urlObject.pathname` is appended to `result`.
|
|
184
184
|
* * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown.
|
|
185
|
-
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the
|
|
186
|
-
* `querystring` module's `stringify()`method passing the value of `urlObject.query`.
|
|
185
|
+
* * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the
|
|
186
|
+
* `querystring` module's `stringify()` method passing the value of `urlObject.query`.
|
|
187
187
|
* * Otherwise, if `urlObject.search` is a string:
|
|
188
|
-
* * If the value of `urlObject.search`_does not start_ with the ASCII question
|
|
188
|
+
* * If the value of `urlObject.search` _does not start_ with the ASCII question
|
|
189
189
|
* mark (`?`) character, the literal string `?` is appended to `result`.
|
|
190
190
|
* * The value of `urlObject.search` is appended to `result`.
|
|
191
191
|
* * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown.
|
|
192
192
|
* * If the `urlObject.hash` property is a string:
|
|
193
|
-
* * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`)
|
|
193
|
+
* * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`)
|
|
194
194
|
* character, the literal string `#` is appended to `result`.
|
|
195
195
|
* * The value of `urlObject.hash` is appended to `result`.
|
|
196
196
|
* * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a
|
|
@@ -345,9 +345,26 @@ declare module "url" {
|
|
|
345
345
|
*/
|
|
346
346
|
function urlToHttpOptions(url: URL): ClientRequestArgs;
|
|
347
347
|
interface URLFormatOptions {
|
|
348
|
+
/**
|
|
349
|
+
* `true` if the serialized URL string should include the username and password, `false` otherwise.
|
|
350
|
+
* @default true
|
|
351
|
+
*/
|
|
348
352
|
auth?: boolean | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* `true` if the serialized URL string should include the fragment, `false` otherwise.
|
|
355
|
+
* @default true
|
|
356
|
+
*/
|
|
349
357
|
fragment?: boolean | undefined;
|
|
358
|
+
/**
|
|
359
|
+
* `true` if the serialized URL string should include the search query, `false` otherwise.
|
|
360
|
+
* @default true
|
|
361
|
+
*/
|
|
350
362
|
search?: boolean | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to
|
|
365
|
+
* being Punycode encoded.
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
351
368
|
unicode?: boolean | undefined;
|
|
352
369
|
}
|
|
353
370
|
/**
|
|
@@ -357,7 +374,7 @@ declare module "url" {
|
|
|
357
374
|
*
|
|
358
375
|
* In accordance with browser conventions, all properties of `URL` objects
|
|
359
376
|
* are implemented as getters and setters on the class prototype, rather than as
|
|
360
|
-
* data properties on the object itself. Thus, unlike `legacy urlObject`
|
|
377
|
+
* data properties on the object itself. Thus, unlike `legacy urlObject`s,
|
|
361
378
|
* using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still
|
|
362
379
|
* return `true`.
|
|
363
380
|
* @since v7.0.0, v6.13.0
|
|
@@ -381,7 +398,7 @@ declare module "url" {
|
|
|
381
398
|
* console.log(otherBlob.size);
|
|
382
399
|
* ```
|
|
383
400
|
*
|
|
384
|
-
* The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it.
|
|
401
|
+
* The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it.
|
|
385
402
|
*
|
|
386
403
|
* `Blob` objects are registered within the current thread. If using Worker
|
|
387
404
|
* Threads, `Blob` objects registered within one Worker will not be available
|
|
@@ -397,7 +414,7 @@ declare module "url" {
|
|
|
397
414
|
* @experimental
|
|
398
415
|
* @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
|
|
399
416
|
*/
|
|
400
|
-
static revokeObjectURL(
|
|
417
|
+
static revokeObjectURL(id: string): void;
|
|
401
418
|
/**
|
|
402
419
|
* Checks if an `input` relative to the `base` can be parsed to a `URL`.
|
|
403
420
|
*
|
|
@@ -412,7 +429,7 @@ declare module "url" {
|
|
|
412
429
|
* @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.
|
|
413
430
|
*/
|
|
414
431
|
static canParse(input: string, base?: string): boolean;
|
|
415
|
-
constructor(input: string, base?: string | URL);
|
|
432
|
+
constructor(input: string | { toString: () => string }, base?: string | URL);
|
|
416
433
|
/**
|
|
417
434
|
* Gets and sets the fragment portion of the URL.
|
|
418
435
|
*
|
|
@@ -541,14 +558,14 @@ declare module "url" {
|
|
|
541
558
|
* // Prints https://example.org/abcdef?123
|
|
542
559
|
* ```
|
|
543
560
|
*
|
|
544
|
-
* Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters
|
|
561
|
+
* Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters
|
|
545
562
|
* to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
|
|
546
563
|
*/
|
|
547
564
|
pathname: string;
|
|
548
565
|
/**
|
|
549
566
|
* Gets and sets the port portion of the URL.
|
|
550
567
|
*
|
|
551
|
-
* The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will
|
|
568
|
+
* The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will
|
|
552
569
|
* result in the `port` value becoming
|
|
553
570
|
* the empty string (`''`).
|
|
554
571
|
*
|
|
@@ -688,7 +705,7 @@ declare module "url" {
|
|
|
688
705
|
* // Prints https://123:xyz@example.com/
|
|
689
706
|
* ```
|
|
690
707
|
*
|
|
691
|
-
* Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which
|
|
708
|
+
* Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which
|
|
692
709
|
* characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce.
|
|
693
710
|
*/
|
|
694
711
|
username: string;
|
|
@@ -716,7 +733,7 @@ declare module "url" {
|
|
|
716
733
|
toJSON(): string;
|
|
717
734
|
}
|
|
718
735
|
/**
|
|
719
|
-
* The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the
|
|
736
|
+
* The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
|
|
720
737
|
* four following constructors.
|
|
721
738
|
* The `URLSearchParams` class is also available on the global object.
|
|
722
739
|
*
|
|
@@ -774,14 +791,14 @@ declare module "url" {
|
|
|
774
791
|
append(name: string, value: string): void;
|
|
775
792
|
/**
|
|
776
793
|
* If `value` is provided, removes all name-value pairs
|
|
777
|
-
* where name is `name` and value is `value
|
|
794
|
+
* where name is `name` and value is `value`.
|
|
778
795
|
*
|
|
779
796
|
* If `value` is not provided, removes all name-value pairs whose name is `name`.
|
|
780
797
|
*/
|
|
781
798
|
delete(name: string, value?: string): void;
|
|
782
799
|
/**
|
|
783
800
|
* Returns an ES6 `Iterator` over each of the name-value pairs in the query.
|
|
784
|
-
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
|
|
801
|
+
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`.
|
|
785
802
|
*
|
|
786
803
|
* Alias for `urlSearchParams[@@iterator]()`.
|
|
787
804
|
*/
|
|
@@ -802,7 +819,7 @@ declare module "url" {
|
|
|
802
819
|
* @param thisArg To be used as `this` value for when `fn` is called
|
|
803
820
|
*/
|
|
804
821
|
forEach<TThis = this>(
|
|
805
|
-
|
|
822
|
+
fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void,
|
|
806
823
|
thisArg?: TThis,
|
|
807
824
|
): void;
|
|
808
825
|
/**
|
|
@@ -817,7 +834,7 @@ declare module "url" {
|
|
|
817
834
|
*/
|
|
818
835
|
getAll(name: string): string[];
|
|
819
836
|
/**
|
|
820
|
-
* Checks if the `URLSearchParams` object contains key-value pair(s) based on`name` and an optional `value` argument.
|
|
837
|
+
* Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument.
|
|
821
838
|
*
|
|
822
839
|
* If `value` is provided, returns `true` when name-value pair with
|
|
823
840
|
* same `name` and `value` exists.
|