cdk-ecr-deployment 2.5.6 → 2.5.22

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.
Files changed (376) hide show
  1. package/.gitattributes +5 -4
  2. package/.jsii +673 -21
  3. package/.jsii.tabl.json +1 -0
  4. package/.projenrc.ts +100 -0
  5. package/API.md +4 -4
  6. package/README.md +4 -4
  7. package/lambda/go.mod +2 -5
  8. package/lambda/go.sum +39 -14
  9. package/lib/index.d.ts +7 -65
  10. package/lib/index.js +7 -45
  11. package/node_modules/@sindresorhus/is/dist/index.d.ts +12 -7
  12. package/node_modules/@sindresorhus/is/dist/index.js +9 -4
  13. package/node_modules/@sindresorhus/is/dist/types.d.ts +1 -0
  14. package/node_modules/@sindresorhus/is/package.json +1 -1
  15. package/node_modules/@sindresorhus/is/readme.md +25 -7
  16. package/node_modules/@types/cacheable-request/README.md +2 -2
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +135 -75
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +67 -38
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +226 -104
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +87 -58
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +29 -29
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +5 -5
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +888 -256
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +16 -16
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +52 -8
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +27 -18
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +126 -0
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +6 -5
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +166 -93
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +169 -70
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +301 -126
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +22 -13
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +453 -125
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +74 -46
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +103 -53
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +6 -2
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +20 -16
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +6 -4
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +114 -22
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +36 -14
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +15 -3
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +37 -26
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +96 -15
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +95 -82
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +6 -6
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +145 -0
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +51 -175
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +21 -21
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -14
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +983 -824
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +6 -6
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +1154 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +26 -1
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +127 -6
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +149 -50
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +30 -9
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +3969 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +888 -0
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +1154 -0
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  109. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  110. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  111. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  112. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  113. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  114. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +11 -7
  115. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +66 -56
  116. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +528 -70
  117. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +271 -14
  118. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +421 -34
  119. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +15 -21
  120. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +81 -37
  121. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +11 -11
  122. package/node_modules/@types/cacheable-request/package.json +5 -5
  123. package/node_modules/@types/keyv/README.md +1 -1
  124. package/node_modules/@types/keyv/index.d.ts +16 -3
  125. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  126. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +135 -75
  127. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +67 -38
  128. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +226 -104
  129. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +87 -58
  130. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +29 -29
  131. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +5 -5
  132. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +888 -256
  133. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +16 -16
  134. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
  135. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +52 -8
  136. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +27 -18
  137. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +126 -0
  138. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +6 -5
  139. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +166 -93
  140. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +169 -70
  141. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +301 -126
  142. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +22 -13
  143. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +453 -125
  144. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +74 -46
  145. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +103 -53
  146. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +6 -2
  147. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +20 -16
  148. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +6 -4
  149. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +114 -22
  150. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +36 -14
  151. package/node_modules/@types/keyv/node_modules/@types/node/package.json +15 -3
  152. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +37 -26
  153. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +96 -15
  154. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +95 -82
  155. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  156. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +6 -6
  157. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +145 -0
  158. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +51 -175
  159. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +21 -21
  160. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -14
  161. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +983 -824
  162. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +6 -6
  163. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +1154 -0
  164. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +26 -1
  165. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +127 -6
  166. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +149 -50
  167. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +30 -9
  168. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  169. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  170. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  171. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
  172. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  173. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
  174. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  175. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  176. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +3969 -0
  177. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  178. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  179. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  180. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  181. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  182. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  183. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  184. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  185. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
  186. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  187. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  188. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  189. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  190. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  191. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  192. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  193. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  194. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +888 -0
  195. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  196. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  197. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  198. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
  199. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  200. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  201. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  202. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  203. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  204. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  205. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  206. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  207. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  208. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  209. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +1154 -0
  210. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  211. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  212. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  213. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  214. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  215. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  216. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  217. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  218. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  219. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  220. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  221. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  222. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +11 -7
  223. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +66 -56
  224. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +528 -70
  225. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +271 -14
  226. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +421 -34
  227. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +15 -21
  228. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +81 -37
  229. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +11 -11
  230. package/node_modules/@types/keyv/package.json +3 -3
  231. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  232. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +135 -75
  233. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +67 -38
  234. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +226 -104
  235. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +87 -58
  236. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +29 -29
  237. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +5 -5
  238. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +888 -256
  239. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +16 -16
  240. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +60 -21
  241. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +52 -8
  242. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +27 -18
  243. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +126 -0
  244. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +6 -5
  245. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +166 -93
  246. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +169 -70
  247. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +301 -126
  248. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +22 -13
  249. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +453 -125
  250. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +74 -46
  251. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +103 -53
  252. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +6 -2
  253. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +20 -16
  254. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +6 -4
  255. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +114 -22
  256. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +36 -14
  257. package/node_modules/@types/responselike/node_modules/@types/node/package.json +15 -3
  258. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +37 -26
  259. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +96 -15
  260. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +95 -82
  261. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  262. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +6 -6
  263. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +145 -0
  264. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +51 -175
  265. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +21 -21
  266. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -14
  267. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +983 -824
  268. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +6 -6
  269. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +1154 -0
  270. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +26 -1
  271. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +127 -6
  272. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +149 -50
  273. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +30 -9
  274. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  275. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  276. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  277. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
  278. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  279. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
  280. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  281. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  282. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +3969 -0
  283. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  284. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  285. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  286. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  287. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  288. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  289. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  290. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  291. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
  292. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  293. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  294. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  295. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  296. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  297. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  298. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  299. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  300. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +888 -0
  301. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  302. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  303. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  304. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
  305. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  306. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  307. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  308. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  309. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  310. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  311. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  312. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  313. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  314. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  315. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +1154 -0
  316. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  317. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  318. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  319. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  320. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  321. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  322. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  323. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  324. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  325. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  326. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  327. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  328. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +11 -7
  329. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +66 -56
  330. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +528 -70
  331. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +271 -14
  332. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +421 -34
  333. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +15 -21
  334. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +81 -37
  335. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +11 -11
  336. package/node_modules/cacheable-request/package.json +1 -1
  337. package/node_modules/clone-response/node_modules/mimic-response/index.js +32 -0
  338. package/node_modules/{get-stream → clone-response/node_modules/mimic-response}/license +1 -1
  339. package/node_modules/clone-response/node_modules/mimic-response/package.json +37 -0
  340. package/node_modules/clone-response/node_modules/mimic-response/readme.md +54 -0
  341. package/node_modules/clone-response/package.json +3 -6
  342. package/node_modules/got/dist/source/as-promise/index.js +1 -0
  343. package/node_modules/got/package.json +2 -1
  344. package/node_modules/http-cache-semantics/index.js +4 -3
  345. package/node_modules/http-cache-semantics/package.json +2 -8
  346. package/node_modules/keyv/README.md +141 -5
  347. package/node_modules/keyv/package.json +56 -50
  348. package/node_modules/keyv/src/index.d.ts +116 -0
  349. package/node_modules/keyv/src/index.js +179 -24
  350. package/node_modules/mimic-response/index.js +58 -13
  351. package/node_modules/mimic-response/license +1 -1
  352. package/node_modules/mimic-response/package.json +40 -35
  353. package/node_modules/mimic-response/readme.md +33 -9
  354. package/node_modules/responselike/package.json +3 -2
  355. package/package.json +54 -25
  356. package/rosetta/default.ts-fixture +17 -0
  357. package/changelog.md +0 -2
  358. package/node_modules/decompress-response/node_modules/mimic-response/index.js +0 -77
  359. package/node_modules/decompress-response/node_modules/mimic-response/package.json +0 -42
  360. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +0 -78
  361. package/node_modules/keyv/.nyc_output/37411020-4142-4b08-b825-343ba2427bf7.json +0 -1
  362. package/node_modules/keyv/.nyc_output/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +0 -1
  363. package/node_modules/keyv/.nyc_output/processinfo/37411020-4142-4b08-b825-343ba2427bf7.json +0 -1
  364. package/node_modules/keyv/.nyc_output/processinfo/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +0 -1
  365. package/node_modules/keyv/.nyc_output/processinfo/index.json +0 -1
  366. package/node_modules/keyv/test/test.js +0 -132
  367. package/node_modules/keyv/test/testdb.sqlite +0 -0
  368. package/releasetag.txt +0 -1
  369. package/version.txt +0 -1
  370. /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/buffer-stream.js +0 -0
  371. /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.d.ts +0 -0
  372. /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.js +0 -0
  373. /package/node_modules/{decompress-response/node_modules/mimic-response → cacheable-request/node_modules/get-stream}/license +0 -0
  374. /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/package.json +0 -0
  375. /package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/readme.md +0 -0
  376. /package/node_modules/{decompress-response/node_modules/mimic-response → mimic-response}/index.d.ts +0 -0
