@emulsify/cli 1.6.0 → 1.7.1

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 (277) hide show
  1. package/README.md +89 -1
  2. package/dist/handlers/componentInstall.js +1 -1
  3. package/dist/handlers/componentList.js +1 -1
  4. package/dist/handlers/systemInstall.js +24 -9
  5. package/dist/index.js +12 -21
  6. package/dist/node_modules/.package-lock.json +24 -24
  7. package/dist/node_modules/@types/node/LICENSE +0 -0
  8. package/dist/node_modules/@types/node/README.md +1 -1
  9. package/dist/node_modules/@types/node/assert.d.ts +33 -31
  10. package/dist/node_modules/@types/node/async_hooks.d.ts +28 -20
  11. package/dist/node_modules/@types/node/buffer.d.ts +4 -4
  12. package/dist/node_modules/@types/node/child_process.d.ts +230 -62
  13. package/dist/node_modules/@types/node/cluster.d.ts +62 -27
  14. package/dist/node_modules/@types/node/console.d.ts +6 -6
  15. package/dist/node_modules/@types/node/constants.d.ts +12 -11
  16. package/dist/node_modules/@types/node/crypto.d.ts +311 -237
  17. package/dist/node_modules/@types/node/dgram.d.ts +50 -14
  18. package/dist/node_modules/@types/node/dns.d.ts +183 -54
  19. package/dist/node_modules/@types/node/domain.d.ts +4 -4
  20. package/dist/node_modules/@types/node/events.d.ts +4 -4
  21. package/dist/node_modules/@types/node/fs/promises.d.ts +105 -39
  22. package/dist/node_modules/@types/node/fs.d.ts +440 -126
  23. package/dist/node_modules/@types/node/globals.d.ts +41 -22
  24. package/dist/node_modules/@types/node/globals.global.d.ts +0 -0
  25. package/dist/node_modules/@types/node/http.d.ts +306 -217
  26. package/dist/node_modules/@types/node/http2.d.ts +341 -95
  27. package/dist/node_modules/@types/node/https.d.ts +250 -118
  28. package/dist/node_modules/@types/node/index.d.ts +1 -1
  29. package/dist/node_modules/@types/node/inspector.d.ts +1 -2
  30. package/dist/node_modules/@types/node/module.d.ts +4 -4
  31. package/dist/node_modules/@types/node/net.d.ts +28 -12
  32. package/dist/node_modules/@types/node/os.d.ts +5 -4
  33. package/dist/node_modules/@types/node/package.json +10 -3
  34. package/dist/node_modules/@types/node/path.d.ts +35 -24
  35. package/dist/node_modules/@types/node/perf_hooks.d.ts +5 -5
  36. package/dist/node_modules/@types/node/process.d.ts +61 -22
  37. package/dist/node_modules/@types/node/punycode.d.ts +3 -3
  38. package/dist/node_modules/@types/node/querystring.d.ts +15 -5
  39. package/dist/node_modules/@types/node/readline.d.ts +16 -6
  40. package/dist/node_modules/@types/node/repl.d.ts +13 -7
  41. package/dist/node_modules/@types/node/stream.d.ts +182 -23
  42. package/dist/node_modules/@types/node/string_decoder.d.ts +3 -3
  43. package/dist/node_modules/@types/node/timers.d.ts +5 -5
  44. package/dist/node_modules/@types/node/tls.d.ts +112 -30
  45. package/dist/node_modules/@types/node/trace_events.d.ts +3 -3
  46. package/dist/node_modules/@types/node/ts4.8/assert.d.ts +130 -0
  47. package/dist/node_modules/@types/node/ts4.8/async_hooks.d.ts +237 -0
  48. package/dist/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
  49. package/dist/node_modules/@types/node/ts4.8/child_process.d.ts +682 -0
  50. package/dist/node_modules/@types/node/ts4.8/cluster.d.ts +300 -0
  51. package/dist/node_modules/@types/node/ts4.8/console.d.ts +142 -0
  52. package/dist/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
  53. package/dist/node_modules/@types/node/ts4.8/crypto.d.ts +1287 -0
  54. package/dist/node_modules/@types/node/ts4.8/dgram.d.ts +180 -0
  55. package/dist/node_modules/@types/node/ts4.8/dns.d.ts +516 -0
  56. package/dist/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
  57. package/dist/node_modules/@types/node/ts4.8/events.d.ts +82 -0
  58. package/dist/node_modules/@types/node/ts4.8/fs/promises.d.ts +634 -0
  59. package/dist/node_modules/@types/node/ts4.8/fs.d.ts +2587 -0
  60. package/dist/node_modules/@types/node/ts4.8/globals.d.ts +763 -0
  61. package/dist/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  62. package/dist/node_modules/@types/node/ts4.8/http.d.ts +580 -0
  63. package/dist/node_modules/@types/node/ts4.8/http2.d.ts +1208 -0
  64. package/dist/node_modules/@types/node/ts4.8/https.d.ts +274 -0
  65. package/dist/node_modules/@types/node/ts4.8/index.d.ts +53 -0
  66. package/dist/node_modules/@types/node/ts4.8/inspector.d.ts +3050 -0
  67. package/dist/node_modules/@types/node/ts4.8/module.d.ts +56 -0
  68. package/dist/node_modules/@types/node/ts4.8/net.d.ts +324 -0
  69. package/dist/node_modules/@types/node/ts4.8/os.d.ts +243 -0
  70. package/dist/node_modules/@types/node/ts4.8/path.d.ts +168 -0
  71. package/dist/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
  72. package/dist/node_modules/@types/node/ts4.8/process.d.ts +452 -0
  73. package/dist/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
  74. package/dist/node_modules/@types/node/ts4.8/querystring.d.ts +41 -0
  75. package/dist/node_modules/@types/node/ts4.8/readline.d.ts +184 -0
  76. package/dist/node_modules/@types/node/ts4.8/repl.d.ts +404 -0
  77. package/dist/node_modules/@types/node/ts4.8/stream.d.ts +518 -0
  78. package/dist/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
  79. package/dist/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
  80. package/dist/node_modules/@types/node/ts4.8/tls.d.ts +866 -0
  81. package/dist/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
  82. package/dist/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
  83. package/dist/node_modules/@types/node/ts4.8/url.d.ts +187 -0
  84. package/dist/node_modules/@types/node/ts4.8/util.d.ts +278 -0
  85. package/dist/node_modules/@types/node/ts4.8/v8.d.ts +189 -0
  86. package/dist/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
  87. package/dist/node_modules/@types/node/ts4.8/wasi.d.ts +88 -0
  88. package/dist/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
  89. package/dist/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
  90. package/dist/node_modules/@types/node/tty.d.ts +4 -4
  91. package/dist/node_modules/@types/node/url.d.ts +49 -11
  92. package/dist/node_modules/@types/node/util.d.ts +103 -41
  93. package/dist/node_modules/@types/node/v8.d.ts +4 -5
  94. package/dist/node_modules/@types/node/vm.d.ts +7 -7
  95. package/dist/node_modules/@types/node/wasi.d.ts +3 -4
  96. package/dist/node_modules/@types/node/worker_threads.d.ts +8 -8
  97. package/dist/node_modules/@types/node/zlib.d.ts +13 -13
  98. package/dist/node_modules/@types/progress/LICENSE +0 -0
  99. package/dist/node_modules/@types/progress/README.md +2 -3
  100. package/dist/node_modules/@types/progress/index.d.ts +0 -5
  101. package/dist/node_modules/@types/progress/package.json +6 -6
  102. package/dist/node_modules/ajv-formats/node_modules/ajv/README.md +19 -5
  103. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.d.ts +3 -1
  104. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js +7 -1
  105. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2019.js.map +1 -1
  106. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.d.ts +3 -1
  107. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js +7 -1
  108. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/2020.js.map +1 -1
  109. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.d.ts +3 -1
  110. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js +7 -1
  111. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/ajv.js.map +1 -1
  112. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.d.ts +5 -5
  113. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  114. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.d.ts +2 -2
  115. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/index.js.map +1 -1
  116. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.d.ts +5 -5
  117. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js +1 -1
  118. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -1
  119. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js +1 -1
  120. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/errors.js.map +1 -1
  121. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.d.ts +1 -1
  122. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js +1 -1
  123. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/index.js.map +1 -1
  124. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -1
  125. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js +18 -7
  126. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -1
  127. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/jtd/types.d.ts +2 -2
  128. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js +6 -6
  129. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/names.js.map +1 -1
  130. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.d.ts +1 -1
  131. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js +4 -4
  132. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  133. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/rules.d.ts +2 -2
  134. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.d.ts +2 -2
  135. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js +1 -1
  136. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/util.js.map +1 -1
  137. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -1
  138. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.d.ts +1 -1
  139. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js +2 -1
  140. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -1
  141. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -1
  142. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js +11 -1
  143. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/index.js.map +1 -1
  144. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -1
  145. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.d.ts +1 -1
  146. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -1
  147. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.d.ts +3 -3
  148. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js +2 -1
  149. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/core.js.map +1 -1
  150. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.d.ts +4 -2
  151. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js +7 -1
  152. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/jtd.js.map +1 -1
  153. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/equal.d.ts +1 -1
  154. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js +2 -1
  155. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/parseJson.js.map +1 -1
  156. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/re2.d.ts +1 -1
  157. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -1
  158. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  159. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/standalone/index.js.map +1 -1
  160. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/index.d.ts +19 -19
  161. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/json-schema.d.ts +15 -14
  162. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/types/jtd-schema.d.ts +30 -25
  163. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +1 -1
  164. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -1
  165. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +1 -1
  166. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -1
  167. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +1 -1
  168. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +1 -1
  169. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -1
  170. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +2 -2
  171. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -1
  172. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +1 -1
  173. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -1
  174. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +1 -1
  175. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -1
  176. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +1 -1
  177. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +1 -1
  178. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -1
  179. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +1 -1
  180. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -1
  181. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -1
  182. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -1
  183. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +1 -1
  184. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/code.js.map +1 -1
  185. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -1
  186. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +1 -1
  187. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -1
  188. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +1 -1
  189. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js +1 -1
  190. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -1
  191. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -1
  192. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/errors.d.ts +1 -1
  193. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.d.ts +1 -1
  194. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -1
  195. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +1 -1
  196. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -1
  197. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +1 -1
  198. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +1 -1
  199. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -1
  200. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +1 -1
  201. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +1 -1
  202. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -1
  203. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -1
  204. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +3 -3
  205. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js +8 -5
  206. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -1
  207. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -1
  208. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +3 -3
  209. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -1
  210. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +1 -1
  211. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js +10 -7
  212. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -1
  213. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +1 -1
  214. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -1
  215. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +1 -1
  216. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -1
  217. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.d.ts +1 -1
  218. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -1
  219. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +1 -1
  220. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +1 -1
  221. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -1
  222. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/index.d.ts +2 -2
  223. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -1
  224. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +3 -3
  225. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +1 -1
  226. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +1 -1
  227. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.d.ts +1 -1
  228. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -1
  229. package/dist/node_modules/ajv-formats/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +1 -1
  230. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2019.ts +4 -1
  231. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/2020.ts +4 -1
  232. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/ajv.ts +4 -1
  233. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/codegen/index.ts +25 -5
  234. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/serialize.ts +20 -14
  235. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/jtd/types.ts +1 -1
  236. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/resolve.ts +4 -4
  237. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/rules.ts +1 -1
  238. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/dataType.ts +1 -0
  239. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/compile/validate/index.ts +10 -1
  240. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/core.ts +4 -0
  241. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/jtd.ts +4 -1
  242. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/runtime/parseJson.ts +2 -1
  243. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/index.ts +7 -3
  244. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/json-schema.ts +1 -0
  245. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/types/jtd-schema.ts +21 -11
  246. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/properties.ts +13 -6
  247. package/dist/node_modules/ajv-formats/node_modules/ajv/lib/vocabularies/jtd/values.ts +10 -7
  248. package/dist/node_modules/ajv-formats/node_modules/ajv/package.json +40 -40
  249. package/dist/node_modules/commander/Readme.md +407 -169
  250. package/dist/node_modules/commander/esm.mjs +13 -1
  251. package/dist/node_modules/commander/index.js +13 -2206
  252. package/dist/node_modules/commander/lib/argument.js +145 -0
  253. package/dist/node_modules/commander/lib/command.js +2299 -0
  254. package/dist/node_modules/commander/lib/error.js +43 -0
  255. package/dist/node_modules/commander/lib/help.js +457 -0
  256. package/dist/node_modules/commander/lib/option.js +327 -0
  257. package/dist/node_modules/commander/lib/suggestSimilar.js +100 -0
  258. package/dist/node_modules/commander/package.json +46 -34
  259. package/dist/node_modules/commander/typings/esm.d.mts +3 -0
  260. package/dist/node_modules/commander/typings/index.d.ts +889 -617
  261. package/dist/node_modules/graceful-fs/package.json +6 -3
  262. package/dist/node_modules/graceful-fs/polyfills.js +1 -1
  263. package/dist/node_modules/punycode/README.md +29 -3
  264. package/dist/node_modules/punycode/package.json +7 -7
  265. package/dist/node_modules/punycode/punycode.es6.js +25 -22
  266. package/dist/node_modules/punycode/punycode.js +25 -22
  267. package/dist/node_modules/universalify/README.md +1 -1
  268. package/dist/node_modules/universalify/index.js +6 -6
  269. package/dist/node_modules/universalify/package.json +2 -2
  270. package/dist/package.json +1 -2
  271. package/dist/util/cache/cloneIntoCache.js +1 -1
  272. package/dist/util/cache/getCachedItemPath.js +4 -2
  273. package/dist/util/cache/getJsonFromCachedFile.js +2 -2
  274. package/dist/util/getGitRepoNameFromUrl.js +1 -1
  275. package/dist/util/getRepositoryLatestTag.js +16 -0
  276. package/package.json +2 -3
  277. package/dist/node_modules/commander/CHANGELOG.md +0 -440
