cdk-ecr-deployment 0.0.75 → 0.0.81

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 (357) hide show
  1. package/.gitattributes +20 -21
  2. package/.jsii +43 -35
  3. package/lambda/Dockerfile +25 -0
  4. package/lambda/install.js +64 -0
  5. package/lib/index.js +40 -23
  6. package/node_modules/@sindresorhus/is/dist/index.d.ts +225 -0
  7. package/node_modules/@sindresorhus/is/dist/index.js +427 -0
  8. package/node_modules/@sindresorhus/is/dist/types.d.ts +24 -0
  9. package/node_modules/@sindresorhus/is/dist/types.js +3 -0
  10. package/node_modules/@sindresorhus/is/license +9 -0
  11. package/node_modules/@sindresorhus/is/package.json +96 -0
  12. package/node_modules/@sindresorhus/is/readme.md +628 -0
  13. package/node_modules/@szmarczak/http-timer/LICENSE +21 -0
  14. package/node_modules/@szmarczak/http-timer/README.md +93 -0
  15. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
  16. package/node_modules/@szmarczak/http-timer/dist/source/index.js +126 -0
  17. package/node_modules/@szmarczak/http-timer/package.json +72 -0
  18. package/node_modules/@types/cacheable-request/LICENSE +21 -0
  19. package/node_modules/@types/cacheable-request/README.md +16 -0
  20. package/node_modules/@types/cacheable-request/index.d.ts +137 -0
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +21 -0
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +16 -0
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +8 -0
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +912 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +497 -0
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2142 -0
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1366 -0
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +414 -0
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +412 -0
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +18 -0
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3307 -0
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +545 -0
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +368 -0
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +654 -0
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +169 -0
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +623 -0
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +1091 -0
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3784 -0
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +284 -0
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +1 -0
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1369 -0
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2100 -0
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +391 -0
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +131 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2745 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +114 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +783 -0
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +455 -0
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +230 -0
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +172 -0
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +555 -0
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1481 -0
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +117 -0
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +131 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +543 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +424 -0
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +24 -0
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +42 -0
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +1249 -0
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +67 -0
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +68 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +94 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1019 -0
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +161 -0
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +204 -0
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +821 -0
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +1594 -0
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +378 -0
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +507 -0
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +158 -0
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +649 -0
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +517 -0
  75. package/node_modules/@types/cacheable-request/package.json +35 -0
  76. package/node_modules/@types/http-cache-semantics/LICENSE +21 -0
  77. package/node_modules/@types/http-cache-semantics/README.md +16 -0
  78. package/node_modules/@types/http-cache-semantics/index.d.ts +170 -0
  79. package/node_modules/@types/http-cache-semantics/package.json +25 -0
  80. package/node_modules/@types/keyv/LICENSE +21 -0
  81. package/node_modules/@types/keyv/README.md +16 -0
  82. package/node_modules/@types/keyv/index.d.ts +77 -0
  83. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +21 -0
  84. package/node_modules/@types/keyv/node_modules/@types/node/README.md +16 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +8 -0
  86. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +912 -0
  87. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +497 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2142 -0
  89. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1366 -0
  90. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +414 -0
  91. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +412 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +18 -0
  93. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3307 -0
  94. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +545 -0
  95. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  96. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +368 -0
  97. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +654 -0
  98. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +169 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +623 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +1091 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3784 -0
  102. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +284 -0
  103. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +1 -0
  104. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1369 -0
  105. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2100 -0
  106. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +391 -0
  107. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +131 -0
  108. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2745 -0
  109. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +114 -0
  110. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +783 -0
  111. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +455 -0
  112. package/node_modules/@types/keyv/node_modules/@types/node/package.json +230 -0
  113. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +172 -0
  114. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +555 -0
  115. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1481 -0
  116. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +117 -0
  117. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +131 -0
  118. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +543 -0
  119. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +424 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +24 -0
  121. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +42 -0
  122. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -0
  123. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +1249 -0
  124. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +67 -0
  125. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +68 -0
  126. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +94 -0
  127. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1019 -0
  128. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +161 -0
  129. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +204 -0
  130. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +821 -0
  131. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +1594 -0
  132. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +378 -0
  133. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +507 -0
  134. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +158 -0
  135. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +649 -0
  136. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +517 -0
  137. package/node_modules/@types/keyv/package.json +32 -0
  138. package/node_modules/@types/responselike/LICENSE +21 -0
  139. package/node_modules/@types/responselike/README.md +16 -0
  140. package/node_modules/@types/responselike/index.d.ts +34 -0
  141. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +21 -0
  142. package/node_modules/@types/responselike/node_modules/@types/node/README.md +16 -0
  143. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +8 -0
  144. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +912 -0
  145. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +497 -0
  146. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2142 -0
  147. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1366 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +414 -0
  149. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +412 -0
  150. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +18 -0
  151. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3307 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +545 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +134 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +368 -0
  155. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +654 -0
  156. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +169 -0
  157. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +623 -0
  158. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +1091 -0
  159. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3784 -0
  160. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +284 -0
  161. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +1 -0
  162. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1369 -0
  163. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2100 -0
  164. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +391 -0
  165. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +131 -0
  166. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2745 -0
  167. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +114 -0
  168. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +783 -0
  169. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +455 -0
  170. package/node_modules/@types/responselike/node_modules/@types/node/package.json +230 -0
  171. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +172 -0
  172. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +555 -0
  173. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1481 -0
  174. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +117 -0
  175. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +131 -0
  176. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +543 -0
  177. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +424 -0
  178. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +24 -0
  179. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +42 -0
  180. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -0
  181. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +1249 -0
  182. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +67 -0
  183. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +68 -0
  184. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +94 -0
  185. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1019 -0
  186. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +161 -0
  187. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +204 -0
  188. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +821 -0
  189. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +1594 -0
  190. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +378 -0
  191. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +507 -0
  192. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +158 -0
  193. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +649 -0
  194. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +517 -0
  195. package/node_modules/@types/responselike/package.json +25 -0
  196. package/node_modules/cacheable-lookup/LICENSE +21 -0
  197. package/node_modules/cacheable-lookup/README.md +240 -0
  198. package/node_modules/cacheable-lookup/index.d.ts +139 -0
  199. package/node_modules/cacheable-lookup/package.json +45 -0
  200. package/node_modules/cacheable-lookup/source/index.js +436 -0
  201. package/node_modules/cacheable-request/LICENSE +21 -0
  202. package/node_modules/cacheable-request/README.md +206 -0
  203. package/node_modules/cacheable-request/package.json +56 -0
  204. package/node_modules/cacheable-request/src/index.js +251 -0
  205. package/node_modules/clone-response/LICENSE +21 -0
  206. package/node_modules/clone-response/README.md +62 -0
  207. package/node_modules/clone-response/package.json +44 -0
  208. package/node_modules/clone-response/src/index.js +17 -0
  209. package/node_modules/decompress-response/index.d.ts +22 -0
  210. package/node_modules/decompress-response/index.js +58 -0
  211. package/node_modules/decompress-response/license +9 -0
  212. package/node_modules/decompress-response/node_modules/mimic-response/index.d.ts +17 -0
  213. package/node_modules/decompress-response/node_modules/mimic-response/index.js +77 -0
  214. package/node_modules/decompress-response/node_modules/mimic-response/license +9 -0
  215. package/node_modules/decompress-response/node_modules/mimic-response/package.json +42 -0
  216. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +78 -0
  217. package/node_modules/decompress-response/package.json +56 -0
  218. package/node_modules/decompress-response/readme.md +48 -0
  219. package/node_modules/defer-to-connect/LICENSE +21 -0
  220. package/node_modules/defer-to-connect/README.md +38 -0
  221. package/node_modules/defer-to-connect/dist/source/index.d.ts +10 -0
  222. package/node_modules/defer-to-connect/dist/source/index.js +47 -0
  223. package/node_modules/defer-to-connect/package.json +71 -0
  224. package/node_modules/end-of-stream/LICENSE +21 -0
  225. package/node_modules/end-of-stream/README.md +54 -0
  226. package/node_modules/end-of-stream/index.js +94 -0
  227. package/node_modules/end-of-stream/package.json +37 -0
  228. package/node_modules/get-stream/buffer-stream.js +52 -0
  229. package/node_modules/get-stream/index.d.ts +108 -0
  230. package/node_modules/get-stream/index.js +60 -0
  231. package/node_modules/get-stream/license +9 -0
  232. package/node_modules/get-stream/package.json +50 -0
  233. package/node_modules/get-stream/readme.md +124 -0
  234. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +2 -0
  235. package/node_modules/got/dist/source/as-promise/create-rejection.js +30 -0
  236. package/node_modules/got/dist/source/as-promise/index.d.ts +3 -0
  237. package/node_modules/got/dist/source/as-promise/index.js +175 -0
  238. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +3 -0
  239. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +78 -0
  240. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +3 -0
  241. package/node_modules/got/dist/source/as-promise/parse-body.js +25 -0
  242. package/node_modules/got/dist/source/as-promise/types.d.ts +256 -0
  243. package/node_modules/got/dist/source/as-promise/types.js +40 -0
  244. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +5 -0
  245. package/node_modules/got/dist/source/core/calculate-retry-delay.js +29 -0
  246. package/node_modules/got/dist/source/core/index.d.ts +1124 -0
  247. package/node_modules/got/dist/source/core/index.js +1491 -0
  248. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
  249. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +17 -0
  250. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +3 -0
  251. package/node_modules/got/dist/source/core/utils/get-body-size.js +32 -0
  252. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +4 -0
  253. package/node_modules/got/dist/source/core/utils/get-buffer.js +16 -0
  254. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +8 -0
  255. package/node_modules/got/dist/source/core/utils/is-form-data.js +4 -0
  256. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +2 -0
  257. package/node_modules/got/dist/source/core/utils/is-response-ok.js +8 -0
  258. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +14 -0
  259. package/node_modules/got/dist/source/core/utils/options-to-url.js +53 -0
  260. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +3 -0
  261. package/node_modules/got/dist/source/core/utils/proxy-events.js +17 -0
  262. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +29 -0
  263. package/node_modules/got/dist/source/core/utils/timed-out.js +121 -0
  264. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +11 -0
  265. package/node_modules/got/dist/source/core/utils/unhandle.js +22 -0
  266. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +15 -0
  267. package/node_modules/got/dist/source/core/utils/url-to-options.js +24 -0
  268. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +8 -0
  269. package/node_modules/got/dist/source/core/utils/weakable-map.js +29 -0
  270. package/node_modules/got/dist/source/create.d.ts +5 -0
  271. package/node_modules/got/dist/source/create.js +240 -0
  272. package/node_modules/got/dist/source/index.d.ts +4 -0
  273. package/node_modules/got/dist/source/index.js +132 -0
  274. package/node_modules/got/dist/source/types.d.ts +342 -0
  275. package/node_modules/got/dist/source/types.js +2 -0
  276. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +1 -0
  277. package/node_modules/got/dist/source/utils/deep-freeze.js +12 -0
  278. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +2 -0
  279. package/node_modules/got/dist/source/utils/deprecation-warning.js +13 -0
  280. package/node_modules/got/license +9 -0
  281. package/node_modules/got/package.json +130 -0
  282. package/node_modules/got/readme.md +2476 -0
  283. package/node_modules/http-cache-semantics/LICENSE +9 -0
  284. package/node_modules/http-cache-semantics/README.md +203 -0
  285. package/node_modules/http-cache-semantics/index.js +673 -0
  286. package/node_modules/http-cache-semantics/package.json +24 -0
  287. package/node_modules/http2-wrapper/LICENSE +21 -0
  288. package/node_modules/http2-wrapper/README.md +470 -0
  289. package/node_modules/http2-wrapper/package.json +54 -0
  290. package/node_modules/http2-wrapper/source/agent.js +670 -0
  291. package/node_modules/http2-wrapper/source/auto.js +149 -0
  292. package/node_modules/http2-wrapper/source/client-request.js +445 -0
  293. package/node_modules/http2-wrapper/source/incoming-message.js +58 -0
  294. package/node_modules/http2-wrapper/source/index.js +28 -0
  295. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +27 -0
  296. package/node_modules/http2-wrapper/source/utils/errors.js +45 -0
  297. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +13 -0
  298. package/node_modules/http2-wrapper/source/utils/proxy-events.js +7 -0
  299. package/node_modules/http2-wrapper/source/utils/url-to-options.js +25 -0
  300. package/node_modules/json-buffer/.travis.yml +3 -0
  301. package/node_modules/json-buffer/LICENSE +22 -0
  302. package/node_modules/json-buffer/README.md +24 -0
  303. package/node_modules/json-buffer/index.js +58 -0
  304. package/node_modules/json-buffer/package.json +34 -0
  305. package/node_modules/json-buffer/test/index.js +63 -0
  306. package/node_modules/keyv/LICENSE +21 -0
  307. package/node_modules/keyv/README.md +288 -0
  308. package/node_modules/keyv/package.json +49 -0
  309. package/node_modules/keyv/src/index.js +111 -0
  310. package/node_modules/lowercase-keys/index.d.ts +16 -0
  311. package/node_modules/lowercase-keys/index.js +10 -0
  312. package/node_modules/lowercase-keys/license +9 -0
  313. package/node_modules/lowercase-keys/package.json +38 -0
  314. package/node_modules/lowercase-keys/readme.md +32 -0
  315. package/node_modules/mimic-response/index.js +32 -0
  316. package/node_modules/mimic-response/license +9 -0
  317. package/node_modules/mimic-response/package.json +37 -0
  318. package/node_modules/mimic-response/readme.md +54 -0
  319. package/node_modules/normalize-url/index.d.ts +267 -0
  320. package/node_modules/normalize-url/index.js +216 -0
  321. package/node_modules/normalize-url/license +9 -0
  322. package/node_modules/normalize-url/package.json +50 -0
  323. package/node_modules/normalize-url/readme.md +286 -0
  324. package/node_modules/once/LICENSE +15 -0
  325. package/node_modules/once/README.md +79 -0
  326. package/node_modules/once/once.js +42 -0
  327. package/node_modules/once/package.json +33 -0
  328. package/node_modules/p-cancelable/index.d.ts +176 -0
  329. package/node_modules/p-cancelable/index.js +111 -0
  330. package/node_modules/p-cancelable/license +9 -0
  331. package/node_modules/p-cancelable/package.json +49 -0
  332. package/node_modules/p-cancelable/readme.md +153 -0
  333. package/node_modules/pump/.travis.yml +5 -0
  334. package/node_modules/pump/LICENSE +21 -0
  335. package/node_modules/pump/README.md +65 -0
  336. package/node_modules/pump/index.js +82 -0
  337. package/node_modules/pump/package.json +24 -0
  338. package/node_modules/pump/test-browser.js +66 -0
  339. package/node_modules/pump/test-node.js +53 -0
  340. package/node_modules/quick-lru/index.d.ts +97 -0
  341. package/node_modules/quick-lru/index.js +123 -0
  342. package/node_modules/quick-lru/license +9 -0
  343. package/node_modules/quick-lru/package.json +43 -0
  344. package/node_modules/quick-lru/readme.md +111 -0
  345. package/node_modules/resolve-alpn/LICENSE +22 -0
  346. package/node_modules/resolve-alpn/README.md +60 -0
  347. package/node_modules/resolve-alpn/index.js +43 -0
  348. package/node_modules/resolve-alpn/package.json +34 -0
  349. package/node_modules/responselike/LICENSE +19 -0
  350. package/node_modules/responselike/README.md +77 -0
  351. package/node_modules/responselike/package.json +38 -0
  352. package/node_modules/responselike/src/index.js +34 -0
  353. package/node_modules/wrappy/LICENSE +15 -0
  354. package/node_modules/wrappy/README.md +36 -0
  355. package/node_modules/wrappy/package.json +29 -0
  356. package/node_modules/wrappy/wrappy.js +33 -0
  357. package/package.json +41 -38
