@emulsify/cli 1.6.0 → 1.8.0

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
@@ -1,8 +1,8 @@
1
- declare module 'fs' {
2
- import * as stream from 'stream';
3
- import EventEmitter = require('events');
4
- import { URL } from 'url';
5
- import * as promises from 'fs/promises';
1
+ declare module "fs" {
2
+ import * as stream from "stream";
3
+ import EventEmitter = require("events");
4
+ import { URL } from "url";
5
+ import * as promises from "fs/promises";
6
6
 
7
7
  export { promises };
8
8
  /**
@@ -12,7 +12,7 @@ declare module 'fs' {
12
12
 
13
13
  export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void;
14
14
 
15
- export type BufferEncodingOption = 'buffer' | { encoding: 'buffer' };
15
+ export type BufferEncodingOption = "buffer" | { encoding: "buffer" };
16
16
 
17
17
  export interface BaseEncodingOptions {
18
18
  encoding?: BufferEncoding | null | undefined;
@@ -435,7 +435,12 @@ declare module 'fs' {
435
435
  * @param atime The last access time. If a string is provided, it will be coerced to number.
436
436
  * @param mtime The last modified time. If a string is provided, it will be coerced to number.
437
437
  */
438
- export function lutimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void;
438
+ export function lutimes(
439
+ path: PathLike,
440
+ atime: string | number | Date,
441
+ mtime: string | number | Date,
442
+ callback: NoParamCallback,
443
+ ): void;
439
444
 
440
445
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
441
446
  export namespace lutimes {
@@ -447,7 +452,11 @@ declare module 'fs' {
447
452
  * @param atime The last access time. If a string is provided, it will be coerced to number.
448
453
  * @param mtime The last modified time. If a string is provided, it will be coerced to number.
449
454
  */
450
- function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
455
+ function __promisify__(
456
+ path: PathLike,
457
+ atime: string | number | Date,
458
+ mtime: string | number | Date,
459
+ ): Promise<void>;
451
460
  }
452
461
 
453
462
  /**
@@ -537,9 +546,21 @@ declare module 'fs' {
537
546
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
538
547
  */
539
548
  export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
540
- export function stat(path: PathLike, options: StatOptions & { bigint?: false | undefined } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
541
- export function stat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
542
- export function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
549
+ export function stat(
550
+ path: PathLike,
551
+ options: StatOptions & { bigint?: false | undefined } | undefined,
552
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
553
+ ): void;
554
+ export function stat(
555
+ path: PathLike,
556
+ options: StatOptions & { bigint: true },
557
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
558
+ ): void;
559
+ export function stat(
560
+ path: PathLike,
561
+ options: StatOptions | undefined,
562
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
563
+ ): void;
543
564
 
544
565
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
545
566
  export namespace stat {
@@ -565,9 +586,21 @@ declare module 'fs' {
565
586
  * @param fd A file descriptor.
566
587
  */
567
588
  export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
568
- export function fstat(fd: number, options: StatOptions & { bigint?: false | undefined } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
569
- export function fstat(fd: number, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
570
- export function fstat(fd: number, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
589
+ export function fstat(
590
+ fd: number,
591
+ options: StatOptions & { bigint?: false | undefined } | undefined,
592
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
593
+ ): void;
594
+ export function fstat(
595
+ fd: number,
596
+ options: StatOptions & { bigint: true },
597
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
598
+ ): void;
599
+ export function fstat(
600
+ fd: number,
601
+ options: StatOptions | undefined,
602
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
603
+ ): void;
571
604
 
572
605
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
573
606
  export namespace fstat {
@@ -593,9 +626,21 @@ declare module 'fs' {
593
626
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
594
627
  */
595
628
  export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
596
- export function lstat(path: PathLike, options: StatOptions & { bigint?: false | undefined } | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void;
597
- export function lstat(path: PathLike, options: StatOptions & { bigint: true }, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void;
598
- export function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void;
629
+ export function lstat(
630
+ path: PathLike,
631
+ options: StatOptions & { bigint?: false | undefined } | undefined,
632
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void,
633
+ ): void;
634
+ export function lstat(
635
+ path: PathLike,
636
+ options: StatOptions & { bigint: true },
637
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void,
638
+ ): void;
639
+ export function lstat(
640
+ path: PathLike,
641
+ options: StatOptions | undefined,
642
+ callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void,
643
+ ): void;
599
644
 
600
645
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
601
646
  export namespace lstat {
@@ -647,7 +692,12 @@ declare module 'fs' {
647
692
  * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms).
648
693
  * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path.
649
694
  */
650
- export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void;
695
+ export function symlink(
696
+ target: PathLike,
697
+ path: PathLike,
698
+ type: symlink.Type | undefined | null,
699
+ callback: NoParamCallback,
700
+ ): void;
651
701
 
652
702
  /**
653
703
  * Asynchronous symlink(2) - Create a new symbolic link to an existing file.
@@ -687,7 +737,7 @@ declare module 'fs' {
687
737
  export function readlink(
688
738
  path: PathLike,
689
739
  options: BaseEncodingOptions | BufferEncoding | undefined | null,
690
- callback: (err: NodeJS.ErrnoException | null, linkString: string) => void
740
+ callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
691
741
  ): void;
692
742
 
693
743
  /**
@@ -695,20 +745,31 @@ declare module 'fs' {
695
745
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
696
746
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
697
747
  */
698
- export function readlink(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void): void;
748
+ export function readlink(
749
+ path: PathLike,
750
+ options: BufferEncodingOption,
751
+ callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void,
752
+ ): void;
699
753
 
700
754
  /**
701
755
  * Asynchronous readlink(2) - read value of a symbolic link.
702
756
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
703
757
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
704
758
  */
705
- export function readlink(path: PathLike, options: BaseEncodingOptions | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void): void;
759
+ export function readlink(
760
+ path: PathLike,
761
+ options: BaseEncodingOptions | string | undefined | null,
762
+ callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void,
763
+ ): void;
706
764
 
707
765
  /**
708
766
  * Asynchronous readlink(2) - read value of a symbolic link.
709
767
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
710
768
  */
711
- export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void;
769
+ export function readlink(
770
+ path: PathLike,
771
+ callback: (err: NodeJS.ErrnoException | null, linkString: string) => void,
772
+ ): void;
712
773
 
713
774
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
714
775
  export namespace readlink {
@@ -763,7 +824,7 @@ declare module 'fs' {
763
824
  export function realpath(
764
825
  path: PathLike,
765
826
  options: BaseEncodingOptions | BufferEncoding | undefined | null,
766
- callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void
827
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
767
828
  ): void;
768
829
 
769
830
  /**
@@ -771,20 +832,31 @@ declare module 'fs' {
771
832
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
772
833
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
773
834
  */
774
- export function realpath(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void;
835
+ export function realpath(
836
+ path: PathLike,
837
+ options: BufferEncodingOption,
838
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
839
+ ): void;
775
840
 
776
841
  /**
777
842
  * Asynchronous realpath(3) - return the canonicalized absolute pathname.
778
843
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
779
844
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
780
845
  */
781
- export function realpath(path: PathLike, options: BaseEncodingOptions | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void;
846
+ export function realpath(
847
+ path: PathLike,
848
+ options: BaseEncodingOptions | string | undefined | null,
849
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
850
+ ): void;
782
851
 
783
852
  /**
784
853
  * Asynchronous realpath(3) - return the canonicalized absolute pathname.
785
854
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
786
855
  */
787
- export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
856
+ export function realpath(
857
+ path: PathLike,
858
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
859
+ ): void;
788
860
 
789
861
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
790
862
  export namespace realpath {
@@ -812,11 +884,22 @@ declare module 'fs' {
812
884
  function native(
813
885
  path: PathLike,
814
886
  options: BaseEncodingOptions | BufferEncoding | undefined | null,
815
- callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void
887
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
888
+ ): void;
889
+ function native(
890
+ path: PathLike,
891
+ options: BufferEncodingOption,
892
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void,
893
+ ): void;
894
+ function native(
895
+ path: PathLike,
896
+ options: BaseEncodingOptions | string | undefined | null,
897
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void,
898
+ ): void;
899
+ function native(
900
+ path: PathLike,
901
+ callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void,
816
902
  ): void;
817
- function native(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void;
818
- function native(path: PathLike, options: BaseEncodingOptions | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void;
819
- function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void;
820
903
  }
821
904
 
822
905
  /**
@@ -988,7 +1071,11 @@ declare module 'fs' {
988
1071
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
989
1072
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
990
1073
  */
991
- export function mkdir(path: PathLike, options: MakeDirectoryOptions & { recursive: true }, callback: (err: NodeJS.ErrnoException | null, path?: string) => void): void;
1074
+ export function mkdir(
1075
+ path: PathLike,
1076
+ options: MakeDirectoryOptions & { recursive: true },
1077
+ callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
1078
+ ): void;
992
1079
 
993
1080
  /**
994
1081
  * Asynchronous mkdir(2) - create a directory.
@@ -996,7 +1083,11 @@ declare module 'fs' {
996
1083
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
997
1084
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
998
1085
  */
999
- export function mkdir(path: PathLike, options: Mode | (MakeDirectoryOptions & { recursive?: false | undefined; }) | null | undefined, callback: NoParamCallback): void;
1086
+ export function mkdir(
1087
+ path: PathLike,
1088
+ options: Mode | (MakeDirectoryOptions & { recursive?: false | undefined }) | null | undefined,
1089
+ callback: NoParamCallback,
1090
+ ): void;
1000
1091
 
1001
1092
  /**
1002
1093
  * Asynchronous mkdir(2) - create a directory.
@@ -1004,7 +1095,11 @@ declare module 'fs' {
1004
1095
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1005
1096
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1006
1097
  */
1007
- export function mkdir(path: PathLike, options: Mode | MakeDirectoryOptions | null | undefined, callback: (err: NodeJS.ErrnoException | null, path?: string) => void): void;
1098
+ export function mkdir(
1099
+ path: PathLike,
1100
+ options: Mode | MakeDirectoryOptions | null | undefined,
1101
+ callback: (err: NodeJS.ErrnoException | null, path?: string) => void,
1102
+ ): void;
1008
1103
 
1009
1104
  /**
1010
1105
  * Asynchronous mkdir(2) - create a directory with a mode of `0o777`.
@@ -1020,7 +1115,10 @@ declare module 'fs' {
1020
1115
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1021
1116
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1022
1117
  */
1023
- function __promisify__(path: PathLike, options: MakeDirectoryOptions & { recursive: true; }): Promise<string | undefined>;
1118
+ function __promisify__(
1119
+ path: PathLike,
1120
+ options: MakeDirectoryOptions & { recursive: true },
1121
+ ): Promise<string | undefined>;
1024
1122
 
1025
1123
  /**
1026
1124
  * Asynchronous mkdir(2) - create a directory.
@@ -1028,7 +1126,10 @@ declare module 'fs' {
1028
1126
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1029
1127
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1030
1128
  */
1031
- function __promisify__(path: PathLike, options?: Mode | (MakeDirectoryOptions & { recursive?: false | undefined; }) | null): Promise<void>;
1129
+ function __promisify__(
1130
+ path: PathLike,
1131
+ options?: Mode | (MakeDirectoryOptions & { recursive?: false | undefined }) | null,
1132
+ ): Promise<void>;
1032
1133
 
1033
1134
  /**
1034
1135
  * Asynchronous mkdir(2) - create a directory.
@@ -1036,7 +1137,10 @@ declare module 'fs' {
1036
1137
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1037
1138
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1038
1139
  */
1039
- function __promisify__(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise<string | undefined>;
1140
+ function __promisify__(
1141
+ path: PathLike,
1142
+ options?: Mode | MakeDirectoryOptions | null,
1143
+ ): Promise<string | undefined>;
1040
1144
  }
1041
1145
 
1042
1146
  /**
@@ -1045,7 +1149,7 @@ declare module 'fs' {
1045
1149
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1046
1150
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1047
1151
  */
1048
- export function mkdirSync(path: PathLike, options: MakeDirectoryOptions & { recursive: true; }): string | undefined;
1152
+ export function mkdirSync(path: PathLike, options: MakeDirectoryOptions & { recursive: true }): string | undefined;
1049
1153
 
1050
1154
  /**
1051
1155
  * Synchronous mkdir(2) - create a directory.
@@ -1053,7 +1157,10 @@ declare module 'fs' {
1053
1157
  * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders
1054
1158
  * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`.
1055
1159
  */
1056
- export function mkdirSync(path: PathLike, options?: Mode | (MakeDirectoryOptions & { recursive?: false | undefined; }) | null): void;
1160
+ export function mkdirSync(
1161
+ path: PathLike,
1162
+ options?: Mode | (MakeDirectoryOptions & { recursive?: false | undefined }) | null,
1163
+ ): void;
1057
1164
 
1058
1165
  /**
1059
1166
  * Synchronous mkdir(2) - create a directory.
@@ -1068,27 +1175,42 @@ declare module 'fs' {
1068
1175
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
1069
1176
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1070
1177
  */
1071
- export function mkdtemp(prefix: string, options: BaseEncodingOptions | BufferEncoding | undefined | null, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void;
1178
+ export function mkdtemp(
1179
+ prefix: string,
1180
+ options: BaseEncodingOptions | BufferEncoding | undefined | null,
1181
+ callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
1182
+ ): void;
1072
1183
 
1073
1184
  /**
1074
1185
  * Asynchronously creates a unique temporary directory.
1075
1186
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
1076
1187
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1077
1188
  */
1078
- export function mkdtemp(prefix: string, options: "buffer" | { encoding: "buffer" }, callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void): void;
1189
+ export function mkdtemp(
1190
+ prefix: string,
1191
+ options: "buffer" | { encoding: "buffer" },
1192
+ callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void,
1193
+ ): void;
1079
1194
 
1080
1195
  /**
1081
1196
  * Asynchronously creates a unique temporary directory.
1082
1197
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
1083
1198
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1084
1199
  */
1085
- export function mkdtemp(prefix: string, options: BaseEncodingOptions | string | undefined | null, callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void): void;
1200
+ export function mkdtemp(
1201
+ prefix: string,
1202
+ options: BaseEncodingOptions | string | undefined | null,
1203
+ callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void,
1204
+ ): void;
1086
1205
 
1087
1206
  /**
1088
1207
  * Asynchronously creates a unique temporary directory.
1089
1208
  * Generates six random characters to be appended behind a required prefix to create a unique temporary directory.
1090
1209
  */
1091
- export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void;
1210
+ export function mkdtemp(
1211
+ prefix: string,
1212
+ callback: (err: NodeJS.ErrnoException | null, folder: string) => void,
1213
+ ): void;
1092
1214
 
1093
1215
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1094
1216
  export namespace mkdtemp {
@@ -1142,7 +1264,11 @@ declare module 'fs' {
1142
1264
  */
1143
1265
  export function readdir(
1144
1266
  path: PathLike,
1145
- options: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | undefined | null,
1267
+ options:
1268
+ | { encoding: BufferEncoding | null; withFileTypes?: false | undefined }
1269
+ | BufferEncoding
1270
+ | undefined
1271
+ | null,
1146
1272
  callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
1147
1273
  ): void;
1148
1274
 
@@ -1154,7 +1280,7 @@ declare module 'fs' {
1154
1280
  export function readdir(
1155
1281
  path: PathLike,
1156
1282
  options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer",
1157
- callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void
1283
+ callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void,
1158
1284
  ): void;
1159
1285
 
1160
1286
  /**
@@ -1172,14 +1298,21 @@ declare module 'fs' {
1172
1298
  * Asynchronous readdir(3) - read a directory.
1173
1299
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1174
1300
  */
1175
- export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void;
1301
+ export function readdir(
1302
+ path: PathLike,
1303
+ callback: (err: NodeJS.ErrnoException | null, files: string[]) => void,
1304
+ ): void;
1176
1305
 
1177
1306
  /**
1178
1307
  * Asynchronous readdir(3) - read a directory.
1179
1308
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1180
1309
  * @param options If called with `withFileTypes: true` the result data will be an array of Dirent.
1181
1310
  */
1182
- export function readdir(path: PathLike, options: BaseEncodingOptions & { withFileTypes: true }, callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void): void;
1311
+ export function readdir(
1312
+ path: PathLike,
1313
+ options: BaseEncodingOptions & { withFileTypes: true },
1314
+ callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void,
1315
+ ): void;
1183
1316
 
1184
1317
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1185
1318
  export namespace readdir {
@@ -1188,28 +1321,40 @@ declare module 'fs' {
1188
1321
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1189
1322
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1190
1323
  */
1191
- function __promisify__(path: PathLike, options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null): Promise<string[]>;
1324
+ function __promisify__(
1325
+ path: PathLike,
1326
+ options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null,
1327
+ ): Promise<string[]>;
1192
1328
 
1193
1329
  /**
1194
1330
  * Asynchronous readdir(3) - read a directory.
1195
1331
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1196
1332
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1197
1333
  */
1198
- function __promisify__(path: PathLike, options: "buffer" | { encoding: "buffer"; withFileTypes?: false | undefined }): Promise<Buffer[]>;
1334
+ function __promisify__(
1335
+ path: PathLike,
1336
+ options: "buffer" | { encoding: "buffer"; withFileTypes?: false | undefined },
1337
+ ): Promise<Buffer[]>;
1199
1338
 
1200
1339
  /**
1201
1340
  * Asynchronous readdir(3) - read a directory.
1202
1341
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1203
1342
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1204
1343
  */
1205
- function __promisify__(path: PathLike, options?: BaseEncodingOptions & { withFileTypes?: false | undefined } | BufferEncoding | null): Promise<string[] | Buffer[]>;
1344
+ function __promisify__(
1345
+ path: PathLike,
1346
+ options?: BaseEncodingOptions & { withFileTypes?: false | undefined } | BufferEncoding | null,
1347
+ ): Promise<string[] | Buffer[]>;
1206
1348
 
1207
1349
  /**
1208
1350
  * Asynchronous readdir(3) - read a directory.
1209
1351
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1210
1352
  * @param options If called with `withFileTypes: true` the result data will be an array of Dirent
1211
1353
  */
1212
- function __promisify__(path: PathLike, options: BaseEncodingOptions & { withFileTypes: true }): Promise<Dirent[]>;
1354
+ function __promisify__(
1355
+ path: PathLike,
1356
+ options: BaseEncodingOptions & { withFileTypes: true },
1357
+ ): Promise<Dirent[]>;
1213
1358
  }
1214
1359
 
1215
1360
  /**
@@ -1217,21 +1362,30 @@ declare module 'fs' {
1217
1362
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1218
1363
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1219
1364
  */
1220
- export function readdirSync(path: PathLike, options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null): string[];
1365
+ export function readdirSync(
1366
+ path: PathLike,
1367
+ options?: { encoding: BufferEncoding | null; withFileTypes?: false | undefined } | BufferEncoding | null,
1368
+ ): string[];
1221
1369
 
1222
1370
  /**
1223
1371
  * Synchronous readdir(3) - read a directory.
1224
1372
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1225
1373
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1226
1374
  */
1227
- export function readdirSync(path: PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer"): Buffer[];
1375
+ export function readdirSync(
1376
+ path: PathLike,
1377
+ options: { encoding: "buffer"; withFileTypes?: false | undefined } | "buffer",
1378
+ ): Buffer[];
1228
1379
 
1229
1380
  /**
1230
1381
  * Synchronous readdir(3) - read a directory.
1231
1382
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1232
1383
  * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used.
1233
1384
  */
1234
- export function readdirSync(path: PathLike, options?: BaseEncodingOptions & { withFileTypes?: false | undefined } | BufferEncoding | null): string[] | Buffer[];
1385
+ export function readdirSync(
1386
+ path: PathLike,
1387
+ options?: BaseEncodingOptions & { withFileTypes?: false | undefined } | BufferEncoding | null,
1388
+ ): string[] | Buffer[];
1235
1389
 
1236
1390
  /**
1237
1391
  * Synchronous readdir(3) - read a directory.
@@ -1264,15 +1418,32 @@ declare module 'fs' {
1264
1418
  /**
1265
1419
  * Asynchronous open(2) - open and possibly create a file.
1266
1420
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1267
- * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`.
1421
+ * @param [flags='r'] See `support of file system `flags``.
1422
+ * @param [mode=0o666]
1423
+ */
1424
+ export function open(
1425
+ path: PathLike,
1426
+ flags: OpenMode | undefined,
1427
+ mode: Mode | undefined | null,
1428
+ callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
1429
+ ): void;
1430
+
1431
+ /**
1432
+ * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
1433
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1434
+ * @param [flags='r'] See `support of file system `flags``.
1268
1435
  */
1269
- export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1436
+ export function open(
1437
+ path: PathLike,
1438
+ flags: OpenMode | undefined,
1439
+ callback: (err: NodeJS.ErrnoException | null, fd: number) => void,
1440
+ ): void;
1270
1441
 
1271
1442
  /**
1272
1443
  * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`.
1273
1444
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1274
1445
  */
1275
- export function open(path: PathLike, flags: OpenMode, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1446
+ export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void;
1276
1447
 
1277
1448
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1278
1449
  export namespace open {
@@ -1297,7 +1468,12 @@ declare module 'fs' {
1297
1468
  * @param atime The last access time. If a string is provided, it will be coerced to number.
1298
1469
  * @param mtime The last modified time. If a string is provided, it will be coerced to number.
1299
1470
  */
1300
- export function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void;
1471
+ export function utimes(
1472
+ path: PathLike,
1473
+ atime: string | number | Date,
1474
+ mtime: string | number | Date,
1475
+ callback: NoParamCallback,
1476
+ ): void;
1301
1477
 
1302
1478
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1303
1479
  export namespace utimes {
@@ -1307,7 +1483,11 @@ declare module 'fs' {
1307
1483
  * @param atime The last access time. If a string is provided, it will be coerced to number.
1308
1484
  * @param mtime The last modified time. If a string is provided, it will be coerced to number.
1309
1485
  */
1310
- function __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
1486
+ function __promisify__(
1487
+ path: PathLike,
1488
+ atime: string | number | Date,
1489
+ mtime: string | number | Date,
1490
+ ): Promise<void>;
1311
1491
  }
1312
1492
 
1313
1493
  /**
@@ -1324,7 +1504,12 @@ declare module 'fs' {
1324
1504
  * @param atime The last access time. If a string is provided, it will be coerced to number.
1325
1505
  * @param mtime The last modified time. If a string is provided, it will be coerced to number.
1326
1506
  */
1327
- export function futimes(fd: number, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void;
1507
+ export function futimes(
1508
+ fd: number,
1509
+ atime: string | number | Date,
1510
+ mtime: string | number | Date,
1511
+ callback: NoParamCallback,
1512
+ ): void;
1328
1513
 
1329
1514
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1330
1515
  export namespace futimes {
@@ -1405,14 +1590,18 @@ declare module 'fs' {
1405
1590
  fd: number,
1406
1591
  buffer: TBuffer,
1407
1592
  offset: number | undefined | null,
1408
- callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void
1593
+ callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
1409
1594
  ): void;
1410
1595
 
1411
1596
  /**
1412
1597
  * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor.
1413
1598
  * @param fd A file descriptor.
1414
1599
  */
1415
- export function write<TBuffer extends NodeJS.ArrayBufferView>(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void;
1600
+ export function write<TBuffer extends NodeJS.ArrayBufferView>(
1601
+ fd: number,
1602
+ buffer: TBuffer,
1603
+ callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void,
1604
+ ): void;
1416
1605
 
1417
1606
  /**
1418
1607
  * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
@@ -1435,14 +1624,23 @@ declare module 'fs' {
1435
1624
  * @param string A string to write.
1436
1625
  * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
1437
1626
  */
1438
- export function write(fd: number, string: string, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
1627
+ export function write(
1628
+ fd: number,
1629
+ string: string,
1630
+ position: number | undefined | null,
1631
+ callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
1632
+ ): void;
1439
1633
 
1440
1634
  /**
1441
1635
  * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
1442
1636
  * @param fd A file descriptor.
1443
1637
  * @param string A string to write.
1444
1638
  */
1445
- export function write(fd: number, string: string, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void;
1639
+ export function write(
1640
+ fd: number,
1641
+ string: string,
1642
+ callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void,
1643
+ ): void;
1446
1644
 
1447
1645
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1448
1646
  export namespace write {
@@ -1459,7 +1657,7 @@ declare module 'fs' {
1459
1657
  offset?: number,
1460
1658
  length?: number,
1461
1659
  position?: number | null,
1462
- ): Promise<{ bytesWritten: number, buffer: TBuffer }>;
1660
+ ): Promise<{ bytesWritten: number; buffer: TBuffer }>;
1463
1661
 
1464
1662
  /**
1465
1663
  * Asynchronously writes `string` to the file referenced by the supplied file descriptor.
@@ -1468,7 +1666,12 @@ declare module 'fs' {
1468
1666
  * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
1469
1667
  * @param encoding The expected string encoding.
1470
1668
  */
1471
- function __promisify__(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): Promise<{ bytesWritten: number, buffer: string }>;
1669
+ function __promisify__(
1670
+ fd: number,
1671
+ string: string,
1672
+ position?: number | null,
1673
+ encoding?: BufferEncoding | null,
1674
+ ): Promise<{ bytesWritten: number; buffer: string }>;
1472
1675
  }
1473
1676
 
1474
1677
  /**
@@ -1478,7 +1681,13 @@ declare module 'fs' {
1478
1681
  * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`.
1479
1682
  * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
1480
1683
  */
1481
- export function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number;
1684
+ export function writeSync(
1685
+ fd: number,
1686
+ buffer: NodeJS.ArrayBufferView,
1687
+ offset?: number | null,
1688
+ length?: number | null,
1689
+ position?: number | null,
1690
+ ): number;
1482
1691
 
1483
1692
  /**
1484
1693
  * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written.
@@ -1487,7 +1696,12 @@ declare module 'fs' {
1487
1696
  * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
1488
1697
  * @param encoding The expected string encoding.
1489
1698
  */
1490
- export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number;
1699
+ export function writeSync(
1700
+ fd: number,
1701
+ string: string,
1702
+ position?: number | null,
1703
+ encoding?: BufferEncoding | null,
1704
+ ): number;
1491
1705
 
1492
1706
  /**
1493
1707
  * Asynchronously reads data from the file referenced by the supplied file descriptor.
@@ -1520,8 +1734,8 @@ declare module 'fs' {
1520
1734
  buffer: TBuffer,
1521
1735
  offset: number,
1522
1736
  length: number,
1523
- position: number | null
1524
- ): Promise<{ bytesRead: number, buffer: TBuffer }>;
1737
+ position: number | null,
1738
+ ): Promise<{ bytesRead: number; buffer: TBuffer }>;
1525
1739
  }
1526
1740
 
1527
1741
  export interface ReadSyncOptions {
@@ -1547,7 +1761,13 @@ declare module 'fs' {
1547
1761
  * @param length The number of bytes to read.
1548
1762
  * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position.
1549
1763
  */
1550
- export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: number | null): number;
1764
+ export function readSync(
1765
+ fd: number,
1766
+ buffer: NodeJS.ArrayBufferView,
1767
+ offset: number,
1768
+ length: number,
1769
+ position: number | null,
1770
+ ): number;
1551
1771
 
1552
1772
  /**
1553
1773
  * Similar to the above `fs.readSync` function, this version takes an optional `options` object.
@@ -1564,8 +1784,8 @@ declare module 'fs' {
1564
1784
  */
1565
1785
  export function readFile(
1566
1786
  path: PathLike | number,
1567
- options: { encoding?: null | undefined; flag?: string | undefined; } | undefined | null,
1568
- callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void
1787
+ options: { encoding?: null | undefined; flag?: string | undefined } | undefined | null,
1788
+ callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
1569
1789
  ): void;
1570
1790
 
1571
1791
  /**
@@ -1578,8 +1798,8 @@ declare module 'fs' {
1578
1798
  */
1579
1799
  export function readFile(
1580
1800
  path: PathLike | number,
1581
- options: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding,
1582
- callback: (err: NodeJS.ErrnoException | null, data: string) => void
1801
+ options: { encoding: BufferEncoding; flag?: string | undefined } | BufferEncoding,
1802
+ callback: (err: NodeJS.ErrnoException | null, data: string) => void,
1583
1803
  ): void;
1584
1804
 
1585
1805
  /**
@@ -1592,7 +1812,7 @@ declare module 'fs' {
1592
1812
  */
1593
1813
  export function readFile(
1594
1814
  path: PathLike | number,
1595
- options: BaseEncodingOptions & { flag?: string | undefined; } | BufferEncoding | undefined | null,
1815
+ options: BaseEncodingOptions & { flag?: string | undefined } | BufferEncoding | undefined | null,
1596
1816
  callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void,
1597
1817
  ): void;
1598
1818
 
@@ -1601,7 +1821,10 @@ declare module 'fs' {
1601
1821
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
1602
1822
  * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
1603
1823
  */
1604
- export function readFile(path: PathLike | number, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void;
1824
+ export function readFile(
1825
+ path: PathLike | number,
1826
+ callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void,
1827
+ ): void;
1605
1828
 
1606
1829
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1607
1830
  export namespace readFile {
@@ -1612,7 +1835,10 @@ declare module 'fs' {
1612
1835
  * @param options An object that may contain an optional flag.
1613
1836
  * If a flag is not provided, it defaults to `'r'`.
1614
1837
  */
1615
- function __promisify__(path: PathLike | number, options?: { encoding?: null | undefined; flag?: string | undefined; } | null): Promise<Buffer>;
1838
+ function __promisify__(
1839
+ path: PathLike | number,
1840
+ options?: { encoding?: null | undefined; flag?: string | undefined } | null,
1841
+ ): Promise<Buffer>;
1616
1842
 
1617
1843
  /**
1618
1844
  * Asynchronously reads the entire contents of a file.
@@ -1622,7 +1848,10 @@ declare module 'fs' {
1622
1848
  * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
1623
1849
  * If a flag is not provided, it defaults to `'r'`.
1624
1850
  */
1625
- function __promisify__(path: PathLike | number, options: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding): Promise<string>;
1851
+ function __promisify__(
1852
+ path: PathLike | number,
1853
+ options: { encoding: BufferEncoding; flag?: string | undefined } | BufferEncoding,
1854
+ ): Promise<string>;
1626
1855
 
1627
1856
  /**
1628
1857
  * Asynchronously reads the entire contents of a file.
@@ -1632,7 +1861,10 @@ declare module 'fs' {
1632
1861
  * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
1633
1862
  * If a flag is not provided, it defaults to `'r'`.
1634
1863
  */
1635
- function __promisify__(path: PathLike | number, options?: BaseEncodingOptions & { flag?: string | undefined; } | BufferEncoding | null): Promise<string | Buffer>;
1864
+ function __promisify__(
1865
+ path: PathLike | number,
1866
+ options?: BaseEncodingOptions & { flag?: string | undefined } | BufferEncoding | null,
1867
+ ): Promise<string | Buffer>;
1636
1868
  }
1637
1869
 
1638
1870
  /**
@@ -1642,7 +1874,10 @@ declare module 'fs' {
1642
1874
  * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
1643
1875
  * @param options An object that may contain an optional flag. If a flag is not provided, it defaults to `'r'`.
1644
1876
  */
1645
- export function readFileSync(path: PathLike | number, options?: { encoding?: null | undefined; flag?: string | undefined; } | null): Buffer;
1877
+ export function readFileSync(
1878
+ path: PathLike | number,
1879
+ options?: { encoding?: null | undefined; flag?: string | undefined } | null,
1880
+ ): Buffer;
1646
1881
 
1647
1882
  /**
1648
1883
  * Synchronously reads the entire contents of a file.
@@ -1652,7 +1887,10 @@ declare module 'fs' {
1652
1887
  * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
1653
1888
  * If a flag is not provided, it defaults to `'r'`.
1654
1889
  */
1655
- export function readFileSync(path: PathLike | number, options: { encoding: BufferEncoding; flag?: string | undefined; } | BufferEncoding): string;
1890
+ export function readFileSync(
1891
+ path: PathLike | number,
1892
+ options: { encoding: BufferEncoding; flag?: string | undefined } | BufferEncoding,
1893
+ ): string;
1656
1894
 
1657
1895
  /**
1658
1896
  * Synchronously reads the entire contents of a file.
@@ -1662,9 +1900,15 @@ declare module 'fs' {
1662
1900
  * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag.
1663
1901
  * If a flag is not provided, it defaults to `'r'`.
1664
1902
  */
1665
- export function readFileSync(path: PathLike | number, options?: BaseEncodingOptions & { flag?: string | undefined; } | BufferEncoding | null): string | Buffer;
1903
+ export function readFileSync(
1904
+ path: PathLike | number,
1905
+ options?: BaseEncodingOptions & { flag?: string | undefined } | BufferEncoding | null,
1906
+ ): string | Buffer;
1666
1907
 
1667
- export type WriteFileOptions = BaseEncodingOptions & { mode?: Mode | undefined; flag?: string | undefined; } | BufferEncoding | null;
1908
+ export type WriteFileOptions =
1909
+ | BaseEncodingOptions & { mode?: Mode | undefined; flag?: string | undefined }
1910
+ | BufferEncoding
1911
+ | null;
1668
1912
 
1669
1913
  /**
1670
1914
  * Asynchronously writes data to a file, replacing the file if it already exists.
@@ -1678,7 +1922,12 @@ declare module 'fs' {
1678
1922
  * If `mode` is a string, it is parsed as an octal integer.
1679
1923
  * If `flag` is not supplied, the default of `'w'` is used.
1680
1924
  */
1681
- export function writeFile(path: PathLike | number, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void;
1925
+ export function writeFile(
1926
+ path: PathLike | number,
1927
+ data: string | NodeJS.ArrayBufferView,
1928
+ options: WriteFileOptions,
1929
+ callback: NoParamCallback,
1930
+ ): void;
1682
1931
 
1683
1932
  /**
1684
1933
  * Asynchronously writes data to a file, replacing the file if it already exists.
@@ -1687,7 +1936,11 @@ declare module 'fs' {
1687
1936
  * If a file descriptor is provided, the underlying file will _not_ be closed automatically.
1688
1937
  * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string.
1689
1938
  */
1690
- export function writeFile(path: PathLike | number, data: string | NodeJS.ArrayBufferView, callback: NoParamCallback): void;
1939
+ export function writeFile(
1940
+ path: PathLike | number,
1941
+ data: string | NodeJS.ArrayBufferView,
1942
+ callback: NoParamCallback,
1943
+ ): void;
1691
1944
 
1692
1945
  // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
1693
1946
  export namespace writeFile {
@@ -1703,7 +1956,11 @@ declare module 'fs' {
1703
1956
  * If `mode` is a string, it is parsed as an octal integer.
1704
1957
  * If `flag` is not supplied, the default of `'w'` is used.
1705
1958
  */
1706
- function __promisify__(path: PathLike | number, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): Promise<void>;
1959
+ function __promisify__(
1960
+ path: PathLike | number,
1961
+ data: string | NodeJS.ArrayBufferView,
1962
+ options?: WriteFileOptions,
1963
+ ): Promise<void>;
1707
1964
  }
1708
1965
 
1709
1966
  /**
@@ -1718,7 +1975,11 @@ declare module 'fs' {
1718
1975
  * If `mode` is a string, it is parsed as an octal integer.
1719
1976
  * If `flag` is not supplied, the default of `'w'` is used.
1720
1977
  */
1721
- export function writeFileSync(path: PathLike | number, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void;
1978
+ export function writeFileSync(
1979
+ path: PathLike | number,
1980
+ data: string | NodeJS.ArrayBufferView,
1981
+ options?: WriteFileOptions,
1982
+ ): void;
1722
1983
 
1723
1984
  /**
1724
1985
  * Asynchronously append data to a file, creating the file if it does not exist.
@@ -1732,7 +1993,12 @@ declare module 'fs' {
1732
1993
  * If `mode` is a string, it is parsed as an octal integer.
1733
1994
  * If `flag` is not supplied, the default of `'a'` is used.
1734
1995
  */
1735
- export function appendFile(file: PathLike | number, data: string | Uint8Array, options: WriteFileOptions, callback: NoParamCallback): void;
1996
+ export function appendFile(
1997
+ file: PathLike | number,
1998
+ data: string | Uint8Array,
1999
+ options: WriteFileOptions,
2000
+ callback: NoParamCallback,
2001
+ ): void;
1736
2002
 
1737
2003
  /**
1738
2004
  * Asynchronously append data to a file, creating the file if it does not exist.
@@ -1757,7 +2023,11 @@ declare module 'fs' {
1757
2023
  * If `mode` is a string, it is parsed as an octal integer.
1758
2024
  * If `flag` is not supplied, the default of `'a'` is used.
1759
2025
  */
1760
- function __promisify__(file: PathLike | number, data: string | Uint8Array, options?: WriteFileOptions): Promise<void>;
2026
+ function __promisify__(
2027
+ file: PathLike | number,
2028
+ data: string | Uint8Array,
2029
+ options?: WriteFileOptions,
2030
+ ): Promise<void>;
1761
2031
  }
1762
2032
 
1763
2033
  /**
@@ -1772,12 +2042,20 @@ declare module 'fs' {
1772
2042
  * If `mode` is a string, it is parsed as an octal integer.
1773
2043
  * If `flag` is not supplied, the default of `'a'` is used.
1774
2044
  */
1775
- export function appendFileSync(file: PathLike | number, data: string | Uint8Array, options?: WriteFileOptions): void;
2045
+ export function appendFileSync(
2046
+ file: PathLike | number,
2047
+ data: string | Uint8Array,
2048
+ options?: WriteFileOptions,
2049
+ ): void;
1776
2050
 
1777
2051
  /**
1778
2052
  * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
1779
2053
  */
1780
- export function watchFile(filename: PathLike, options: { persistent?: boolean | undefined; interval?: number | undefined; } | undefined, listener: (curr: Stats, prev: Stats) => void): void;
2054
+ export function watchFile(
2055
+ filename: PathLike,
2056
+ options: { persistent?: boolean | undefined; interval?: number | undefined } | undefined,
2057
+ listener: (curr: Stats, prev: Stats) => void,
2058
+ ): void;
1781
2059
 
1782
2060
  /**
1783
2061
  * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed.
@@ -1804,7 +2082,15 @@ declare module 'fs' {
1804
2082
  */
1805
2083
  export function watch(
1806
2084
  filename: PathLike,
1807
- options: { encoding?: BufferEncoding | null | undefined, persistent?: boolean | undefined, recursive?: boolean | undefined } | BufferEncoding | undefined | null,
2085
+ options:
2086
+ | {
2087
+ encoding?: BufferEncoding | null | undefined;
2088
+ persistent?: boolean | undefined;
2089
+ recursive?: boolean | undefined;
2090
+ }
2091
+ | BufferEncoding
2092
+ | undefined
2093
+ | null,
1808
2094
  listener?: (event: "rename" | "change", filename: string) => void,
1809
2095
  ): FSWatcher;
1810
2096
 
@@ -1819,8 +2105,8 @@ declare module 'fs' {
1819
2105
  */
1820
2106
  export function watch(
1821
2107
  filename: PathLike,
1822
- options: { encoding: "buffer", persistent?: boolean | undefined, recursive?: boolean | undefined; } | "buffer",
1823
- listener?: (event: "rename" | "change", filename: Buffer) => void
2108
+ options: { encoding: "buffer"; persistent?: boolean | undefined; recursive?: boolean | undefined } | "buffer",
2109
+ listener?: (event: "rename" | "change", filename: Buffer) => void,
1824
2110
  ): FSWatcher;
1825
2111
 
1826
2112
  /**
@@ -1834,7 +2120,14 @@ declare module 'fs' {
1834
2120
  */
1835
2121
  export function watch(
1836
2122
  filename: PathLike,
1837
- options: { encoding?: BufferEncoding | null | undefined, persistent?: boolean | undefined, recursive?: boolean | undefined } | string | null,
2123
+ options:
2124
+ | {
2125
+ encoding?: BufferEncoding | null | undefined;
2126
+ persistent?: boolean | undefined;
2127
+ recursive?: boolean | undefined;
2128
+ }
2129
+ | string
2130
+ | null,
1838
2131
  listener?: (event: "rename" | "change", filename: string | Buffer) => void,
1839
2132
  ): FSWatcher;
1840
2133
 
@@ -1843,7 +2136,10 @@ declare module 'fs' {
1843
2136
  * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
1844
2137
  * URL support is _experimental_.
1845
2138
  */
1846
- export function watch(filename: PathLike, listener?: (event: "rename" | "change", filename: string) => any): FSWatcher;
2139
+ export function watch(
2140
+ filename: PathLike,
2141
+ listener?: (event: "rename" | "change", filename: string) => any,
2142
+ ): FSWatcher;
1847
2143
 
1848
2144
  /**
1849
2145
  * Asynchronously tests whether or not the given path exists by checking with the file system.
@@ -2063,41 +2359,47 @@ declare module 'fs' {
2063
2359
  */
2064
2360
  export function accessSync(path: PathLike, mode?: number): void;
2065
2361
 
2066
- /**
2067
- * Returns a new `ReadStream` object.
2068
- * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2069
- * URL support is _experimental_.
2070
- */
2071
- export function createReadStream(path: PathLike, options?: BufferEncoding | {
2362
+ interface StreamOptions {
2072
2363
  flags?: string | undefined;
2073
2364
  encoding?: BufferEncoding | undefined;
2074
2365
  fd?: number | undefined;
2075
2366
  mode?: number | undefined;
2076
2367
  autoClose?: boolean | undefined;
2077
- /**
2078
- * @default false
2079
- */
2080
2368
  emitClose?: boolean | undefined;
2081
2369
  start?: number | undefined;
2082
- end?: number | undefined;
2083
2370
  highWaterMark?: number | undefined;
2084
- }): ReadStream;
2371
+ }
2372
+ interface FSImplementation {
2373
+ open: (...args: any[]) => any;
2374
+ close: (...args: any[]) => any;
2375
+ }
2376
+ interface CreateReadStreamFSImplementation extends FSImplementation {
2377
+ read: (...args: any[]) => any;
2378
+ }
2379
+ interface CreateWriteStreamFSImplementation extends FSImplementation {
2380
+ write: (...args: any[]) => any;
2381
+ writev?: (...args: any[]) => any;
2382
+ }
2383
+ interface ReadStreamOptions extends StreamOptions {
2384
+ fs?: CreateReadStreamFSImplementation | null | undefined;
2385
+ end?: number | undefined;
2386
+ }
2387
+ interface WriteStreamOptions extends StreamOptions {
2388
+ fs?: CreateWriteStreamFSImplementation | null | undefined;
2389
+ }
2390
+ /**
2391
+ * Returns a new `ReadStream` object.
2392
+ * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2393
+ * URL support is _experimental_.
2394
+ */
2395
+ export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
2085
2396
 
2086
2397
  /**
2087
2398
  * Returns a new `WriteStream` object.
2088
2399
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
2089
2400
  * URL support is _experimental_.
2090
2401
  */
2091
- export function createWriteStream(path: PathLike, options?: BufferEncoding | {
2092
- flags?: string | undefined;
2093
- encoding?: BufferEncoding | undefined;
2094
- fd?: number | undefined;
2095
- mode?: number | undefined;
2096
- autoClose?: boolean | undefined;
2097
- emitClose?: boolean | undefined;
2098
- start?: number | undefined;
2099
- highWaterMark?: number | undefined;
2100
- }): WriteStream;
2402
+ export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
2101
2403
 
2102
2404
  /**
2103
2405
  * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
@@ -2181,13 +2483,13 @@ declare module 'fs' {
2181
2483
  export function writev(
2182
2484
  fd: number,
2183
2485
  buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
2184
- cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
2486
+ cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
2185
2487
  ): void;
2186
2488
  export function writev(
2187
2489
  fd: number,
2188
2490
  buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
2189
2491
  position: number,
2190
- cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void
2492
+ cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void,
2191
2493
  ): void;
2192
2494
 
2193
2495
  export interface WriteVResult {
@@ -2196,7 +2498,11 @@ declare module 'fs' {
2196
2498
  }
2197
2499
 
2198
2500
  export namespace writev {
2199
- function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<WriteVResult>;
2501
+ function __promisify__(
2502
+ fd: number,
2503
+ buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
2504
+ position?: number,
2505
+ ): Promise<WriteVResult>;
2200
2506
  }
2201
2507
 
2202
2508
  /**
@@ -2207,13 +2513,13 @@ declare module 'fs' {
2207
2513
  export function readv(
2208
2514
  fd: number,
2209
2515
  buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
2210
- cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
2516
+ cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
2211
2517
  ): void;
2212
2518
  export function readv(
2213
2519
  fd: number,
2214
2520
  buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
2215
2521
  position: number,
2216
- cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void
2522
+ cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void,
2217
2523
  ): void;
2218
2524
 
2219
2525
  export interface ReadVResult {
@@ -2222,7 +2528,11 @@ declare module 'fs' {
2222
2528
  }
2223
2529
 
2224
2530
  export namespace readv {
2225
- function __promisify__(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): Promise<ReadVResult>;
2531
+ function __promisify__(
2532
+ fd: number,
2533
+ buffers: ReadonlyArray<NodeJS.ArrayBufferView>,
2534
+ position?: number,
2535
+ ): Promise<ReadVResult>;
2226
2536
  }
2227
2537
 
2228
2538
  /**
@@ -2244,7 +2554,11 @@ declare module 'fs' {
2244
2554
  export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir;
2245
2555
 
2246
2556
  export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2247
- export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void;
2557
+ export function opendir(
2558
+ path: PathLike,
2559
+ options: OpenDirOptions,
2560
+ cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void,
2561
+ ): void;
2248
2562
 
2249
2563
  export namespace opendir {
2250
2564
  function __promisify__(path: PathLike, options?: OpenDirOptions): Promise<Dir>;
@@ -2268,6 +2582,6 @@ declare module 'fs' {
2268
2582
  bigint?: boolean | undefined;
2269
2583
  }
2270
2584
  }
2271
- declare module 'node:fs' {
2272
- export * from 'fs';
2585
+ declare module "node:fs" {
2586
+ export * from "fs";
2273
2587
  }