@@ -0,0 +1 @@
1
+ declare var global: NodeJS.Global & typeof globalThis;
@@ -0,0 +1,580 @@
1
+ declare module "http" {
2
+ import * as stream from "stream";
3
+ import { URL } from "url";
4
+ import { LookupFunction, Server as NetServer, Socket } from "net";
5
+
6
+ // incoming headers will never contain number
7
+ interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
8
+ "accept"?: string | undefined;
9
+ "accept-language"?: string | undefined;
10
+ "accept-patch"?: string | undefined;
11
+ "accept-ranges"?: string | undefined;
12
+ "access-control-allow-credentials"?: string | undefined;
13
+ "access-control-allow-headers"?: string | undefined;
14
+ "access-control-allow-methods"?: string | undefined;
15
+ "access-control-allow-origin"?: string | undefined;
16
+ "access-control-expose-headers"?: string | undefined;
17
+ "access-control-max-age"?: string | undefined;
18
+ "access-control-request-headers"?: string | undefined;
19
+ "access-control-request-method"?: string | undefined;
20
+ "age"?: string | undefined;
21
+ "allow"?: string | undefined;
22
+ "alt-svc"?: string | undefined;
23
+ "authorization"?: string | undefined;
24
+ "cache-control"?: string | undefined;
25
+ "connection"?: string | undefined;
26
+ "content-disposition"?: string | undefined;
27
+ "content-encoding"?: string | undefined;
28
+ "content-language"?: string | undefined;
29
+ "content-length"?: string | undefined;
30
+ "content-location"?: string | undefined;
31
+ "content-range"?: string | undefined;
32
+ "content-type"?: string | undefined;
33
+ "cookie"?: string | undefined;
34
+ "date"?: string | undefined;
35
+ "etag"?: string | undefined;
36
+ "expect"?: string | undefined;
37
+ "expires"?: string | undefined;
38
+ "forwarded"?: string | undefined;
39
+ "from"?: string | undefined;
40
+ "host"?: string | undefined;
41
+ "if-match"?: string | undefined;
42
+ "if-modified-since"?: string | undefined;
43
+ "if-none-match"?: string | undefined;
44
+ "if-unmodified-since"?: string | undefined;
45
+ "last-modified"?: string | undefined;
46
+ "location"?: string | undefined;
47
+ "origin"?: string | undefined;
48
+ "pragma"?: string | undefined;
49
+ "proxy-authenticate"?: string | undefined;
50
+ "proxy-authorization"?: string | undefined;
51
+ "public-key-pins"?: string | undefined;
52
+ "range"?: string | undefined;
53
+ "referer"?: string | undefined;
54
+ "retry-after"?: string | undefined;
55
+ "sec-websocket-accept"?: string | undefined;
56
+ "sec-websocket-extensions"?: string | undefined;
57
+ "sec-websocket-key"?: string | undefined;
58
+ "sec-websocket-protocol"?: string | undefined;
59
+ "sec-websocket-version"?: string | undefined;
60
+ "set-cookie"?: string[] | undefined;
61
+ "strict-transport-security"?: string | undefined;
62
+ "tk"?: string | undefined;
63
+ "trailer"?: string | undefined;
64
+ "transfer-encoding"?: string | undefined;
65
+ "upgrade"?: string | undefined;
66
+ "user-agent"?: string | undefined;
67
+ "vary"?: string | undefined;
68
+ "via"?: string | undefined;
69
+ "warning"?: string | undefined;
70
+ "www-authenticate"?: string | undefined;
71
+ }
72
+
73
+ // outgoing headers allows numbers (as they are converted internally to strings)
74
+ type OutgoingHttpHeader = number | string | string[];
75
+
76
+ interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
77
+
78
+ interface ClientRequestArgs {
79
+ protocol?: string | null | undefined;
80
+ host?: string | null | undefined;
81
+ hostname?: string | null | undefined;
82
+ family?: number | undefined;
83
+ port?: number | string | null | undefined;
84
+ defaultPort?: number | string | undefined;
85
+ localAddress?: string | undefined;
86
+ socketPath?: string | undefined;
87
+ /**
88
+ * @default 8192
89
+ */
90
+ maxHeaderSize?: number | undefined;
91
+ method?: string | undefined;
92
+ path?: string | null | undefined;
93
+ headers?: OutgoingHttpHeaders | undefined;
94
+ auth?: string | null | undefined;
95
+ agent?: Agent | boolean | undefined;
96
+ _defaultAgent?: Agent | undefined;
97
+ timeout?: number | undefined;
98
+ setHost?: boolean | undefined;
99
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
100
+ createConnection?:
101
+ | ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket)
102
+ | undefined;
103
+ lookup?: LookupFunction | undefined;
104
+ }
105
+
106
+ interface ServerOptions<
107
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
108
+ Response extends typeof ServerResponse = typeof ServerResponse,
109
+ > {
110
+ IncomingMessage?: Request | undefined;
111
+ ServerResponse?: Response | undefined;
112
+ /**
113
+ * Optionally overrides the value of
114
+ * [`--max-http-header-size`][] for requests received by this server, i.e.
115
+ * the maximum length of request headers in bytes.
116
+ * @default 8192
117
+ */
118
+ maxHeaderSize?: number | undefined;
119
+ /**
120
+ * Use an insecure HTTP parser that accepts invalid HTTP headers when true.
121
+ * Using the insecure parser should be avoided.
122
+ * See --insecure-http-parser for more information.
123
+ * @default false
124
+ */
125
+ insecureHTTPParser?: boolean | undefined;
126
+ }
127
+
128
+ type RequestListener<
129
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
130
+ Response extends typeof ServerResponse = typeof ServerResponse,
131
+ > = (req: InstanceType<Request>, res: InstanceType<Response>) => void;
132
+
133
+ class Server<
134
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
135
+ Response extends typeof ServerResponse = typeof ServerResponse,
136
+ > extends NetServer {
137
+ constructor(requestListener?: RequestListener<Request, Response>);
138
+ constructor(options: ServerOptions<Request, Response>, requestListener?: RequestListener<Request, Response>);
139
+ setTimeout(msecs?: number, callback?: () => void): this;
140
+ setTimeout(callback: () => void): this;
141
+ /**
142
+ * Limits maximum incoming headers count. If set to 0, no limit will be applied.
143
+ * @default 2000
144
+ * {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
145
+ */
146
+ maxHeadersCount: number | null;
147
+ timeout: number;
148
+ /**
149
+ * Limit the amount of time the parser will wait to receive the complete HTTP headers.
150
+ * @default 60000
151
+ * {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
152
+ */
153
+ headersTimeout: number;
154
+ keepAliveTimeout: number;
155
+ /**
156
+ * Sets the timeout value in milliseconds for receiving the entire request from the client.
157
+ * @default 0
158
+ * {@link https://nodejs.org/api/http.html#http_server_requesttimeout}
159
+ */
160
+ requestTimeout: number;
161
+ addListener(event: string, listener: (...args: any[]) => void): this;
162
+ addListener(event: "close", listener: () => void): this;
163
+ addListener(event: "connection", listener: (socket: Socket) => void): this;
164
+ addListener(event: "error", listener: (err: Error) => void): this;
165
+ addListener(event: "listening", listener: () => void): this;
166
+ addListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
167
+ addListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
168
+ addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
169
+ addListener(
170
+ event: "connect",
171
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
172
+ ): this;
173
+ addListener(event: "request", listener: RequestListener<Request, Response>): this;
174
+ addListener(
175
+ event: "upgrade",
176
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
177
+ ): this;
178
+ emit(event: string, ...args: any[]): boolean;
179
+ emit(event: "close"): boolean;
180
+ emit(event: "connection", socket: Socket): boolean;
181
+ emit(event: "error", err: Error): boolean;
182
+ emit(event: "listening"): boolean;
183
+ emit(event: "checkContinue", req: InstanceType<Request>, res: InstanceType<Response>): boolean;
184
+ emit(event: "checkExpectation", req: InstanceType<Request>, res: InstanceType<Response>): boolean;
185
+ emit(event: "clientError", err: Error, socket: stream.Duplex): boolean;
186
+ emit(event: "connect", req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
187
+ emit(event: "request", req: InstanceType<Request>, res: InstanceType<Response>): boolean;
188
+ emit(event: "upgrade", req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
189
+ on(event: string, listener: (...args: any[]) => void): this;
190
+ on(event: "close", listener: () => void): this;
191
+ on(event: "connection", listener: (socket: Socket) => void): this;
192
+ on(event: "error", listener: (err: Error) => void): this;
193
+ on(event: "listening", listener: () => void): this;
194
+ on(event: "checkContinue", listener: RequestListener<Request, Response>): this;
195
+ on(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
196
+ on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
197
+ on(event: "connect", listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
198
+ on(event: "request", listener: RequestListener<Request, Response>): this;
199
+ on(event: "upgrade", listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
200
+ once(event: string, listener: (...args: any[]) => void): this;
201
+ once(event: "close", listener: () => void): this;
202
+ once(event: "connection", listener: (socket: Socket) => void): this;
203
+ once(event: "error", listener: (err: Error) => void): this;
204
+ once(event: "listening", listener: () => void): this;
205
+ once(event: "checkContinue", listener: RequestListener<Request, Response>): this;
206
+ once(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
207
+ once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
208
+ once(
209
+ event: "connect",
210
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
211
+ ): this;
212
+ once(event: "request", listener: RequestListener<Request, Response>): this;
213
+ once(
214
+ event: "upgrade",
215
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
216
+ ): this;
217
+ prependListener(event: string, listener: (...args: any[]) => void): this;
218
+ prependListener(event: "close", listener: () => void): this;
219
+ prependListener(event: "connection", listener: (socket: Socket) => void): this;
220
+ prependListener(event: "error", listener: (err: Error) => void): this;
221
+ prependListener(event: "listening", listener: () => void): this;
222
+ prependListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
223
+ prependListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
224
+ prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
225
+ prependListener(
226
+ event: "connect",
227
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
228
+ ): this;
229
+ prependListener(event: "request", listener: RequestListener<Request, Response>): this;
230
+ prependListener(
231
+ event: "upgrade",
232
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
233
+ ): this;
234
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
235
+ prependOnceListener(event: "close", listener: () => void): this;
236
+ prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
237
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
238
+ prependOnceListener(event: "listening", listener: () => void): this;
239
+ prependOnceListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
240
+ prependOnceListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
241
+ prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
242
+ prependOnceListener(
243
+ event: "connect",
244
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
245
+ ): this;
246
+ prependOnceListener(event: "request", listener: RequestListener<Request, Response>): this;
247
+ prependOnceListener(
248
+ event: "upgrade",
249
+ listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
250
+ ): this;
251
+ }
252
+
253
+ // https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js
254
+ class OutgoingMessage extends stream.Writable {
255
+ upgrading: boolean;
256
+ chunkedEncoding: boolean;
257
+ shouldKeepAlive: boolean;
258
+ useChunkedEncodingByDefault: boolean;
259
+ sendDate: boolean;
260
+ /**
261
+ * @deprecated Use `writableEnded` instead.
262
+ */
263
+ finished: boolean;
264
+ headersSent: boolean;
265
+ /**
266
+ * @deprecated Use `socket` instead.
267
+ */
268
+ connection: Socket | null;
269
+ socket: Socket | null;
270
+
271
+ constructor();
272
+
273
+ setTimeout(msecs: number, callback?: () => void): this;
274
+ setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
275
+ getHeader(name: string): number | string | string[] | undefined;
276
+ getHeaders(): OutgoingHttpHeaders;
277
+ getHeaderNames(): string[];
278
+ hasHeader(name: string): boolean;
279
+ removeHeader(name: string): void;
280
+ addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
281
+ flushHeaders(): void;
282
+ }
283
+
284
+ // https://github.com/nodejs/node/blob/master/lib/_http_server.js#L108-L256
285
+ class ServerResponse extends OutgoingMessage {
286
+ statusCode: number;
287
+ statusMessage: string;
288
+
289
+ constructor(req: IncomingMessage);
290
+
291
+ assignSocket(socket: Socket): void;
292
+ detachSocket(socket: Socket): void;
293
+ // https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53
294
+ // no args in writeContinue callback
295
+ writeContinue(callback?: () => void): void;
296
+ writeHead(
297
+ statusCode: number,
298
+ statusMessage?: string,
299
+ headers?: OutgoingHttpHeaders | OutgoingHttpHeader[],
300
+ ): this;
301
+ writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
302
+ writeProcessing(): void;
303
+ }
304
+
305
+ interface InformationEvent {
306
+ statusCode: number;
307
+ statusMessage: string;
308
+ httpVersion: string;
309
+ httpVersionMajor: number;
310
+ httpVersionMinor: number;
311
+ headers: IncomingHttpHeaders;
312
+ rawHeaders: string[];
313
+ }
314
+
315
+ // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L77
316
+ class ClientRequest extends OutgoingMessage {
317
+ aborted: boolean;
318
+ host: string;
319
+ protocol: string;
320
+ reusedSocket: boolean;
321
+ maxHeadersCount: number;
322
+
323
+ constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
324
+
325
+ method: string;
326
+ path: string;
327
+ /** @deprecated since v14.1.0 Use `request.destroy()` instead. */
328
+ abort(): void;
329
+ onSocket(socket: Socket): void;
330
+ setTimeout(timeout: number, callback?: () => void): this;
331
+ setNoDelay(noDelay?: boolean): void;
332
+ setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
333
+
334
+ addListener(event: "abort", listener: () => void): this;
335
+ addListener(
336
+ event: "connect",
337
+ listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
338
+ ): this;
339
+ addListener(event: "continue", listener: () => void): this;
340
+ addListener(event: "information", listener: (info: InformationEvent) => void): this;
341
+ addListener(event: "response", listener: (response: IncomingMessage) => void): this;
342
+ addListener(event: "socket", listener: (socket: Socket) => void): this;
343
+ addListener(event: "timeout", listener: () => void): this;
344
+ addListener(
345
+ event: "upgrade",
346
+ listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
347
+ ): this;
348
+ addListener(event: "close", listener: () => void): this;
349
+ addListener(event: "drain", listener: () => void): this;
350
+ addListener(event: "error", listener: (err: Error) => void): this;
351
+ addListener(event: "finish", listener: () => void): this;
352
+ addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
353
+ addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
354
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
355
+
356
+ on(event: "abort", listener: () => void): this;
357
+ on(event: "connect", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
358
+ on(event: "continue", listener: () => void): this;
359
+ on(event: "information", listener: (info: InformationEvent) => void): this;
360
+ on(event: "response", listener: (response: IncomingMessage) => void): this;
361
+ on(event: "socket", listener: (socket: Socket) => void): this;
362
+ on(event: "timeout", listener: () => void): this;
363
+ on(event: "upgrade", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
364
+ on(event: "close", listener: () => void): this;
365
+ on(event: "drain", listener: () => void): this;
366
+ on(event: "error", listener: (err: Error) => void): this;
367
+ on(event: "finish", listener: () => void): this;
368
+ on(event: "pipe", listener: (src: stream.Readable) => void): this;
369
+ on(event: "unpipe", listener: (src: stream.Readable) => void): this;
370
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
371
+
372
+ once(event: "abort", listener: () => void): this;
373
+ once(event: "connect", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
374
+ once(event: "continue", listener: () => void): this;
375
+ once(event: "information", listener: (info: InformationEvent) => void): this;
376
+ once(event: "response", listener: (response: IncomingMessage) => void): this;
377
+ once(event: "socket", listener: (socket: Socket) => void): this;
378
+ once(event: "timeout", listener: () => void): this;
379
+ once(event: "upgrade", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
380
+ once(event: "close", listener: () => void): this;
381
+ once(event: "drain", listener: () => void): this;
382
+ once(event: "error", listener: (err: Error) => void): this;
383
+ once(event: "finish", listener: () => void): this;
384
+ once(event: "pipe", listener: (src: stream.Readable) => void): this;
385
+ once(event: "unpipe", listener: (src: stream.Readable) => void): this;
386
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
387
+
388
+ prependListener(event: "abort", listener: () => void): this;
389
+ prependListener(
390
+ event: "connect",
391
+ listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
392
+ ): this;
393
+ prependListener(event: "continue", listener: () => void): this;
394
+ prependListener(event: "information", listener: (info: InformationEvent) => void): this;
395
+ prependListener(event: "response", listener: (response: IncomingMessage) => void): this;
396
+ prependListener(event: "socket", listener: (socket: Socket) => void): this;
397
+ prependListener(event: "timeout", listener: () => void): this;
398
+ prependListener(
399
+ event: "upgrade",
400
+ listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
401
+ ): this;
402
+ prependListener(event: "close", listener: () => void): this;
403
+ prependListener(event: "drain", listener: () => void): this;
404
+ prependListener(event: "error", listener: (err: Error) => void): this;
405
+ prependListener(event: "finish", listener: () => void): this;
406
+ prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
407
+ prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
408
+ prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
409
+
410
+ prependOnceListener(event: "abort", listener: () => void): this;
411
+ prependOnceListener(
412
+ event: "connect",
413
+ listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
414
+ ): this;
415
+ prependOnceListener(event: "continue", listener: () => void): this;
416
+ prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this;
417
+ prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this;
418
+ prependOnceListener(event: "socket", listener: (socket: Socket) => void): this;
419
+ prependOnceListener(event: "timeout", listener: () => void): this;
420
+ prependOnceListener(
421
+ event: "upgrade",
422
+ listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
423
+ ): this;
424
+ prependOnceListener(event: "close", listener: () => void): this;
425
+ prependOnceListener(event: "drain", listener: () => void): this;
426
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
427
+ prependOnceListener(event: "finish", listener: () => void): this;
428
+ prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
429
+ prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
430
+ prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
431
+ }
432
+
433
+ class IncomingMessage extends stream.Readable {
434
+ constructor(socket: Socket);
435
+
436
+ aborted: boolean;
437
+ httpVersion: string;
438
+ httpVersionMajor: number;
439
+ httpVersionMinor: number;
440
+ complete: boolean;
441
+ /**
442
+ * @deprecated since v13.0.0 - Use `socket` instead.
443
+ */
444
+ connection: Socket;
445
+ socket: Socket;
446
+ headers: IncomingHttpHeaders;
447
+ rawHeaders: string[];
448
+ trailers: NodeJS.Dict<string>;
449
+ rawTrailers: string[];
450
+ setTimeout(msecs: number, callback?: () => void): this;
451
+ /**
452
+ * Only valid for request obtained from http.Server.
453
+ */
454
+ method?: string | undefined;
455
+ /**
456
+ * Only valid for request obtained from http.Server.
457
+ */
458
+ url?: string | undefined;
459
+ /**
460
+ * Only valid for response obtained from http.ClientRequest.
461
+ */
462
+ statusCode?: number | undefined;
463
+ /**
464
+ * Only valid for response obtained from http.ClientRequest.
465
+ */
466
+ statusMessage?: string | undefined;
467
+ destroy(error?: Error): this;
468
+ }
469
+
470
+ interface AgentOptions {
471
+ /**
472
+ * Keep sockets around in a pool to be used by other requests in the future. Default = false
473
+ */
474
+ keepAlive?: boolean | undefined;
475
+ /**
476
+ * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
477
+ * Only relevant if keepAlive is set to true.
478
+ */
479
+ keepAliveMsecs?: number | undefined;
480
+ /**
481
+ * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
482
+ */
483
+ maxSockets?: number | undefined;
484
+ /**
485
+ * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
486
+ */
487
+ maxTotalSockets?: number | undefined;
488
+ /**
489
+ * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
490
+ */
491
+ maxFreeSockets?: number | undefined;
492
+ /**
493
+ * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
494
+ */
495
+ timeout?: number | undefined;
496
+ /**
497
+ * Scheduling strategy to apply when picking the next free socket to use. Default: 'fifo'.
498
+ */
499
+ scheduling?: "fifo" | "lifo" | undefined;
500
+ }
501
+
502
+ class Agent {
503
+ maxFreeSockets: number;
504
+ maxSockets: number;
505
+ maxTotalSockets: number;
506
+ readonly freeSockets: NodeJS.ReadOnlyDict<Socket[]>;
507
+ readonly sockets: NodeJS.ReadOnlyDict<Socket[]>;
508
+ readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
509
+
510
+ constructor(opts?: AgentOptions);
511
+
512
+ /**
513
+ * Destroy any sockets that are currently in use by the agent.
514
+ * It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
515
+ * then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
516
+ * sockets may hang open for quite a long time before the server terminates them.
517
+ */
518
+ destroy(): void;
519
+ }
520
+
521
+ const METHODS: string[];
522
+
523
+ const STATUS_CODES: {
524
+ [errorCode: number]: string | undefined;
525
+ [errorCode: string]: string | undefined;
526
+ };
527
+
528
+ function createServer<
529
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
530
+ Response extends typeof ServerResponse = typeof ServerResponse,
531
+ >(requestListener?: RequestListener<Request, Response>): Server<Request, Response>;
532
+ function createServer<
533
+ Request extends typeof IncomingMessage = typeof IncomingMessage,
534
+ Response extends typeof ServerResponse = typeof ServerResponse,
535
+ >(
536
+ options: ServerOptions<Request, Response>,
537
+ requestListener?: RequestListener<Request, Response>,
538
+ ): Server<Request, Response>;
539
+
540
+ // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
541
+ // create interface RequestOptions would make the naming more clear to developers
542
+ interface RequestOptions extends ClientRequestArgs {}
543
+ function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
544
+ function request(
545
+ url: string | URL,
546
+ options: RequestOptions,
547
+ callback?: (res: IncomingMessage) => void,
548
+ ): ClientRequest;
549
+ function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
550
+ function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
551
+
552
+ /**
553
+ * Performs the low-level validations on the provided name that are done when `res.setHeader(name, value)` is called.
554
+ * Passing illegal value as name will result in a TypeError being thrown, identified by `code: 'ERR_INVALID_HTTP_TOKEN'`.
555
+ * @param name Header name
556
+ * @since v14.3.0
557
+ */
558
+ function validateHeaderName(name: string): void;
559
+ /**
560
+ * Performs the low-level validations on the provided value that are done when `res.setHeader(name, value)` is called.
561
+ * Passing illegal value as value will result in a TypeError being thrown.
562
+ * - Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`.
563
+ * - Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`.
564
+ * @param name Header name
565
+ * @param value Header value
566
+ * @since v14.3.0
567
+ */
568
+ function validateHeaderValue(name: string, value: string): void;
569
+
570
+ let globalAgent: Agent;
571
+
572
+ /**
573
+ * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
574
+ * Defaults to 16KB. Configurable using the [`--max-http-header-size`][] CLI option.
575
+ */
576
+ const maxHeaderSize: number;
577
+ }
578
+ declare module "node:http" {
579
+ export * from "http";
580
+ }