@@ -0,0 +1,543 @@
1
+ /**
2
+ * The `readline` module provides an interface for reading data from a `Readable` stream (such as `process.stdin`) one line at a time. It can be accessed
3
+ * using:
4
+ *
5
+ * ```js
6
+ * const readline = require('readline');
7
+ * ```
8
+ *
9
+ * The following simple example illustrates the basic use of the `readline` module.
10
+ *
11
+ * ```js
12
+ * const readline = require('readline');
13
+ *
14
+ * const rl = readline.createInterface({
15
+ * input: process.stdin,
16
+ * output: process.stdout
17
+ * });
18
+ *
19
+ * rl.question('What do you think of Node.js? ', (answer) => {
20
+ * // TODO: Log the answer in a database
21
+ * console.log(`Thank you for your valuable feedback: ${answer}`);
22
+ *
23
+ * rl.close();
24
+ * });
25
+ * ```
26
+ *
27
+ * Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be
28
+ * received on the `input` stream.
29
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/readline.js)
30
+ */
31
+ declare module 'readline' {
32
+ import { Abortable, EventEmitter } from 'node:events';
33
+ interface Key {
34
+ sequence?: string | undefined;
35
+ name?: string | undefined;
36
+ ctrl?: boolean | undefined;
37
+ meta?: boolean | undefined;
38
+ shift?: boolean | undefined;
39
+ }
40
+ /**
41
+ * Instances of the `readline.Interface` class are constructed using the`readline.createInterface()` method. Every instance is associated with a
42
+ * single `input` `Readable` stream and a single `output` `Writable` stream.
43
+ * The `output` stream is used to print prompts for user input that arrives on,
44
+ * and is read from, the `input` stream.
45
+ * @since v0.1.104
46
+ */
47
+ class Interface extends EventEmitter {
48
+ readonly terminal: boolean;
49
+ /**
50
+ * The current input data being processed by node.
51
+ *
52
+ * This can be used when collecting input from a TTY stream to retrieve the
53
+ * current value that has been processed thus far, prior to the `line` event
54
+ * being emitted. Once the `line` event has been emitted, this property will
55
+ * be an empty string.
56
+ *
57
+ * Be aware that modifying the value during the instance runtime may have
58
+ * unintended consequences if `rl.cursor` is not also controlled.
59
+ *
60
+ * **If not using a TTY stream for input, use the `'line'` event.**
61
+ *
62
+ * One possible use case would be as follows:
63
+ *
64
+ * ```js
65
+ * const values = ['lorem ipsum', 'dolor sit amet'];
66
+ * const rl = readline.createInterface(process.stdin);
67
+ * const showResults = debounce(() => {
68
+ * console.log(
69
+ * '\n',
70
+ * values.filter((val) => val.startsWith(rl.line)).join(' ')
71
+ * );
72
+ * }, 300);
73
+ * process.stdin.on('keypress', (c, k) => {
74
+ * showResults();
75
+ * });
76
+ * ```
77
+ * @since v0.1.98
78
+ */
79
+ readonly line: string;
80
+ /**
81
+ * The cursor position relative to `rl.line`.
82
+ *
83
+ * This will track where the current cursor lands in the input string, when
84
+ * reading input from a TTY stream. The position of cursor determines the
85
+ * portion of the input string that will be modified as input is processed,
86
+ * as well as the column where the terminal caret will be rendered.
87
+ * @since v0.1.98
88
+ */
89
+ readonly cursor: number;
90
+ /**
91
+ * NOTE: According to the documentation:
92
+ *
93
+ * > Instances of the `readline.Interface` class are constructed using the
94
+ * > `readline.createInterface()` method.
95
+ *
96
+ * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface
97
+ */
98
+ protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean);
99
+ /**
100
+ * NOTE: According to the documentation:
101
+ *
102
+ * > Instances of the `readline.Interface` class are constructed using the
103
+ * > `readline.createInterface()` method.
104
+ *
105
+ * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface
106
+ */
107
+ protected constructor(options: ReadLineOptions);
108
+ /**
109
+ * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`.
110
+ * @since v15.3.0
111
+ * @return the current prompt string
112
+ */
113
+ getPrompt(): string;
114
+ /**
115
+ * The `rl.setPrompt()` method sets the prompt that will be written to `output`whenever `rl.prompt()` is called.
116
+ * @since v0.1.98
117
+ */
118
+ setPrompt(prompt: string): void;
119
+ /**
120
+ * The `rl.prompt()` method writes the `readline.Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new
121
+ * location at which to provide input.
122
+ *
123
+ * When called, `rl.prompt()` will resume the `input` stream if it has been
124
+ * paused.
125
+ *
126
+ * If the `readline.Interface` was created with `output` set to `null` or`undefined` the prompt is not written.
127
+ * @since v0.1.98
128
+ * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`.
129
+ */
130
+ prompt(preserveCursor?: boolean): void;
131
+ /**
132
+ * The `rl.question()` method displays the `query` by writing it to the `output`,
133
+ * waits for user input to be provided on `input`, then invokes the `callback`function passing the provided input as the first argument.
134
+ *
135
+ * When called, `rl.question()` will resume the `input` stream if it has been
136
+ * paused.
137
+ *
138
+ * If the `readline.Interface` was created with `output` set to `null` or`undefined` the `query` is not written.
139
+ *
140
+ * The `callback` function passed to `rl.question()` does not follow the typical
141
+ * pattern of accepting an `Error` object or `null` as the first argument.
142
+ * The `callback` is called with the provided answer as the only argument.
143
+ *
144
+ * Example usage:
145
+ *
146
+ * ```js
147
+ * rl.question('What is your favorite food? ', (answer) => {
148
+ * console.log(`Oh, so your favorite food is ${answer}`);
149
+ * });
150
+ * ```
151
+ *
152
+ * Using an `AbortController` to cancel a question.
153
+ *
154
+ * ```js
155
+ * const ac = new AbortController();
156
+ * const signal = ac.signal;
157
+ *
158
+ * rl.question('What is your favorite food? ', { signal }, (answer) => {
159
+ * console.log(`Oh, so your favorite food is ${answer}`);
160
+ * });
161
+ *
162
+ * signal.addEventListener('abort', () => {
163
+ * console.log('The food question timed out');
164
+ * }, { once: true });
165
+ *
166
+ * setTimeout(() => ac.abort(), 10000);
167
+ * ```
168
+ *
169
+ * If this method is invoked as it's util.promisify()ed version, it returns a
170
+ * Promise that fulfills with the answer. If the question is canceled using
171
+ * an `AbortController` it will reject with an `AbortError`.
172
+ *
173
+ * ```js
174
+ * const util = require('util');
175
+ * const question = util.promisify(rl.question).bind(rl);
176
+ *
177
+ * async function questionExample() {
178
+ * try {
179
+ * const answer = await question('What is you favorite food? ');
180
+ * console.log(`Oh, so your favorite food is ${answer}`);
181
+ * } catch (err) {
182
+ * console.error('Question rejected', err);
183
+ * }
184
+ * }
185
+ * questionExample();
186
+ * ```
187
+ * @since v0.3.3
188
+ * @param query A statement or query to write to `output`, prepended to the prompt.
189
+ * @param callback A callback function that is invoked with the user's input in response to the `query`.
190
+ */
191
+ question(query: string, callback: (answer: string) => void): void;
192
+ question(query: string, options: Abortable, callback: (answer: string) => void): void;
193
+ /**
194
+ * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed
195
+ * later if necessary.
196
+ *
197
+ * Calling `rl.pause()` does not immediately pause other events (including`'line'`) from being emitted by the `readline.Interface` instance.
198
+ * @since v0.3.4
199
+ */
200
+ pause(): this;
201
+ /**
202
+ * The `rl.resume()` method resumes the `input` stream if it has been paused.
203
+ * @since v0.3.4
204
+ */
205
+ resume(): this;
206
+ /**
207
+ * The `rl.close()` method closes the `readline.Interface` instance and
208
+ * relinquishes control over the `input` and `output` streams. When called,
209
+ * the `'close'` event will be emitted.
210
+ *
211
+ * Calling `rl.close()` does not immediately stop other events (including `'line'`)
212
+ * from being emitted by the `readline.Interface` instance.
213
+ * @since v0.1.98
214
+ */
215
+ close(): void;
216
+ /**
217
+ * The `rl.write()` method will write either `data` or a key sequence identified
218
+ * by `key` to the `output`. The `key` argument is supported only if `output` is
219
+ * a `TTY` text terminal. See `TTY keybindings` for a list of key
220
+ * combinations.
221
+ *
222
+ * If `key` is specified, `data` is ignored.
223
+ *
224
+ * When called, `rl.write()` will resume the `input` stream if it has been
225
+ * paused.
226
+ *
227
+ * If the `readline.Interface` was created with `output` set to `null` or`undefined` the `data` and `key` are not written.
228
+ *
229
+ * ```js
230
+ * rl.write('Delete this!');
231
+ * // Simulate Ctrl+U to delete the line written previously
232
+ * rl.write(null, { ctrl: true, name: 'u' });
233
+ * ```
234
+ *
235
+ * The `rl.write()` method will write the data to the `readline` `Interface`'s`input`_as if it were provided by the user_.
236
+ * @since v0.1.98
237
+ */
238
+ write(data: string | Buffer, key?: Key): void;
239
+ write(data: undefined | null | string | Buffer, key: Key): void;
240
+ /**
241
+ * Returns the real position of the cursor in relation to the input
242
+ * prompt + string. Long input (wrapping) strings, as well as multiple
243
+ * line prompts are included in the calculations.
244
+ * @since v13.5.0, v12.16.0
245
+ */
246
+ getCursorPos(): CursorPos;
247
+ /**
248
+ * events.EventEmitter
249
+ * 1. close
250
+ * 2. line
251
+ * 3. pause
252
+ * 4. resume
253
+ * 5. SIGCONT
254
+ * 6. SIGINT
255
+ * 7. SIGTSTP
256
+ * 8. history
257
+ */
258
+ addListener(event: string, listener: (...args: any[]) => void): this;
259
+ addListener(event: 'close', listener: () => void): this;
260
+ addListener(event: 'line', listener: (input: string) => void): this;
261
+ addListener(event: 'pause', listener: () => void): this;
262
+ addListener(event: 'resume', listener: () => void): this;
263
+ addListener(event: 'SIGCONT', listener: () => void): this;
264
+ addListener(event: 'SIGINT', listener: () => void): this;
265
+ addListener(event: 'SIGTSTP', listener: () => void): this;
266
+ addListener(event: 'history', listener: (history: string[]) => void): this;
267
+ emit(event: string | symbol, ...args: any[]): boolean;
268
+ emit(event: 'close'): boolean;
269
+ emit(event: 'line', input: string): boolean;
270
+ emit(event: 'pause'): boolean;
271
+ emit(event: 'resume'): boolean;
272
+ emit(event: 'SIGCONT'): boolean;
273
+ emit(event: 'SIGINT'): boolean;
274
+ emit(event: 'SIGTSTP'): boolean;
275
+ emit(event: 'history', history: string[]): boolean;
276
+ on(event: string, listener: (...args: any[]) => void): this;
277
+ on(event: 'close', listener: () => void): this;
278
+ on(event: 'line', listener: (input: string) => void): this;
279
+ on(event: 'pause', listener: () => void): this;
280
+ on(event: 'resume', listener: () => void): this;
281
+ on(event: 'SIGCONT', listener: () => void): this;
282
+ on(event: 'SIGINT', listener: () => void): this;
283
+ on(event: 'SIGTSTP', listener: () => void): this;
284
+ on(event: 'history', listener: (history: string[]) => void): this;
285
+ once(event: string, listener: (...args: any[]) => void): this;
286
+ once(event: 'close', listener: () => void): this;
287
+ once(event: 'line', listener: (input: string) => void): this;
288
+ once(event: 'pause', listener: () => void): this;
289
+ once(event: 'resume', listener: () => void): this;
290
+ once(event: 'SIGCONT', listener: () => void): this;
291
+ once(event: 'SIGINT', listener: () => void): this;
292
+ once(event: 'SIGTSTP', listener: () => void): this;
293
+ once(event: 'history', listener: (history: string[]) => void): this;
294
+ prependListener(event: string, listener: (...args: any[]) => void): this;
295
+ prependListener(event: 'close', listener: () => void): this;
296
+ prependListener(event: 'line', listener: (input: string) => void): this;
297
+ prependListener(event: 'pause', listener: () => void): this;
298
+ prependListener(event: 'resume', listener: () => void): this;
299
+ prependListener(event: 'SIGCONT', listener: () => void): this;
300
+ prependListener(event: 'SIGINT', listener: () => void): this;
301
+ prependListener(event: 'SIGTSTP', listener: () => void): this;
302
+ prependListener(event: 'history', listener: (history: string[]) => void): this;
303
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
304
+ prependOnceListener(event: 'close', listener: () => void): this;
305
+ prependOnceListener(event: 'line', listener: (input: string) => void): this;
306
+ prependOnceListener(event: 'pause', listener: () => void): this;
307
+ prependOnceListener(event: 'resume', listener: () => void): this;
308
+ prependOnceListener(event: 'SIGCONT', listener: () => void): this;
309
+ prependOnceListener(event: 'SIGINT', listener: () => void): this;
310
+ prependOnceListener(event: 'SIGTSTP', listener: () => void): this;
311
+ prependOnceListener(event: 'history', listener: (history: string[]) => void): this;
312
+ [Symbol.asyncIterator](): AsyncIterableIterator<string>;
313
+ }
314
+ type ReadLine = Interface; // type forwarded for backwards compatibility
315
+ type Completer = (line: string) => CompleterResult;
316
+ type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => void;
317
+ type CompleterResult = [string[], string];
318
+ interface ReadLineOptions {
319
+ input: NodeJS.ReadableStream;
320
+ output?: NodeJS.WritableStream | undefined;
321
+ completer?: Completer | AsyncCompleter | undefined;
322
+ terminal?: boolean | undefined;
323
+ /**
324
+ * Initial list of history lines. This option makes sense
325
+ * only if `terminal` is set to `true` by the user or by an internal `output`
326
+ * check, otherwise the history caching mechanism is not initialized at all.
327
+ * @default []
328
+ */
329
+ history?: string[] | undefined;
330
+ historySize?: number | undefined;
331
+ prompt?: string | undefined;
332
+ crlfDelay?: number | undefined;
333
+ /**
334
+ * If `true`, when a new input line added
335
+ * to the history list duplicates an older one, this removes the older line
336
+ * from the list.
337
+ * @default false
338
+ */
339
+ removeHistoryDuplicates?: boolean | undefined;
340
+ escapeCodeTimeout?: number | undefined;
341
+ tabSize?: number | undefined;
342
+ }
343
+ /**
344
+ * The `readline.createInterface()` method creates a new `readline.Interface`instance.
345
+ *
346
+ * ```js
347
+ * const readline = require('readline');
348
+ * const rl = readline.createInterface({
349
+ * input: process.stdin,
350
+ * output: process.stdout
351
+ * });
352
+ * ```
353
+ *
354
+ * Once the `readline.Interface` instance is created, the most common case is to
355
+ * listen for the `'line'` event:
356
+ *
357
+ * ```js
358
+ * rl.on('line', (line) => {
359
+ * console.log(`Received: ${line}`);
360
+ * });
361
+ * ```
362
+ *
363
+ * If `terminal` is `true` for this instance then the `output` stream will get
364
+ * the best compatibility if it defines an `output.columns` property and emits
365
+ * a `'resize'` event on the `output` if or when the columns ever change
366
+ * (`process.stdout` does this automatically when it is a TTY).
367
+ *
368
+ * When creating a `readline.Interface` using `stdin` as input, the program
369
+ * will not terminate until it receives `EOF` (Ctrl+D on
370
+ * Linux/macOS, Ctrl+Z followed by Return on
371
+ * Windows).
372
+ * If you want your application to exit without waiting for user input, you can `unref()` the standard input stream:
373
+ *
374
+ * ```js
375
+ * process.stdin.unref();
376
+ * ```
377
+ * @since v0.1.98
378
+ */
379
+ function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface;
380
+ function createInterface(options: ReadLineOptions): Interface;
381
+ /**
382
+ * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input.
383
+ *
384
+ * Optionally, `interface` specifies a `readline.Interface` instance for which
385
+ * autocompletion is disabled when copy-pasted input is detected.
386
+ *
387
+ * If the `stream` is a `TTY`, then it must be in raw mode.
388
+ *
389
+ * This is automatically called by any readline instance on its `input` if the`input` is a terminal. Closing the `readline` instance does not stop
390
+ * the `input` from emitting `'keypress'` events.
391
+ *
392
+ * ```js
393
+ * readline.emitKeypressEvents(process.stdin);
394
+ * if (process.stdin.isTTY)
395
+ * process.stdin.setRawMode(true);
396
+ * ```
397
+ * @since v0.7.7
398
+ */
399
+ function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void;
400
+ type Direction = -1 | 0 | 1;
401
+ interface CursorPos {
402
+ rows: number;
403
+ cols: number;
404
+ }
405
+ /**
406
+ * The `readline.clearLine()` method clears current line of given `TTY` stream
407
+ * in a specified direction identified by `dir`.
408
+ * @since v0.7.7
409
+ * @param callback Invoked once the operation completes.
410
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
411
+ */
412
+ function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean;
413
+ /**
414
+ * The `readline.clearScreenDown()` method clears the given `TTY` stream from
415
+ * the current position of the cursor down.
416
+ * @since v0.7.7
417
+ * @param callback Invoked once the operation completes.
418
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
419
+ */
420
+ function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean;
421
+ /**
422
+ * The `readline.cursorTo()` method moves cursor to the specified position in a
423
+ * given `TTY` `stream`.
424
+ * @since v0.7.7
425
+ * @param callback Invoked once the operation completes.
426
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
427
+ */
428
+ function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean;
429
+ /**
430
+ * The `readline.moveCursor()` method moves the cursor _relative_ to its current
431
+ * position in a given `TTY` `stream`.
432
+ *
433
+ * ## Example: Tiny CLI
434
+ *
435
+ * The following example illustrates the use of `readline.Interface` class to
436
+ * implement a small command-line interface:
437
+ *
438
+ * ```js
439
+ * const readline = require('readline');
440
+ * const rl = readline.createInterface({
441
+ * input: process.stdin,
442
+ * output: process.stdout,
443
+ * prompt: 'OHAI> '
444
+ * });
445
+ *
446
+ * rl.prompt();
447
+ *
448
+ * rl.on('line', (line) => {
449
+ * switch (line.trim()) {
450
+ * case 'hello':
451
+ * console.log('world!');
452
+ * break;
453
+ * default:
454
+ * console.log(`Say what? I might have heard '${line.trim()}'`);
455
+ * break;
456
+ * }
457
+ * rl.prompt();
458
+ * }).on('close', () => {
459
+ * console.log('Have a great day!');
460
+ * process.exit(0);
461
+ * });
462
+ * ```
463
+ *
464
+ * ## Example: Read file stream line-by-Line
465
+ *
466
+ * A common use case for `readline` is to consume an input file one line at a
467
+ * time. The easiest way to do so is leveraging the `fs.ReadStream` API as
468
+ * well as a `for await...of` loop:
469
+ *
470
+ * ```js
471
+ * const fs = require('fs');
472
+ * const readline = require('readline');
473
+ *
474
+ * async function processLineByLine() {
475
+ * const fileStream = fs.createReadStream('input.txt');
476
+ *
477
+ * const rl = readline.createInterface({
478
+ * input: fileStream,
479
+ * crlfDelay: Infinity
480
+ * });
481
+ * // Note: we use the crlfDelay option to recognize all instances of CR LF
482
+ * // ('\r\n') in input.txt as a single line break.
483
+ *
484
+ * for await (const line of rl) {
485
+ * // Each line in input.txt will be successively available here as `line`.
486
+ * console.log(`Line from file: ${line}`);
487
+ * }
488
+ * }
489
+ *
490
+ * processLineByLine();
491
+ * ```
492
+ *
493
+ * Alternatively, one could use the `'line'` event:
494
+ *
495
+ * ```js
496
+ * const fs = require('fs');
497
+ * const readline = require('readline');
498
+ *
499
+ * const rl = readline.createInterface({
500
+ * input: fs.createReadStream('sample.txt'),
501
+ * crlfDelay: Infinity
502
+ * });
503
+ *
504
+ * rl.on('line', (line) => {
505
+ * console.log(`Line from file: ${line}`);
506
+ * });
507
+ * ```
508
+ *
509
+ * Currently, `for await...of` loop can be a bit slower. If `async` / `await`flow and speed are both essential, a mixed approach can be applied:
510
+ *
511
+ * ```js
512
+ * const { once } = require('events');
513
+ * const { createReadStream } = require('fs');
514
+ * const { createInterface } = require('readline');
515
+ *
516
+ * (async function processLineByLine() {
517
+ * try {
518
+ * const rl = createInterface({
519
+ * input: createReadStream('big-file.txt'),
520
+ * crlfDelay: Infinity
521
+ * });
522
+ *
523
+ * rl.on('line', (line) => {
524
+ * // Process the line.
525
+ * });
526
+ *
527
+ * await once(rl, 'close');
528
+ *
529
+ * console.log('File processed.');
530
+ * } catch (err) {
531
+ * console.error(err);
532
+ * }
533
+ * })();
534
+ * ```
535
+ * @since v0.7.7
536
+ * @param callback Invoked once the operation completes.
537
+ * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
538
+ */
539
+ function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean;
540
+ }
541
+ declare module 'node:readline' {
542
+ export * from 'readline';
543
+ }