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
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
* stalling the event loop while spawned processes complete.
|
|
66
66
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/child_process.js)
|
|
67
67
|
*/
|
|
68
|
-
declare module
|
|
69
|
-
import { ObjectEncodingOptions } from
|
|
70
|
-
import {
|
|
71
|
-
import * as net from
|
|
72
|
-
import {
|
|
73
|
-
import { URL } from
|
|
68
|
+
declare module "child_process" {
|
|
69
|
+
import { ObjectEncodingOptions } from "node:fs";
|
|
70
|
+
import { Abortable, EventEmitter } from "node:events";
|
|
71
|
+
import * as net from "node:net";
|
|
72
|
+
import { Pipe, Readable, Stream, Writable } from "node:stream";
|
|
73
|
+
import { URL } from "node:url";
|
|
74
74
|
type Serializable = string | object | number | boolean | bigint;
|
|
75
75
|
type SendHandle = net.Socket | net.Server;
|
|
76
76
|
/**
|
|
@@ -186,7 +186,7 @@ declare module 'child_process' {
|
|
|
186
186
|
// stderr
|
|
187
187
|
Readable | Writable | null | undefined,
|
|
188
188
|
// extra
|
|
189
|
-
Readable | Writable | null | undefined // extra
|
|
189
|
+
Readable | Writable | null | undefined, // extra
|
|
190
190
|
];
|
|
191
191
|
/**
|
|
192
192
|
* The `subprocess.killed` property indicates whether the child process
|
|
@@ -302,6 +302,11 @@ declare module 'child_process' {
|
|
|
302
302
|
* @since v0.1.90
|
|
303
303
|
*/
|
|
304
304
|
kill(signal?: NodeJS.Signals | number): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Calls {@link ChildProcess.kill} with `'SIGTERM'`.
|
|
307
|
+
* @since v20.5.0
|
|
308
|
+
*/
|
|
309
|
+
[Symbol.dispose](): void;
|
|
305
310
|
/**
|
|
306
311
|
* When an IPC channel has been established between the parent and child (
|
|
307
312
|
* i.e. when using {@link fork}), the `subprocess.send()` method can
|
|
@@ -453,7 +458,12 @@ declare module 'child_process' {
|
|
|
453
458
|
*/
|
|
454
459
|
send(message: Serializable, callback?: (error: Error | null) => void): boolean;
|
|
455
460
|
send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean;
|
|
456
|
-
send(
|
|
461
|
+
send(
|
|
462
|
+
message: Serializable,
|
|
463
|
+
sendHandle?: SendHandle,
|
|
464
|
+
options?: MessageOptions,
|
|
465
|
+
callback?: (error: Error | null) => void,
|
|
466
|
+
): boolean;
|
|
457
467
|
/**
|
|
458
468
|
* Closes the IPC channel between parent and child, allowing the child to exit
|
|
459
469
|
* gracefully once there are no other connections keeping it alive. After calling
|
|
@@ -519,47 +529,53 @@ declare module 'child_process' {
|
|
|
519
529
|
* 6. spawn
|
|
520
530
|
*/
|
|
521
531
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
522
|
-
addListener(event:
|
|
523
|
-
addListener(event:
|
|
524
|
-
addListener(event:
|
|
525
|
-
addListener(event:
|
|
526
|
-
addListener(event:
|
|
527
|
-
addListener(event:
|
|
532
|
+
addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
533
|
+
addListener(event: "disconnect", listener: () => void): this;
|
|
534
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
535
|
+
addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
536
|
+
addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
537
|
+
addListener(event: "spawn", listener: () => void): this;
|
|
528
538
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
529
|
-
emit(event:
|
|
530
|
-
emit(event:
|
|
531
|
-
emit(event:
|
|
532
|
-
emit(event:
|
|
533
|
-
emit(event:
|
|
534
|
-
emit(event:
|
|
539
|
+
emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean;
|
|
540
|
+
emit(event: "disconnect"): boolean;
|
|
541
|
+
emit(event: "error", err: Error): boolean;
|
|
542
|
+
emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean;
|
|
543
|
+
emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean;
|
|
544
|
+
emit(event: "spawn", listener: () => void): boolean;
|
|
535
545
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
536
|
-
on(event:
|
|
537
|
-
on(event:
|
|
538
|
-
on(event:
|
|
539
|
-
on(event:
|
|
540
|
-
on(event:
|
|
541
|
-
on(event:
|
|
546
|
+
on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
547
|
+
on(event: "disconnect", listener: () => void): this;
|
|
548
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
549
|
+
on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
550
|
+
on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
551
|
+
on(event: "spawn", listener: () => void): this;
|
|
542
552
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
543
|
-
once(event:
|
|
544
|
-
once(event:
|
|
545
|
-
once(event:
|
|
546
|
-
once(event:
|
|
547
|
-
once(event:
|
|
548
|
-
once(event:
|
|
553
|
+
once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
554
|
+
once(event: "disconnect", listener: () => void): this;
|
|
555
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
556
|
+
once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
557
|
+
once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
558
|
+
once(event: "spawn", listener: () => void): this;
|
|
549
559
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
550
|
-
prependListener(event:
|
|
551
|
-
prependListener(event:
|
|
552
|
-
prependListener(event:
|
|
553
|
-
prependListener(event:
|
|
554
|
-
prependListener(event:
|
|
555
|
-
prependListener(event:
|
|
560
|
+
prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
561
|
+
prependListener(event: "disconnect", listener: () => void): this;
|
|
562
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
563
|
+
prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this;
|
|
564
|
+
prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
565
|
+
prependListener(event: "spawn", listener: () => void): this;
|
|
556
566
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
557
|
-
prependOnceListener(
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
prependOnceListener(event:
|
|
562
|
-
prependOnceListener(event:
|
|
567
|
+
prependOnceListener(
|
|
568
|
+
event: "close",
|
|
569
|
+
listener: (code: number | null, signal: NodeJS.Signals | null) => void,
|
|
570
|
+
): this;
|
|
571
|
+
prependOnceListener(event: "disconnect", listener: () => void): this;
|
|
572
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
573
|
+
prependOnceListener(
|
|
574
|
+
event: "exit",
|
|
575
|
+
listener: (code: number | null, signal: NodeJS.Signals | null) => void,
|
|
576
|
+
): this;
|
|
577
|
+
prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this;
|
|
578
|
+
prependOnceListener(event: "spawn", listener: () => void): this;
|
|
563
579
|
}
|
|
564
580
|
// return this object when stdio option is undefined or not specified
|
|
565
581
|
interface ChildProcessWithoutNullStreams extends ChildProcess {
|
|
@@ -573,11 +589,13 @@ declare module 'child_process' {
|
|
|
573
589
|
// stderr
|
|
574
590
|
Readable | Writable | null | undefined,
|
|
575
591
|
// extra, no modification
|
|
576
|
-
Readable | Writable | null | undefined // extra, no modification
|
|
592
|
+
Readable | Writable | null | undefined, // extra, no modification
|
|
577
593
|
];
|
|
578
594
|
}
|
|
579
595
|
// return this object when stdio option is a tuple of 3
|
|
580
|
-
interface ChildProcessByStdio<I extends null | Writable, O extends null | Readable, E extends null | Readable>
|
|
596
|
+
interface ChildProcessByStdio<I extends null | Writable, O extends null | Readable, E extends null | Readable>
|
|
597
|
+
extends ChildProcess
|
|
598
|
+
{
|
|
581
599
|
stdin: I;
|
|
582
600
|
stdout: O;
|
|
583
601
|
stderr: E;
|
|
@@ -587,15 +605,15 @@ declare module 'child_process' {
|
|
|
587
605
|
E,
|
|
588
606
|
Readable | Writable | null | undefined,
|
|
589
607
|
// extra, no modification
|
|
590
|
-
Readable | Writable | null | undefined // extra, no modification
|
|
608
|
+
Readable | Writable | null | undefined, // extra, no modification
|
|
591
609
|
];
|
|
592
610
|
}
|
|
593
611
|
interface MessageOptions {
|
|
594
612
|
keepOpen?: boolean | undefined;
|
|
595
613
|
}
|
|
596
|
-
type IOType =
|
|
597
|
-
type StdioOptions = IOType | Array<IOType |
|
|
598
|
-
type SerializationType =
|
|
614
|
+
type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
|
|
615
|
+
type StdioOptions = IOType | Array<IOType | "ipc" | Stream | number | null | undefined>;
|
|
616
|
+
type SerializationType = "json" | "advanced";
|
|
599
617
|
interface MessagingOptions extends Abortable {
|
|
600
618
|
/**
|
|
601
619
|
* Specify the kind of serialization used for sending messages between processes.
|
|
@@ -649,10 +667,14 @@ declare module 'child_process' {
|
|
|
649
667
|
interface SpawnOptionsWithoutStdio extends SpawnOptions {
|
|
650
668
|
stdio?: StdioPipeNamed | StdioPipe[] | undefined;
|
|
651
669
|
}
|
|
652
|
-
type StdioNull =
|
|
653
|
-
type StdioPipeNamed =
|
|
670
|
+
type StdioNull = "inherit" | "ignore" | Stream;
|
|
671
|
+
type StdioPipeNamed = "pipe" | "overlapped";
|
|
654
672
|
type StdioPipe = undefined | null | StdioPipeNamed;
|
|
655
|
-
interface SpawnOptionsWithStdioTuple<
|
|
673
|
+
interface SpawnOptionsWithStdioTuple<
|
|
674
|
+
Stdin extends StdioNull | StdioPipe,
|
|
675
|
+
Stdout extends StdioNull | StdioPipe,
|
|
676
|
+
Stderr extends StdioNull | StdioPipe,
|
|
677
|
+
> extends SpawnOptions {
|
|
656
678
|
stdio: [Stdin, Stdout, Stderr];
|
|
657
679
|
}
|
|
658
680
|
/**
|
|
@@ -775,25 +797,85 @@ declare module 'child_process' {
|
|
|
775
797
|
* @param args List of string arguments.
|
|
776
798
|
*/
|
|
777
799
|
function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
|
|
778
|
-
function spawn(
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
function spawn(
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
800
|
+
function spawn(
|
|
801
|
+
command: string,
|
|
802
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
|
|
803
|
+
): ChildProcessByStdio<Writable, Readable, Readable>;
|
|
804
|
+
function spawn(
|
|
805
|
+
command: string,
|
|
806
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
|
|
807
|
+
): ChildProcessByStdio<Writable, Readable, null>;
|
|
808
|
+
function spawn(
|
|
809
|
+
command: string,
|
|
810
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
|
|
811
|
+
): ChildProcessByStdio<Writable, null, Readable>;
|
|
812
|
+
function spawn(
|
|
813
|
+
command: string,
|
|
814
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
|
|
815
|
+
): ChildProcessByStdio<null, Readable, Readable>;
|
|
816
|
+
function spawn(
|
|
817
|
+
command: string,
|
|
818
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
|
|
819
|
+
): ChildProcessByStdio<Writable, null, null>;
|
|
820
|
+
function spawn(
|
|
821
|
+
command: string,
|
|
822
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
|
|
823
|
+
): ChildProcessByStdio<null, Readable, null>;
|
|
824
|
+
function spawn(
|
|
825
|
+
command: string,
|
|
826
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
|
|
827
|
+
): ChildProcessByStdio<null, null, Readable>;
|
|
828
|
+
function spawn(
|
|
829
|
+
command: string,
|
|
830
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
|
|
831
|
+
): ChildProcessByStdio<null, null, null>;
|
|
786
832
|
function spawn(command: string, options: SpawnOptions): ChildProcess;
|
|
787
833
|
// overloads of spawn with 'args'
|
|
788
|
-
function spawn(
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
function spawn(
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
834
|
+
function spawn(
|
|
835
|
+
command: string,
|
|
836
|
+
args?: ReadonlyArray<string>,
|
|
837
|
+
options?: SpawnOptionsWithoutStdio,
|
|
838
|
+
): ChildProcessWithoutNullStreams;
|
|
839
|
+
function spawn(
|
|
840
|
+
command: string,
|
|
841
|
+
args: ReadonlyArray<string>,
|
|
842
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioPipe>,
|
|
843
|
+
): ChildProcessByStdio<Writable, Readable, Readable>;
|
|
844
|
+
function spawn(
|
|
845
|
+
command: string,
|
|
846
|
+
args: ReadonlyArray<string>,
|
|
847
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioPipe, StdioNull>,
|
|
848
|
+
): ChildProcessByStdio<Writable, Readable, null>;
|
|
849
|
+
function spawn(
|
|
850
|
+
command: string,
|
|
851
|
+
args: ReadonlyArray<string>,
|
|
852
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioPipe>,
|
|
853
|
+
): ChildProcessByStdio<Writable, null, Readable>;
|
|
854
|
+
function spawn(
|
|
855
|
+
command: string,
|
|
856
|
+
args: ReadonlyArray<string>,
|
|
857
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioPipe>,
|
|
858
|
+
): ChildProcessByStdio<null, Readable, Readable>;
|
|
859
|
+
function spawn(
|
|
860
|
+
command: string,
|
|
861
|
+
args: ReadonlyArray<string>,
|
|
862
|
+
options: SpawnOptionsWithStdioTuple<StdioPipe, StdioNull, StdioNull>,
|
|
863
|
+
): ChildProcessByStdio<Writable, null, null>;
|
|
864
|
+
function spawn(
|
|
865
|
+
command: string,
|
|
866
|
+
args: ReadonlyArray<string>,
|
|
867
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioPipe, StdioNull>,
|
|
868
|
+
): ChildProcessByStdio<null, Readable, null>;
|
|
869
|
+
function spawn(
|
|
870
|
+
command: string,
|
|
871
|
+
args: ReadonlyArray<string>,
|
|
872
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioPipe>,
|
|
873
|
+
): ChildProcessByStdio<null, null, Readable>;
|
|
874
|
+
function spawn(
|
|
875
|
+
command: string,
|
|
876
|
+
args: ReadonlyArray<string>,
|
|
877
|
+
options: SpawnOptionsWithStdioTuple<StdioNull, StdioNull, StdioNull>,
|
|
878
|
+
): ChildProcessByStdio<null, null, null>;
|
|
797
879
|
function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
|
|
798
880
|
interface ExecOptions extends CommonOptions {
|
|
799
881
|
shell?: string | undefined;
|
|
@@ -898,14 +980,17 @@ declare module 'child_process' {
|
|
|
898
980
|
* @param command The command to run, with space-separated arguments.
|
|
899
981
|
* @param callback called with the output when process terminates.
|
|
900
982
|
*/
|
|
901
|
-
function exec(
|
|
983
|
+
function exec(
|
|
984
|
+
command: string,
|
|
985
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
986
|
+
): ChildProcess;
|
|
902
987
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
903
988
|
function exec(
|
|
904
989
|
command: string,
|
|
905
990
|
options: {
|
|
906
|
-
encoding:
|
|
991
|
+
encoding: "buffer" | null;
|
|
907
992
|
} & ExecOptions,
|
|
908
|
-
callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void
|
|
993
|
+
callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
909
994
|
): ChildProcess;
|
|
910
995
|
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
911
996
|
function exec(
|
|
@@ -913,7 +998,7 @@ declare module 'child_process' {
|
|
|
913
998
|
options: {
|
|
914
999
|
encoding: BufferEncoding;
|
|
915
1000
|
} & ExecOptions,
|
|
916
|
-
callback?: (error: ExecException | null, stdout: string, stderr: string) => void
|
|
1001
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
917
1002
|
): ChildProcess;
|
|
918
1003
|
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
919
1004
|
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
@@ -922,15 +1007,19 @@ declare module 'child_process' {
|
|
|
922
1007
|
options: {
|
|
923
1008
|
encoding: BufferEncoding;
|
|
924
1009
|
} & ExecOptions,
|
|
925
|
-
callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void
|
|
1010
|
+
callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
926
1011
|
): ChildProcess;
|
|
927
1012
|
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
928
|
-
function exec(
|
|
1013
|
+
function exec(
|
|
1014
|
+
command: string,
|
|
1015
|
+
options: ExecOptions,
|
|
1016
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
1017
|
+
): ChildProcess;
|
|
929
1018
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
930
1019
|
function exec(
|
|
931
1020
|
command: string,
|
|
932
1021
|
options: (ObjectEncodingOptions & ExecOptions) | undefined | null,
|
|
933
|
-
callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void
|
|
1022
|
+
callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
934
1023
|
): ChildProcess;
|
|
935
1024
|
interface PromiseWithChild<T> extends Promise<T> {
|
|
936
1025
|
child: ChildProcess;
|
|
@@ -943,8 +1032,8 @@ declare module 'child_process' {
|
|
|
943
1032
|
function __promisify__(
|
|
944
1033
|
command: string,
|
|
945
1034
|
options: {
|
|
946
|
-
encoding:
|
|
947
|
-
} & ExecOptions
|
|
1035
|
+
encoding: "buffer" | null;
|
|
1036
|
+
} & ExecOptions,
|
|
948
1037
|
): PromiseWithChild<{
|
|
949
1038
|
stdout: Buffer;
|
|
950
1039
|
stderr: Buffer;
|
|
@@ -953,21 +1042,21 @@ declare module 'child_process' {
|
|
|
953
1042
|
command: string,
|
|
954
1043
|
options: {
|
|
955
1044
|
encoding: BufferEncoding;
|
|
956
|
-
} & ExecOptions
|
|
1045
|
+
} & ExecOptions,
|
|
957
1046
|
): PromiseWithChild<{
|
|
958
1047
|
stdout: string;
|
|
959
1048
|
stderr: string;
|
|
960
1049
|
}>;
|
|
961
1050
|
function __promisify__(
|
|
962
1051
|
command: string,
|
|
963
|
-
options: ExecOptions
|
|
1052
|
+
options: ExecOptions,
|
|
964
1053
|
): PromiseWithChild<{
|
|
965
1054
|
stdout: string;
|
|
966
1055
|
stderr: string;
|
|
967
1056
|
}>;
|
|
968
1057
|
function __promisify__(
|
|
969
1058
|
command: string,
|
|
970
|
-
options?: (ObjectEncodingOptions & ExecOptions) | null
|
|
1059
|
+
options?: (ObjectEncodingOptions & ExecOptions) | null,
|
|
971
1060
|
): PromiseWithChild<{
|
|
972
1061
|
stdout: string | Buffer;
|
|
973
1062
|
stderr: string | Buffer;
|
|
@@ -984,14 +1073,14 @@ declare module 'child_process' {
|
|
|
984
1073
|
encoding: BufferEncoding;
|
|
985
1074
|
}
|
|
986
1075
|
interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions {
|
|
987
|
-
encoding:
|
|
1076
|
+
encoding: "buffer" | null;
|
|
988
1077
|
}
|
|
989
1078
|
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
|
|
990
1079
|
encoding: BufferEncoding;
|
|
991
1080
|
}
|
|
992
1081
|
type ExecFileException =
|
|
993
|
-
& Omit<ExecException,
|
|
994
|
-
& Omit<NodeJS.ErrnoException,
|
|
1082
|
+
& Omit<ExecException, "code">
|
|
1083
|
+
& Omit<NodeJS.ErrnoException, "code">
|
|
995
1084
|
& { code?: string | number | undefined | null };
|
|
996
1085
|
/**
|
|
997
1086
|
* The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
|
|
@@ -1057,56 +1146,92 @@ declare module 'child_process' {
|
|
|
1057
1146
|
* @param callback Called with the output when process terminates.
|
|
1058
1147
|
*/
|
|
1059
1148
|
function execFile(file: string): ChildProcess;
|
|
1060
|
-
function execFile(
|
|
1149
|
+
function execFile(
|
|
1150
|
+
file: string,
|
|
1151
|
+
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1152
|
+
): ChildProcess;
|
|
1061
1153
|
function execFile(file: string, args?: ReadonlyArray<string> | null): ChildProcess;
|
|
1062
|
-
function execFile(
|
|
1154
|
+
function execFile(
|
|
1155
|
+
file: string,
|
|
1156
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
1157
|
+
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1158
|
+
): ChildProcess;
|
|
1063
1159
|
// no `options` definitely means stdout/stderr are `string`.
|
|
1064
|
-
function execFile(
|
|
1065
|
-
|
|
1160
|
+
function execFile(
|
|
1161
|
+
file: string,
|
|
1162
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1163
|
+
): ChildProcess;
|
|
1164
|
+
function execFile(
|
|
1165
|
+
file: string,
|
|
1166
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
1167
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1168
|
+
): ChildProcess;
|
|
1066
1169
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
1067
|
-
function execFile(
|
|
1170
|
+
function execFile(
|
|
1171
|
+
file: string,
|
|
1172
|
+
options: ExecFileOptionsWithBufferEncoding,
|
|
1173
|
+
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
1174
|
+
): ChildProcess;
|
|
1068
1175
|
function execFile(
|
|
1069
1176
|
file: string,
|
|
1070
1177
|
args: ReadonlyArray<string> | undefined | null,
|
|
1071
1178
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1072
|
-
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void
|
|
1179
|
+
callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void,
|
|
1073
1180
|
): ChildProcess;
|
|
1074
1181
|
// `options` with well known `encoding` means stdout/stderr are definitely `string`.
|
|
1075
|
-
function execFile(
|
|
1182
|
+
function execFile(
|
|
1183
|
+
file: string,
|
|
1184
|
+
options: ExecFileOptionsWithStringEncoding,
|
|
1185
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1186
|
+
): ChildProcess;
|
|
1076
1187
|
function execFile(
|
|
1077
1188
|
file: string,
|
|
1078
1189
|
args: ReadonlyArray<string> | undefined | null,
|
|
1079
1190
|
options: ExecFileOptionsWithStringEncoding,
|
|
1080
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
|
|
1191
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1081
1192
|
): ChildProcess;
|
|
1082
1193
|
// `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`.
|
|
1083
1194
|
// There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`.
|
|
1084
|
-
function execFile(
|
|
1195
|
+
function execFile(
|
|
1196
|
+
file: string,
|
|
1197
|
+
options: ExecFileOptionsWithOtherEncoding,
|
|
1198
|
+
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
1199
|
+
): ChildProcess;
|
|
1085
1200
|
function execFile(
|
|
1086
1201
|
file: string,
|
|
1087
1202
|
args: ReadonlyArray<string> | undefined | null,
|
|
1088
1203
|
options: ExecFileOptionsWithOtherEncoding,
|
|
1089
|
-
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void
|
|
1204
|
+
callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void,
|
|
1090
1205
|
): ChildProcess;
|
|
1091
1206
|
// `options` without an `encoding` means stdout/stderr are definitely `string`.
|
|
1092
|
-
function execFile(
|
|
1207
|
+
function execFile(
|
|
1208
|
+
file: string,
|
|
1209
|
+
options: ExecFileOptions,
|
|
1210
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1211
|
+
): ChildProcess;
|
|
1093
1212
|
function execFile(
|
|
1094
1213
|
file: string,
|
|
1095
1214
|
args: ReadonlyArray<string> | undefined | null,
|
|
1096
1215
|
options: ExecFileOptions,
|
|
1097
|
-
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void
|
|
1216
|
+
callback: (error: ExecFileException | null, stdout: string, stderr: string) => void,
|
|
1098
1217
|
): ChildProcess;
|
|
1099
1218
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
1100
1219
|
function execFile(
|
|
1101
1220
|
file: string,
|
|
1102
1221
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1103
|
-
callback:
|
|
1222
|
+
callback:
|
|
1223
|
+
| ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
|
|
1224
|
+
| undefined
|
|
1225
|
+
| null,
|
|
1104
1226
|
): ChildProcess;
|
|
1105
1227
|
function execFile(
|
|
1106
1228
|
file: string,
|
|
1107
1229
|
args: ReadonlyArray<string> | undefined | null,
|
|
1108
1230
|
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1109
|
-
callback:
|
|
1231
|
+
callback:
|
|
1232
|
+
| ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void)
|
|
1233
|
+
| undefined
|
|
1234
|
+
| null,
|
|
1110
1235
|
): ChildProcess;
|
|
1111
1236
|
namespace execFile {
|
|
1112
1237
|
function __promisify__(file: string): PromiseWithChild<{
|
|
@@ -1115,14 +1240,14 @@ declare module 'child_process' {
|
|
|
1115
1240
|
}>;
|
|
1116
1241
|
function __promisify__(
|
|
1117
1242
|
file: string,
|
|
1118
|
-
args: ReadonlyArray<string> | undefined | null
|
|
1243
|
+
args: ReadonlyArray<string> | undefined | null,
|
|
1119
1244
|
): PromiseWithChild<{
|
|
1120
1245
|
stdout: string;
|
|
1121
1246
|
stderr: string;
|
|
1122
1247
|
}>;
|
|
1123
1248
|
function __promisify__(
|
|
1124
1249
|
file: string,
|
|
1125
|
-
options: ExecFileOptionsWithBufferEncoding
|
|
1250
|
+
options: ExecFileOptionsWithBufferEncoding,
|
|
1126
1251
|
): PromiseWithChild<{
|
|
1127
1252
|
stdout: Buffer;
|
|
1128
1253
|
stderr: Buffer;
|
|
@@ -1130,14 +1255,14 @@ declare module 'child_process' {
|
|
|
1130
1255
|
function __promisify__(
|
|
1131
1256
|
file: string,
|
|
1132
1257
|
args: ReadonlyArray<string> | undefined | null,
|
|
1133
|
-
options: ExecFileOptionsWithBufferEncoding
|
|
1258
|
+
options: ExecFileOptionsWithBufferEncoding,
|
|
1134
1259
|
): PromiseWithChild<{
|
|
1135
1260
|
stdout: Buffer;
|
|
1136
1261
|
stderr: Buffer;
|
|
1137
1262
|
}>;
|
|
1138
1263
|
function __promisify__(
|
|
1139
1264
|
file: string,
|
|
1140
|
-
options: ExecFileOptionsWithStringEncoding
|
|
1265
|
+
options: ExecFileOptionsWithStringEncoding,
|
|
1141
1266
|
): PromiseWithChild<{
|
|
1142
1267
|
stdout: string;
|
|
1143
1268
|
stderr: string;
|
|
@@ -1145,14 +1270,14 @@ declare module 'child_process' {
|
|
|
1145
1270
|
function __promisify__(
|
|
1146
1271
|
file: string,
|
|
1147
1272
|
args: ReadonlyArray<string> | undefined | null,
|
|
1148
|
-
options: ExecFileOptionsWithStringEncoding
|
|
1273
|
+
options: ExecFileOptionsWithStringEncoding,
|
|
1149
1274
|
): PromiseWithChild<{
|
|
1150
1275
|
stdout: string;
|
|
1151
1276
|
stderr: string;
|
|
1152
1277
|
}>;
|
|
1153
1278
|
function __promisify__(
|
|
1154
1279
|
file: string,
|
|
1155
|
-
options: ExecFileOptionsWithOtherEncoding
|
|
1280
|
+
options: ExecFileOptionsWithOtherEncoding,
|
|
1156
1281
|
): PromiseWithChild<{
|
|
1157
1282
|
stdout: string | Buffer;
|
|
1158
1283
|
stderr: string | Buffer;
|
|
@@ -1160,14 +1285,14 @@ declare module 'child_process' {
|
|
|
1160
1285
|
function __promisify__(
|
|
1161
1286
|
file: string,
|
|
1162
1287
|
args: ReadonlyArray<string> | undefined | null,
|
|
1163
|
-
options: ExecFileOptionsWithOtherEncoding
|
|
1288
|
+
options: ExecFileOptionsWithOtherEncoding,
|
|
1164
1289
|
): PromiseWithChild<{
|
|
1165
1290
|
stdout: string | Buffer;
|
|
1166
1291
|
stderr: string | Buffer;
|
|
1167
1292
|
}>;
|
|
1168
1293
|
function __promisify__(
|
|
1169
1294
|
file: string,
|
|
1170
|
-
options: ExecFileOptions
|
|
1295
|
+
options: ExecFileOptions,
|
|
1171
1296
|
): PromiseWithChild<{
|
|
1172
1297
|
stdout: string;
|
|
1173
1298
|
stderr: string;
|
|
@@ -1175,14 +1300,14 @@ declare module 'child_process' {
|
|
|
1175
1300
|
function __promisify__(
|
|
1176
1301
|
file: string,
|
|
1177
1302
|
args: ReadonlyArray<string> | undefined | null,
|
|
1178
|
-
options: ExecFileOptions
|
|
1303
|
+
options: ExecFileOptions,
|
|
1179
1304
|
): PromiseWithChild<{
|
|
1180
1305
|
stdout: string;
|
|
1181
1306
|
stderr: string;
|
|
1182
1307
|
}>;
|
|
1183
1308
|
function __promisify__(
|
|
1184
1309
|
file: string,
|
|
1185
|
-
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null
|
|
1310
|
+
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1186
1311
|
): PromiseWithChild<{
|
|
1187
1312
|
stdout: string | Buffer;
|
|
1188
1313
|
stderr: string | Buffer;
|
|
@@ -1190,7 +1315,7 @@ declare module 'child_process' {
|
|
|
1190
1315
|
function __promisify__(
|
|
1191
1316
|
file: string,
|
|
1192
1317
|
args: ReadonlyArray<string> | undefined | null,
|
|
1193
|
-
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null
|
|
1318
|
+
options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null,
|
|
1194
1319
|
): PromiseWithChild<{
|
|
1195
1320
|
stdout: string | Buffer;
|
|
1196
1321
|
stderr: string | Buffer;
|
|
@@ -1267,13 +1392,13 @@ declare module 'child_process' {
|
|
|
1267
1392
|
interface SpawnSyncOptions extends CommonSpawnOptions {
|
|
1268
1393
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1269
1394
|
maxBuffer?: number | undefined;
|
|
1270
|
-
encoding?: BufferEncoding |
|
|
1395
|
+
encoding?: BufferEncoding | "buffer" | null | undefined;
|
|
1271
1396
|
}
|
|
1272
1397
|
interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
|
|
1273
1398
|
encoding: BufferEncoding;
|
|
1274
1399
|
}
|
|
1275
1400
|
interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
|
|
1276
|
-
encoding?:
|
|
1401
|
+
encoding?: "buffer" | null | undefined;
|
|
1277
1402
|
}
|
|
1278
1403
|
interface SpawnSyncReturns<T> {
|
|
1279
1404
|
pid: number;
|
|
@@ -1304,9 +1429,21 @@ declare module 'child_process' {
|
|
|
1304
1429
|
function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
|
|
1305
1430
|
function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
|
|
1306
1431
|
function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
|
|
1307
|
-
function spawnSync(
|
|
1308
|
-
|
|
1309
|
-
|
|
1432
|
+
function spawnSync(
|
|
1433
|
+
command: string,
|
|
1434
|
+
args: ReadonlyArray<string>,
|
|
1435
|
+
options: SpawnSyncOptionsWithStringEncoding,
|
|
1436
|
+
): SpawnSyncReturns<string>;
|
|
1437
|
+
function spawnSync(
|
|
1438
|
+
command: string,
|
|
1439
|
+
args: ReadonlyArray<string>,
|
|
1440
|
+
options: SpawnSyncOptionsWithBufferEncoding,
|
|
1441
|
+
): SpawnSyncReturns<Buffer>;
|
|
1442
|
+
function spawnSync(
|
|
1443
|
+
command: string,
|
|
1444
|
+
args?: ReadonlyArray<string>,
|
|
1445
|
+
options?: SpawnSyncOptions,
|
|
1446
|
+
): SpawnSyncReturns<string | Buffer>;
|
|
1310
1447
|
interface CommonExecOptions extends CommonOptions {
|
|
1311
1448
|
input?: string | NodeJS.ArrayBufferView | undefined;
|
|
1312
1449
|
/**
|
|
@@ -1321,7 +1458,7 @@ declare module 'child_process' {
|
|
|
1321
1458
|
stdio?: StdioOptions | undefined;
|
|
1322
1459
|
killSignal?: NodeJS.Signals | number | undefined;
|
|
1323
1460
|
maxBuffer?: number | undefined;
|
|
1324
|
-
encoding?: BufferEncoding |
|
|
1461
|
+
encoding?: BufferEncoding | "buffer" | null | undefined;
|
|
1325
1462
|
}
|
|
1326
1463
|
interface ExecSyncOptions extends CommonExecOptions {
|
|
1327
1464
|
shell?: string | undefined;
|
|
@@ -1330,7 +1467,7 @@ declare module 'child_process' {
|
|
|
1330
1467
|
encoding: BufferEncoding;
|
|
1331
1468
|
}
|
|
1332
1469
|
interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
|
|
1333
|
-
encoding?:
|
|
1470
|
+
encoding?: "buffer" | null | undefined;
|
|
1334
1471
|
}
|
|
1335
1472
|
/**
|
|
1336
1473
|
* The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return
|
|
@@ -1359,7 +1496,7 @@ declare module 'child_process' {
|
|
|
1359
1496
|
encoding: BufferEncoding;
|
|
1360
1497
|
}
|
|
1361
1498
|
interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
|
|
1362
|
-
encoding?:
|
|
1499
|
+
encoding?: "buffer" | null; // specify `null`.
|
|
1363
1500
|
}
|
|
1364
1501
|
/**
|
|
1365
1502
|
* The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not
|
|
@@ -1386,10 +1523,18 @@ declare module 'child_process' {
|
|
|
1386
1523
|
function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
|
|
1387
1524
|
function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
|
|
1388
1525
|
function execFileSync(file: string, args: ReadonlyArray<string>): Buffer;
|
|
1389
|
-
function execFileSync(
|
|
1390
|
-
|
|
1526
|
+
function execFileSync(
|
|
1527
|
+
file: string,
|
|
1528
|
+
args: ReadonlyArray<string>,
|
|
1529
|
+
options: ExecFileSyncOptionsWithStringEncoding,
|
|
1530
|
+
): string;
|
|
1531
|
+
function execFileSync(
|
|
1532
|
+
file: string,
|
|
1533
|
+
args: ReadonlyArray<string>,
|
|
1534
|
+
options: ExecFileSyncOptionsWithBufferEncoding,
|
|
1535
|
+
): Buffer;
|
|
1391
1536
|
function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
|
|
1392
1537
|
}
|
|
1393
|
-
declare module
|
|
1394
|
-
export * from
|
|
1538
|
+
declare module "node:child_process" {
|
|
1539
|
+
export * from "child_process";
|
|
1395
1540
|
}
|