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,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 17.0
1
+ // Type definitions for non-npm package Node.js 20.3
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -41,6 +41,7 @@
41
41
  // Linus Unnebäck <https://github.com/LinusU>
42
42
  // wafuwafu13 <https://github.com/wafuwafu13>
43
43
  // Matteo Collina <https://github.com/mcollina>
44
+ // Dmitry Semigradsky <https://github.com/Semigradsky>
44
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
46
 
46
47
  /**
@@ -67,7 +68,7 @@
67
68
  * IN THE SOFTWARE.
68
69
  */
69
70
 
70
- // NOTE: These definitions support NodeJS and TypeScript 3.7+.
71
+ // NOTE: These definitions support NodeJS and TypeScript 4.9+.
71
72
 
72
73
  // Reference required types from the default lib:
73
74
  /// <reference lib="es2020" />
@@ -92,6 +93,7 @@
92
93
  /// <reference path="dns/promises.d.ts" />
93
94
  /// <reference path="dns/promises.d.ts" />
94
95
  /// <reference path="domain.d.ts" />
96
+ /// <reference path="dom-events.d.ts" />
95
97
  /// <reference path="events.d.ts" />
96
98
  /// <reference path="fs.d.ts" />
97
99
  /// <reference path="fs/promises.d.ts" />
@@ -108,12 +110,14 @@
108
110
  /// <reference path="punycode.d.ts" />
109
111
  /// <reference path="querystring.d.ts" />
110
112
  /// <reference path="readline.d.ts" />
113
+ /// <reference path="readline/promises.d.ts" />
111
114
  /// <reference path="repl.d.ts" />
112
115
  /// <reference path="stream.d.ts" />
113
116
  /// <reference path="stream/promises.d.ts" />
114
117
  /// <reference path="stream/consumers.d.ts" />
115
118
  /// <reference path="stream/web.d.ts" />
116
119
  /// <reference path="string_decoder.d.ts" />
120
+ /// <reference path="test.d.ts" />
117
121
  /// <reference path="timers.d.ts" />
118
122
  /// <reference path="timers/promises.d.ts" />
119
123
  /// <reference path="tls.d.ts" />
@@ -1,4 +1,4 @@
1
- // tslint:disable-next-line:dt-header
1
+ // eslint-disable-next-line dt-header
2
2
  // Type definitions for inspector
3
3
 
4
4
  // These definitions are auto-generated.
@@ -8,14 +8,21 @@
8
8
  // tslint:disable:max-line-length
9
9
 
10
10
  /**
11
- * The `inspector` module provides an API for interacting with the V8 inspector.
11
+ * The `node:inspector` module provides an API for interacting with the V8
12
+ * inspector.
12
13
  *
13
14
  * It can be accessed using:
14
15
  *
15
16
  * ```js
16
- * const inspector = require('inspector');
17
+ * import * as inspector from 'node:inspector/promises';
17
18
  * ```
18
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/inspector.js)
19
+ *
20
+ * or
21
+ *
22
+ * ```js
23
+ * import * as inspector from 'node:inspector';
24
+ * ```
25
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/inspector.js)
19
26
  */