@@ -1,10 +1,10 @@
1
1
  /**
2
- * The `child_process` module provides the ability to spawn subprocesses in
2
+ * The `node:child_process` module provides the ability to spawn subprocesses in
3
3
  * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability
4
4
  * is primarily provided by the {@link spawn} function:
5
5
  *
6
6
  * ```js
7
- * const { spawn } = require('child_process');
7
+ * const { spawn } = require('node:child_process');
8
8
  * const ls = spawn('ls', ['-lh', '/usr']);
9
9
  *
10
10
  * ls.stdout.on('data', (data) => {
@@ -28,8 +28,11 @@
28
28
  * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`option if the output will not be consumed.
29
29
  *
30
30
  * The command lookup is performed using the `options.env.PATH` environment
31
- * variable if it is in the `options` object. Otherwise, `process.env.PATH` is
32
- * used.
31
+ * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is
32
+ * used. If `options.env` is set without `PATH`, lookup on Unix is performed
33
+ * on a default search path search of `/usr/bin:/bin` (see your operating system's
34
+ * manual for execvpe/execvp), on Windows the current processes environment
35
+ * variable `PATH` is used.
33
36
  *
34
37
  * On Windows, environment variables are case-insensitive. Node.js
35
38
  * lexicographically sorts the `env` keys and uses the first one that
@@ -41,8 +44,8 @@
41
44
  * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks
42
45
  * the event loop until the spawned process either exits or is terminated.
43
46
  *
44
- * For convenience, the `child_process` module provides a handful of synchronous
45
- * and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on
47
+ * For convenience, the `node:child_process` module provides a handful of
48
+ * synchronous and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on
46
49
  * top of {@link spawn} or {@link spawnSync}.
47
50
  *
48
51
  * * {@link exec}: spawns a shell and runs a command within that
@@ -60,7 +63,7 @@
60
63
  * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
61
64
  * the synchronous methods can have significant impact on performance due to
62
65
  * stalling the event loop while spawned processes complete.
63
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/child_process.js)
66
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/child_process.js)
64
67
  */
