cdk-ecr-deployment 2.5.29 → 2.5.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -1
- package/.jsii +129 -27
- package/.jsii.tabl.json +1 -1
- package/.projenrc.ts +3 -1
- package/API.md +2 -0
- package/lambda/install.js +7 -6
- package/lib/index.d.ts +10 -0
- package/lib/index.js +6 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +48 -24
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +15 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +43 -35
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +267 -122
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +755 -269
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +86 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +28 -25
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +203 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +127 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +115 -73
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +560 -315
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +96 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +359 -195
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +629 -377
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +195 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +154 -93
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +88 -95
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +166 -128
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +498 -218
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +398 -170
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +34 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +162 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +17 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +79 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +359 -195
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +195 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +154 -93
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +166 -128
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +398 -170
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +40 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +263 -129
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +40 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +263 -129
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +52 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +83 -85
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/@types/http-cache-semantics/LICENSE +0 -0
- package/node_modules/@types/http-cache-semantics/README.md +1 -2
- package/node_modules/@types/http-cache-semantics/index.d.ts +1 -6
- package/node_modules/@types/http-cache-semantics/package.json +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +48 -24
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +15 -6
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +43 -35
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +267 -122
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -14
- package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +755 -269
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +86 -45
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +28 -25
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +203 -62
- package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +127 -7
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +115 -73
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +560 -315
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +96 -18
- package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +359 -195
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +629 -377
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -46
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2 -3
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +195 -14
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +154 -93
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +88 -95
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +166 -128
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +498 -218
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +398 -170
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +34 -9
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +162 -71
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +17 -14
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +79 -7
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +359 -195
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +195 -14
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +154 -93
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +166 -128
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +398 -170
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +40 -14
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +263 -129
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +40 -14
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +263 -129
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +52 -45
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +83 -85
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/@types/responselike/LICENSE +21 -21
- package/node_modules/@types/responselike/README.md +39 -7
- package/node_modules/@types/responselike/index.d.ts +3 -8
- package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +48 -24
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +15 -6
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +43 -35
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +267 -122
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -14
- package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +755 -269
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +86 -45
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +28 -25
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +203 -62
- package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +127 -7
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +115 -73
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +560 -315
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +96 -18
- package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +359 -195
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +629 -377
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -46
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2 -3
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +195 -14
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +154 -93
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +88 -95
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +166 -128
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +498 -218
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +398 -170
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +34 -9
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +162 -71
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +17 -14
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +79 -7
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +359 -195
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +195 -14
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +154 -93
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +166 -128
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +398 -170
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +40 -14
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +263 -129
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +40 -14
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +263 -129
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +52 -45
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +83 -85
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/@types/responselike/package.json +9 -7
- package/node_modules/keyv/README.md +2 -0
- package/node_modules/keyv/package.json +13 -14
- package/node_modules/keyv/src/index.d.ts +6 -10
- package/node_modules/keyv/src/index.js +7 -12
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +10 -11
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/buffer-stream.js +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/index.d.ts +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/index.js +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/license +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/package.json +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/readme.md +0 -0
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/util.js)
|
|
10
10
|
*/
|
|
11
|
-
declare module
|
|
12
|
-
import * as types from
|
|
11
|
+
declare module "util" {
|
|
12
|
+
import * as types from "node:util/types";
|
|
13
13
|
export interface InspectOptions {
|
|
14
14
|
/**
|
|
15
15
|
* If `true`, object's non-enumerable symbols and properties are included in the formatted result.
|
|
@@ -85,14 +85,25 @@ declare module 'util' {
|
|
|
85
85
|
* the getter function.
|
|
86
86
|
* @default false
|
|
87
87
|
*/
|
|
88
|
-
getters?:
|
|
88
|
+
getters?: "get" | "set" | boolean | undefined;
|
|
89
89
|
/**
|
|
90
90
|
* If set to `true`, an underscore is used to separate every three digits in all bigints and numbers.
|
|
91
91
|
* @default false
|
|
92
92
|
*/
|
|
93
93
|
numericSeparator?: boolean | undefined;
|
|
94
94
|
}
|
|
95
|
-
export type Style =
|
|
95
|
+
export type Style =
|
|
96
|
+
| "special"
|
|
97
|
+
| "number"
|
|
98
|
+
| "bigint"
|
|
99
|
+
| "boolean"
|
|
100
|
+
| "undefined"
|
|
101
|
+
| "null"
|
|
102
|
+
| "string"
|
|
103
|
+
| "symbol"
|
|
104
|
+
| "date"
|
|
105
|
+
| "regexp"
|
|
106
|
+
| "module";
|
|
96
107
|
export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect
|
|
97
108
|
export interface InspectOptionsStylized extends InspectOptions {
|
|
98
109
|
stylize(text: string, styleType: Style): string;
|
|
@@ -408,8 +419,14 @@ declare module 'util' {
|
|
|
408
419
|
* const bigNumber = 123_456_789n;
|
|
409
420
|
* const bigDecimal = 1_234.123_45;
|
|
410
421
|
*
|
|
411
|
-
* console.log(thousand,
|
|
412
|
-
* // 1_000
|
|
422
|
+
* console.log(inspect(thousand, { numericSeparator: true }));
|
|
423
|
+
* // 1_000
|
|
424
|
+
* console.log(inspect(million, { numericSeparator: true }));
|
|
425
|
+
* // 1_000_000
|
|
426
|
+
* console.log(inspect(bigNumber, { numericSeparator: true }));
|
|
427
|
+
* // 123_456_789n
|
|
428
|
+
* console.log(inspect(bigDecimal, { numericSeparator: true }));
|
|
429
|
+
* // 1_234.123_45
|
|
413
430
|
* ```
|
|
414
431
|
*
|
|
415
432
|
* `util.inspect()` is a synchronous method intended for debugging. Its maximum
|
|
@@ -970,40 +987,83 @@ declare module 'util' {
|
|
|
970
987
|
* @return a callback style function
|
|
971
988
|
*/
|
|
972
989
|
export function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
973
|
-
export function callbackify<TResult>(
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
export function callbackify<T1
|
|
977
|
-
|
|
978
|
-
|
|
990
|
+
export function callbackify<TResult>(
|
|
991
|
+
fn: () => Promise<TResult>,
|
|
992
|
+
): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
993
|
+
export function callbackify<T1>(
|
|
994
|
+
fn: (arg1: T1) => Promise<void>,
|
|
995
|
+
): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
996
|
+
export function callbackify<T1, TResult>(
|
|
997
|
+
fn: (arg1: T1) => Promise<TResult>,
|
|
998
|
+
): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
|
999
|
+
export function callbackify<T1, T2>(
|
|
1000
|
+
fn: (arg1: T1, arg2: T2) => Promise<void>,
|
|
1001
|
+
): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
1002
|
+
export function callbackify<T1, T2, TResult>(
|
|
1003
|
+
fn: (arg1: T1, arg2: T2) => Promise<TResult>,
|
|
1004
|
+
): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
1005
|
+
export function callbackify<T1, T2, T3>(
|
|
1006
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>,
|
|
1007
|
+
): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
979
1008
|
export function callbackify<T1, T2, T3, TResult>(
|
|
980
|
-
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult
|
|
1009
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>,
|
|
981
1010
|
): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
|
982
1011
|
export function callbackify<T1, T2, T3, T4>(
|
|
983
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void
|
|
1012
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>,
|
|
984
1013
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
985
1014
|
export function callbackify<T1, T2, T3, T4, TResult>(
|
|
986
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult
|
|
987
|
-
): (
|
|
1015
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>,
|
|
1016
|
+
): (
|
|
1017
|
+
arg1: T1,
|
|
1018
|
+
arg2: T2,
|
|
1019
|
+
arg3: T3,
|
|
1020
|
+
arg4: T4,
|
|
1021
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
1022
|
+
) => void;
|
|
988
1023
|
export function callbackify<T1, T2, T3, T4, T5>(
|
|
989
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void
|
|
1024
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>,
|
|
990
1025
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
|
991
1026
|
export function callbackify<T1, T2, T3, T4, T5, TResult>(
|
|
992
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult
|
|
993
|
-
): (
|
|
1027
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>,
|
|
1028
|
+
): (
|
|
1029
|
+
arg1: T1,
|
|
1030
|
+
arg2: T2,
|
|
1031
|
+
arg3: T3,
|
|
1032
|
+
arg4: T4,
|
|
1033
|
+
arg5: T5,
|
|
1034
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
1035
|
+
) => void;
|
|
994
1036
|
export function callbackify<T1, T2, T3, T4, T5, T6>(
|
|
995
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void
|
|
996
|
-
): (
|
|
1037
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>,
|
|
1038
|
+
): (
|
|
1039
|
+
arg1: T1,
|
|
1040
|
+
arg2: T2,
|
|
1041
|
+
arg3: T3,
|
|
1042
|
+
arg4: T4,
|
|
1043
|
+
arg5: T5,
|
|
1044
|
+
arg6: T6,
|
|
1045
|
+
callback: (err: NodeJS.ErrnoException) => void,
|
|
1046
|
+
) => void;
|
|
997
1047
|
export function callbackify<T1, T2, T3, T4, T5, T6, TResult>(
|
|
998
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult
|
|
999
|
-
): (
|
|
1048
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>,
|
|
1049
|
+
): (
|
|
1050
|
+
arg1: T1,
|
|
1051
|
+
arg2: T2,
|
|
1052
|
+
arg3: T3,
|
|
1053
|
+
arg4: T4,
|
|
1054
|
+
arg5: T5,
|
|
1055
|
+
arg6: T6,
|
|
1056
|
+
callback: (err: NodeJS.ErrnoException | null, result: TResult) => void,
|
|
1057
|
+
) => void;
|
|
1000
1058
|
export interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
|
|
1001
1059
|
__promisify__: TCustom;
|
|
1002
1060
|
}
|
|
1003
1061
|
export interface CustomPromisifySymbol<TCustom extends Function> extends Function {
|
|
1004
1062
|
[promisify.custom]: TCustom;
|
|
1005
1063
|
}
|
|
1006
|
-
export type CustomPromisify<TCustom extends Function> =
|
|
1064
|
+
export type CustomPromisify<TCustom extends Function> =
|
|
1065
|
+
| CustomPromisifySymbol<TCustom>
|
|
1066
|
+
| CustomPromisifyLegacy<TCustom>;
|
|
1007
1067
|
/**
|
|
1008
1068
|
* Takes a function following the common error-first callback style, i.e. taking
|
|
1009
1069
|
* an `(err, value) => ...` callback as the last argument, and returns a version
|
|
@@ -1033,6 +1093,8 @@ declare module 'util' {
|
|
|
1033
1093
|
* const stats = await stat('.');
|
|
1034
1094
|
* console.log(`This directory is owned by ${stats.uid}`);
|
|
1035
1095
|
* }
|
|
1096
|
+
*
|
|
1097
|
+
* callStat();
|
|
1036
1098
|
* ```
|
|
1037
1099
|
*
|
|
1038
1100
|
* If there is an `original[util.promisify.custom]` property present, `promisify`will return its value, see `Custom promisified functions`.
|
|
@@ -1072,23 +1134,37 @@ declare module 'util' {
|
|
|
1072
1134
|
* @since v8.0.0
|
|
1073
1135
|
*/
|
|
1074
1136
|
export function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
|
1075
|
-
export function promisify<TResult>(
|
|
1137
|
+
export function promisify<TResult>(
|
|
1138
|
+
fn: (callback: (err: any, result: TResult) => void) => void,
|
|
1139
|
+
): () => Promise<TResult>;
|
|
1076
1140
|
export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
|
1077
|
-
export function promisify<T1, TResult>(
|
|
1141
|
+
export function promisify<T1, TResult>(
|
|
1142
|
+
fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void,
|
|
1143
|
+
): (arg1: T1) => Promise<TResult>;
|
|
1078
1144
|
export function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
|
|
1079
|
-
export function promisify<T1, T2, TResult>(
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
export function promisify<T1, T2
|
|
1145
|
+
export function promisify<T1, T2, TResult>(
|
|
1146
|
+
fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void,
|
|
1147
|
+
): (arg1: T1, arg2: T2) => Promise<TResult>;
|
|
1148
|
+
export function promisify<T1, T2>(
|
|
1149
|
+
fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void,
|
|
1150
|
+
): (arg1: T1, arg2: T2) => Promise<void>;
|
|
1151
|
+
export function promisify<T1, T2, T3, TResult>(
|
|
1152
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void,
|
|
1153
|
+
): (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
|
1154
|
+
export function promisify<T1, T2, T3>(
|
|
1155
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void,
|
|
1156
|
+
): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
|
1083
1157
|
export function promisify<T1, T2, T3, T4, TResult>(
|
|
1084
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void
|
|
1158
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
|
|
1085
1159
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
|
1086
|
-
export function promisify<T1, T2, T3, T4>(
|
|
1160
|
+
export function promisify<T1, T2, T3, T4>(
|
|
1161
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void,
|
|
1162
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
|
1087
1163
|
export function promisify<T1, T2, T3, T4, T5, TResult>(
|
|
1088
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void
|
|
1164
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
|
|
1089
1165
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
|
1090
1166
|
export function promisify<T1, T2, T3, T4, T5>(
|
|
1091
|
-
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void
|
|
1167
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
|
1092
1168
|
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
|
1093
1169
|
export function promisify(fn: Function): Function;
|
|
1094
1170
|
export namespace promisify {
|
|
@@ -1127,7 +1203,7 @@ declare module 'util' {
|
|
|
1127
1203
|
options?: {
|
|
1128
1204
|
fatal?: boolean | undefined;
|
|
1129
1205
|
ignoreBOM?: boolean | undefined;
|
|
1130
|
-
}
|
|
1206
|
+
},
|
|
1131
1207
|
);
|
|
1132
1208
|
/**
|
|
1133
1209
|
* Decodes the `input` and returns a string. If `options.stream` is `true`, any
|
|
@@ -1141,7 +1217,7 @@ declare module 'util' {
|
|
|
1141
1217
|
input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
|
|
1142
1218
|
options?: {
|
|
1143
1219
|
stream?: boolean | undefined;
|
|
1144
|
-
}
|
|
1220
|
+
},
|
|
1145
1221
|
): string;
|
|
1146
1222
|
}
|
|
1147
1223
|
export interface EncodeIntoResult {
|
|
@@ -1195,7 +1271,7 @@ declare module 'util' {
|
|
|
1195
1271
|
*/
|
|
1196
1272
|
encodeInto(src: string, dest: Uint8Array): EncodeIntoResult;
|
|
1197
1273
|
}
|
|
1198
|
-
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from
|
|
1274
|
+
import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util";
|
|
1199
1275
|
global {
|
|
1200
1276
|
/**
|
|
1201
1277
|
* `TextDecoder` class is a global reference for `require('util').TextDecoder`
|
|
@@ -1205,8 +1281,7 @@ declare module 'util' {
|
|
|
1205
1281
|
var TextDecoder: typeof globalThis extends {
|
|
1206
1282
|
onmessage: any;
|
|
1207
1283
|
TextDecoder: infer TextDecoder;
|
|
1208
|
-
}
|
|
1209
|
-
? TextDecoder
|
|
1284
|
+
} ? TextDecoder
|
|
1210
1285
|
: typeof _TextDecoder;
|
|
1211
1286
|
/**
|
|
1212
1287
|
* `TextEncoder` class is a global reference for `require('util').TextEncoder`
|
|
@@ -1216,8 +1291,7 @@ declare module 'util' {
|
|
|
1216
1291
|
var TextEncoder: typeof globalThis extends {
|
|
1217
1292
|
onmessage: any;
|
|
1218
1293
|
TextEncoder: infer TextEncoder;
|
|
1219
|
-
}
|
|
1220
|
-
? TextEncoder
|
|
1294
|
+
} ? TextEncoder
|
|
1221
1295
|
: typeof _TextEncoder;
|
|
1222
1296
|
}
|
|
1223
1297
|
|
|
@@ -1255,7 +1329,7 @@ declare module 'util' {
|
|
|
1255
1329
|
/**
|
|
1256
1330
|
* Type of argument.
|
|
1257
1331
|
*/
|
|
1258
|
-
type:
|
|
1332
|
+
type: "string" | "boolean";
|
|
1259
1333
|
/**
|
|
1260
1334
|
* Whether this option can be provided multiple times.
|
|
1261
1335
|
* If `true`, all values will be collected in an array.
|
|
@@ -1313,89 +1387,81 @@ declare module 'util' {
|
|
|
1313
1387
|
This is technically incorrect but is a much nicer UX for the common case.
|
|
1314
1388
|
The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false.
|
|
1315
1389
|
*/
|
|
1316
|
-
type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true
|
|
1317
|
-
?
|
|
1318
|
-
: T extends false
|
|
1319
|
-
? IfFalse
|
|
1390
|
+
type IfDefaultsTrue<T, IfTrue, IfFalse> = T extends true ? IfTrue
|
|
1391
|
+
: T extends false ? IfFalse
|
|
1320
1392
|
: IfTrue;
|
|
1321
1393
|
|
|
1322
1394
|
// we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false`
|
|
1323
|
-
type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false
|
|
1324
|
-
?
|
|
1325
|
-
: T extends true
|
|
1326
|
-
? IfTrue
|
|
1395
|
+
type IfDefaultsFalse<T, IfTrue, IfFalse> = T extends false ? IfFalse
|
|
1396
|
+
: T extends true ? IfTrue
|
|
1327
1397
|
: IfFalse;
|
|
1328
1398
|
|
|
1329
1399
|
type ExtractOptionValue<T extends ParseArgsConfig, O extends ParseArgsOptionConfig> = IfDefaultsTrue<
|
|
1330
|
-
T[
|
|
1331
|
-
O[
|
|
1400
|
+
T["strict"],
|
|
1401
|
+
O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean,
|
|
1332
1402
|
string | boolean
|
|
1333
1403
|
>;
|
|
1334
1404
|
|
|
1335
1405
|
type ParsedValues<T extends ParseArgsConfig> =
|
|
1336
|
-
& IfDefaultsTrue<T[
|
|
1337
|
-
& (T[
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
T[
|
|
1341
|
-
undefined |
|
|
1342
|
-
undefined | ExtractOptionValue<T, T['options'][LongOption]>
|
|
1406
|
+
& IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
|
|
1407
|
+
& (T["options"] extends ParseArgsOptionsConfig ? {
|
|
1408
|
+
-readonly [LongOption in keyof T["options"]]: IfDefaultsFalse<
|
|
1409
|
+
T["options"][LongOption]["multiple"],
|
|
1410
|
+
undefined | Array<ExtractOptionValue<T, T["options"][LongOption]>>,
|
|
1411
|
+
undefined | ExtractOptionValue<T, T["options"][LongOption]>
|
|
1343
1412
|
>;
|
|
1344
1413
|
}
|
|
1345
1414
|
: {});
|
|
1346
1415
|
|
|
1347
1416
|
type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
1348
|
-
T[
|
|
1349
|
-
IfDefaultsFalse<T[
|
|
1350
|
-
IfDefaultsTrue<T[
|
|
1417
|
+
T["strict"],
|
|
1418
|
+
IfDefaultsFalse<T["allowPositionals"], string[], []>,
|
|
1419
|
+
IfDefaultsTrue<T["allowPositionals"], string[], []>
|
|
1351
1420
|
>;
|
|
1352
1421
|
|
|
1353
1422
|
type PreciseTokenForOptions<
|
|
1354
1423
|
K extends string,
|
|
1355
1424
|
O extends ParseArgsOptionConfig,
|
|
1356
|
-
> = O[
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
inlineValue: undefined;
|
|
1373
|
-
}
|
|
1425
|
+
> = O["type"] extends "string" ? {
|
|
1426
|
+
kind: "option";
|
|
1427
|
+
index: number;
|
|
1428
|
+
name: K;
|
|
1429
|
+
rawName: string;
|
|
1430
|
+
value: string;
|
|
1431
|
+
inlineValue: boolean;
|
|
1432
|
+
}
|
|
1433
|
+
: O["type"] extends "boolean" ? {
|
|
1434
|
+
kind: "option";
|
|
1435
|
+
index: number;
|
|
1436
|
+
name: K;
|
|
1437
|
+
rawName: string;
|
|
1438
|
+
value: undefined;
|
|
1439
|
+
inlineValue: undefined;
|
|
1440
|
+
}
|
|
1374
1441
|
: OptionToken & { name: K };
|
|
1375
1442
|
|
|
1376
1443
|
type TokenForOptions<
|
|
1377
1444
|
T extends ParseArgsConfig,
|
|
1378
|
-
K extends keyof T[
|
|
1445
|
+
K extends keyof T["options"] = keyof T["options"],
|
|
1379
1446
|
> = K extends unknown
|
|
1380
|
-
? T[
|
|
1381
|
-
|
|
1382
|
-
: OptionToken
|
|
1447
|
+
? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions<K & string, T["options"][K]>
|
|
1448
|
+
: OptionToken
|
|
1383
1449
|
: never;
|
|
1384
1450
|
|
|
1385
|
-
type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T[
|
|
1451
|
+
type ParsedOptionToken<T extends ParseArgsConfig> = IfDefaultsTrue<T["strict"], TokenForOptions<T>, OptionToken>;
|
|
1386
1452
|
|
|
1387
1453
|
type ParsedPositionalToken<T extends ParseArgsConfig> = IfDefaultsTrue<
|
|
1388
|
-
T[
|
|
1389
|
-
IfDefaultsFalse<T[
|
|
1390
|
-
IfDefaultsTrue<T[
|
|
1454
|
+
T["strict"],
|
|
1455
|
+
IfDefaultsFalse<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>,
|
|
1456
|
+
IfDefaultsTrue<T["allowPositionals"], { kind: "positional"; index: number; value: string }, never>
|
|
1391
1457
|
>;
|
|
1392
1458
|
|
|
1393
1459
|
type ParsedTokens<T extends ParseArgsConfig> = Array<
|
|
1394
|
-
ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind:
|
|
1460
|
+
ParsedOptionToken<T> | ParsedPositionalToken<T> | { kind: "option-terminator"; index: number }
|
|
1395
1461
|
>;
|
|
1396
1462
|
|
|
1397
1463
|
type PreciseParsedResults<T extends ParseArgsConfig> = IfDefaultsFalse<
|
|
1398
|
-
T[
|
|
1464
|
+
T["tokens"],
|
|
1399
1465
|
{
|
|
1400
1466
|
values: ParsedValues<T>;
|
|
1401
1467
|
positionals: ParsedPositionals<T>;
|
|
@@ -1408,31 +1474,30 @@ declare module 'util' {
|
|
|
1408
1474
|
>;
|
|
1409
1475
|
|
|
1410
1476
|
type OptionToken =
|
|
1411
|
-
| { kind:
|
|
1477
|
+
| { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean }
|
|
1412
1478
|
| {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1479
|
+
kind: "option";
|
|
1480
|
+
index: number;
|
|
1481
|
+
name: string;
|
|
1482
|
+
rawName: string;
|
|
1483
|
+
value: undefined;
|
|
1484
|
+
inlineValue: undefined;
|
|
1485
|
+
};
|
|
1420
1486
|
|
|
1421
1487
|
type Token =
|
|
1422
1488
|
| OptionToken
|
|
1423
|
-
| { kind:
|
|
1424
|
-
| { kind:
|
|
1489
|
+
| { kind: "positional"; index: number; value: string }
|
|
1490
|
+
| { kind: "option-terminator"; index: number };
|
|
1425
1491
|
|
|
1426
1492
|
// If ParseArgsConfig extends T, then the user passed config constructed elsewhere.
|
|
1427
1493
|
// So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above.
|
|
1428
|
-
type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1494
|
+
type ParsedResults<T extends ParseArgsConfig> = ParseArgsConfig extends T ? {
|
|
1495
|
+
values: {
|
|
1496
|
+
[longOption: string]: undefined | string | boolean | Array<string | boolean>;
|
|
1497
|
+
};
|
|
1498
|
+
positionals: string[];
|
|
1499
|
+
tokens?: Token[];
|
|
1500
|
+
}
|
|
1436
1501
|
: PreciseParsedResults<T>;
|
|
1437
1502
|
|
|
1438
1503
|
/**
|
|
@@ -1460,32 +1525,72 @@ declare module 'util' {
|
|
|
1460
1525
|
|
|
1461
1526
|
/**
|
|
1462
1527
|
* Gets and sets the type portion of the MIME.
|
|
1528
|
+
*
|
|
1529
|
+
* ```js
|
|
1530
|
+
* import { MIMEType } from 'node:util';
|
|
1531
|
+
*
|
|
1532
|
+
* const myMIME = new MIMEType('text/javascript');
|
|
1533
|
+
* console.log(myMIME.type);
|
|
1534
|
+
* // Prints: text
|
|
1535
|
+
* myMIME.type = 'application';
|
|
1536
|
+
* console.log(myMIME.type);
|
|
1537
|
+
* // Prints: application
|
|
1538
|
+
* console.log(String(myMIME));
|
|
1539
|
+
* // Prints: application/javascript
|
|
1540
|
+
* ```
|
|
1463
1541
|
*/
|
|
1464
1542
|
type: string;
|
|
1465
1543
|
/**
|
|
1466
1544
|
* Gets and sets the subtype portion of the MIME.
|
|
1545
|
+
*
|
|
1546
|
+
* ```js
|
|
1547
|
+
* import { MIMEType } from 'node:util';
|
|
1548
|
+
*
|
|
1549
|
+
* const myMIME = new MIMEType('text/ecmascript');
|
|
1550
|
+
* console.log(myMIME.subtype);
|
|
1551
|
+
* // Prints: ecmascript
|
|
1552
|
+
* myMIME.subtype = 'javascript';
|
|
1553
|
+
* console.log(myMIME.subtype);
|
|
1554
|
+
* // Prints: javascript
|
|
1555
|
+
* console.log(String(myMIME));
|
|
1556
|
+
* // Prints: text/javascript
|
|
1557
|
+
* ```
|
|
1467
1558
|
*/
|
|
1468
1559
|
subtype: string;
|
|
1469
1560
|
/**
|
|
1470
|
-
* Gets the essence of the MIME.
|
|
1471
|
-
*
|
|
1561
|
+
* Gets the essence of the MIME. This property is read only.
|
|
1472
1562
|
* Use `mime.type` or `mime.subtype` to alter the MIME.
|
|
1563
|
+
*
|
|
1564
|
+
* ```js
|
|
1565
|
+
* import { MIMEType } from 'node:util';
|
|
1566
|
+
*
|
|
1567
|
+
* const myMIME = new MIMEType('text/javascript;key=value');
|
|
1568
|
+
* console.log(myMIME.essence);
|
|
1569
|
+
* // Prints: text/javascript
|
|
1570
|
+
* myMIME.type = 'application';
|
|
1571
|
+
* console.log(myMIME.essence);
|
|
1572
|
+
* // Prints: application/javascript
|
|
1573
|
+
* console.log(String(myMIME));
|
|
1574
|
+
* // Prints: application/javascript;key=value
|
|
1575
|
+
* ```
|
|
1473
1576
|
*/
|
|
1474
1577
|
readonly essence: string;
|
|
1475
1578
|
/**
|
|
1476
|
-
* Gets the `MIMEParams` object representing the
|
|
1579
|
+
* Gets the `MIMEParams` object representing the
|
|
1580
|
+
* parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
|
|
1477
1581
|
*/
|
|
1478
1582
|
readonly params: MIMEParams;
|
|
1479
1583
|
/**
|
|
1480
|
-
*
|
|
1584
|
+
* The `toString()` method on the `MIMEType` object returns the serialized MIME.
|
|
1481
1585
|
*
|
|
1482
|
-
* Because of the need for standard compliance, this method
|
|
1483
|
-
*
|
|
1586
|
+
* Because of the need for standard compliance, this method does not allow users
|
|
1587
|
+
* to customize the serialization process of the MIME.
|
|
1484
1588
|
*/
|
|
1485
1589
|
toString(): string;
|
|
1486
1590
|
}
|
|
1487
1591
|
/**
|
|
1488
|
-
*
|
|
1592
|
+
* The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
|
|
1593
|
+
* @since v19.1.0, v18.13.0
|
|
1489
1594
|
*/
|
|
1490
1595
|
export class MIMEParams {
|
|
1491
1596
|
/**
|
|
@@ -1494,11 +1599,14 @@ declare module 'util' {
|
|
|
1494
1599
|
delete(name: string): void;
|
|
1495
1600
|
/**
|
|
1496
1601
|
* Returns an iterator over each of the name-value pairs in the parameters.
|
|
1602
|
+
* Each item of the iterator is a JavaScript `Array`. The first item of the array
|
|
1603
|
+
* is the `name`, the second item of the array is the `value`.
|
|
1497
1604
|
*/
|
|
1498
1605
|
entries(): IterableIterator<[name: string, value: string]>;
|
|
1499
1606
|
/**
|
|
1500
|
-
* Returns the value of the first name-value pair whose name is `name`.
|
|
1501
|
-
*
|
|
1607
|
+
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
1608
|
+
* are no such pairs, `null` is returned.
|
|
1609
|
+
* @return or `null` if there is no name-value pair with the given `name`.
|
|
1502
1610
|
*/
|
|
1503
1611
|
get(name: string): string | null;
|
|
1504
1612
|
/**
|
|
@@ -1507,12 +1615,33 @@ declare module 'util' {
|
|
|
1507
1615
|
has(name: string): boolean;
|
|
1508
1616
|
/**
|
|
1509
1617
|
* Returns an iterator over the names of each name-value pair.
|
|
1618
|
+
*
|
|
1619
|
+
* ```js
|
|
1620
|
+
* import { MIMEType } from 'node:util';
|
|
1621
|
+
*
|
|
1622
|
+
* const { params } = new MIMEType('text/plain;foo=0;bar=1');
|
|
1623
|
+
* for (const name of params.keys()) {
|
|
1624
|
+
* console.log(name);
|
|
1625
|
+
* }
|
|
1626
|
+
* // Prints:
|
|
1627
|
+
* // foo
|
|
1628
|
+
* // bar
|
|
1629
|
+
* ```
|
|
1510
1630
|
*/
|
|
1511
1631
|
keys(): IterableIterator<string>;
|
|
1512
1632
|
/**
|
|
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`,
|
|
1633
|
+
* 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
1634
|
* set the first such pair's value to `value`.
|
|
1635
|
+
*
|
|
1636
|
+
* ```js
|
|
1637
|
+
* import { MIMEType } from 'node:util';
|
|
1638
|
+
*
|
|
1639
|
+
* const { params } = new MIMEType('text/plain;foo=0;bar=1');
|
|
1640
|
+
* params.set('foo', 'def');
|
|
1641
|
+
* params.set('baz', 'xyz');
|
|
1642
|
+
* console.log(params.toString());
|
|
1643
|
+
* // Prints: foo=def;bar=1;baz=xyz
|
|
1644
|
+
* ```
|
|
1516
1645
|
*/
|
|
1517
1646
|
set(name: string, value: string): void;
|
|
1518
1647
|
/**
|
|
@@ -1525,11 +1654,11 @@ declare module 'util' {
|
|
|
1525
1654
|
[Symbol.iterator]: typeof MIMEParams.prototype.entries;
|
|
1526
1655
|
}
|
|
1527
1656
|
}
|
|
1528
|
-
declare module
|
|
1529
|
-
export * from
|
|
1657
|
+
declare module "util/types" {
|
|
1658
|
+
export * from "util/types";
|
|
1530
1659
|
}
|
|
1531
|
-
declare module
|
|
1532
|
-
import { KeyObject, webcrypto } from
|
|
1660
|
+
declare module "util/types" {
|
|
1661
|
+
import { KeyObject, webcrypto } from "node:crypto";
|
|
1533
1662
|
/**
|
|
1534
1663
|
* Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
|
|
1535
1664
|
* [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
|
|
@@ -1795,7 +1924,10 @@ declare module 'util/types' {
|
|
|
1795
1924
|
* ```
|
|
1796
1925
|
* @since v10.0.0
|
|
1797
1926
|
*/
|
|
1798
|
-
function isMap<T>(
|
|
1927
|
+
function isMap<T>(
|
|
1928
|
+
object: T | {},
|
|
1929
|
+
): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>)
|
|
1930
|
+
: Map<unknown, unknown>;
|
|
1799
1931
|
/**
|
|
1800
1932
|
* Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
|
|
1801
1933
|
*
|
|
@@ -1909,7 +2041,9 @@ declare module 'util/types' {
|
|
|
1909
2041
|
* ```
|
|
1910
2042
|
* @since v10.0.0
|
|
1911
2043
|
*/
|
|
1912
|
-
function isSet<T>(
|
|
2044
|
+
function isSet<T>(
|
|
2045
|
+
object: T | {},
|
|
2046
|
+
): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
|
|
1913
2047
|
/**
|
|
1914
2048
|
* Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
|
|
1915
2049
|
*
|
|
@@ -2044,9 +2178,9 @@ declare module 'util/types' {
|
|
|
2044
2178
|
*/
|
|
2045
2179
|
function isCryptoKey(object: unknown): object is webcrypto.CryptoKey;
|
|
2046
2180
|
}
|
|
2047
|
-
declare module
|
|
2048
|
-
export * from
|
|
2181
|
+
declare module "node:util" {
|
|
2182
|
+
export * from "util";
|
|
2049
2183
|
}
|
|
2050
|
-
declare module
|
|
2051
|
-
export * from
|
|
2184
|
+
declare module "node:util/types" {
|
|
2185
|
+
export * from "util/types";
|
|
2052
2186
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* ```
|
|
7
7
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
|
-
declare module
|
|
10
|
-
import { Readable } from
|
|
9
|
+
declare module "v8" {
|
|
10
|
+
import { Readable } from "node:stream";
|
|
11
11
|
interface HeapSpaceInfo {
|
|
12
12
|
space_name: string;
|
|
13
13
|
space_size: number;
|
|
@@ -630,6 +630,6 @@ declare module 'v8' {
|
|
|
630
630
|
*/
|
|
631
631
|
const promiseHooks: PromiseHooks;
|
|
632
632
|
}
|
|
633
|
-
declare module
|
|
634
|
-
export * from
|
|
633
|
+
declare module "node:v8" {
|
|
634
|
+
export * from "v8";
|
|
635
635
|
}
|