cdk-ecr-deployment 2.5.6 → 2.5.21
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 +5 -4
- package/.jsii +673 -21
- package/.jsii.tabl.json +1 -0
- package/.projenrc.ts +100 -0
- package/API.md +4 -4
- package/README.md +4 -4
- package/lambda/go.mod +2 -5
- package/lambda/go.sum +39 -14
- package/lib/index.d.ts +7 -65
- package/lib/index.js +7 -45
- package/node_modules/@sindresorhus/is/dist/index.d.ts +12 -7
- package/node_modules/@sindresorhus/is/dist/index.js +9 -4
- package/node_modules/@sindresorhus/is/dist/types.d.ts +1 -0
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +25 -7
- package/node_modules/@types/cacheable-request/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +135 -75
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +67 -38
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +226 -104
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +87 -58
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +29 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +888 -256
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +16 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +52 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +27 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +6 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +166 -93
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +169 -70
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +301 -126
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +22 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +453 -125
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +74 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +103 -53
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +6 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +20 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +6 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +114 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +36 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +15 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +37 -26
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +96 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +95 -82
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +145 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +51 -175
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +21 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +983 -824
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +1052 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +26 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +127 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +149 -50
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +30 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +3969 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +116 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +888 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +11 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +66 -56
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +528 -70
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +271 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +421 -34
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +15 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +81 -37
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +11 -11
- package/node_modules/@types/cacheable-request/package.json +5 -5
- package/node_modules/@types/keyv/README.md +1 -1
- package/node_modules/@types/keyv/index.d.ts +16 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +135 -75
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +67 -38
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +226 -104
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +87 -58
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +29 -29
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +888 -256
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +16 -16
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +52 -8
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +27 -18
- package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +6 -5
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +166 -93
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +169 -70
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +301 -126
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +22 -13
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +453 -125
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +74 -46
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +103 -53
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +6 -2
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +20 -16
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +6 -4
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +114 -22
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +36 -14
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +15 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +37 -26
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +96 -15
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +95 -82
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +145 -0
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +51 -175
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +21 -21
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +983 -824
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +1052 -0
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +26 -1
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +127 -6
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +149 -50
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +30 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +3969 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +116 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +888 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +11 -7
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +66 -56
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +528 -70
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +271 -14
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +421 -34
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +15 -21
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +81 -37
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +11 -11
- package/node_modules/@types/keyv/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +135 -75
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +67 -38
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +226 -104
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +87 -58
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +29 -29
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +888 -256
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +16 -16
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +52 -8
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +27 -18
- package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +126 -0
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +6 -5
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +166 -93
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +169 -70
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +301 -126
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +22 -13
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +453 -125
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +74 -46
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +103 -53
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +6 -2
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +20 -16
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +6 -4
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +114 -22
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +36 -14
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +15 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +37 -26
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +96 -15
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +95 -82
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +145 -0
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +51 -175
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +21 -21
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -14
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +983 -824
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +1052 -0
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +26 -1
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +127 -6
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +149 -50
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +30 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +3969 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +116 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +888 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +11 -7
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +66 -56
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +528 -70
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +271 -14
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +421 -34
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +15 -21
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +81 -37
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +11 -11
- package/node_modules/cacheable-request/package.json +1 -1
- package/node_modules/clone-response/node_modules/mimic-response/index.js +32 -0
- package/node_modules/{get-stream → clone-response/node_modules/mimic-response}/license +1 -1
- package/node_modules/clone-response/node_modules/mimic-response/package.json +37 -0
- package/node_modules/clone-response/node_modules/mimic-response/readme.md +54 -0
- package/node_modules/clone-response/package.json +3 -6
- package/node_modules/got/dist/source/as-promise/index.js +1 -0
- package/node_modules/got/package.json +2 -1
- package/node_modules/http-cache-semantics/index.js +4 -3
- package/node_modules/http-cache-semantics/package.json +2 -8
- package/node_modules/keyv/README.md +141 -5
- package/node_modules/keyv/package.json +56 -50
- package/node_modules/keyv/src/index.d.ts +116 -0
- package/node_modules/keyv/src/index.js +179 -24
- package/node_modules/mimic-response/index.js +58 -13
- package/node_modules/mimic-response/license +1 -1
- package/node_modules/mimic-response/package.json +40 -35
- package/node_modules/mimic-response/readme.md +33 -9
- package/node_modules/responselike/package.json +3 -2
- package/package.json +54 -25
- package/rosetta/default.ts-fixture +17 -0
- package/changelog.md +0 -2
- package/node_modules/decompress-response/node_modules/mimic-response/index.js +0 -77
- package/node_modules/decompress-response/node_modules/mimic-response/package.json +0 -42
- package/node_modules/decompress-response/node_modules/mimic-response/readme.md +0 -78
- package/node_modules/keyv/.nyc_output/37411020-4142-4b08-b825-343ba2427bf7.json +0 -1
- package/node_modules/keyv/.nyc_output/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/37411020-4142-4b08-b825-343ba2427bf7.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/index.json +0 -1
- package/node_modules/keyv/test/test.js +0 -132
- package/node_modules/keyv/test/testdb.sqlite +0 -0
- package/releasetag.txt +0 -1
- package/version.txt +0 -1
- /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/buffer-stream.js +0 -0
- /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.d.ts +0 -0
- /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.js +0 -0
- /package/node_modules/{decompress-response/node_modules/mimic-response → cacheable-request/node_modules/get-stream}/license +0 -0
- /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/package.json +0 -0
- /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/readme.md +0 -0
- /package/node_modules/{decompress-response/node_modules/mimic-response → mimic-response}/index.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
|
|
2
|
+
* The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
|
|
3
3
|
*
|
|
4
4
|
* ```js
|
|
5
|
-
* const v8 = require('v8');
|
|
5
|
+
* const v8 = require('node:v8');
|
|
6
6
|
* ```
|
|
7
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
7
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module 'v8' {
|
|
10
10
|
import { Readable } from 'node:stream';
|
|
@@ -29,6 +29,9 @@ declare module 'v8' {
|
|
|
29
29
|
does_zap_garbage: DoesZapCodeSpaceFlag;
|
|
30
30
|
number_of_native_contexts: number;
|
|
31
31
|
number_of_detached_contexts: number;
|
|
32
|
+
total_global_handles_size: number;
|
|
33
|
+
used_global_handles_size: number;
|
|
34
|
+
external_memory: number;
|
|
32
35
|
}
|
|
33
36
|
interface HeapCodeStatistics {
|
|
34
37
|
code_and_metadata_size: number;
|
|
@@ -68,6 +71,15 @@ declare module 'v8' {
|
|
|
68
71
|
* of contexts that were detached and not yet garbage collected. This number
|
|
69
72
|
* being non-zero indicates a potential memory leak.
|
|
70
73
|
*
|
|
74
|
+
* `total_global_handles_size` The value of total\_global\_handles\_size is the
|
|
75
|
+
* total memory size of V8 global handles.
|
|
76
|
+
*
|
|
77
|
+
* `used_global_handles_size` The value of used\_global\_handles\_size is the
|
|
78
|
+
* used memory size of V8 global handles.
|
|
79
|
+
*
|
|
80
|
+
* `external_memory` The value of external\_memory is the memory size of array
|
|
81
|
+
* buffers and external strings.
|
|
82
|
+
*
|
|
71
83
|
* ```js
|
|
72
84
|
* {
|
|
73
85
|
* total_heap_size: 7326976,
|
|
@@ -80,7 +92,10 @@ declare module 'v8' {
|
|
|
80
92
|
* peak_malloced_memory: 1127496,
|
|
81
93
|
* does_zap_garbage: 0,
|
|
82
94
|
* number_of_native_contexts: 1,
|
|
83
|
-
* number_of_detached_contexts: 0
|
|
95
|
+
* number_of_detached_contexts: 0,
|
|
96
|
+
* total_global_handles_size: 8192,
|
|
97
|
+
* used_global_handles_size: 3296,
|
|
98
|
+
* external_memory: 318824
|
|
84
99
|
* }
|
|
85
100
|
* ```
|
|
86
101
|
* @since v1.0.0
|
|
@@ -149,7 +164,7 @@ declare module 'v8' {
|
|
|
149
164
|
*
|
|
150
165
|
* ```js
|
|
151
166
|
* // Print GC events to stdout for one minute.
|
|
152
|
-
* const v8 = require('v8');
|
|
167
|
+
* const v8 = require('node:v8');
|
|
153
168
|
* v8.setFlagsFromString('--trace_gc');
|
|
154
169
|
* setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3);
|
|
155
170
|
* ```
|
|
@@ -163,14 +178,21 @@ declare module 'v8' {
|
|
|
163
178
|
* Chrome DevTools. The JSON schema is undocumented and specific to the
|
|
164
179
|
* V8 engine. Therefore, the schema may change from one version of V8 to the next.
|
|
165
180
|
*
|
|
181
|
+
* Creating a heap snapshot requires memory about twice the size of the heap at
|
|
182
|
+
* the time the snapshot is created. This results in the risk of OOM killers
|
|
183
|
+
* terminating the process.
|
|
184
|
+
*
|
|
185
|
+
* Generating a snapshot is a synchronous operation which blocks the event loop
|
|
186
|
+
* for a duration depending on the heap size.
|
|
187
|
+
*
|
|
166
188
|
* ```js
|
|
167
189
|
* // Print heap snapshot to the console
|
|
168
|
-
* const v8 = require('v8');
|
|
190
|
+
* const v8 = require('node:v8');
|
|
169
191
|
* const stream = v8.getHeapSnapshot();
|
|
170
192
|
* stream.pipe(process.stdout);
|
|
171
193
|
* ```
|
|
172
194
|
* @since v11.13.0
|
|
173
|
-
* @return A Readable
|
|
195
|
+
* @return A Readable containing the V8 heap snapshot.
|
|
174
196
|
*/
|
|
175
197
|
function getHeapSnapshot(): Readable;
|
|
176
198
|
/**
|
|
@@ -182,13 +204,20 @@ declare module 'v8' {
|
|
|
182
204
|
* A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will
|
|
183
205
|
* not contain any information about the workers, and vice versa.
|
|
184
206
|
*
|
|
207
|
+
* Creating a heap snapshot requires memory about twice the size of the heap at
|
|
208
|
+
* the time the snapshot is created. This results in the risk of OOM killers
|
|
209
|
+
* terminating the process.
|
|
210
|
+
*
|
|
211
|
+
* Generating a snapshot is a synchronous operation which blocks the event loop
|
|
212
|
+
* for a duration depending on the heap size.
|
|
213
|
+
*
|
|
185
214
|
* ```js
|
|
186
|
-
* const { writeHeapSnapshot } = require('v8');
|
|
215
|
+
* const { writeHeapSnapshot } = require('node:v8');
|
|
187
216
|
* const {
|
|
188
217
|
* Worker,
|
|
189
218
|
* isMainThread,
|
|
190
|
-
* parentPort
|
|
191
|
-
* } = require('worker_threads');
|
|
219
|
+
* parentPort,
|
|
220
|
+
* } = require('node:worker_threads');
|
|
192
221
|
*
|
|
193
222
|
* if (isMainThread) {
|
|
194
223
|
* const worker = new Worker(__filename);
|
|
@@ -219,13 +248,16 @@ declare module 'v8' {
|
|
|
219
248
|
*/
|
|
220
249
|
function writeHeapSnapshot(filename?: string): string;
|
|
221
250
|
/**
|
|
222
|
-
*
|
|
251
|
+
* Get statistics about code and its metadata in the heap, see
|
|
252
|
+
* V8[`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the
|
|
253
|
+
* following properties:
|
|
223
254
|
*
|
|
224
255
|
* ```js
|
|
225
256
|
* {
|
|
226
257
|
* code_and_metadata_size: 212208,
|
|
227
258
|
* bytecode_and_metadata_size: 161368,
|
|
228
|
-
* external_script_source_size: 1410794
|
|
259
|
+
* external_script_source_size: 1410794,
|
|
260
|
+
* cpu_profiler_metadata_size: 0,
|
|
229
261
|
* }
|
|
230
262
|
* ```
|
|
231
263
|
* @since v12.8.0
|
|
@@ -275,7 +307,7 @@ declare module 'v8' {
|
|
|
275
307
|
*/
|
|
276
308
|
writeDouble(value: number): void;
|
|
277
309
|
/**
|
|
278
|
-
* Write raw bytes into the serializer
|
|
310
|
+
* Write raw bytes into the serializer's internal buffer. The deserializer
|
|
279
311
|
* will require a way to compute the length of the buffer.
|
|
280
312
|
* For use inside of a custom `serializer._writeHostObject()`.
|
|
281
313
|
*/
|
|
@@ -331,7 +363,7 @@ declare module 'v8' {
|
|
|
331
363
|
*/
|
|
332
364
|
readDouble(): number;
|
|
333
365
|
/**
|
|
334
|
-
* Read raw bytes from the deserializer
|
|
366
|
+
* Read raw bytes from the deserializer's internal buffer. The `length` parameter
|
|
335
367
|
* must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`.
|
|
336
368
|
* For use inside of a custom `deserializer._readHostObject()`.
|
|
337
369
|
*/
|
|
@@ -344,6 +376,10 @@ declare module 'v8' {
|
|
|
344
376
|
class DefaultDeserializer extends Deserializer {}
|
|
345
377
|
/**
|
|
346
378
|
* Uses a `DefaultSerializer` to serialize `value` into a buffer.
|
|
379
|
+
*
|
|
380
|
+
* `ERR_BUFFER_TOO_LARGE` will be thrown when trying to
|
|
381
|
+
* serialize a huge object which requires buffer
|
|
382
|
+
* larger than `buffer.constants.MAX_LENGTH`.
|
|
347
383
|
* @since v8.0.0
|
|
348
384
|
*/
|
|
349
385
|
function serialize(value: any): Buffer;
|
|
@@ -372,6 +408,227 @@ declare module 'v8' {
|
|
|
372
408
|
* @since v15.1.0, v14.18.0, v12.22.0
|
|
373
409
|
*/
|
|
374
410
|
function stopCoverage(): void;
|
|
411
|
+
/**
|
|
412
|
+
* This API collects GC data in current thread.
|
|
413
|
+
* @since v19.6.0, v18.15.0
|
|
414
|
+
*/
|
|
415
|
+
class GCProfiler {
|
|
416
|
+
/**
|
|
417
|
+
* Start collecting GC data.
|
|
418
|
+
* @since v19.6.0, v18.15.0
|
|
419
|
+
*/
|
|
420
|
+
start(): void;
|
|
421
|
+
/**
|
|
422
|
+
* Stop collecting GC data and return an object.The content of object
|
|
423
|
+
* is as follows.
|
|
424
|
+
*
|
|
425
|
+
* ```json
|
|
426
|
+
* {
|
|
427
|
+
* "version": 1,
|
|
428
|
+
* "startTime": 1674059033862,
|
|
429
|
+
* "statistics": [
|
|
430
|
+
* {
|
|
431
|
+
* "gcType": "Scavenge",
|
|
432
|
+
* "beforeGC": {
|
|
433
|
+
* "heapStatistics": {
|
|
434
|
+
* "totalHeapSize": 5005312,
|
|
435
|
+
* "totalHeapSizeExecutable": 524288,
|
|
436
|
+
* "totalPhysicalSize": 5226496,
|
|
437
|
+
* "totalAvailableSize": 4341325216,
|
|
438
|
+
* "totalGlobalHandlesSize": 8192,
|
|
439
|
+
* "usedGlobalHandlesSize": 2112,
|
|
440
|
+
* "usedHeapSize": 4883840,
|
|
441
|
+
* "heapSizeLimit": 4345298944,
|
|
442
|
+
* "mallocedMemory": 254128,
|
|
443
|
+
* "externalMemory": 225138,
|
|
444
|
+
* "peakMallocedMemory": 181760
|
|
445
|
+
* },
|
|
446
|
+
* "heapSpaceStatistics": [
|
|
447
|
+
* {
|
|
448
|
+
* "spaceName": "read_only_space",
|
|
449
|
+
* "spaceSize": 0,
|
|
450
|
+
* "spaceUsedSize": 0,
|
|
451
|
+
* "spaceAvailableSize": 0,
|
|
452
|
+
* "physicalSpaceSize": 0
|
|
453
|
+
* }
|
|
454
|
+
* ]
|
|
455
|
+
* },
|
|
456
|
+
* "cost": 1574.14,
|
|
457
|
+
* "afterGC": {
|
|
458
|
+
* "heapStatistics": {
|
|
459
|
+
* "totalHeapSize": 6053888,
|
|
460
|
+
* "totalHeapSizeExecutable": 524288,
|
|
461
|
+
* "totalPhysicalSize": 5500928,
|
|
462
|
+
* "totalAvailableSize": 4341101384,
|
|
463
|
+
* "totalGlobalHandlesSize": 8192,
|
|
464
|
+
* "usedGlobalHandlesSize": 2112,
|
|
465
|
+
* "usedHeapSize": 4059096,
|
|
466
|
+
* "heapSizeLimit": 4345298944,
|
|
467
|
+
* "mallocedMemory": 254128,
|
|
468
|
+
* "externalMemory": 225138,
|
|
469
|
+
* "peakMallocedMemory": 181760
|
|
470
|
+
* },
|
|
471
|
+
* "heapSpaceStatistics": [
|
|
472
|
+
* {
|
|
473
|
+
* "spaceName": "read_only_space",
|
|
474
|
+
* "spaceSize": 0,
|
|
475
|
+
* "spaceUsedSize": 0,
|
|
476
|
+
* "spaceAvailableSize": 0,
|
|
477
|
+
* "physicalSpaceSize": 0
|
|
478
|
+
* }
|
|
479
|
+
* ]
|
|
480
|
+
* }
|
|
481
|
+
* }
|
|
482
|
+
* ],
|
|
483
|
+
* "endTime": 1674059036865
|
|
484
|
+
* }
|
|
485
|
+
* ```
|
|
486
|
+
*
|
|
487
|
+
* Here's an example.
|
|
488
|
+
*
|
|
489
|
+
* ```js
|
|
490
|
+
* const { GCProfiler } = require('v8');
|
|
491
|
+
* const profiler = new GCProfiler();
|
|
492
|
+
* profiler.start();
|
|
493
|
+
* setTimeout(() => {
|
|
494
|
+
* console.log(profiler.stop());
|
|
495
|
+
* }, 1000);
|
|
496
|
+
* ```
|
|
497
|
+
* @since v19.6.0, v18.15.0
|
|
498
|
+
*/
|
|
499
|
+
stop(): GCProfilerResult;
|
|
500
|
+
}
|
|
501
|
+
interface GCProfilerResult {
|
|
502
|
+
version: number;
|
|
503
|
+
startTime: number;
|
|
504
|
+
endTime: number;
|
|
505
|
+
statistics: Array<{
|
|
506
|
+
gcType: string;
|
|
507
|
+
cost: number;
|
|
508
|
+
beforeGC: {
|
|
509
|
+
heapStatistics: HeapStatistics;
|
|
510
|
+
heapSpaceStatistics: HeapSpaceStatistics[];
|
|
511
|
+
};
|
|
512
|
+
afterGC: {
|
|
513
|
+
heapStatistics: HeapStatistics;
|
|
514
|
+
heapSpaceStatistics: HeapSpaceStatistics[];
|
|
515
|
+
};
|
|
516
|
+
}>;
|
|
517
|
+
}
|
|
518
|
+
interface HeapStatistics {
|
|
519
|
+
totalHeapSize: number;
|
|
520
|
+
totalHeapSizeExecutable: number;
|
|
521
|
+
totalPhysicalSize: number;
|
|
522
|
+
totalAvailableSize: number;
|
|
523
|
+
totalGlobalHandlesSize: number;
|
|
524
|
+
usedGlobalHandlesSize: number;
|
|
525
|
+
usedHeapSize: number;
|
|
526
|
+
heapSizeLimit: number;
|
|
527
|
+
mallocedMemory: number;
|
|
528
|
+
externalMemory: number;
|
|
529
|
+
peakMallocedMemory: number;
|
|
530
|
+
}
|
|
531
|
+
interface HeapSpaceStatistics {
|
|
532
|
+
spaceName: string;
|
|
533
|
+
spaceSize: number;
|
|
534
|
+
spaceUsedSize: number;
|
|
535
|
+
spaceAvailableSize: number;
|
|
536
|
+
physicalSpaceSize: number;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will
|
|
540
|
+
* happen if a promise is created without ever getting a continuation.
|
|
541
|
+
* @since v17.1.0, v16.14.0
|
|
542
|
+
* @param promise The promise being created.
|
|
543
|
+
* @param parent The promise continued from, if applicable.
|
|
544
|
+
*/
|
|
545
|
+
interface Init {
|
|
546
|
+
(promise: Promise<unknown>, parent: Promise<unknown>): void;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming.
|
|
550
|
+
*
|
|
551
|
+
* The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise.
|
|
552
|
+
* The before callback may be called many times in the case where many continuations have been made from the same promise.
|
|
553
|
+
* @since v17.1.0, v16.14.0
|
|
554
|
+
*/
|
|
555
|
+
interface Before {
|
|
556
|
+
(promise: Promise<unknown>): void;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await.
|
|
560
|
+
* @since v17.1.0, v16.14.0
|
|
561
|
+
*/
|
|
562
|
+
interface After {
|
|
563
|
+
(promise: Promise<unknown>): void;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or
|
|
567
|
+
* {@link Promise.reject()}.
|
|
568
|
+
* @since v17.1.0, v16.14.0
|
|
569
|
+
*/
|
|
570
|
+
interface Settled {
|
|
571
|
+
(promise: Promise<unknown>): void;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or
|
|
575
|
+
* around an await, and when the promise resolves or rejects.
|
|
576
|
+
*
|
|
577
|
+
* Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and
|
|
578
|
+
* `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop.
|
|
579
|
+
* @since v17.1.0, v16.14.0
|
|
580
|
+
*/
|
|
581
|
+
interface HookCallbacks {
|
|
582
|
+
init?: Init;
|
|
583
|
+
before?: Before;
|
|
584
|
+
after?: After;
|
|
585
|
+
settled?: Settled;
|
|
586
|
+
}
|
|
587
|
+
interface PromiseHooks {
|
|
588
|
+
/**
|
|
589
|
+
* The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
|
|
590
|
+
* @since v17.1.0, v16.14.0
|
|
591
|
+
* @param init The {@link Init | `init` callback} to call when a promise is created.
|
|
592
|
+
* @return Call to stop the hook.
|
|
593
|
+
*/
|
|
594
|
+
onInit: (init: Init) => Function;
|
|
595
|
+
/**
|
|
596
|
+
* The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
|
|
597
|
+
* @since v17.1.0, v16.14.0
|
|
598
|
+
* @param settled The {@link Settled | `settled` callback} to call when a promise is created.
|
|
599
|
+
* @return Call to stop the hook.
|
|
600
|
+
*/
|
|
601
|
+
onSettled: (settled: Settled) => Function;
|
|
602
|
+
/**
|
|
603
|
+
* The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
|
|
604
|
+
* @since v17.1.0, v16.14.0
|
|
605
|
+
* @param before The {@link Before | `before` callback} to call before a promise continuation executes.
|
|
606
|
+
* @return Call to stop the hook.
|
|
607
|
+
*/
|
|
608
|
+
onBefore: (before: Before) => Function;
|
|
609
|
+
/**
|
|
610
|
+
* The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop.
|
|
611
|
+
* @since v17.1.0, v16.14.0
|
|
612
|
+
* @param after The {@link After | `after` callback} to call after a promise continuation executes.
|
|
613
|
+
* @return Call to stop the hook.
|
|
614
|
+
*/
|
|
615
|
+
onAfter: (after: After) => Function;
|
|
616
|
+
/**
|
|
617
|
+
* Registers functions to be called for different lifetime events of each promise.
|
|
618
|
+
* The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime.
|
|
619
|
+
* All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed.
|
|
620
|
+
* The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop.
|
|
621
|
+
* @since v17.1.0, v16.14.0
|
|
622
|
+
* @param callbacks The {@link HookCallbacks | Hook Callbacks} to register
|
|
623
|
+
* @return Used for disabling hooks
|
|
624
|
+
*/
|
|
625
|
+
createHook: (callbacks: HookCallbacks) => Function;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* The `promiseHooks` interface can be used to track promise lifecycle events.
|
|
629
|
+
* @since v17.1.0, v16.14.0
|
|
630
|
+
*/
|
|
631
|
+
const promiseHooks: PromiseHooks;
|
|
375
632
|
}
|
|
376
633
|
declare module 'node:v8' {
|
|
377
634
|
export * from 'v8';
|