20
27
  declare module 'inspector' {
21
28
  import EventEmitter = require('node:events');
@@ -1688,7 +1695,7 @@ declare module 'inspector' {
1688
1695
  /**
1689
1696
  * Controls how the trace buffer stores data.
1690
1697
  */
1691
- recordMode?: string;
1698
+ recordMode?: string | undefined;
1692
1699
  /**
1693
1700
  * Included category filters.
1694
1701
  */
@@ -1778,12 +1785,6 @@ declare module 'inspector' {
1778
1785
  * @since v8.0.0
1779
1786
  */
1780
1787
  connect(): void;
1781
- /**
1782
- * Connects a session to the main thread inspector back-end. An exception will
1783
- * be thrown if this API was not called on a Worker thread.
1784
- * @since v12.11.0
1785
- */
1786
- connectToMainThread(): void;
1787
1788
  /**
1788
1789
  * Immediately close the session. All pending message callbacks will be called
1789
1790
  * with an error. `session.connect()` will need to be called to be able to send
@@ -2695,7 +2696,7 @@ declare module 'inspector' {
2695
2696
  prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2696
2697
  }
2697
2698
  /**
2698
- * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has
2699
+ * Activate inspector on host and port. Equivalent to`node --inspect=[[host:]port]`, but can be done programmatically after node has
2699
2700
  * started.
2700
2701
  *
2701
2702
  * If wait is `true`, will block until a client has connected to the inspect port
@@ -2717,12 +2718,12 @@ declare module 'inspector' {
2717
2718
  * ```console
2718
2719
  * $ node --inspect -p 'inspector.url()'
2719
2720
  * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2720
- * For help see https://nodejs.org/en/docs/inspector
2721
+ * For help, see: https://nodejs.org/en/docs/inspector
2721
2722
  * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2722
2723
  *
2723
2724
  * $ node --inspect=localhost:3000 -p 'inspector.url()'
2724
2725
  * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2725
- * For help see https://nodejs.org/en/docs/inspector
2726
+ * For help, see: https://nodejs.org/en/docs/inspector
2726
2727
  * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2727
2728
  *
2728
2729
  * $ node -p 'inspector.url()'
@@ -2738,7 +2739,10 @@ declare module 'inspector' {
2738
2739
  */
2739
2740
  function waitForDebugger(): void;
2740
2741
  }
2742
+ /**
2743
+ * The inspector module provides an API for interacting with the V8 inspector.
2744
+ */
2741
2745
  declare module 'node:inspector' {
2742
- import EventEmitter = require('inspector');
2743
- export = EventEmitter;
2746
+ import inspector = require('inspector');
2747
+ export = inspector;
2744
2748
  }
@@ -10,9 +10,9 @@ declare module 'module' {
10
10
  * does not add or remove exported names from the `ES Modules`.
11
11
  *
12
12
  * ```js
13
- * const fs = require('fs');
14
- * const assert = require('assert');
15
- * const { syncBuiltinESMExports } = require('module');
13
+ * const fs = require('node:fs');
14
+ * const assert = require('node:assert');
15
+ * const { syncBuiltinESMExports } = require('node:module');
16
16
  *
17
17
  * fs.readFile = newAPI;
18
18
  *
@@ -26,7 +26,7 @@ declare module 'module' {
26
26
  *
27
27
  * syncBuiltinESMExports();
28
28
  *
29
- * import('fs').then((esmFS) => {
29
+ * import('node:fs').then((esmFS) => {
30
30
  * // It syncs the existing readFile property with the new value
31
31
  * assert.strictEqual(esmFS.readFile, newAPI);
32
32
  * // readFileSync has been deleted from the required fs
@@ -44,6 +44,7 @@ declare module 'module' {
44
44
  * `path` is the resolved path for the file for which a corresponding source map
45
45
  * should be fetched.
46
46
  * @since v13.7.0, v12.17.0
47
+ * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
47
48
  */
48
49
  function findSourceMap(path: string, error?: Error): SourceMap;
49
50
  interface SourceMapPayload {
@@ -85,6 +86,7 @@ declare module 'module' {
85
86
  static wrap(code: string): string;
86
87
  static createRequire(path: string | URL): NodeRequire;
87
88
  static builtinModules: string[];
89
+ static isBuiltin(moduleName: string): boolean;
88
90
  static Module: typeof Module;
89
91
  constructor(id: string, parent?: Module);
90
92
  }
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * > Stability: 2 - Stable
3
3
  *
4
- * The `net` module provides an asynchronous network API for creating stream-based
4
+ * The `node:net` module provides an asynchronous network API for creating stream-based
5
5
  * TCP or `IPC` servers ({@link createServer}) and clients
6
6
  * ({@link createConnection}).
7
7
  *
8
8
  * It can be accessed using:
9
9
  *
10
10
  * ```js
11
- * const net = require('net');
11
+ * const net = require('node:net');
12
12
  * ```
13
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/net.js)
13
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/net.js)
14
14
  */
15
15
  declare module 'net' {
16
16
  import * as stream from 'node:stream';
@@ -54,6 +54,17 @@ declare module 'net' {
54
54
  hints?: number | undefined;
55
55
  family?: number | undefined;
56
56
  lookup?: LookupFunction | undefined;
57
+ noDelay?: boolean | undefined;
58
+ keepAlive?: boolean | undefined;
59
+ keepAliveInitialDelay?: number | undefined;
60
+ /**
61
+ * @since v18.13.0
62
+ */
63
+ autoSelectFamily?: boolean | undefined;
64
+ /**
65
+ * @since v18.13.0
66
+ */
67
+ autoSelectFamilyAttemptTimeout?: number | undefined;
57
68
  }
58
69
  interface IpcSocketConnectOpts extends ConnectOpts {
59
70
  path: string;
@@ -128,6 +139,14 @@ declare module 'net' {
128
139
  * @return The socket itself.
129
140
  */
130
141
  pause(): this;
142
+ /**
143
+ * Close the TCP connection by sending an RST packet and destroy the stream.
144
+ * If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected.
145
+ * Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error.
146
+ * If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error.
147
+ * @since v18.3.0, v16.17.0
148
+ */
149
+ resetAndDestroy(): this;
131
150
  /**
132
151
  * Resumes reading after a call to `socket.pause()`.
133
152
  * @return The socket itself.
@@ -205,7 +224,7 @@ declare module 'net' {
205
224
  */
206
225
  unref(): this;
207
226
  /**
208
- * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will_not_ let the program exit if it's the only socket left (the default behavior).
227
+ * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior).
209
228
  * If the socket is `ref`ed calling `ref` again will have no effect.
210
229
  * @since v0.9.1
211
230
  * @return The socket itself.
@@ -247,6 +266,12 @@ declare module 'net' {
247
266
  * @since v6.1.0
248
267
  */
249
268
  readonly connecting: boolean;
269
+ /**
270
+ * This is `true` if the socket is not connected yet, either because `.connect()`has not yet been called or because it is still in the process of connecting
271
+ * (see `socket.connecting`).
272
+ * @since v11.2.0, v10.16.0
273
+ */
274
+ readonly pending: boolean;
250
275
  /**
251
276
  * See `writable.destroyed` for further details.
252
277
  */
@@ -263,9 +288,18 @@ declare module 'net' {
263
288
  * @since v0.9.6
264
289
  */
265
290
  readonly localPort?: number;
291
+ /**
292
+ * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
293
+ * @since v18.8.0, v16.18.0
294
+ */
295
+ readonly localFamily?: string;
266
296
  /**
267
297
  * This property represents the state of the connection as a string.
268
- * @see {https://nodejs.org/api/net.html#socketreadystate}
298
+ *
299
+ * * If the stream is connecting `socket.readyState` is `opening`.
300
+ * * If the stream is readable and writable, it is `open`.
301
+ * * If the stream is readable and not writable, it is `readOnly`.
302
+ * * If the stream is not readable and writable, it is `writeOnly`.
269
303
  * @since v0.5.0
270
304
  */
271
305
  readonly readyState: SocketReadyState;
@@ -276,17 +310,20 @@ declare module 'net' {
276
310
  */
277
311
  readonly remoteAddress?: string | undefined;
278
312
  /**
279
- * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`.
313
+ * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
314
+ * the socket is destroyed (for example, if the client disconnected).
280
315
  * @since v0.11.14
281
316
  */
282
317
  readonly remoteFamily?: string | undefined;
283
318
  /**
284
- * The numeric representation of the remote port. For example, `80` or `21`.
319
+ * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
320
+ * the socket is destroyed (for example, if the client disconnected).
285
321
  * @since v0.5.10
286
322
  */
287
323
  readonly remotePort?: number | undefined;
288
324
  /**
289
- * The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
325
+ * The socket timeout in milliseconds as set by `socket.setTimeout()`.
326
+ * It is `undefined` if a timeout has not been set.
290
327
  * @since v10.7.0
291
328
  */
292
329
  readonly timeout?: number | undefined;
@@ -312,7 +349,8 @@ declare module 'net' {
312
349
  * 5. end
313
350
  * 6. error
314
351
  * 7. lookup
315
- * 8. timeout
352
+ * 8. ready
353
+ * 9. timeout
316
354
  */
317
355
  addListener(event: string, listener: (...args: any[]) => void): this;
318
356
  addListener(event: 'close', listener: (hadError: boolean) => void): this;
@@ -399,6 +437,33 @@ declare module 'net' {
399
437
  * @default false
400
438
  */
401
439
  pauseOnConnect?: boolean | undefined;
440
+ /**
441
+ * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
442
+ * @default false
443
+ * @since v16.5.0
444
+ */
445
+ noDelay?: boolean | undefined;
446
+ /**
447
+ * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
448
+ * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
449
+ * @default false
450
+ * @since v16.5.0
451
+ */
452
+ keepAlive?: boolean | undefined;
453
+ /**
454
+ * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
455
+ * @default 0
456
+ * @since v16.5.0
457
+ */
458
+ keepAliveInitialDelay?: number | undefined;
459
+ }
460
+ interface DropArgument {
461
+ localAddress?: string;
462
+ localPort?: number;
463
+ localFamily?: string;
464
+ remoteAddress?: string;
465
+ remotePort?: number;
466
+ remoteFamily?: string;
402
467
  }
403
468
  /**
404
469
  * This class is used to create a TCP or `IPC` server.
@@ -439,7 +504,7 @@ declare module 'net' {
439
504
  * ```js
440
505
  * server.on('error', (e) => {
441
506
  * if (e.code === 'EADDRINUSE') {
442
- * console.log('Address in use, retrying...');
507
+ * console.error('Address in use, retrying...');
443
508
  * setTimeout(() => {
444
509
  * server.close();
445
510
  * server.listen(PORT, HOST);
@@ -504,7 +569,7 @@ declare module 'net' {
504
569
  */
505
570
  getConnections(cb: (error: Error | null, count: number) => void): void;
506
571
  /**
507
- * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will_not_ let the program exit if it's the only server left (the default behavior).
572
+ * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior).
508
573
  * If the server is `ref`ed calling `ref()` again will have no effect.
509
574
  * @since v0.9.1
510
575
  */
@@ -536,37 +601,44 @@ declare module 'net' {
536
601
  * 2. connection
537
602
  * 3. error
538
603
  * 4. listening
604
+ * 5. drop
539
605
  */
540
606
  addListener(event: string, listener: (...args: any[]) => void): this;
541
607
  addListener(event: 'close', listener: () => void): this;
542
608
  addListener(event: 'connection', listener: (socket: Socket) => void): this;
543
609
  addListener(event: 'error', listener: (err: Error) => void): this;
544
610
  addListener(event: 'listening', listener: () => void): this;
611
+ addListener(event: 'drop', listener: (data?: DropArgument) => void): this;
545
612
  emit(event: string | symbol, ...args: any[]): boolean;
546
613
  emit(event: 'close'): boolean;
547
614
  emit(event: 'connection', socket: Socket): boolean;
548
615
  emit(event: 'error', err: Error): boolean;
549
616
  emit(event: 'listening'): boolean;
617
+ emit(event: 'drop', data?: DropArgument): boolean;
550
618
  on(event: string, listener: (...args: any[]) => void): this;
551
619
  on(event: 'close', listener: () => void): this;
552
620
  on(event: 'connection', listener: (socket: Socket) => void): this;
553
621
  on(event: 'error', listener: (err: Error) => void): this;
554
622
  on(event: 'listening', listener: () => void): this;
623
+ on(event: 'drop', listener: (data?: DropArgument) => void): this;
555
624
  once(event: string, listener: (...args: any[]) => void): this;
556
625
  once(event: 'close', listener: () => void): this;
557
626
  once(event: 'connection', listener: (socket: Socket) => void): this;
558
627
  once(event: 'error', listener: (err: Error) => void): this;
559
628
  once(event: 'listening', listener: () => void): this;
629
+ once(event: 'drop', listener: (data?: DropArgument) => void): this;
560
630
  prependListener(event: string, listener: (...args: any[]) => void): this;
561
631
  prependListener(event: 'close', listener: () => void): this;
562
632
  prependListener(event: 'connection', listener: (socket: Socket) => void): this;
563
633
  prependListener(event: 'error', listener: (err: Error) => void): this;
564
634
  prependListener(event: 'listening', listener: () => void): this;
635
+ prependListener(event: 'drop', listener: (data?: DropArgument) => void): this;
565
636
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
566
637
  prependOnceListener(event: 'close', listener: () => void): this;
567
638
  prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
568
639
  prependOnceListener(event: 'error', listener: (err: Error) => void): this;
569
640
  prependOnceListener(event: 'listening', listener: () => void): this;
641
+ prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
570
642
  }
571
643
  type IPVersion = 'ipv4' | 'ipv6';
572
644
  /**
@@ -650,11 +722,11 @@ declare module 'net' {
650
722
  *
651
723
  * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to.
652
724
  *
653
- * Here is an example of an TCP echo server which listens for connections
725
+ * Here is an example of a TCP echo server which listens for connections
654
726
  * on port 8124:
655
727
  *
656
728
  * ```js
657
- * const net = require('net');
729
+ * const net = require('node:net');
658
730
  * const server = net.createServer((c) => {
659
731
  * // 'connection' listener.
660
732
  * console.log('client connected');
@@ -674,8 +746,8 @@ declare module 'net' {
674
746
  *
675
747
  * Test this by using `telnet`:
676
748
  *
677
- * ```console
678
- * $ telnet localhost 8124
749
+ * ```bash
750
+ * telnet localhost 8124
679
751
  * ```
680
752
  *
681
753
  * To listen on the socket `/tmp/echo.sock`:
@@ -688,8 +760,8 @@ declare module 'net' {
688
760
  *
689
761
  * Use `nc` to connect to a Unix domain socket server:
690
762
  *
691
- * ```console
692
- * $ nc -U /tmp/echo.sock
763
+ * ```bash
764
+ * nc -U /tmp/echo.sock
693
765
  * ```
694
766
  * @since v0.5.0
695
767
  * @param connectionListener Automatically set as a listener for the {@link 'connection'} event.
@@ -729,19 +801,39 @@ declare module 'net' {
729
801
  function createConnection(port: number, host?: string, connectionListener?: () => void): Socket;
730
802
  function createConnection(path: string, connectionListener?: () => void): Socket;
731
803
  /**
732
- * Tests if input is an IP address. Returns `0` for invalid strings,
733
- * returns `4` for IP version 4 addresses, and returns `6` for IP version 6
734
- * addresses.
804
+ * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4
805
+ * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`.
806
+ *
807
+ * ```js
808
+ * net.isIP('::1'); // returns 6
809
+ * net.isIP('127.0.0.1'); // returns 4
810
+ * net.isIP('127.000.000.001'); // returns 0
811
+ * net.isIP('127.0.0.1/24'); // returns 0
812
+ * net.isIP('fhqwhgads'); // returns 0
813
+ * ```
735
814
  * @since v0.3.0
736
815
  */
737
816
  function isIP(input: string): number;
738
817
  /**
739
- * Returns `true` if input is a version 4 IP address, otherwise returns `false`.
818
+ * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no
819
+ * leading zeroes. Otherwise, returns `false`.
820
+ *
821
+ * ```js
822
+ * net.isIPv4('127.0.0.1'); // returns true
823
+ * net.isIPv4('127.000.000.001'); // returns false
824
+ * net.isIPv4('127.0.0.1/24'); // returns false
825
+ * net.isIPv4('fhqwhgads'); // returns false
826
+ * ```
740
827
  * @since v0.3.0
741
828
  */
742
829
  function isIPv4(input: string): boolean;
743
830
  /**
744
- * Returns `true` if input is a version 6 IP address, otherwise returns `false`.
831
+ * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`.
832
+ *
833
+ * ```js
834
+ * net.isIPv6('::1'); // returns true
835
+ * net.isIPv6('fhqwhgads'); // returns false
836
+ * ```
745
837
  * @since v0.3.0
746
838
  */
747
839
  function isIPv6(input: string): boolean;
@@ -1,11 +1,11 @@
1
1
  /**
2
- * The `os` module provides operating system-related utility methods and
2
+ * The `node:os` module provides operating system-related utility methods and
3
3
  * properties. It can be accessed using:
4
4
  *
5
5
  * ```js
6
- * const os = require('os');
6
+ * const os = require('node:os');
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/os.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/os.js)
9
9
  */
10
10
  declare module 'os' {
11
11
  interface CpuInfo {
@@ -28,6 +28,7 @@ declare module 'os' {
28
28
  }
29
29
  interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
30
30
  family: 'IPv4';
31
+ scopeid?: undefined;
31
32
  }
32
33
  interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
33
34
  family: 'IPv6';
@@ -74,6 +75,7 @@ declare module 'os' {
74
75
  function totalmem(): number;
75
76
  /**
76
77
  * Returns an array of objects containing information about each logical CPU core.
78
+ * The array will be empty if no CPU information is available, such as if the`/proc` file system is unavailable.
77
79
  *
78
80
  * The properties included on each object include:
79
81
  *
@@ -87,8 +89,8 @@ declare module 'os' {
87
89
  * nice: 0,
88
90
  * sys: 30340,
89
91
  * idle: 1070356870,
90
- * irq: 0
91
- * }
92
+ * irq: 0,
93
+ * },
92
94
  * },
93
95
  * {
94
96
  * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
@@ -98,8 +100,8 @@ declare module 'os' {
98
100
  * nice: 0,
99
101
  * sys: 26980,
100
102
  * idle: 1071569080,
101
- * irq: 0
102
- * }
103
+ * irq: 0,
104
+ * },
103
105
  * },
104
106
  * {
105
107
  * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
@@ -109,8 +111,8 @@ declare module 'os' {
109
111
  * nice: 0,
110
112
  * sys: 21750,
111
113
  * idle: 1070919370,
112
- * irq: 0
113
- * }
114
+ * irq: 0,
115
+ * },
114
116
  * },
115
117
  * {
116
118
  * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz',
@@ -120,17 +122,28 @@ declare module 'os' {
120
122
  * nice: 0,
121
123
  * sys: 19430,
122
124
  * idle: 1070905480,
123
- * irq: 20
124
- * }
125
+ * irq: 20,
126
+ * },
125
127
  * },
126
128
  * ]
127
129
  * ```
128
130
  *
129
131
  * `nice` values are POSIX-only. On Windows, the `nice` values of all processors
130
132
  * are always 0.
133
+ *
134
+ * `os.cpus().length` should not be used to calculate the amount of parallelism
135
+ * available to an application. Use {@link availableParallelism} for this purpose.
131
136
  * @since v0.3.3
132
137
  */
133
138
  function cpus(): CpuInfo[];
139
+ /**
140
+ * Returns an estimate of the default amount of parallelism a program should use.
141
+ * Always returns a value greater than zero.
142
+ *
143
+ * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism).
144
+ * @since v19.4.0, v18.14.0
145
+ */
146
+ function availableParallelism(): number;
134
147
  /**
135
148
  * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it
136
149
  * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.
@@ -387,7 +400,7 @@ declare module 'os' {
387
400
  const EOL: string;
388
401
  /**
389
402
  * Returns the operating system CPU architecture for which the Node.js binary was
390
- * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
403
+ * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
391
404
  *
392
405
  * The return value is equivalent to `process.arch`.
393
406
  * @since v0.5.0
@@ -402,8 +415,9 @@ declare module 'os' {
402
415
  */
403
416
  function version(): string;
404
417
  /**
405
- * Returns a string identifying the operating system platform. The value is set
406
- * at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
418
+ * Returns a string identifying the operating system platform for which
419
+ * the Node.js binary was compiled. The value is set at compile time.
420
+ * Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`,`'openbsd'`, `'sunos'`, and `'win32'`.
407
421
  *
408
422
  * The return value is equivalent to `process.platform`.
409
423
  *
@@ -412,6 +426,14 @@ declare module 'os' {
412
426
  * @since v0.5.0
413
427
  */
414
428
  function platform(): NodeJS.Platform;
429
+ /**
430
+ * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`,`mips`, `mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
431
+ *
432
+ * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not
433
+ * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information.
434
+ * @since v18.9.0, v16.18.0
435
+ */
436
+ function machine(): string;
415
437
  /**
416
438
  * Returns the operating system's default directory for temporary files as a
417
439
  * string.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.35",
3
+ "version": "20.3.2",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -209,10 +209,22 @@
209
209
  "name": "Matteo Collina",
210
210
  "url": "https://github.com/mcollina",
211
211
  "githubUsername": "mcollina"
212
+ },
213
+ {
214
+ "name": "Dmitry Semigradsky",
215
+ "url": "https://github.com/Semigradsky",
216
+ "githubUsername": "Semigradsky"
212
217
  }
213
218
  ],
214
219
  "main": "",
215
220
  "types": "index.d.ts",
221
+ "typesVersions": {
222
+ "<=4.8": {
223
+ "*": [
224
+ "ts4.8/*"
225
+ ]
226
+ }
227
+ },
216
228
  "repository": {
217
229
  "type": "git",
218
230
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -220,6 +232,6 @@
220
232
  },
221
233
  "scripts": {},
222
234
  "dependencies": {},
223
- "typesPublisherContentHash": "6238ccaa7b50cbe1d37bc66eabdea21a4bfb4a7fd6bd780350e84241e2810a00",
224
- "typeScriptVersion": "3.9"
235
+ "typesPublisherContentHash": "77b1f16021a42a5f28f9061a3922380bdc6bcd9630c2405d53ff935c6538793c",
236
+ "typeScriptVersion": "4.3"
225
237
  }