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,7 @@
|
|
|
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
38
|
// NOTE: This class is in the docs but is **not actually exported** by Node.
|
|
39
39
|
// If https://github.com/nodejs/node/issues/39903 gets resolved and Node
|
|
40
40
|
// actually starts exporting the class, uncomment below.
|
|
@@ -85,7 +85,7 @@ declare module 'events' {
|
|
|
85
85
|
listener: (...args: any[]) => void,
|
|
86
86
|
opts?: {
|
|
87
87
|
once: boolean;
|
|
88
|
-
}
|
|
88
|
+
},
|
|
89
89
|
): any;
|
|
90
90
|
}
|
|
91
91
|
interface StaticEventEmitterOptions {
|
|
@@ -186,7 +186,11 @@ declare module 'events' {
|
|
|
186
186
|
* ```
|
|
187
187
|
* @since v11.13.0, v10.16.0
|
|
188
188
|
*/
|
|
189
|
-
static once(
|
|
189
|
+
static once(
|
|
190
|
+
emitter: _NodeEventTarget,
|
|
191
|
+
eventName: string | symbol,
|
|
192
|
+
options?: StaticEventEmitterOptions,
|
|
193
|
+
): Promise<any[]>;
|
|
190
194
|
static once(emitter: _DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
|
|
191
195
|
/**
|
|
192
196
|
* ```js
|
|
@@ -247,7 +251,11 @@ declare module 'events' {
|
|
|
247
251
|
* @param eventName The name of the event being listened for
|
|
248
252
|
* @return that iterates `eventName` events emitted by the `emitter`
|
|
249
253
|
*/
|
|
250
|
-
static on(
|
|
254
|
+
static on(
|
|
255
|
+
emitter: NodeJS.EventEmitter,
|
|
256
|
+
eventName: string,
|
|
257
|
+
options?: StaticEventEmitterOptions,
|
|
258
|
+
): AsyncIterableIterator<any>;
|
|
251
259
|
/**
|
|
252
260
|
* A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
|
|
253
261
|
*
|
|
@@ -294,6 +302,35 @@ declare module 'events' {
|
|
|
294
302
|
* @since v15.2.0, v14.17.0
|
|
295
303
|
*/
|
|
296
304
|
static getEventListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
|
|
305
|
+
/**
|
|
306
|
+
* Returns the currently set max amount of listeners.
|
|
307
|
+
*
|
|
308
|
+
* For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on
|
|
309
|
+
* the emitter.
|
|
310
|
+
*
|
|
311
|
+
* For `EventTarget`s this is the only way to get the max event listeners for the
|
|
312
|
+
* event target. If the number of event handlers on a single EventTarget exceeds
|
|
313
|
+
* the max set, the EventTarget will print a warning.
|
|
314
|
+
*
|
|
315
|
+
* ```js
|
|
316
|
+
* import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';
|
|
317
|
+
*
|
|
318
|
+
* {
|
|
319
|
+
* const ee = new EventEmitter();
|
|
320
|
+
* console.log(getMaxListeners(ee)); // 10
|
|
321
|
+
* setMaxListeners(11, ee);
|
|
322
|
+
* console.log(getMaxListeners(ee)); // 11
|
|
323
|
+
* }
|
|
324
|
+
* {
|
|
325
|
+
* const et = new EventTarget();
|
|
326
|
+
* console.log(getMaxListeners(et)); // 10
|
|
327
|
+
* setMaxListeners(11, et);
|
|
328
|
+
* console.log(getMaxListeners(et)); // 11
|
|
329
|
+
* }
|
|
330
|
+
* ```
|
|
331
|
+
* @since v19.9.0
|
|
332
|
+
*/
|
|
333
|
+
static getMaxListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter): number;
|
|
297
334
|
/**
|
|
298
335
|
* ```js
|
|
299
336
|
* import { setMaxListeners, EventEmitter } from 'node:events';
|
|
@@ -309,6 +346,41 @@ declare module 'events' {
|
|
|
309
346
|
* objects.
|
|
310
347
|
*/
|
|
311
348
|
static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
|
|
349
|
+
/**
|
|
350
|
+
* Listens once to the `abort` event on the provided `signal`.
|
|
351
|
+
*
|
|
352
|
+
* Listening to the `abort` event on abort signals is unsafe and may
|
|
353
|
+
* lead to resource leaks since another third party with the signal can
|
|
354
|
+
* call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change
|
|
355
|
+
* this since it would violate the web standard. Additionally, the original
|
|
356
|
+
* API makes it easy to forget to remove listeners.
|
|
357
|
+
*
|
|
358
|
+
* This API allows safely using `AbortSignal`s in Node.js APIs by solving these
|
|
359
|
+
* two issues by listening to the event such that `stopImmediatePropagation` does
|
|
360
|
+
* not prevent the listener from running.
|
|
361
|
+
*
|
|
362
|
+
* Returns a disposable so that it may be unsubscribed from more easily.
|
|
363
|
+
*
|
|
364
|
+
* ```js
|
|
365
|
+
* import { addAbortListener } from 'node:events';
|
|
366
|
+
*
|
|
367
|
+
* function example(signal) {
|
|
368
|
+
* let disposable;
|
|
369
|
+
* try {
|
|
370
|
+
* signal.addEventListener('abort', (e) => e.stopImmediatePropagation());
|
|
371
|
+
* disposable = addAbortListener(signal, (e) => {
|
|
372
|
+
* // Do something when signal is aborted.
|
|
373
|
+
* });
|
|
374
|
+
* } finally {
|
|
375
|
+
* disposable?.[Symbol.dispose]();
|
|
376
|
+
* }
|
|
377
|
+
* }
|
|
378
|
+
* ```
|
|
379
|
+
* @since v20.5.0
|
|
380
|
+
* @experimental
|
|
381
|
+
* @return that removes the `abort` listener.
|
|
382
|
+
*/
|
|
383
|
+
static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
|
|
312
384
|
/**
|
|
313
385
|
* 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
386
|
*
|
|
@@ -369,7 +441,7 @@ declare module 'events' {
|
|
|
369
441
|
*/
|
|
370
442
|
static defaultMaxListeners: number;
|
|
371
443
|
}
|
|
372
|
-
import internal = require(
|
|
444
|
+
import internal = require("node:events");
|
|
373
445
|
namespace EventEmitter {
|
|
374
446
|
// Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4
|
|
375
447
|
export { internal as EventEmitter };
|
|
@@ -718,7 +790,7 @@ declare module 'events' {
|
|
|
718
790
|
}
|
|
719
791
|
export = EventEmitter;
|
|
720
792
|
}
|
|
721
|
-
declare module
|
|
722
|
-
import events = require(
|
|
793
|
+
declare module "node:events" {
|
|
794
|
+
import events = require("events");
|
|
723
795
|
export = events;
|
|
724
796
|
}
|
package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts
CHANGED
|
@@ -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
|
|
@@ -720,7 +744,8 @@ declare module 'fs/promises' {
|
|
|
720
744
|
* autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
|
|
721
745
|
* exist, `'file'` will be used. Windows junction points require the destination
|
|
722
746
|
* path to be absolute. When using `'junction'`, the `target` argument will
|
|
723
|
-
* automatically be normalized to absolute path.
|
|
747
|
+
* automatically be normalized to absolute path. Junction points on NTFS volumes
|
|
748
|
+
* can only point to directories.
|
|
724
749
|
* @since v10.0.0
|
|
725
750
|
* @param [type='null']
|
|
726
751
|
* @return Fulfills with `undefined` upon success.
|
|
@@ -737,13 +762,13 @@ declare module 'fs/promises' {
|
|
|
737
762
|
path: PathLike,
|
|
738
763
|
opts?: StatOptions & {
|
|
739
764
|
bigint?: false | undefined;
|
|
740
|
-
}
|
|
765
|
+
},
|
|
741
766
|
): Promise<Stats>;
|
|
742
767
|
function lstat(
|
|
743
768
|
path: PathLike,
|
|
744
769
|
opts: StatOptions & {
|
|
745
770
|
bigint: true;
|
|
746
|
-
}
|
|
771
|
+
},
|
|
747
772
|
): Promise<BigIntStats>;
|
|
748
773
|
function lstat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
749
774
|
/**
|
|
@@ -754,13 +779,13 @@ declare module 'fs/promises' {
|
|
|
754
779
|
path: PathLike,
|
|
755
780
|
opts?: StatOptions & {
|
|
756
781
|
bigint?: false | undefined;
|
|
757
|
-
}
|
|
782
|
+
},
|
|
758
783
|
): Promise<Stats>;
|
|
759
784
|
function stat(
|
|
760
785
|
path: PathLike,
|
|
761
786
|
opts: StatOptions & {
|
|
762
787
|
bigint: true;
|
|
763
|
-
}
|
|
788
|
+
},
|
|
764
789
|
): Promise<BigIntStats>;
|
|
765
790
|
function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
766
791
|
/**
|
|
@@ -771,13 +796,13 @@ declare module 'fs/promises' {
|
|
|
771
796
|
path: PathLike,
|
|
772
797
|
opts?: StatFsOptions & {
|
|
773
798
|
bigint?: false | undefined;
|
|
774
|
-
}
|
|
799
|
+
},
|
|
775
800
|
): Promise<StatsFs>;
|
|
776
801
|
function statfs(
|
|
777
802
|
path: PathLike,
|
|
778
803
|
opts: StatFsOptions & {
|
|
779
804
|
bigint: true;
|
|
780
|
-
}
|
|
805
|
+
},
|
|
781
806
|
): Promise<BigIntStatsFs>;
|
|
782
807
|
function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
|
|
783
808
|
/**
|
|
@@ -868,7 +893,10 @@ declare module 'fs/promises' {
|
|
|
868
893
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
869
894
|
* @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
|
|
870
895
|
*/
|
|
871
|
-
function realpath(
|
|
896
|
+
function realpath(
|
|
897
|
+
path: PathLike,
|
|
898
|
+
options?: ObjectEncodingOptions | BufferEncoding | null,
|
|
899
|
+
): Promise<string | Buffer>;
|
|
872
900
|
/**
|
|
873
901
|
* Creates a unique temporary directory. A unique directory name is generated by
|
|
874
902
|
* appending six random characters to the end of the provided `prefix`. Due to
|
|
@@ -963,14 +991,19 @@ declare module 'fs/promises' {
|
|
|
963
991
|
*/
|
|
964
992
|
function writeFile(
|
|
965
993
|
file: PathLike | FileHandle,
|
|
966
|
-
data:
|
|
994
|
+
data:
|
|
995
|
+
| string
|
|
996
|
+
| NodeJS.ArrayBufferView
|
|
997
|
+
| Iterable<string | NodeJS.ArrayBufferView>
|
|
998
|
+
| AsyncIterable<string | NodeJS.ArrayBufferView>
|
|
999
|
+
| Stream,
|
|
967
1000
|
options?:
|
|
968
1001
|
| (ObjectEncodingOptions & {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1002
|
+
mode?: Mode | undefined;
|
|
1003
|
+
flag?: OpenMode | undefined;
|
|
1004
|
+
} & Abortable)
|
|
972
1005
|
| BufferEncoding
|
|
973
|
-
| null
|
|
1006
|
+
| null,
|
|
974
1007
|
): Promise<void>;
|
|
975
1008
|
/**
|
|
976
1009
|
* Asynchronously append data to a file, creating the file if it does not yet
|
|
@@ -986,7 +1019,11 @@ declare module 'fs/promises' {
|
|
|
986
1019
|
* @param path filename or {FileHandle}
|
|
987
1020
|
* @return Fulfills with `undefined` upon success.
|
|
988
1021
|
*/
|
|
989
|
-
function appendFile(
|
|
1022
|
+
function appendFile(
|
|
1023
|
+
path: PathLike | FileHandle,
|
|
1024
|
+
data: string | Uint8Array,
|
|
1025
|
+
options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null,
|
|
1026
|
+
): Promise<void>;
|
|
990
1027
|
/**
|
|
991
1028
|
* Asynchronously reads the entire contents of a file.
|
|
992
1029
|
*
|
|
@@ -1047,10 +1084,10 @@ declare module 'fs/promises' {
|
|
|
1047
1084
|
path: PathLike | FileHandle,
|
|
1048
1085
|
options?:
|
|
1049
1086
|
| ({
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
| null
|
|
1087
|
+
encoding?: null | undefined;
|
|
1088
|
+
flag?: OpenMode | undefined;
|
|
1089
|
+
} & Abortable)
|
|
1090
|
+
| null,
|
|
1054
1091
|
): Promise<Buffer>;
|
|
1055
1092
|
/**
|
|
1056
1093
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -1063,10 +1100,10 @@ declare module 'fs/promises' {
|
|
|
1063
1100
|
path: PathLike | FileHandle,
|
|
1064
1101
|
options:
|
|
1065
1102
|
| ({
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
| BufferEncoding
|
|
1103
|
+
encoding: BufferEncoding;
|
|
1104
|
+
flag?: OpenMode | undefined;
|
|
1105
|
+
} & Abortable)
|
|
1106
|
+
| BufferEncoding,
|
|
1070
1107
|
): Promise<string>;
|
|
1071
1108
|
/**
|
|
1072
1109
|
* Asynchronously reads the entire contents of a file.
|
|
@@ -1078,12 +1115,15 @@ declare module 'fs/promises' {
|
|
|
1078
1115
|
function readFile(
|
|
1079
1116
|
path: PathLike | FileHandle,
|
|
1080
1117
|
options?:
|
|
1081
|
-
| (
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1118
|
+
| (
|
|
1119
|
+
& ObjectEncodingOptions
|
|
1120
|
+
& Abortable
|
|
1121
|
+
& {
|
|
1122
|
+
flag?: OpenMode | undefined;
|
|
1123
|
+
}
|
|
1124
|
+
)
|
|
1085
1125
|
| BufferEncoding
|
|
1086
|
-
| null
|
|
1126
|
+
| null,
|
|
1087
1127
|
): Promise<string | Buffer>;
|
|
1088
1128
|
/**
|
|
1089
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.
|
|
@@ -1148,9 +1188,9 @@ declare module 'fs/promises' {
|
|
|
1148
1188
|
filename: PathLike,
|
|
1149
1189
|
options:
|
|
1150
1190
|
| (WatchOptions & {
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
|
1191
|
+
encoding: "buffer";
|
|
1192
|
+
})
|
|
1193
|
+
| "buffer",
|
|
1154
1194
|
): AsyncIterable<FileChangeInfo<Buffer>>;
|
|
1155
1195
|
/**
|
|
1156
1196
|
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
|
|
@@ -1169,7 +1209,10 @@ declare module 'fs/promises' {
|
|
|
1169
1209
|
* If `persistent` is not supplied, the default of `true` is used.
|
|
1170
1210
|
* If `recursive` is not supplied, the default of `false` is used.
|
|
1171
1211
|
*/
|
|
1172
|
-
function watch(
|
|
1212
|
+
function watch(
|
|
1213
|
+
filename: PathLike,
|
|
1214
|
+
options: WatchOptions | string,
|
|
1215
|
+
): AsyncIterable<FileChangeInfo<string>> | AsyncIterable<FileChangeInfo<Buffer>>;
|
|
1173
1216
|
/**
|
|
1174
1217
|
* Asynchronously copies the entire directory structure from `src` to `dest`,
|
|
1175
1218
|
* including subdirectories and files.
|
|
@@ -1184,6 +1227,6 @@ declare module 'fs/promises' {
|
|
|
1184
1227
|
*/
|
|
1185
1228
|
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1186
1229
|
}
|
|
1187
|
-
declare module
|
|
1188
|
-
export * from
|
|
1230
|
+
declare module "node:fs/promises" {
|
|
1231
|
+
export * from "fs/promises";
|
|
1189
1232
|
}
|