65
68
  declare module 'child_process' {
66
69
  import { ObjectEncodingOptions } from 'node:fs';
@@ -91,8 +94,7 @@ declare module 'child_process' {
91
94
  * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
92
95
  * refer to the same value.
93
96
  *
94
- * The `subprocess.stdin` property can be `undefined` if the child process could
95
- * not be successfully spawned.
97
+ * The `subprocess.stdin` property can be `null` or `undefined`if the child process could not be successfully spawned.
96
98
  * @since v0.1.90
97
99
  */
98
100
  stdin: Writable | null;
@@ -106,7 +108,7 @@ declare module 'child_process' {
106
108
  * refer to the same value.
107
109
  *
108
110
  * ```js
109
- * const { spawn } = require('child_process');
111
+ * const { spawn } = require('node:child_process');
110
112
  *
111
113
  * const subprocess = spawn('ls');
112
114
  *
@@ -115,8 +117,7 @@ declare module 'child_process' {
115
117
  * });
116
118
  * ```
117
119
  *
118
- * The `subprocess.stdout` property can be `null` if the child process could
119
- * not be successfully spawned.
120
+ * The `subprocess.stdout` property can be `null` or `undefined`if the child process could not be successfully spawned.
120
121
  * @since v0.1.90
121
122
  */
122
123
  stdout: Readable | null;
@@ -129,14 +130,13 @@ declare module 'child_process' {
129
130
  * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
130
131
  * refer to the same value.
131
132
  *
132
- * The `subprocess.stderr` property can be `null` if the child process could
133
- * not be successfully spawned.
133
+ * The `subprocess.stderr` property can be `null` or `undefined`if the child process could not be successfully spawned.
134
134
  * @since v0.1.90
135
135
  */
136
136
  stderr: Readable | null;
137
137
  /**
138
138
  * The `subprocess.channel` property is a reference to the child's IPC channel. If
139
- * no IPC channel currently exists, this property is `undefined`.
139
+ * no IPC channel exists, this property is `undefined`.
140
140
  * @since v7.1.0
141
141
  */
142
142
  readonly channel?: Pipe | null | undefined;
@@ -151,16 +151,16 @@ declare module 'child_process' {
151
151
  * in the array are `null`.
152
152
  *
153
153
  * ```js
154
- * const assert = require('assert');
155
- * const fs = require('fs');
156
- * const child_process = require('child_process');
154
+ * const assert = require('node:assert');
155
+ * const fs = require('node:fs');
156
+ * const child_process = require('node:child_process');
157
157
  *
158
158
  * const subprocess = child_process.spawn('ls', {
159
159
  * stdio: [
160
160
  * 0, // Use parent's stdin for child.
161
161
  * 'pipe', // Pipe child's stdout to parent.
162
162
  * fs.openSync('err.out', 'w'), // Direct child's stderr to a file.
163
- * ]
163
+ * ],
164
164
  * });
165
165
  *
166
166
  * assert.strictEqual(subprocess.stdio[0], null);
@@ -201,7 +201,7 @@ declare module 'child_process' {
201
201
  * emitted.
202
202
  *
203
203
  * ```js
204
- * const { spawn } = require('child_process');
204
+ * const { spawn } = require('node:child_process');
205
205
  * const grep = spawn('grep', ['ssh']);
206
206
  *
207
207
  * console.log(`Spawned child pid: ${grep.pid}`);
@@ -248,7 +248,7 @@ declare module 'child_process' {
248
248
  * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
249
249
  *
250
250
  * ```js
251
- * const { spawn } = require('child_process');
251
+ * const { spawn } = require('node:child_process');
252
252
  * const grep = spawn('grep', ['ssh']);
253
253
  *
254
254
  * grep.on('close', (code, signal) => {
@@ -281,7 +281,7 @@ declare module 'child_process' {
281
281
  *
282
282
  * ```js
283
283
  * 'use strict';
284
- * const { spawn } = require('child_process');
284
+ * const { spawn } = require('node:child_process');
285
285
  *
286
286
  * const subprocess = spawn(
287
287
  * 'sh',
@@ -291,8 +291,8 @@ declare module 'child_process' {
291
291
  * console.log(process.pid, 'is alive')
292
292
  * }, 500);"`,
293
293
  * ], {
294
- * stdio: ['inherit', 'inherit', 'inherit']
295
- * }
294
+ * stdio: ['inherit', 'inherit', 'inherit'],
295
+ * },
296
296
  * );
297
297
  *
298
298
  * setTimeout(() => {
@@ -314,7 +314,7 @@ declare module 'child_process' {
314
314
  * For example, in the parent script:
315
315
  *
316
316
  * ```js
317
- * const cp = require('child_process');
317
+ * const cp = require('node:child_process');
318
318
  * const n = cp.fork(`${__dirname}/sub.js`);
319
319
  *
320
320
  * n.on('message', (m) => {
@@ -368,10 +368,10 @@ declare module 'child_process' {
368
368
  * a TCP server object to the child process as illustrated in the example below:
369
369
  *
370
370
  * ```js
371
- * const subprocess = require('child_process').fork('subprocess.js');
371
+ * const subprocess = require('node:child_process').fork('subprocess.js');
372
372
  *
373
373
  * // Open up the server object and send the handle.
374
- * const server = require('net').createServer();
374
+ * const server = require('node:net').createServer();
375
375
  * server.on('connection', (socket) => {
376
376
  * socket.end('handled by parent');
377
377
  * });
@@ -395,10 +395,9 @@ declare module 'child_process' {
395
395
  * Once the server is now shared between the parent and child, some connections
396
396
  * can be handled by the parent and some by the child.
397
397
  *
398
- * While the example above uses a server created using the `net` module, `dgram`module servers use exactly the same workflow with the exceptions of listening on
399
- * a `'message'` event instead of `'connection'` and using `server.bind()` instead
400
- * of `server.listen()`. This is, however, currently only supported on Unix
401
- * platforms.
398
+ * While the example above uses a server created using the `node:net` module,`node:dgram` module servers use exactly the same workflow with the exceptions of
399
+ * listening on a `'message'` event instead of `'connection'` and using`server.bind()` instead of `server.listen()`. This is, however, only
400
+ * supported on Unix platforms.
402
401
  *
403
402
  * #### Example: sending a socket object
404
403
  *
@@ -407,13 +406,13 @@ declare module 'child_process' {
407
406
  * handle connections with "normal" or "special" priority:
408
407
  *
409
408
  * ```js
410
- * const { fork } = require('child_process');
409
+ * const { fork } = require('node:child_process');
411
410
  * const normal = fork('subprocess.js', ['normal']);
412
411
  * const special = fork('subprocess.js', ['special']);
413
412
  *
414
413
  * // Open up the server and send sockets to child. Use pauseOnConnect to prevent
415
414
  * // the sockets from being read before they are sent to the child process.
416
- * const server = require('net').createServer({ pauseOnConnect: true });
415
+ * const server = require('node:net').createServer({ pauseOnConnect: true });
417
416
  * server.on('connection', (socket) => {
418
417
  *
419
418
  * // If this is special priority...
@@ -479,11 +478,11 @@ declare module 'child_process' {
479
478
  * the child and the parent.
480
479
  *
481
480
  * ```js
482
- * const { spawn } = require('child_process');
481
+ * const { spawn } = require('node:child_process');
483
482
  *
484
483
  * const subprocess = spawn(process.argv[0], ['child_program.js'], {
485
484
  * detached: true,
486
- * stdio: 'ignore'
485
+ * stdio: 'ignore',
487
486
  * });
488
487
  *
489
488
  * subprocess.unref();
@@ -497,11 +496,11 @@ declare module 'child_process' {
497
496
  * to wait for the child to exit before exiting itself.
498
497
  *
499
498
  * ```js
500
- * const { spawn } = require('child_process');
499
+ * const { spawn } = require('node:child_process');
501
500
  *
502
501
  * const subprocess = spawn(process.argv[0], ['child_program.js'], {
503
502
  * detached: true,
504
- * stdio: 'ignore'
503
+ * stdio: 'ignore',
505
504
  * });
506
505
  *
507
506
  * subprocess.unref();
@@ -621,7 +620,7 @@ declare module 'child_process' {
621
620
  }
622
621
  interface CommonOptions extends ProcessEnvOptions {
623
622
  /**
624
- * @default true
623
+ * @default false
625
624
  */
626
625
  windowsHide?: boolean | undefined;
627
626
  /**
@@ -631,6 +630,15 @@ declare module 'child_process' {
631
630
  }
632
631
  interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable {
633
632
  argv0?: string | undefined;
633
+ /**
634
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
635
+ * If passed as an array, the first element is used for `stdin`, the second for
636
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
637
+ * specify the `stdio` behavior beyond the standard streams. See
638
+ * {@link ChildProcess.stdio} for more information.
639
+ *
640
+ * @default 'pipe'
641
+ */
634
642
  stdio?: StdioOptions | undefined;
635
643
  shell?: boolean | string | undefined;
636
644
  windowsVerbatimArguments?: boolean | undefined;
@@ -660,7 +668,7 @@ declare module 'child_process' {
660
668
  * ```js
661
669
  * const defaults = {
662
670
  * cwd: undefined,
663
- * env: process.env
671
+ * env: process.env,
664
672
  * };
665
673
  * ```
666
674
  *
@@ -679,7 +687,7 @@ declare module 'child_process' {
679
687
  * exit code:
680
688
  *
681
689
  * ```js
682
- * const { spawn } = require('child_process');
690
+ * const { spawn } = require('node:child_process');
683
691
  * const ls = spawn('ls', ['-lh', '/usr']);
684
692
  *
685
693
  * ls.stdout.on('data', (data) => {
@@ -698,7 +706,7 @@ declare module 'child_process' {
698
706
  * Example: A very elaborate way to run `ps ax | grep ssh`
699
707
  *
700
708
  * ```js
701
- * const { spawn } = require('child_process');
709
+ * const { spawn } = require('node:child_process');
702
710
  * const ps = spawn('ps', ['ax']);
703
711
  * const grep = spawn('grep', ['ssh']);
704
712
  *
@@ -735,7 +743,7 @@ declare module 'child_process' {
735
743
  * Example of checking for failed `spawn`:
736
744
  *
737
745
  * ```js
738
- * const { spawn } = require('child_process');
746
+ * const { spawn } = require('node:child_process');
739
747
  * const subprocess = spawn('bad_command');
740
748
  *
741
749
  * subprocess.on('error', (err) => {
@@ -746,14 +754,14 @@ declare module 'child_process' {
746
754
  * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process
747
755
  * title while others (Windows, SunOS) will use `command`.
748
756
  *
749
- * Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so`process.argv[0]` in a Node.js child process will not match the `argv0`parameter passed to `spawn` from the parent,
750
- * retrieve it with the`process.argv0` property instead.
757
+ * Node.js overwrites `argv[0]` with `process.execPath` on startup, so`process.argv[0]` in a Node.js child process will not match the `argv0`parameter passed to `spawn` from the parent. Retrieve
758
+ * it with the`process.argv0` property instead.
751
759
  *
752
760
  * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except
753
761
  * the error passed to the callback will be an `AbortError`:
754
762
  *
755
763
  * ```js
756
- * const { spawn } = require('child_process');
764
+ * const { spawn } = require('node:child_process');
757
765
  * const controller = new AbortController();
758
766
  * const { signal } = controller;
759
767
  * const grep = spawn('grep', ['ssh'], { signal });
@@ -812,7 +820,7 @@ declare module 'child_process' {
812
820
  * need to be dealt with accordingly:
813
821
  *
814
822
  * ```js
815
- * const { exec } = require('child_process');
823
+ * const { exec } = require('node:child_process');
816
824
  *
817
825
  * exec('"/path/to/test file/test.sh" arg1 arg2');
818
826
  * // Double quotes are used so that the space in the path is not interpreted as
@@ -838,7 +846,7 @@ declare module 'child_process' {
838
846
  * encoding, `Buffer` objects will be passed to the callback instead.
839
847
  *
840
848
  * ```js
841
- * const { exec } = require('child_process');
849
+ * const { exec } = require('node:child_process');
842
850
  * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => {
843
851
  * if (error) {
844
852
  * console.error(`exec error: ${error}`);
@@ -863,8 +871,8 @@ declare module 'child_process' {
863
871
  * callback, but with two additional properties `stdout` and `stderr`.
864
872
  *
865
873
  * ```js
866
- * const util = require('util');
867
- * const exec = util.promisify(require('child_process').exec);
874
+ * const util = require('node:util');
875
+ * const exec = util.promisify(require('node:child_process').exec);
868
876
  *
869
877
  * async function lsExample() {
870
878
  * const { stdout, stderr } = await exec('ls');
@@ -878,11 +886,11 @@ declare module 'child_process' {
878
886
  * the error passed to the callback will be an `AbortError`:
879
887
  *
880
888
  * ```js
881
- * const { exec } = require('child_process');
889
+ * const { exec } = require('node:child_process');
882
890
  * const controller = new AbortController();
883
891
  * const { signal } = controller;
884
892
  * const child = exec('grep ssh', { signal }, (error) => {
885
- * console.log(error); // an AbortError
893
+ * console.error(error); // an AbortError
886
894
  * });
887
895
  * controller.abort();
888
896
  * ```
@@ -981,7 +989,10 @@ declare module 'child_process' {
981
989
  interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {
982
990
  encoding: BufferEncoding;
983
991
  }
984
- type ExecFileException = ExecException & NodeJS.ErrnoException;
992
+ type ExecFileException =
993
+ & Omit<ExecException, 'code'>
994
+ & Omit<NodeJS.ErrnoException, 'code'>
995
+ & { code?: string | number | undefined | null };
985
996
  /**
986
997
  * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
987
998
  * executable `file` is spawned directly as a new process making it slightly more
@@ -992,7 +1003,7 @@ declare module 'child_process' {
992
1003
  * supported.
993
1004
  *
994
1005
  * ```js
995
- * const { execFile } = require('child_process');
1006
+ * const { execFile } = require('node:child_process');
996
1007
  * const child = execFile('node', ['--version'], (error, stdout, stderr) => {
997
1008
  * if (error) {
998
1009
  * throw error;
@@ -1015,8 +1026,8 @@ declare module 'child_process' {
1015
1026
  * callback, but with two additional properties `stdout` and `stderr`.
1016
1027
  *
1017
1028
  * ```js
1018
- * const util = require('util');
1019
- * const execFile = util.promisify(require('child_process').execFile);
1029
+ * const util = require('node:util');
1030
+ * const execFile = util.promisify(require('node:child_process').execFile);
1020
1031
  * async function getVersion() {
1021
1032
  * const { stdout } = await execFile('node', ['--version']);
1022
1033
  * console.log(stdout);
@@ -1032,11 +1043,11 @@ declare module 'child_process' {
1032
1043
  * the error passed to the callback will be an `AbortError`:
1033
1044
  *
1034
1045
  * ```js
1035
- * const { execFile } = require('child_process');
1046
+ * const { execFile } = require('node:child_process');
1036
1047
  * const controller = new AbortController();
1037
1048
  * const { signal } = controller;
1038
1049
  * const child = execFile('node', ['--version'], { signal }, (error) => {
1039
- * console.log(error); // an AbortError
1050
+ * console.error(error); // an AbortError
1040
1051
  * });
1041
1052
  * controller.abort();
1042
1053
  * ```
@@ -1189,6 +1200,15 @@ declare module 'child_process' {
1189
1200
  execPath?: string | undefined;
1190
1201
  execArgv?: string[] | undefined;
1191
1202
  silent?: boolean | undefined;
1203
+ /**
1204
+ * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.
1205
+ * If passed as an array, the first element is used for `stdin`, the second for
1206
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1207
+ * specify the `stdio` behavior beyond the standard streams. See
1208
+ * {@link ChildProcess.stdio} for more information.
1209
+ *
1210
+ * @default 'pipe'
1211
+ */
1192
1212
  stdio?: StdioOptions | undefined;
1193
1213
  detached?: boolean | undefined;
1194
1214
  windowsVerbatimArguments?: boolean | undefined;
@@ -1228,7 +1248,7 @@ declare module 'child_process' {
1228
1248
  * console.log(`Hello from ${process.argv[2]}!`);
1229
1249
  * }, 1_000);
1230
1250
  * } else {
1231
- * const { fork } = require('child_process');
1251
+ * const { fork } = require('node:child_process');
1232
1252
  * const controller = new AbortController();
1233
1253
  * const { signal } = controller;
1234
1254
  * const child = fork(__filename, ['child'], { signal });
@@ -1289,6 +1309,15 @@ declare module 'child_process' {
1289
1309
  function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1290
1310
  interface CommonExecOptions extends CommonOptions {
1291
1311
  input?: string | NodeJS.ArrayBufferView | undefined;
1312
+ /**
1313
+ * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings.
1314
+ * If passed as an array, the first element is used for `stdin`, the second for
1315
+ * `stdout`, and the third for `stderr`. A fourth element can be used to
1316
+ * specify the `stdio` behavior beyond the standard streams. See
1317
+ * {@link ChildProcess.stdio} for more information.
1318
+ *
1319
+ * @default 'pipe'
1320
+ */
1292
1321
  stdio?: StdioOptions | undefined;
1293
1322
  killSignal?: NodeJS.Signals | number | undefined;
1294
1323
  maxBuffer?: number | undefined;
@@ -1,18 +1,19 @@
1
1
  /**
2
- * A single instance of Node.js runs in a single thread. To take advantage of
3
- * multi-core systems, the user will sometimes want to launch a cluster of Node.js
4
- * processes to handle the load.
2
+ * Clusters of Node.js processes can be used to run multiple instances of Node.js
3
+ * that can distribute workloads among their application threads. When process
4
+ * isolation is not needed, use the `worker_threads` module instead, which
5
+ * allows running multiple application threads within a single Node.js instance.
5
6
  *
6
7
  * The cluster module allows easy creation of child processes that all share
7
8
  * server ports.
8
9
  *
9
10
  * ```js
10
- * import cluster from 'cluster';
11
- * import http from 'http';
12
- * import { cpus } from 'os';
13
- * import process from 'process';
11
+ * import cluster from 'node:cluster';
12
+ * import http from 'node:http';
13
+ * import { availableParallelism } from 'node:os';
14
+ * import process from 'node:process';
14
15
  *
15
- * const numCPUs = cpus().length;
16
+ * const numCPUs = availableParallelism();
16
17
  *
17
18
  * if (cluster.isPrimary) {
18
19
  * console.log(`Primary ${process.pid} is running`);
@@ -49,12 +50,13 @@
49
50
  * ```
50
51
  *
51
52
  * On Windows, it is not yet possible to set up a named pipe server in a worker.
52
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/cluster.js)
53
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/cluster.js)
53
54
  */
54
55
  declare module 'cluster' {
55
56
  import * as child from 'node:child_process';
56
57
  import EventEmitter = require('node:events');
57
58
  import * as net from 'node:net';
59
+ type SerializationType = 'json' | 'advanced';
58
60
  export interface ClusterSettings {
59
61
  execArgv?: string[] | undefined; // default: process.execArgv
60
62
  exec?: string | undefined;
@@ -64,6 +66,9 @@ declare module 'cluster' {
64
66
  uid?: number | undefined;
65
67
  gid?: number | undefined;
66
68
  inspectPort?: number | (() => number) | undefined;
69
+ serialization?: SerializationType | undefined;
70
+ cwd?: string | undefined;
71
+ windowsHide?: boolean | undefined;
67
72
  }
68
73
  export interface Address {
69
74
  address: string;
@@ -99,9 +104,9 @@ declare module 'cluster' {
99
104
  /**
100
105
  * Send a message to a worker or primary, optionally with a handle.
101
106
  *
102
- * In the primary this sends a message to a specific worker. It is identical to `ChildProcess.send()`.
107
+ * In the primary, this sends a message to a specific worker. It is identical to `ChildProcess.send()`.
103
108
  *
104
- * In a worker this sends a message to the primary. It is identical to`process.send()`.
109
+ * In a worker, this sends a message to the primary. It is identical to`process.send()`.
105
110
  *
106
111
  * This example will echo back all messages from the primary:
107
112
  *
@@ -123,19 +128,13 @@ declare module 'cluster' {
123
128
  send(message: child.Serializable, sendHandle: child.SendHandle, callback?: (error: Error | null) => void): boolean;
124
129
  send(message: child.Serializable, sendHandle: child.SendHandle, options?: child.MessageOptions, callback?: (error: Error | null) => void): boolean;
125
130
  /**
126
- * This function will kill the worker. In the primary, it does this
127
- * by disconnecting the `worker.process`, and once disconnected, killing
128
- * with `signal`. In the worker, it does it by disconnecting the channel,
129
- * and then exiting with code `0`.
131
+ * This function will kill the worker. In the primary worker, it does this by
132
+ * disconnecting the `worker.process`, and once disconnected, killing with`signal`. In the worker, it does it by killing the process with `signal`.
130
133
  *
131
- * Because `kill()` attempts to gracefully disconnect the worker process, it is
132
- * susceptible to waiting indefinitely for the disconnect to complete. For example,
133
- * if the worker enters an infinite loop, a graceful disconnect will never occur.
134
- * If the graceful disconnect behavior is not needed, use `worker.process.kill()`.
134
+ * The `kill()` function kills the worker process without waiting for a graceful
135
+ * disconnect, it has the same behavior as `worker.process.kill()`.
135
136
  *
136
- * Causes `.exitedAfterDisconnect` to be set.
137
- *
138
- * This method is aliased as `worker.destroy()` for backward compatibility.
137
+ * This method is aliased as `worker.destroy()` for backwards compatibility.
139
138
  *
140
139
  * In a worker, `process.kill()` exists, but it is not this function;
141
140
  * it is `kill()`.
@@ -188,7 +187,7 @@ declare module 'cluster' {
188
187
  * });
189
188
  *
190
189
  * } else if (cluster.isWorker) {
191
- * const net = require('net');
190
+ * const net = require('node:net');
192
191
  * const server = net.createServer((socket) => {
193
192
  * // Connections never end
194
193
  * });
@@ -218,12 +217,12 @@ declare module 'cluster' {
218
217
  * because of exiting or being signaled). Otherwise, it returns `false`.
219
218
  *
220
219
  * ```js
221
- * import cluster from 'cluster';
222
- * import http from 'http';
223
- * import { cpus } from 'os';
224
- * import process from 'process';
220
+ * import cluster from 'node:cluster';
221
+ * import http from 'node:http';
222
+ * import { availableParallelism } from 'node:os';
223
+ * import process from 'node:process';
225
224
  *
226
- * const numCPUs = cpus().length;
225
+ * const numCPUs = availableParallelism();
227
226
  *
228
227
  * if (cluster.isPrimary) {
229
228
  * console.log(`Primary ${process.pid} is running`);
@@ -253,7 +252,8 @@ declare module 'cluster' {
253
252
  */
254
253
  isDead(): boolean;
255
254
  /**
256
- * This property is `true` if the worker exited due to `.kill()` or`.disconnect()`. If the worker exited any other way, it is `false`. If the
255
+ * This property is `true` if the worker exited due to `.disconnect()`.
256
+ * If the worker exited any other way, it is `false`. If the
257
257
  * worker has not exited, it is `undefined`.
258
258
  *
259
259
  * The boolean `worker.exitedAfterDisconnect` allows distinguishing between
@@ -1,11 +1,11 @@
1
1
  /**
2
- * The `console` module provides a simple debugging console that is similar to the
3
- * JavaScript console mechanism provided by web browsers.
2
+ * The `node:console` module provides a simple debugging console that is similar to
3
+ * the JavaScript console mechanism provided by web browsers.
4
4
  *
5
5
  * The module exports two specific components:
6
6
  *
7
- * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream.
8
- * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`.
7
+ * * A `Console` class with methods such as `console.log()`, `console.error()`, and`console.warn()` that can be used to write to any Node.js stream.
8
+ * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('node:console')`.
9
9
  *
10
10
  * _**Warning**_: The global console object's methods are neither consistently
11
11
  * synchronous like the browser APIs they resemble, nor are they consistently
@@ -53,7 +53,7 @@
53
53
  * myConsole.warn(`Danger ${name}! Danger!`);
54
54
  * // Prints: Danger Will Robinson! Danger!, to err
55
55
  * ```
56
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/console.js)
56
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/console.js)
57
57
  */
58
58
  declare module 'console' {
59
59
  import console = require('node:console');