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
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
* ```
|
|
35
35
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/events.js)
|
|
36
36
|
*/
|
|
37
|
-
declare module
|
|
37
|
+
declare module "events" {
|
|
38
|
+
import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
|
|
38
39
|
// NOTE: This class is in the docs but is **not actually exported** by Node.
|
|
39
40
|
// If https://github.com/nodejs/node/issues/39903 gets resolved and Node
|
|
40
41
|
// actually starts exporting the class, uncomment below.
|
|
@@ -85,7 +86,7 @@ declare module 'events' {
|
|
|
85
86
|
listener: (...args: any[]) => void,
|
|
86
87
|
opts?: {
|
|
87
88
|
once: boolean;
|
|
88
|
-
}
|
|
89
|
+
},
|
|
89
90
|
): any;
|
|
90
91
|
}
|
|
91
92
|
interface StaticEventEmitterOptions {
|
|
@@ -107,6 +108,9 @@ declare module 'events' {
|
|
|
107
108
|
*/
|
|
108
109
|
class EventEmitter {
|
|
109
110
|
constructor(options?: EventEmitterOptions);
|
|
111
|
+
|
|
112
|
+
[EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
|
|
113
|
+
|
|
110
114
|
/**
|
|
111
115
|
* Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
|
|
112
116
|
* event or that is rejected if the `EventEmitter` emits `'error'` while waiting.
|
|
@@ -186,7 +190,11 @@ declare module 'events' {
|
|
|
186
190
|
* ```
|
|
187
191
|
* @since v11.13.0, v10.16.0
|
|
188
192
|
*/
|
|
189
|
-
static once(
|
|
193
|
+
static once(
|
|
194
|
+
emitter: _NodeEventTarget,
|
|
195
|
+
eventName: string | symbol,
|
|
196
|
+
options?: StaticEventEmitterOptions,
|
|
197
|
+
): Promise<any[]>;
|
|
190
198
|
static once(emitter: _DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
|
|
191
199
|
/**
|
|
192
200
|
* ```js
|
|
@@ -247,7 +255,11 @@ declare module 'events' {
|
|
|
247
255
|
* @param eventName The name of the event being listened for
|
|
248
256
|
* @return that iterates `eventName` events emitted by the `emitter`
|
|
249
257
|
*/
|
|
250
|
-
static on(
|
|
258
|
+
static on(
|
|
259
|
+
emitter: NodeJS.EventEmitter,
|
|
260
|
+
eventName: string,
|
|
261
|
+
options?: StaticEventEmitterOptions,
|
|
262
|
+
): AsyncIterableIterator<any>;
|
|
251
263
|
/**
|
|
252
264
|
* A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
|
|
253
265
|
*
|
|
@@ -294,6 +306,35 @@ declare module 'events' {
|
|
|
294
306
|
* @since v15.2.0, v14.17.0
|
|
295
307
|
*/
|
|
296
308
|
static getEventListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
309
|
+
/**
|
|
310
|
+
* Returns the currently set max amount of listeners.
|
|
311
|
+
*
|
|
312
|
+
* For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on
|
|
313
|
+
* the emitter.
|
|
314
|
+
*
|
|
315
|
+
* For `EventTarget`s this is the only way to get the max event listeners for the
|
|
316
|
+
* event target. If the number of event handlers on a single EventTarget exceeds
|
|
317
|
+
* the max set, the EventTarget will print a warning.
|
|
318
|
+
*
|
|
319
|
+
* ```js
|
|
320
|
+
* import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
|
|
321
|
+
*
|
|
322
|
+
* {
|
|
323
|
+
* const ee = new EventEmitter();
|
|
324
|
+
* console.log(getMaxListeners(ee)); // 10
|
|
325
|
+
* setMaxListeners(11, ee);
|
|
326
|
+
* console.log(getMaxListeners(ee)); // 11
|
|
327
|
+
* }
|
|
328
|
+
* {
|
|
329
|
+
* const et = new EventTarget();
|
|
330
|
+
* console.log(getMaxListeners(et)); // 10
|
|
331
|
+
* setMaxListeners(11, et);
|
|
332
|
+
* console.log(getMaxListeners(et)); // 11
|
|
333
|
+
* }
|
|
334
|
+
* ```
|
|
335
|
+
* @since v19.9.0
|
|
336
|
+
*/
|
|
337
|
+
static getMaxListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter): number;
|
|
297
338
|
/**
|
|
298
339
|
* ```js
|
|
299
340
|
* import { setMaxListeners, EventEmitter } from 'node:events';
|
|
@@ -309,6 +350,41 @@ declare module 'events' {
|
|
|
309
350
|
* objects.
|
|
310
351
|
*/
|
|
311
352
|
static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
353
|
+
/**
|
|
354
|
+
* Listens once to the `abort` event on the provided `signal`.
|
|
355
|
+
*
|
|
356
|
+
* Listening to the `abort` event on abort signals is unsafe and may
|
|
357
|
+
* lead to resource leaks since another third party with the signal can
|
|
358
|
+
* call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change
|
|
359
|
+
* this since it would violate the web standard. Additionally, the original
|
|
360
|
+
* API makes it easy to forget to remove listeners.
|
|
361
|
+
*
|
|
362
|
+
* This API allows safely using `AbortSignal`s in Node.js APIs by solving these
|
|
363
|
+
* two issues by listening to the event such that `stopImmediatePropagation` does
|
|
364
|
+
* not prevent the listener from running.
|
|
365
|
+
*
|
|
366
|
+
* Returns a disposable so that it may be unsubscribed from more easily.
|
|
367
|
+
*
|
|
368
|
+
* ```js
|
|
369
|
+
* import { addAbortListener } from 'node:events';
|
|
370
|
+
*
|
|
371
|
+
* function example(signal) {
|
|
372
|
+
* let disposable;
|
|
373
|
+
* try {
|
|
374
|
+
* signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
|
|
375
|
+
* disposable = addAbortListener(signal, (e) => {
|
|
376
|
+
* // Do something when signal is aborted.
|
|
377
|
+
* });
|
|
378
|
+
* } finally {
|
|
379
|
+
* disposable?.[Symbol.dispose]();
|
|
380
|
+
* }
|
|
381
|
+
* }
|
|
382
|
+
* ```
|
|
383
|
+
* @since v20.5.0
|
|
384
|
+
* @experimental
|
|
385
|
+
* @return Disposable that removes the `abort` listener.
|
|
386
|
+
*/
|
|
387
|
+
static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
|
|
312
388
|
/**
|
|
313
389
|
* This symbol shall be used to install a listener for only monitoring `'error'`events. Listeners installed using this symbol are called before the regular`'error'` listeners are called.
|
|
314
390
|
*
|
|
@@ -369,7 +445,7 @@ declare module 'events' {
|
|
|
369
445
|
*/
|
|
370
446
|
static defaultMaxListeners: number;
|
|
371
447
|
}
|
|
372
|
-
import internal = require(
|
|
448
|
+
import internal = require("node:events");
|
|
373
449
|
namespace EventEmitter {
|
|
374
450
|
// Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
|
|
375
451
|
export { internal as EventEmitter };
|
|
@@ -379,10 +455,54 @@ declare module 'events' {
|
|
|
379
455
|
*/
|
|
380
456
|
signal?: AbortSignal | undefined;
|
|
381
457
|
}
|
|
458
|
+
|
|
459
|
+
export interface EventEmitterReferencingAsyncResource extends AsyncResource {
|
|
460
|
+
readonly eventEmitter: EventEmitterAsyncResource;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions {
|
|
464
|
+
/**
|
|
465
|
+
* The type of async event, this is required when instantiating `EventEmitterAsyncResource`
|
|
466
|
+
* directly rather than as a child class.
|
|
467
|
+
* @default new.target.name if instantiated as a child class.
|
|
468
|
+
*/
|
|
469
|
+
name?: string;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that require
|
|
474
|
+
* manual async tracking. Specifically, all events emitted by instances of
|
|
475
|
+
* `EventEmitterAsyncResource` will run within its async context.
|
|
476
|
+
*
|
|
477
|
+
* The EventEmitterAsyncResource class has the same methods and takes the
|
|
478
|
+
* same options as EventEmitter and AsyncResource themselves.
|
|
479
|
+
* @throws if `options.name` is not provided when instantiated directly.
|
|
480
|
+
* @since v17.4.0, v16.14.0
|
|
481
|
+
*/
|
|
482
|
+
export class EventEmitterAsyncResource extends EventEmitter {
|
|
483
|
+
/**
|
|
484
|
+
* @param options Only optional in child class.
|
|
485
|
+
*/
|
|
486
|
+
constructor(options?: EventEmitterAsyncResourceOptions);
|
|
487
|
+
/**
|
|
488
|
+
* Call all destroy hooks. This should only ever be called once. An
|
|
489
|
+
* error will be thrown if it is called more than once. This must be
|
|
490
|
+
* manually called. If the resource is left to be collected by the GC then
|
|
491
|
+
* the destroy hooks will never be called.
|
|
492
|
+
*/
|
|
493
|
+
emitDestroy(): void;
|
|
494
|
+
/** The unique asyncId assigned to the resource. */
|
|
495
|
+
readonly asyncId: number;
|
|
496
|
+
/** The same triggerAsyncId that is passed to the AsyncResource constructor. */
|
|
497
|
+
readonly triggerAsyncId: number;
|
|
498
|
+
/** The underlying AsyncResource */
|
|
499
|
+
readonly asyncResource: EventEmitterReferencingAsyncResource;
|
|
500
|
+
}
|
|
382
501
|
}
|
|
383
502
|
global {
|
|
384
503
|
namespace NodeJS {
|
|
385
504
|
interface EventEmitter {
|
|
505
|
+
[EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
|
|
386
506
|
/**
|
|
387
507
|
* Alias for `emitter.on(eventName, listener)`.
|
|
388
508
|
* @since v0.1.26
|
|
@@ -718,7 +838,7 @@ declare module 'events' {
|
|
|
718
838
|
}
|
|
719
839
|
export = EventEmitter;
|
|
720
840
|
}
|
|
721
|
-
declare module
|
|
722
|
-
import events = require(
|
|
841
|
+
declare module "node:events" {
|
|
842
|
+
import events = require("events");
|
|
723
843
|
export = events;
|
|
724
844
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* concurrent modifications on the same file or data corruption may occur.
|
|
9
9
|
* @since v10.0.0
|
|
10
10
|
*/
|
|
11
|
-
declare module
|
|
12
|
-
import { Abortable } from
|
|
13
|
-
import { Stream } from
|
|
14
|
-
import { ReadableStream } from
|
|
11
|
+
declare module "fs/promises" {
|
|
12
|
+
import { Abortable } from "node:events";
|
|
13
|
+
import { Stream } from "node:stream";
|
|
14
|
+
import { ReadableStream } from "node:stream/web";
|
|
15
15
|
import {
|
|
16
16
|
BigIntStats,
|
|
17
17
|
BigIntStatsFs,
|
|
@@ -30,8 +30,8 @@ declare module 'fs/promises' {
|
|
|
30
30
|
ReadVResult,
|
|
31
31
|
RmDirOptions,
|
|
32
32
|
RmOptions,
|
|
33
|
-
StatOptions,
|
|
34
33
|
StatFsOptions,
|
|
34
|
+
StatOptions,
|
|
35
35
|
Stats,
|
|
36
36
|
StatsFs,
|
|
37
37
|
TimeLike,
|
|
@@ -39,8 +39,8 @@ declare module 'fs/promises' {
|
|
|
39
39
|
WatchOptions,
|
|
40
40
|
WriteStream,
|
|
41
41
|
WriteVResult,
|
|
42
|
-
} from
|
|
43
|
-
import { Interface as ReadlineInterface } from
|
|
42
|
+
} from "node:fs";
|
|
43
|
+
import { Interface as ReadlineInterface } from "node:readline";
|
|
44
44
|
interface FileChangeInfo<T extends string | Buffer> {
|
|
45
45
|
eventType: WatchEventType;
|
|
46
46
|
filename: T | null;
|
|
@@ -81,6 +81,14 @@ declare module 'fs/promises' {
|
|
|
81
81
|
autoClose?: boolean | undefined;
|
|
82
82
|
emitClose?: boolean | undefined;
|
|
83
83
|
start?: number | undefined;
|
|
84
|
+
highWaterMark?: number | undefined;
|
|
85
|
+
}
|
|
86
|
+
interface ReadableWebStreamOptions {
|
|
87
|
+
/**
|
|
88
|
+
* Whether to open a normal or a `'bytes'` stream.
|
|
89
|
+
* @since v20.0.0
|
|
90
|
+
*/
|
|
91
|
+
type?: "bytes" | undefined;
|
|
84
92
|
}
|
|
85
93
|
// TODO: Add `EventEmitter` close
|
|
86
94
|
interface FileHandle {
|
|
@@ -97,7 +105,10 @@ declare module 'fs/promises' {
|
|
|
97
105
|
* @since v10.0.0
|
|
98
106
|
* @return Fulfills with `undefined` upon success.
|
|
99
107
|
*/
|
|
100
|
-
appendFile(
|
|
108
|
+
appendFile(
|
|
109
|
+
data: string | Uint8Array,
|
|
110
|
+
options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null,
|
|
111
|
+
): Promise<void>;
|
|
101
112
|
/**
|
|
102
113
|
* Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html).
|
|
103
114
|
* @since v10.0.0
|
|
@@ -214,7 +225,12 @@ declare module 'fs/promises' {
|
|
|
214
225
|
* integer, the current file position will remain unchanged.
|
|
215
226
|
* @return Fulfills upon success with an object with two properties:
|
|
216
227
|
*/
|
|
217
|
-
read<T extends NodeJS.ArrayBufferView>(
|
|
228
|
+
read<T extends NodeJS.ArrayBufferView>(
|
|
229
|
+
buffer: T,
|
|
230
|
+
offset?: number | null,
|
|
231
|
+
length?: number | null,
|
|
232
|
+
position?: number | null,
|
|
233
|
+
): Promise<FileReadResult<T>>;
|
|
218
234
|
read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
|
|
219
235
|
/**
|
|
220
236
|
* Returns a `ReadableStream` that may be used to read the files data.
|
|
@@ -240,7 +256,7 @@ declare module 'fs/promises' {
|
|
|
240
256
|
* @since v17.0.0
|
|
241
257
|
* @experimental
|
|
242
258
|
*/
|
|
243
|
-
readableWebStream(): ReadableStream;
|
|
259
|
+
readableWebStream(options?: ReadableWebStreamOptions): ReadableStream;
|
|
244
260
|
/**
|
|
245
261
|
* Asynchronously reads the entire contents of a file.
|
|
246
262
|
*
|
|
@@ -259,7 +275,7 @@ declare module 'fs/promises' {
|
|
|
259
275
|
options?: {
|
|
260
276
|
encoding?: null | undefined;
|
|
261
277
|
flag?: OpenMode | undefined;
|
|
262
|
-
} | null
|
|
278
|
+
} | null,
|
|
263
279
|
): Promise<Buffer>;
|
|
264
280
|
/**
|
|
265
281
|
* Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
|
|
@@ -270,10 +286,10 @@ declare module 'fs/promises' {
|
|
|
270
286
|
readFile(
|
|
271
287
|
options:
|
|
272
288
|
| {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
| BufferEncoding
|
|
289
|
+
encoding: BufferEncoding;
|
|
290
|
+
flag?: OpenMode | undefined;
|
|
291
|
+
}
|
|
292
|
+
| BufferEncoding,
|
|
277
293
|
): Promise<string>;
|
|
278
294
|
/**
|
|
279
295
|
* Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
|
|
@@ -284,10 +300,10 @@ declare module 'fs/promises' {
|
|
|
284
300
|
readFile(
|
|
285
301
|
options?:
|
|
286
302
|
| (ObjectEncodingOptions & {
|
|
287
|
-
|
|
288
|
-
|
|
303
|
+
flag?: OpenMode | undefined;
|
|
304
|
+
})
|
|
289
305
|
| BufferEncoding
|
|
290
|
-
| null
|
|
306
|
+
| null,
|
|
291
307
|
): Promise<string | Buffer>;
|
|
292
308
|
/**
|
|
293
309
|
* Convenience method to create a `readline` interface and stream over the file.
|
|
@@ -312,12 +328,12 @@ declare module 'fs/promises' {
|
|
|
312
328
|
stat(
|
|
313
329
|
opts?: StatOptions & {
|
|
314
330
|
bigint?: false | undefined;
|
|
315
|
-
}
|
|
331
|
+
},
|
|
316
332
|
): Promise<Stats>;
|
|
317
333
|
stat(
|
|
318
334
|
opts: StatOptions & {
|
|
319
335
|
bigint: true;
|
|
320
|
-
}
|
|
336
|
+
},
|
|
321
337
|
): Promise<BigIntStats>;
|
|
322
338
|
stat(opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
323
339
|
/**
|
|
@@ -372,7 +388,10 @@ declare module 'fs/promises' {
|
|
|
372
388
|
* beginning of the file.
|
|
373
389
|
* @since v10.0.0
|
|
374
390
|
*/
|
|
375
|
-
writeFile(
|
|
391
|
+
writeFile(
|
|
392
|
+
data: string | Uint8Array,
|
|
393
|
+
options?: (ObjectEncodingOptions & FlagAndOpenMode & Abortable) | BufferEncoding | null,
|
|
394
|
+
): Promise<void>;
|
|
376
395
|
/**
|
|
377
396
|
* Write `buffer` to the file.
|
|
378
397
|
*
|
|
@@ -395,7 +414,7 @@ declare module 'fs/promises' {
|
|
|
395
414
|
buffer: TBuffer,
|
|
396
415
|
offset?: number | null,
|
|
397
416
|
length?: number | null,
|
|
398
|
-
position?: number | null
|
|
417
|
+
position?: number | null,
|
|
399
418
|
): Promise<{
|
|
400
419
|
bytesWritten: number;
|
|
401
420
|
buffer: TBuffer;
|
|
@@ -403,7 +422,7 @@ declare module 'fs/promises' {
|
|
|
403
422
|
write(
|
|
404
423
|
data: string,
|
|
405
424
|
position?: number | null,
|
|
406
|
-
encoding?: BufferEncoding | null
|
|
425
|
+
encoding?: BufferEncoding | null,
|
|
407
426
|
): Promise<{
|
|
408
427
|
bytesWritten: number;
|
|
409
428
|
buffer: string;
|
|
@@ -449,6 +468,11 @@ declare module 'fs/promises' {
|
|
|
449
468
|
* @return Fulfills with `undefined` upon success.
|
|
450
469
|
*/
|
|
451
470
|
close(): Promise<void>;
|
|
471
|
+
/**
|
|
472
|
+
* An alias for {@link FileHandle.close()}.
|
|
473
|
+
* @since v20.4.0
|
|
474
|
+
*/
|
|
475
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
452
476
|
}
|
|
453
477
|
const constants: typeof fsConstants;
|
|
454
478
|
/**
|
|
@@ -589,7 +613,7 @@ declare module 'fs/promises' {
|
|
|
589
613
|
path: PathLike,
|
|
590
614
|
options: MakeDirectoryOptions & {
|
|
591
615
|
recursive: true;
|
|
592
|
-
}
|
|
616
|
+
},
|
|
593
617
|
): Promise<string | undefined>;
|
|
594
618
|
/**
|
|
595
619
|
* Asynchronous mkdir(2) - create a directory.
|
|
@@ -602,9 +626,9 @@ declare module 'fs/promises' {
|
|
|
602
626
|
options?:
|
|
603
627
|
| Mode
|
|
604
628
|
| (MakeDirectoryOptions & {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
| null
|
|
629
|
+
recursive?: false | undefined;
|
|
630
|
+
})
|
|
631
|
+
| null,
|
|
608
632
|
): Promise<void>;
|
|
609
633
|
/**
|
|
610
634
|
* Asynchronous mkdir(2) - create a directory.
|
|
@@ -641,11 +665,11 @@ declare module 'fs/promises' {
|
|
|
641
665
|
path: PathLike,
|
|
642
666
|
options?:
|
|
643
667
|
| (ObjectEncodingOptions & {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
668
|
+
withFileTypes?: false | undefined;
|
|
669
|
+
recursive?: boolean | undefined;
|
|
670
|
+
})
|
|
647
671
|
| BufferEncoding
|
|
648
|
-
| null
|
|
672
|
+
| null,
|
|
649
673
|
): Promise<string[]>;
|
|
650
674
|
/**
|
|
651
675
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -656,11 +680,11 @@ declare module 'fs/promises' {
|
|
|
656
680
|
path: PathLike,
|
|
657
681
|
options:
|
|
658
682
|
| {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
|
683
|
+
encoding: "buffer";
|
|
684
|
+
withFileTypes?: false | undefined;
|
|
685
|
+
recursive?: boolean | undefined;
|
|
686
|
+
}
|
|
687
|
+
| "buffer",
|
|
664
688
|
): Promise<Buffer[]>;
|
|
665
689
|
/**
|
|
666
690
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -671,11 +695,11 @@ declare module 'fs/promises' {
|
|
|
671
695
|
path: PathLike,
|
|
672
696
|
options?:
|
|
673
697
|
| (ObjectEncodingOptions & {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
698
|
+
withFileTypes?: false | undefined;
|
|
699
|
+
recursive?: boolean | undefined;
|
|
700
|
+
})
|
|
677
701
|
| BufferEncoding
|
|
678
|
-
| null
|
|
702
|
+
| null,
|
|
679
703
|
): Promise<string[] | Buffer[]>;
|
|
680
704
|
/**
|
|
681
705
|
* Asynchronous readdir(3) - read a directory.
|
|
@@ -687,7 +711,7 @@ declare module 'fs/promises' {
|
|
|
687
711
|
options: ObjectEncodingOptions & {
|
|
688
712
|
withFileTypes: true;
|
|
689
713
|
recursive?: boolean | undefined;
|
|
690
|
-
}
|
|
714
|
+
},
|
|
691
715
|
): Promise<Dirent[]>;
|
|
692
716
|
/**
|
|
693
717
|
* Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is
|
|
@@ -738,13 +762,13 @@ declare module 'fs/promises' {
|
|
|
738
762
|
path: PathLike,
|
|
739
763
|
opts?: StatOptions & {
|
|
740
764
|
bigint?: false | undefined;
|
|
741
|
-
}
|
|
765
|
+
},
|
|
742
766
|
): Promise<Stats>;
|
|
743
767
|
function lstat(
|
|
744
768
|
path: PathLike,
|
|
745
769
|
opts: StatOptions & {
|
|
746
770
|
bigint: true;
|
|
747
|
-
}
|
|
771
|
+
},
|
|
748
772
|
): Promise<BigIntStats>;
|
|
749
773
|
function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
750
774
|
/**
|
|
@@ -755,13 +779,13 @@ declare module 'fs/promises' {
|
|
|
755
779
|
path: PathLike,
|
|
756
780
|
opts?: StatOptions & {
|
|
757
781
|
bigint?: false | undefined;
|
|
758
|
-
}
|
|
782
|
+
},
|
|
759
783
|
): Promise<Stats>;
|
|
760
784
|
function stat(
|
|
761
785
|
path: PathLike,
|
|
762
786
|
opts: StatOptions & {
|
|
763
787
|
bigint: true;
|
|
764
|
-
}
|
|
788
|
+
},
|
|
765
789
|
): Promise<BigIntStats>;
|
|
766
790
|
function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
767
791
|
/**
|
|
@@ -772,13 +796,13 @@ declare module 'fs/promises' {
|
|
|
772
796
|
path: PathLike,
|
|
773
797
|
opts?: StatFsOptions & {
|
|
774
798
|
bigint?: false | undefined;
|
|
775
|
-
}
|
|
799
|
+
},
|
|
776
800
|
): Promise<StatsFs>;
|
|
777
801
|
function statfs(
|
|
778
802
|
path: PathLike,
|
|
779
803
|
opts: StatFsOptions & {
|
|
780
804
|
bigint: true;
|
|
781
|
-
}
|
|
805
|
+
},
|
|
782
806
|
): Promise<BigIntStatsFs>;
|
|
783
807
|
function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
|
|
784
808
|
/**
|
|
@@ -869,7 +893,10 @@ declare module 'fs/promises' {
|
|
|
869
893
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
870
894
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
871
895
|
*/
|
|
872
|
-
function realpath(
|
|
896
|
+
function realpath(
|
|
897
|
+
path: PathLike,
|
|
898
|
+
options?: ObjectEncodingOptions | BufferEncoding | null,
|
|
899
|
+
): Promise<string | Buffer>;
|
|
873
900
|
/**
|
|
874
901
|
* Creates a unique temporary directory. A unique directory name is generated by
|
|
875
902
|
* appending six random characters to the end of the provided `prefix`. Due to
|
|
@@ -964,14 +991,19 @@ declare module 'fs/promises' {
|
|
|
964
991
|
*/
|
|
965
992
|
function writeFile(
|
|
966
993
|
file: PathLike | FileHandle,
|
|
967
|
-
data:
|
|
994
|
+
data:
|
|
995
|
+
| string
|
|
996
|
+
| NodeJS.ArrayBufferView
|
|
997
|
+
| Iterable<string | NodeJS.ArrayBufferView>
|
|
998
|
+
| AsyncIterable<string | NodeJS.ArrayBufferView>
|
|
999
|
+
| Stream,
|
|
968
1000
|
options?:
|
|
969
1001
|
| (ObjectEncodingOptions & {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1002
|
+
mode?: Mode | undefined;
|
|
1003
|
+
flag?: OpenMode | undefined;
|
|
1004
|
+
} & Abortable)
|
|
973
1005
|
| BufferEncoding
|
|
974
|
-
| null
|
|
1006
|
+
| null,
|
|
975
1007
|
): Promise<void>;
|
|
976
1008
|
/**
|
|
977
1009
|
* Asynchronously append data to a file, creating the file if it does not yet
|
|
@@ -987,7 +1019,11 @@ declare module 'fs/promises' {
|
|
|
987
1019
|
* @param path filename or {FileHandle}
|
|
988
1020
|
* @return Fulfills with `undefined` upon success.
|
|
989
1021
|
*/
|
|
990
|
-
function appendFile(
|
|
1022
|
+
function appendFile(
|
|
1023
|
+
path: PathLike | FileHandle,
|
|
1024
|
+
data: string | Uint8Array,
|
|
1025
|
+
options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null,
|
|
1026
|
+
): Promise<void>;
|
|
991
1027
|
/**
|
|
992
1028
|
* Asynchronously reads the entire contents of a file.
|
|
993
1029
|
*
|
|
@@ -1048,10 +1084,10 @@ declare module 'fs/promises' {
|
|
|
1048
1084
|
path: PathLike | FileHandle,
|
|
1049
1085
|
options?:
|
|
1050
1086
|
| ({
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
| null
|
|
1087
|
+
encoding?: null | undefined;
|
|
1088
|
+
flag?: OpenMode | undefined;
|
|
1089
|
+
} & Abortable)
|
|
1090
|
+
| null,
|
|
1055
1091
|
): Promise<Buffer>;
|
|
1056
1092
|
/**
|
|
1057
1093
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -1064,10 +1100,10 @@ declare module 'fs/promises' {
|
|
|
1064
1100
|
path: PathLike | FileHandle,
|
|
1065
1101
|
options:
|
|
1066
1102
|
| ({
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
| BufferEncoding
|
|
1103
|
+
encoding: BufferEncoding;
|
|
1104
|
+
flag?: OpenMode | undefined;
|
|
1105
|
+
} & Abortable)
|
|
1106
|
+
| BufferEncoding,
|
|
1071
1107
|
): Promise<string>;
|
|
1072
1108
|
/**
|
|
1073
1109
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -1079,12 +1115,15 @@ declare module 'fs/promises' {
|
|
|
1079
1115
|
function readFile(
|
|
1080
1116
|
path: PathLike | FileHandle,
|
|
1081
1117
|
options?:
|
|
1082
|
-
| (
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1118
|
+
| (
|
|
1119
|
+
& ObjectEncodingOptions
|
|
1120
|
+
& Abortable
|
|
1121
|
+
& {
|
|
1122
|
+
flag?: OpenMode | undefined;
|
|
1123
|
+
}
|
|
1124
|
+
)
|
|
1086
1125
|
| BufferEncoding
|
|
1087
|
-
| null
|
|
1126
|
+
| null,
|
|
1088
1127
|
): Promise<string | Buffer>;
|
|
1089
1128
|
/**
|
|
1090
1129
|
* Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail.
|
|
@@ -1149,9 +1188,9 @@ declare module 'fs/promises' {
|
|
|
1149
1188
|
filename: PathLike,
|
|
1150
1189
|
options:
|
|
1151
1190
|
| (WatchOptions & {
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
|
1191
|
+
encoding: "buffer";
|
|
1192
|
+
})
|
|
1193
|
+
| "buffer",
|
|
1155
1194
|
): AsyncIterable<FileChangeInfo<Buffer>>;
|
|
1156
1195
|
/**
|
|
1157
1196
|
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
@@ -1170,7 +1209,10 @@ declare module 'fs/promises' {
|
|
|
1170
1209
|
* If `persistent` is not supplied, the default of `true` is used.
|
|
1171
1210
|
* If `recursive` is not supplied, the default of `false` is used.
|
|
1172
1211
|
*/
|
|
1173
|
-
function watch(
|
|
1212
|
+
function watch(
|
|
1213
|
+
filename: PathLike,
|
|
1214
|
+
options: WatchOptions | string,
|
|
1215
|
+
): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<Buffer>>;
|
|
1174
1216
|
/**
|
|
1175
1217
|
* Asynchronously copies the entire directory structure from `src` to `dest`,
|
|
1176
1218
|
* including subdirectories and files.
|
|
@@ -1185,6 +1227,6 @@ declare module 'fs/promises' {
|
|
|
1185
1227
|
*/
|
|
1186
1228
|
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1187
1229
|
}
|
|
1188
|
-
declare module
|
|
1189
|
-
export * from
|
|
1230
|
+
declare module "node:fs/promises" {
|
|
1231
|
+
export * from "fs/promises";
|
|
1190
1232
|
}
|