@emulsify/cli 2.2.0 → 2.3.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 (1531) hide show
  1. package/README.md +17 -1
  2. package/dist/handlers/audit.js +103 -0
  3. package/dist/handlers/cacheClear.js +62 -0
  4. package/dist/handlers/componentCreate.js +3 -1
  5. package/dist/handlers/componentInstall.js +8 -6
  6. package/dist/handlers/componentList.js +4 -2
  7. package/dist/handlers/hofs/withEmulsifySystem.js +69 -6
  8. package/dist/handlers/init.js +9 -1
  9. package/dist/handlers/systemInstall.js +77 -31
  10. package/dist/index.js +43 -8
  11. package/dist/lib/constants.js +1 -0
  12. package/dist/schemas/emulsifyProjectConfig.json +2 -2
  13. package/dist/schemas/system.json +1 -1
  14. package/dist/schemas/variant.json +28 -3
  15. package/dist/util/cache/cloneIntoCache.js +212 -11
  16. package/dist/util/cache/copyItemFromCache.js +8 -7
  17. package/dist/util/cache/getCachedItemCheckout.js +2 -2
  18. package/dist/util/cache/getCachedItemPath.js +10 -7
  19. package/dist/util/cache/getJsonFromCachedFile.js +6 -2
  20. package/dist/util/cache/normalizeRepositoryUrl.js +16 -0
  21. package/dist/util/fs/findFileInCurrentPath.js +13 -4
  22. package/dist/util/getAvailableStarters.js +6 -0
  23. package/dist/util/platform/getPlatformInfo.js +9 -3
  24. package/dist/util/platform/getWordPressInfo.js +40 -0
  25. package/dist/util/platform/platformCompatibility.js +104 -0
  26. package/dist/util/system/getAvailableSystems.js +2 -2
  27. package/dist/util/system/validateSystemConfig.js +28 -0
  28. package/package.json +28 -19
  29. package/dist/node_modules/.package-lock.json +0 -884
  30. package/dist/node_modules/@inquirer/ansi/LICENSE +0 -22
  31. package/dist/node_modules/@inquirer/ansi/README.md +0 -89
  32. package/dist/node_modules/@inquirer/ansi/dist/index.d.ts +0 -14
  33. package/dist/node_modules/@inquirer/ansi/dist/index.js +0 -21
  34. package/dist/node_modules/@inquirer/ansi/package.json +0 -78
  35. package/dist/node_modules/@inquirer/checkbox/LICENSE +0 -22
  36. package/dist/node_modules/@inquirer/checkbox/README.md +0 -195
  37. package/dist/node_modules/@inquirer/checkbox/dist/index.d.ts +0 -56
  38. package/dist/node_modules/@inquirer/checkbox/dist/index.js +0 -210
  39. package/dist/node_modules/@inquirer/checkbox/package.json +0 -92
  40. package/dist/node_modules/@inquirer/confirm/LICENSE +0 -22
  41. package/dist/node_modules/@inquirer/confirm/README.md +0 -92
  42. package/dist/node_modules/@inquirer/confirm/dist/index.d.ts +0 -10
  43. package/dist/node_modules/@inquirer/confirm/dist/index.js +0 -48
  44. package/dist/node_modules/@inquirer/confirm/package.json +0 -90
  45. package/dist/node_modules/@inquirer/core/LICENSE +0 -22
  46. package/dist/node_modules/@inquirer/core/README.md +0 -386
  47. package/dist/node_modules/@inquirer/core/dist/index.d.ts +0 -13
  48. package/dist/node_modules/@inquirer/core/dist/index.js +0 -12
  49. package/dist/node_modules/@inquirer/core/dist/lib/Separator.d.ts +0 -10
  50. package/dist/node_modules/@inquirer/core/dist/lib/Separator.js +0 -21
  51. package/dist/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +0 -4
  52. package/dist/node_modules/@inquirer/core/dist/lib/create-prompt.js +0 -165
  53. package/dist/node_modules/@inquirer/core/dist/lib/errors.d.ts +0 -20
  54. package/dist/node_modules/@inquirer/core/dist/lib/errors.js +0 -21
  55. package/dist/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +0 -23
  56. package/dist/node_modules/@inquirer/core/dist/lib/hook-engine.js +0 -111
  57. package/dist/node_modules/@inquirer/core/dist/lib/key.d.ts +0 -15
  58. package/dist/node_modules/@inquirer/core/dist/lib/key.js +0 -34
  59. package/dist/node_modules/@inquirer/core/dist/lib/make-theme.d.ts +0 -3
  60. package/dist/node_modules/@inquirer/core/dist/lib/make-theme.js +0 -32
  61. package/dist/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +0 -16
  62. package/dist/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js +0 -121
  63. package/dist/node_modules/@inquirer/core/dist/lib/promise-polyfill.d.ts +0 -7
  64. package/dist/node_modules/@inquirer/core/dist/lib/promise-polyfill.js +0 -14
  65. package/dist/node_modules/@inquirer/core/dist/lib/screen-manager.d.ts +0 -14
  66. package/dist/node_modules/@inquirer/core/dist/lib/screen-manager.js +0 -84
  67. package/dist/node_modules/@inquirer/core/dist/lib/theme.d.ts +0 -166
  68. package/dist/node_modules/@inquirer/core/dist/lib/theme.js +0 -29
  69. package/dist/node_modules/@inquirer/core/dist/lib/use-effect.d.ts +0 -2
  70. package/dist/node_modules/@inquirer/core/dist/lib/use-effect.js +0 -11
  71. package/dist/node_modules/@inquirer/core/dist/lib/use-keypress.d.ts +0 -3
  72. package/dist/node_modules/@inquirer/core/dist/lib/use-keypress.js +0 -20
  73. package/dist/node_modules/@inquirer/core/dist/lib/use-memo.d.ts +0 -1
  74. package/dist/node_modules/@inquirer/core/dist/lib/use-memo.js +0 -14
  75. package/dist/node_modules/@inquirer/core/dist/lib/use-prefix.d.ts +0 -5
  76. package/dist/node_modules/@inquirer/core/dist/lib/use-prefix.js +0 -35
  77. package/dist/node_modules/@inquirer/core/dist/lib/use-ref.d.ts +0 -6
  78. package/dist/node_modules/@inquirer/core/dist/lib/use-ref.js +0 -4
  79. package/dist/node_modules/@inquirer/core/dist/lib/use-state.d.ts +0 -4
  80. package/dist/node_modules/@inquirer/core/dist/lib/use-state.js +0 -23
  81. package/dist/node_modules/@inquirer/core/dist/lib/utils.d.ts +0 -13
  82. package/dist/node_modules/@inquirer/core/dist/lib/utils.js +0 -25
  83. package/dist/node_modules/@inquirer/core/package.json +0 -97
  84. package/dist/node_modules/@inquirer/editor/LICENSE +0 -22
  85. package/dist/node_modules/@inquirer/editor/README.md +0 -101
  86. package/dist/node_modules/@inquirer/editor/dist/index.d.ts +0 -21
  87. package/dist/node_modules/@inquirer/editor/dist/index.js +0 -73
  88. package/dist/node_modules/@inquirer/editor/package.json +0 -91
  89. package/dist/node_modules/@inquirer/expand/LICENSE +0 -22
  90. package/dist/node_modules/@inquirer/expand/README.md +0 -141
  91. package/dist/node_modules/@inquirer/expand/dist/index.d.ts +0 -24
  92. package/dist/node_modules/@inquirer/expand/dist/index.js +0 -110
  93. package/dist/node_modules/@inquirer/expand/package.json +0 -90
  94. package/dist/node_modules/@inquirer/external-editor/LICENSE +0 -22
  95. package/dist/node_modules/@inquirer/external-editor/README.md +0 -154
  96. package/dist/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.d.ts +0 -10
  97. package/dist/node_modules/@inquirer/external-editor/dist/errors/CreateFileError.js +0 -13
  98. package/dist/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.d.ts +0 -10
  99. package/dist/node_modules/@inquirer/external-editor/dist/errors/LaunchEditorError.js +0 -13
  100. package/dist/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.d.ts +0 -10
  101. package/dist/node_modules/@inquirer/external-editor/dist/errors/ReadFileError.js +0 -13
  102. package/dist/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.d.ts +0 -10
  103. package/dist/node_modules/@inquirer/external-editor/dist/errors/RemoveFileError.js +0 -13
  104. package/dist/node_modules/@inquirer/external-editor/dist/errors.d.ts +0 -20
  105. package/dist/node_modules/@inquirer/external-editor/dist/errors.js +0 -32
  106. package/dist/node_modules/@inquirer/external-editor/dist/index.d.ts +0 -35
  107. package/dist/node_modules/@inquirer/external-editor/dist/index.js +0 -146
  108. package/dist/node_modules/@inquirer/external-editor/dist/parse-editor-command.d.ts +0 -5
  109. package/dist/node_modules/@inquirer/external-editor/dist/parse-editor-command.js +0 -28
  110. package/dist/node_modules/@inquirer/external-editor/package.json +0 -97
  111. package/dist/node_modules/@inquirer/figures/LICENSE +0 -22
  112. package/dist/node_modules/@inquirer/figures/dist/index.d.ts +0 -275
  113. package/dist/node_modules/@inquirer/figures/dist/index.js +0 -315
  114. package/dist/node_modules/@inquirer/figures/package.json +0 -80
  115. package/dist/node_modules/@inquirer/input/LICENSE +0 -22
  116. package/dist/node_modules/@inquirer/input/README.md +0 -101
  117. package/dist/node_modules/@inquirer/input/dist/index.d.ts +0 -20
  118. package/dist/node_modules/@inquirer/input/dist/index.js +0 -99
  119. package/dist/node_modules/@inquirer/input/package.json +0 -90
  120. package/dist/node_modules/@inquirer/number/LICENSE +0 -22
  121. package/dist/node_modules/@inquirer/number/README.md +0 -95
  122. package/dist/node_modules/@inquirer/number/dist/index.d.ts +0 -13
  123. package/dist/node_modules/@inquirer/number/dist/index.js +0 -95
  124. package/dist/node_modules/@inquirer/number/package.json +0 -90
  125. package/dist/node_modules/@inquirer/password/LICENSE +0 -22
  126. package/dist/node_modules/@inquirer/password/README.md +0 -93
  127. package/dist/node_modules/@inquirer/password/dist/index.d.ts +0 -15
  128. package/dist/node_modules/@inquirer/password/dist/index.js +0 -60
  129. package/dist/node_modules/@inquirer/password/package.json +0 -91
  130. package/dist/node_modules/@inquirer/prompts/LICENSE +0 -22
  131. package/dist/node_modules/@inquirer/prompts/README.md +0 -543
  132. package/dist/node_modules/@inquirer/prompts/dist/index.d.ts +0 -10
  133. package/dist/node_modules/@inquirer/prompts/dist/index.js +0 -10
  134. package/dist/node_modules/@inquirer/prompts/package.json +0 -101
  135. package/dist/node_modules/@inquirer/rawlist/LICENSE +0 -22
  136. package/dist/node_modules/@inquirer/rawlist/README.md +0 -135
  137. package/dist/node_modules/@inquirer/rawlist/dist/index.d.ts +0 -23
  138. package/dist/node_modules/@inquirer/rawlist/dist/index.js +0 -145
  139. package/dist/node_modules/@inquirer/rawlist/package.json +0 -90
  140. package/dist/node_modules/@inquirer/search/LICENSE +0 -22
  141. package/dist/node_modules/@inquirer/search/README.md +0 -213
  142. package/dist/node_modules/@inquirer/search/dist/index.d.ts +0 -33
  143. package/dist/node_modules/@inquirer/search/dist/index.js +0 -195
  144. package/dist/node_modules/@inquirer/search/package.json +0 -91
  145. package/dist/node_modules/@inquirer/select/LICENSE +0 -22
  146. package/dist/node_modules/@inquirer/select/README.md +0 -188
  147. package/dist/node_modules/@inquirer/select/dist/index.d.ts +0 -34
  148. package/dist/node_modules/@inquirer/select/dist/index.js +0 -191
  149. package/dist/node_modules/@inquirer/select/package.json +0 -92
  150. package/dist/node_modules/@inquirer/type/LICENSE +0 -22
  151. package/dist/node_modules/@inquirer/type/dist/index.d.ts +0 -2
  152. package/dist/node_modules/@inquirer/type/dist/index.js +0 -2
  153. package/dist/node_modules/@inquirer/type/dist/inquirer.d.ts +0 -35
  154. package/dist/node_modules/@inquirer/type/dist/inquirer.js +0 -1
  155. package/dist/node_modules/@inquirer/type/dist/utils.d.ts +0 -29
  156. package/dist/node_modules/@inquirer/type/dist/utils.js +0 -2
  157. package/dist/node_modules/@inquirer/type/package.json +0 -87
  158. package/dist/node_modules/@kwsites/file-exists/CHANGELOG.md +0 -12
  159. package/dist/node_modules/@kwsites/file-exists/LICENSE +0 -20
  160. package/dist/node_modules/@kwsites/file-exists/dist/index.d.ts +0 -1
  161. package/dist/node_modules/@kwsites/file-exists/dist/index.js +0 -7
  162. package/dist/node_modules/@kwsites/file-exists/dist/index.js.map +0 -1
  163. package/dist/node_modules/@kwsites/file-exists/dist/src/index.d.ts +0 -19
  164. package/dist/node_modules/@kwsites/file-exists/dist/src/index.js +0 -55
  165. package/dist/node_modules/@kwsites/file-exists/dist/src/index.js.map +0 -1
  166. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.d.ts +0 -7
  167. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js +0 -26
  168. package/dist/node_modules/@kwsites/file-exists/dist/test/__mocks__/fs.js.map +0 -1
  169. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.d.ts +0 -1
  170. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.js +0 -77
  171. package/dist/node_modules/@kwsites/file-exists/dist/test/exists.spec.js.map +0 -1
  172. package/dist/node_modules/@kwsites/file-exists/package.json +0 -42
  173. package/dist/node_modules/@kwsites/file-exists/readme.md +0 -41
  174. package/dist/node_modules/@kwsites/promise-deferred/LICENSE +0 -21
  175. package/dist/node_modules/@kwsites/promise-deferred/dist/index.d.ts +0 -49
  176. package/dist/node_modules/@kwsites/promise-deferred/dist/index.js +0 -59
  177. package/dist/node_modules/@kwsites/promise-deferred/dist/index.js.map +0 -1
  178. package/dist/node_modules/@kwsites/promise-deferred/package.json +0 -43
  179. package/dist/node_modules/@simple-git/args-pathspec/dist/index.cjs +0 -2
  180. package/dist/node_modules/@simple-git/args-pathspec/dist/index.cjs.map +0 -1
  181. package/dist/node_modules/@simple-git/args-pathspec/dist/index.d.ts +0 -1
  182. package/dist/node_modules/@simple-git/args-pathspec/dist/index.mjs +0 -17
  183. package/dist/node_modules/@simple-git/args-pathspec/dist/index.mjs.map +0 -1
  184. package/dist/node_modules/@simple-git/args-pathspec/dist/src/pathspec.d.ts +0 -8
  185. package/dist/node_modules/@simple-git/args-pathspec/package.json +0 -32
  186. package/dist/node_modules/@simple-git/argv-parser/dist/index.cjs +0 -2
  187. package/dist/node_modules/@simple-git/argv-parser/dist/index.cjs.map +0 -1
  188. package/dist/node_modules/@simple-git/argv-parser/dist/index.d.ts +0 -5
  189. package/dist/node_modules/@simple-git/argv-parser/dist/index.mjs +0 -463
  190. package/dist/node_modules/@simple-git/argv-parser/dist/index.mjs.map +0 -1
  191. package/dist/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.d.ts +0 -6
  192. package/dist/node_modules/@simple-git/argv-parser/dist/src/args/parse-argv.types.d.ts +0 -59
  193. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/analyse-config.d.ts +0 -3
  194. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/config-operands.d.ts +0 -4
  195. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/config.types.d.ts +0 -6
  196. package/dist/node_modules/@simple-git/argv-parser/dist/src/config/detect-config-action.d.ts +0 -13
  197. package/dist/node_modules/@simple-git/argv-parser/dist/src/env/parse-env.d.ts +0 -6
  198. package/dist/node_modules/@simple-git/argv-parser/dist/src/flags/flags.helpers.d.ts +0 -9
  199. package/dist/node_modules/@simple-git/argv-parser/dist/src/flags/parse-global-flags.d.ts +0 -6
  200. package/dist/node_modules/@simple-git/argv-parser/dist/src/flags/parse-task-flags.d.ts +0 -8
  201. package/dist/node_modules/@simple-git/argv-parser/dist/src/tokens/flag-specs.d.ts +0 -9
  202. package/dist/node_modules/@simple-git/argv-parser/dist/src/tokens/token-expander.d.ts +0 -7
  203. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-config-writes.d.ts +0 -3
  204. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/detect-vulnerable-flags.d.ts +0 -3
  205. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-analysis.d.ts +0 -4
  206. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability-check.d.ts +0 -5
  207. package/dist/node_modules/@simple-git/argv-parser/dist/src/vulnerabilities/vulnerability.types.d.ts +0 -104
  208. package/dist/node_modules/@simple-git/argv-parser/package.json +0 -36
  209. package/dist/node_modules/@types/node/LICENSE +0 -21
  210. package/dist/node_modules/@types/node/README.md +0 -15
  211. package/dist/node_modules/@types/node/assert/strict.d.ts +0 -68
  212. package/dist/node_modules/@types/node/assert.d.ts +0 -1077
  213. package/dist/node_modules/@types/node/async_hooks.d.ts +0 -711
  214. package/dist/node_modules/@types/node/buffer.buffer.d.ts +0 -466
  215. package/dist/node_modules/@types/node/buffer.d.ts +0 -1760
  216. package/dist/node_modules/@types/node/child_process.d.ts +0 -1362
  217. package/dist/node_modules/@types/node/cluster.d.ts +0 -432
  218. package/dist/node_modules/@types/node/console.d.ts +0 -93
  219. package/dist/node_modules/@types/node/constants.d.ts +0 -14
  220. package/dist/node_modules/@types/node/crypto.d.ts +0 -3941
  221. package/dist/node_modules/@types/node/dgram.d.ts +0 -537
  222. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +0 -563
  223. package/dist/node_modules/@types/node/dns/promises.d.ts +0 -497
  224. package/dist/node_modules/@types/node/dns.d.ts +0 -876
  225. package/dist/node_modules/@types/node/domain.d.ts +0 -150
  226. package/dist/node_modules/@types/node/events.d.ts +0 -1008
  227. package/dist/node_modules/@types/node/fs/promises.d.ts +0 -1468
  228. package/dist/node_modules/@types/node/fs.d.ts +0 -4771
  229. package/dist/node_modules/@types/node/globals.d.ts +0 -150
  230. package/dist/node_modules/@types/node/globals.typedarray.d.ts +0 -101
  231. package/dist/node_modules/@types/node/http.d.ts +0 -2147
  232. package/dist/node_modules/@types/node/http2.d.ts +0 -2489
  233. package/dist/node_modules/@types/node/https.d.ts +0 -400
  234. package/dist/node_modules/@types/node/index.d.ts +0 -114
  235. package/dist/node_modules/@types/node/inspector/promises.d.ts +0 -35
  236. package/dist/node_modules/@types/node/inspector.d.ts +0 -264
  237. package/dist/node_modules/@types/node/inspector.generated.d.ts +0 -4406
  238. package/dist/node_modules/@types/node/module.d.ts +0 -726
  239. package/dist/node_modules/@types/node/net.d.ts +0 -970
  240. package/dist/node_modules/@types/node/os.d.ts +0 -498
  241. package/dist/node_modules/@types/node/package.json +0 -155
  242. package/dist/node_modules/@types/node/path/posix.d.ts +0 -8
  243. package/dist/node_modules/@types/node/path/win32.d.ts +0 -8
  244. package/dist/node_modules/@types/node/path.d.ts +0 -178
  245. package/dist/node_modules/@types/node/perf_hooks.d.ts +0 -604
  246. package/dist/node_modules/@types/node/process.d.ts +0 -2204
  247. package/dist/node_modules/@types/node/punycode.d.ts +0 -89
  248. package/dist/node_modules/@types/node/querystring.d.ts +0 -139
  249. package/dist/node_modules/@types/node/quic.d.ts +0 -897
  250. package/dist/node_modules/@types/node/readline/promises.d.ts +0 -158
  251. package/dist/node_modules/@types/node/readline.d.ts +0 -508
  252. package/dist/node_modules/@types/node/repl.d.ts +0 -420
  253. package/dist/node_modules/@types/node/sea.d.ts +0 -47
  254. package/dist/node_modules/@types/node/sqlite.d.ts +0 -1068
  255. package/dist/node_modules/@types/node/stream/consumers.d.ts +0 -114
  256. package/dist/node_modules/@types/node/stream/iter.d.ts +0 -301
  257. package/dist/node_modules/@types/node/stream/promises.d.ts +0 -211
  258. package/dist/node_modules/@types/node/stream/web.d.ts +0 -300
  259. package/dist/node_modules/@types/node/stream.d.ts +0 -1774
  260. package/dist/node_modules/@types/node/string_decoder.d.ts +0 -27
  261. package/dist/node_modules/@types/node/test/reporters.d.ts +0 -59
  262. package/dist/node_modules/@types/node/test.d.ts +0 -2279
  263. package/dist/node_modules/@types/node/timers/promises.d.ts +0 -93
  264. package/dist/node_modules/@types/node/timers.d.ts +0 -149
  265. package/dist/node_modules/@types/node/tls.d.ts +0 -1193
  266. package/dist/node_modules/@types/node/trace_events.d.ts +0 -103
  267. package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
  268. package/dist/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
  269. package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
  270. package/dist/node_modules/@types/node/ts5.6/index.d.ts +0 -116
  271. package/dist/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
  272. package/dist/node_modules/@types/node/ts5.7/index.d.ts +0 -116
  273. package/dist/node_modules/@types/node/tty.d.ts +0 -225
  274. package/dist/node_modules/@types/node/url.d.ts +0 -556
  275. package/dist/node_modules/@types/node/util/types.d.ts +0 -558
  276. package/dist/node_modules/@types/node/util.d.ts +0 -1660
  277. package/dist/node_modules/@types/node/v8.d.ts +0 -980
  278. package/dist/node_modules/@types/node/vm.d.ts +0 -1136
  279. package/dist/node_modules/@types/node/wasi.d.ts +0 -131
  280. package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
  281. package/dist/node_modules/@types/node/web-globals/blob.d.ts +0 -23
  282. package/dist/node_modules/@types/node/web-globals/console.d.ts +0 -9
  283. package/dist/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
  284. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +0 -83
  285. package/dist/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
  286. package/dist/node_modules/@types/node/web-globals/events.d.ts +0 -106
  287. package/dist/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
  288. package/dist/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
  289. package/dist/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
  290. package/dist/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
  291. package/dist/node_modules/@types/node/web-globals/performance.d.ts +0 -45
  292. package/dist/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  293. package/dist/node_modules/@types/node/web-globals/streams.d.ts +0 -115
  294. package/dist/node_modules/@types/node/web-globals/timers.d.ts +0 -44
  295. package/dist/node_modules/@types/node/web-globals/url.d.ts +0 -24
  296. package/dist/node_modules/@types/node/worker_threads.d.ts +0 -668
  297. package/dist/node_modules/@types/node/zlib/iter.d.ts +0 -131
  298. package/dist/node_modules/@types/node/zlib.d.ts +0 -589
  299. package/dist/node_modules/ajv/.runkit_example.js +0 -23
  300. package/dist/node_modules/ajv/LICENSE +0 -22
  301. package/dist/node_modules/ajv/README.md +0 -207
  302. package/dist/node_modules/ajv/dist/2019.d.ts +0 -19
  303. package/dist/node_modules/ajv/dist/2019.js +0 -61
  304. package/dist/node_modules/ajv/dist/2019.js.map +0 -1
  305. package/dist/node_modules/ajv/dist/2020.d.ts +0 -19
  306. package/dist/node_modules/ajv/dist/2020.js +0 -55
  307. package/dist/node_modules/ajv/dist/2020.js.map +0 -1
  308. package/dist/node_modules/ajv/dist/ajv.d.ts +0 -18
  309. package/dist/node_modules/ajv/dist/ajv.js +0 -50
  310. package/dist/node_modules/ajv/dist/ajv.js.map +0 -1
  311. package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  312. package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  313. package/dist/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  314. package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  315. package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  316. package/dist/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  317. package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  318. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  319. package/dist/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  320. package/dist/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  321. package/dist/node_modules/ajv/dist/compile/errors.js +0 -123
  322. package/dist/node_modules/ajv/dist/compile/errors.js.map +0 -1
  323. package/dist/node_modules/ajv/dist/compile/index.d.ts +0 -80
  324. package/dist/node_modules/ajv/dist/compile/index.js +0 -242
  325. package/dist/node_modules/ajv/dist/compile/index.js.map +0 -1
  326. package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  327. package/dist/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  328. package/dist/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  329. package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  330. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  331. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  332. package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  333. package/dist/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  334. package/dist/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  335. package/dist/node_modules/ajv/dist/compile/names.d.ts +0 -20
  336. package/dist/node_modules/ajv/dist/compile/names.js +0 -28
  337. package/dist/node_modules/ajv/dist/compile/names.js.map +0 -1
  338. package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  339. package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -12
  340. package/dist/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  341. package/dist/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  342. package/dist/node_modules/ajv/dist/compile/resolve.js +0 -155
  343. package/dist/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  344. package/dist/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  345. package/dist/node_modules/ajv/dist/compile/rules.js +0 -26
  346. package/dist/node_modules/ajv/dist/compile/rules.js.map +0 -1
  347. package/dist/node_modules/ajv/dist/compile/util.d.ts +0 -40
  348. package/dist/node_modules/ajv/dist/compile/util.js +0 -178
  349. package/dist/node_modules/ajv/dist/compile/util.js.map +0 -1
  350. package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  351. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  352. package/dist/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  353. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  354. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  355. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  356. package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  357. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  358. package/dist/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  359. package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  360. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  361. package/dist/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  362. package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  363. package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -520
  364. package/dist/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  365. package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  366. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  367. package/dist/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  368. package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  369. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  370. package/dist/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  371. package/dist/node_modules/ajv/dist/core.d.ts +0 -174
  372. package/dist/node_modules/ajv/dist/core.js +0 -618
  373. package/dist/node_modules/ajv/dist/core.js.map +0 -1
  374. package/dist/node_modules/ajv/dist/jtd.d.ts +0 -47
  375. package/dist/node_modules/ajv/dist/jtd.js +0 -72
  376. package/dist/node_modules/ajv/dist/jtd.js.map +0 -1
  377. package/dist/node_modules/ajv/dist/refs/data.json +0 -13
  378. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  379. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  380. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  381. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  382. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  383. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  384. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  385. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  386. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  387. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  388. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  389. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  390. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  391. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  392. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  393. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  394. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  395. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  396. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  397. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  398. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  399. package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  400. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  401. package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  402. package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  403. package/dist/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  404. package/dist/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  405. package/dist/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  406. package/dist/node_modules/ajv/dist/runtime/equal.js +0 -7
  407. package/dist/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  408. package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  409. package/dist/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  410. package/dist/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  411. package/dist/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  412. package/dist/node_modules/ajv/dist/runtime/quote.js +0 -30
  413. package/dist/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  414. package/dist/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  415. package/dist/node_modules/ajv/dist/runtime/re2.js +0 -6
  416. package/dist/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  417. package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  418. package/dist/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  419. package/dist/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  420. package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  421. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  422. package/dist/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  423. package/dist/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  424. package/dist/node_modules/ajv/dist/runtime/uri.js +0 -6
  425. package/dist/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  426. package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  427. package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  428. package/dist/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  429. package/dist/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  430. package/dist/node_modules/ajv/dist/standalone/index.js +0 -90
  431. package/dist/node_modules/ajv/dist/standalone/index.js.map +0 -1
  432. package/dist/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  433. package/dist/node_modules/ajv/dist/standalone/instance.js +0 -35
  434. package/dist/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  435. package/dist/node_modules/ajv/dist/types/index.d.ts +0 -183
  436. package/dist/node_modules/ajv/dist/types/index.js +0 -3
  437. package/dist/node_modules/ajv/dist/types/index.js.map +0 -1
  438. package/dist/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  439. package/dist/node_modules/ajv/dist/types/json-schema.js +0 -3
  440. package/dist/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  441. package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  442. package/dist/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  443. package/dist/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  444. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  445. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  446. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  447. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  448. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  449. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  450. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  451. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  452. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  453. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  454. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  455. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  456. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  457. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  458. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  459. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  460. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  461. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  462. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  463. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  464. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  465. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  466. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  467. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  468. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  469. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  470. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  471. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  472. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  473. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  474. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  475. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  476. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  477. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  478. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  479. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  480. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  481. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  482. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  483. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  484. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  485. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  486. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  487. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  488. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  489. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  490. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  491. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  492. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  493. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  494. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  495. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  496. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  497. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  498. package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  499. package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -131
  500. package/dist/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  501. package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  502. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  503. package/dist/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  504. package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  505. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  506. package/dist/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  507. package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  508. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  509. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  510. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  511. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  512. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  513. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  514. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  515. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  516. package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  517. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  518. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  519. package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  520. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  521. package/dist/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  522. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  523. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  524. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  525. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  526. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  527. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  528. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  529. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  530. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  531. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  532. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  533. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  534. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  535. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  536. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  537. package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  538. package/dist/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  539. package/dist/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  540. package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  541. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  542. package/dist/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  543. package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  544. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  545. package/dist/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  546. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  547. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  548. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  549. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  550. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  551. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  552. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  553. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  554. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  555. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  556. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  557. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  558. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  559. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  560. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  561. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  562. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  563. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  564. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  565. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  566. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  567. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  568. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  569. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  570. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  571. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  572. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  573. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  574. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  575. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  576. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  577. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  578. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  579. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  580. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  581. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  582. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  583. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  584. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  585. package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  586. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  587. package/dist/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  588. package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  589. package/dist/node_modules/ajv/dist/vocabularies/next.js +0 -8
  590. package/dist/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  591. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  592. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  593. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  594. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  595. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  596. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  597. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  598. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  599. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  600. package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  601. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  602. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  603. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  604. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  605. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  606. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  607. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  608. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  609. package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  610. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  611. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  612. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  613. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  614. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  615. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  616. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  617. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  618. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  619. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  620. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  621. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  622. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  623. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  624. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  625. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  626. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  627. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  628. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  629. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  630. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  631. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  632. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  633. package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  634. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  635. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  636. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  637. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  638. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  639. package/dist/node_modules/ajv/lib/2019.ts +0 -81
  640. package/dist/node_modules/ajv/lib/2020.ts +0 -75
  641. package/dist/node_modules/ajv/lib/ajv.ts +0 -70
  642. package/dist/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  643. package/dist/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  644. package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  645. package/dist/node_modules/ajv/lib/compile/errors.ts +0 -184
  646. package/dist/node_modules/ajv/lib/compile/index.ts +0 -324
  647. package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  648. package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  649. package/dist/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  650. package/dist/node_modules/ajv/lib/compile/names.ts +0 -27
  651. package/dist/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  652. package/dist/node_modules/ajv/lib/compile/resolve.ts +0 -149
  653. package/dist/node_modules/ajv/lib/compile/rules.ts +0 -50
  654. package/dist/node_modules/ajv/lib/compile/util.ts +0 -213
  655. package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  656. package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  657. package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  658. package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  659. package/dist/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  660. package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  661. package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  662. package/dist/node_modules/ajv/lib/core.ts +0 -892
  663. package/dist/node_modules/ajv/lib/jtd.ts +0 -132
  664. package/dist/node_modules/ajv/lib/refs/data.json +0 -13
  665. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  666. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  667. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  668. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  669. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  670. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  671. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  672. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  673. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  674. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  675. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  676. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  677. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  678. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  679. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  680. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  681. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  682. package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  683. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  684. package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  685. package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  686. package/dist/node_modules/ajv/lib/runtime/equal.ts +0 -7
  687. package/dist/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  688. package/dist/node_modules/ajv/lib/runtime/quote.ts +0 -31
  689. package/dist/node_modules/ajv/lib/runtime/re2.ts +0 -6
  690. package/dist/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  691. package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  692. package/dist/node_modules/ajv/lib/runtime/uri.ts +0 -6
  693. package/dist/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  694. package/dist/node_modules/ajv/lib/standalone/index.ts +0 -100
  695. package/dist/node_modules/ajv/lib/standalone/instance.ts +0 -36
  696. package/dist/node_modules/ajv/lib/types/index.ts +0 -244
  697. package/dist/node_modules/ajv/lib/types/json-schema.ts +0 -187
  698. package/dist/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  699. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  700. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  701. package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  702. package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  703. package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  704. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  705. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  706. package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  707. package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  708. package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  709. package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  710. package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  711. package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  712. package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  713. package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  714. package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  715. package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  716. package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  717. package/dist/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  718. package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  719. package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  720. package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  721. package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  722. package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  723. package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  724. package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  725. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  726. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  727. package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  728. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  729. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  730. package/dist/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  731. package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  732. package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  733. package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  734. package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  735. package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  736. package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  737. package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  738. package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  739. package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  740. package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  741. package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  742. package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  743. package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  744. package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  745. package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  746. package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  747. package/dist/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  748. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  749. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  750. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  751. package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  752. package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  753. package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  754. package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  755. package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  756. package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  757. package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  758. package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  759. package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  760. package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  761. package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  762. package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  763. package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  764. package/dist/node_modules/ajv/package.json +0 -126
  765. package/dist/node_modules/ajv-formats/LICENSE +0 -21
  766. package/dist/node_modules/ajv-formats/README.md +0 -125
  767. package/dist/node_modules/ajv-formats/dist/formats.d.ts +0 -9
  768. package/dist/node_modules/ajv-formats/dist/formats.js +0 -208
  769. package/dist/node_modules/ajv-formats/dist/formats.js.map +0 -1
  770. package/dist/node_modules/ajv-formats/dist/index.d.ts +0 -15
  771. package/dist/node_modules/ajv-formats/dist/index.js +0 -37
  772. package/dist/node_modules/ajv-formats/dist/index.js.map +0 -1
  773. package/dist/node_modules/ajv-formats/dist/limit.d.ts +0 -10
  774. package/dist/node_modules/ajv-formats/dist/limit.js +0 -69
  775. package/dist/node_modules/ajv-formats/dist/limit.js.map +0 -1
  776. package/dist/node_modules/ajv-formats/package.json +0 -74
  777. package/dist/node_modules/ajv-formats/src/formats.ts +0 -269
  778. package/dist/node_modules/ajv-formats/src/index.ts +0 -62
  779. package/dist/node_modules/ajv-formats/src/limit.ts +0 -99
  780. package/dist/node_modules/ansi-align/CHANGELOG.md +0 -58
  781. package/dist/node_modules/ansi-align/LICENSE +0 -13
  782. package/dist/node_modules/ansi-align/README.md +0 -80
  783. package/dist/node_modules/ansi-align/index.js +0 -61
  784. package/dist/node_modules/ansi-align/node_modules/ansi-regex/index.d.ts +0 -37
  785. package/dist/node_modules/ansi-align/node_modules/ansi-regex/index.js +0 -10
  786. package/dist/node_modules/ansi-align/node_modules/ansi-regex/license +0 -9
  787. package/dist/node_modules/ansi-align/node_modules/ansi-regex/package.json +0 -55
  788. package/dist/node_modules/ansi-align/node_modules/ansi-regex/readme.md +0 -78
  789. package/dist/node_modules/ansi-align/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  790. package/dist/node_modules/ansi-align/node_modules/emoji-regex/README.md +0 -73
  791. package/dist/node_modules/ansi-align/node_modules/emoji-regex/es2015/index.js +0 -6
  792. package/dist/node_modules/ansi-align/node_modules/emoji-regex/es2015/text.js +0 -6
  793. package/dist/node_modules/ansi-align/node_modules/emoji-regex/index.d.ts +0 -23
  794. package/dist/node_modules/ansi-align/node_modules/emoji-regex/index.js +0 -6
  795. package/dist/node_modules/ansi-align/node_modules/emoji-regex/package.json +0 -50
  796. package/dist/node_modules/ansi-align/node_modules/emoji-regex/text.js +0 -6
  797. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  798. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/index.js +0 -50
  799. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/license +0 -9
  800. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json +0 -42
  801. package/dist/node_modules/ansi-align/node_modules/is-fullwidth-code-point/readme.md +0 -39
  802. package/dist/node_modules/ansi-align/node_modules/string-width/index.d.ts +0 -29
  803. package/dist/node_modules/ansi-align/node_modules/string-width/index.js +0 -47
  804. package/dist/node_modules/ansi-align/node_modules/string-width/license +0 -9
  805. package/dist/node_modules/ansi-align/node_modules/string-width/package.json +0 -56
  806. package/dist/node_modules/ansi-align/node_modules/string-width/readme.md +0 -50
  807. package/dist/node_modules/ansi-align/node_modules/strip-ansi/index.d.ts +0 -17
  808. package/dist/node_modules/ansi-align/node_modules/strip-ansi/index.js +0 -4
  809. package/dist/node_modules/ansi-align/node_modules/strip-ansi/license +0 -9
  810. package/dist/node_modules/ansi-align/node_modules/strip-ansi/package.json +0 -54
  811. package/dist/node_modules/ansi-align/node_modules/strip-ansi/readme.md +0 -46
  812. package/dist/node_modules/ansi-align/package.json +0 -43
  813. package/dist/node_modules/ansi-regex/index.d.ts +0 -33
  814. package/dist/node_modules/ansi-regex/index.js +0 -14
  815. package/dist/node_modules/ansi-regex/license +0 -9
  816. package/dist/node_modules/ansi-regex/package.json +0 -61
  817. package/dist/node_modules/ansi-regex/readme.md +0 -66
  818. package/dist/node_modules/boxen/index.d.ts +0 -267
  819. package/dist/node_modules/boxen/index.js +0 -376
  820. package/dist/node_modules/boxen/license +0 -9
  821. package/dist/node_modules/boxen/package.json +0 -69
  822. package/dist/node_modules/boxen/readme.md +0 -300
  823. package/dist/node_modules/camelcase/index.d.ts +0 -102
  824. package/dist/node_modules/camelcase/index.js +0 -110
  825. package/dist/node_modules/camelcase/license +0 -9
  826. package/dist/node_modules/camelcase/package.json +0 -47
  827. package/dist/node_modules/camelcase/readme.md +0 -135
  828. package/dist/node_modules/chalk/license +0 -9
  829. package/dist/node_modules/chalk/package.json +0 -83
  830. package/dist/node_modules/chalk/readme.md +0 -297
  831. package/dist/node_modules/chalk/source/index.d.ts +0 -325
  832. package/dist/node_modules/chalk/source/index.js +0 -225
  833. package/dist/node_modules/chalk/source/utilities.js +0 -33
  834. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +0 -236
  835. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +0 -223
  836. package/dist/node_modules/chalk/source/vendor/supports-color/browser.d.ts +0 -1
  837. package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +0 -34
  838. package/dist/node_modules/chalk/source/vendor/supports-color/index.d.ts +0 -55
  839. package/dist/node_modules/chalk/source/vendor/supports-color/index.js +0 -190
  840. package/dist/node_modules/chardet/LICENSE +0 -19
  841. package/dist/node_modules/chardet/README.md +0 -135
  842. package/dist/node_modules/chardet/lib/encoding/ascii.d.ts +0 -6
  843. package/dist/node_modules/chardet/lib/encoding/ascii.js +0 -23
  844. package/dist/node_modules/chardet/lib/encoding/ascii.js.map +0 -1
  845. package/dist/node_modules/chardet/lib/encoding/index.d.ts +0 -14
  846. package/dist/node_modules/chardet/lib/encoding/index.js +0 -3
  847. package/dist/node_modules/chardet/lib/encoding/index.js.map +0 -1
  848. package/dist/node_modules/chardet/lib/encoding/iso2022.d.ts +0 -23
  849. package/dist/node_modules/chardet/lib/encoding/iso2022.js +0 -114
  850. package/dist/node_modules/chardet/lib/encoding/iso2022.js.map +0 -1
  851. package/dist/node_modules/chardet/lib/encoding/mbcs.d.ts +0 -50
  852. package/dist/node_modules/chardet/lib/encoding/mbcs.js +0 -347
  853. package/dist/node_modules/chardet/lib/encoding/mbcs.js.map +0 -1
  854. package/dist/node_modules/chardet/lib/encoding/sbcs.d.ts +0 -94
  855. package/dist/node_modules/chardet/lib/encoding/sbcs.js +0 -935
  856. package/dist/node_modules/chardet/lib/encoding/sbcs.js.map +0 -1
  857. package/dist/node_modules/chardet/lib/encoding/unicode.d.ts +0 -27
  858. package/dist/node_modules/chardet/lib/encoding/unicode.js +0 -109
  859. package/dist/node_modules/chardet/lib/encoding/unicode.js.map +0 -1
  860. package/dist/node_modules/chardet/lib/encoding/utf8.d.ts +0 -6
  861. package/dist/node_modules/chardet/lib/encoding/utf8.js +0 -72
  862. package/dist/node_modules/chardet/lib/encoding/utf8.js.map +0 -1
  863. package/dist/node_modules/chardet/lib/fs/browser.d.ts +0 -2
  864. package/dist/node_modules/chardet/lib/fs/browser.js +0 -6
  865. package/dist/node_modules/chardet/lib/fs/browser.js.map +0 -1
  866. package/dist/node_modules/chardet/lib/fs/node.d.ts +0 -2
  867. package/dist/node_modules/chardet/lib/fs/node.js +0 -11
  868. package/dist/node_modules/chardet/lib/fs/node.js.map +0 -1
  869. package/dist/node_modules/chardet/lib/index.d.ts +0 -20
  870. package/dist/node_modules/chardet/lib/index.js +0 -177
  871. package/dist/node_modules/chardet/lib/index.js.map +0 -1
  872. package/dist/node_modules/chardet/lib/match.d.ts +0 -9
  873. package/dist/node_modules/chardet/lib/match.js +0 -8
  874. package/dist/node_modules/chardet/lib/match.js.map +0 -1
  875. package/dist/node_modules/chardet/lib/utils.d.ts +0 -1
  876. package/dist/node_modules/chardet/lib/utils.js +0 -10
  877. package/dist/node_modules/chardet/lib/utils.js.map +0 -1
  878. package/dist/node_modules/chardet/package.json +0 -100
  879. package/dist/node_modules/cli-boxes/boxes.json +0 -82
  880. package/dist/node_modules/cli-boxes/index.d.ts +0 -127
  881. package/dist/node_modules/cli-boxes/index.js +0 -6
  882. package/dist/node_modules/cli-boxes/license +0 -9
  883. package/dist/node_modules/cli-boxes/package.json +0 -42
  884. package/dist/node_modules/cli-boxes/readme.md +0 -115
  885. package/dist/node_modules/cli-width/LICENSE +0 -13
  886. package/dist/node_modules/cli-width/README.md +0 -71
  887. package/dist/node_modules/cli-width/index.d.ts +0 -13
  888. package/dist/node_modules/cli-width/index.js +0 -49
  889. package/dist/node_modules/cli-width/package.json +0 -40
  890. package/dist/node_modules/colorette/LICENSE.md +0 -7
  891. package/dist/node_modules/colorette/README.md +0 -134
  892. package/dist/node_modules/colorette/index.cjs +0 -218
  893. package/dist/node_modules/colorette/index.d.ts +0 -93
  894. package/dist/node_modules/colorette/index.js +0 -150
  895. package/dist/node_modules/colorette/package.json +0 -40
  896. package/dist/node_modules/commander/LICENSE +0 -22
  897. package/dist/node_modules/commander/Readme.md +0 -1172
  898. package/dist/node_modules/commander/index.js +0 -21
  899. package/dist/node_modules/commander/lib/argument.js +0 -147
  900. package/dist/node_modules/commander/lib/command.js +0 -2790
  901. package/dist/node_modules/commander/lib/error.js +0 -36
  902. package/dist/node_modules/commander/lib/help.js +0 -731
  903. package/dist/node_modules/commander/lib/option.js +0 -377
  904. package/dist/node_modules/commander/lib/suggestSimilar.js +0 -99
  905. package/dist/node_modules/commander/package-support.json +0 -19
  906. package/dist/node_modules/commander/package.json +0 -64
  907. package/dist/node_modules/commander/typings/index.d.ts +0 -1113
  908. package/dist/node_modules/consola/LICENSE +0 -47
  909. package/dist/node_modules/consola/README.md +0 -352
  910. package/dist/node_modules/consola/basic.d.ts +0 -1
  911. package/dist/node_modules/consola/browser.d.ts +0 -1
  912. package/dist/node_modules/consola/core.d.ts +0 -1
  913. package/dist/node_modules/consola/dist/basic.cjs +0 -32
  914. package/dist/node_modules/consola/dist/basic.d.cts +0 -23
  915. package/dist/node_modules/consola/dist/basic.d.mts +0 -21
  916. package/dist/node_modules/consola/dist/basic.d.ts +0 -23
  917. package/dist/node_modules/consola/dist/basic.mjs +0 -24
  918. package/dist/node_modules/consola/dist/browser.cjs +0 -84
  919. package/dist/node_modules/consola/dist/browser.d.cts +0 -23
  920. package/dist/node_modules/consola/dist/browser.d.mts +0 -21
  921. package/dist/node_modules/consola/dist/browser.d.ts +0 -23
  922. package/dist/node_modules/consola/dist/browser.mjs +0 -76
  923. package/dist/node_modules/consola/dist/chunks/prompt.cjs +0 -288
  924. package/dist/node_modules/consola/dist/chunks/prompt.mjs +0 -280
  925. package/dist/node_modules/consola/dist/core.cjs +0 -517
  926. package/dist/node_modules/consola/dist/core.d.cts +0 -459
  927. package/dist/node_modules/consola/dist/core.d.mts +0 -459
  928. package/dist/node_modules/consola/dist/core.d.ts +0 -459
  929. package/dist/node_modules/consola/dist/core.mjs +0 -512
  930. package/dist/node_modules/consola/dist/index.cjs +0 -663
  931. package/dist/node_modules/consola/dist/index.d.cts +0 -24
  932. package/dist/node_modules/consola/dist/index.d.mts +0 -22
  933. package/dist/node_modules/consola/dist/index.d.ts +0 -24
  934. package/dist/node_modules/consola/dist/index.mjs +0 -651
  935. package/dist/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +0 -75
  936. package/dist/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
  937. package/dist/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
  938. package/dist/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +0 -312
  939. package/dist/node_modules/consola/dist/utils.cjs +0 -64
  940. package/dist/node_modules/consola/dist/utils.d.cts +0 -286
  941. package/dist/node_modules/consola/dist/utils.d.mts +0 -286
  942. package/dist/node_modules/consola/dist/utils.d.ts +0 -286
  943. package/dist/node_modules/consola/dist/utils.mjs +0 -54
  944. package/dist/node_modules/consola/lib/index.cjs +0 -10
  945. package/dist/node_modules/consola/package.json +0 -136
  946. package/dist/node_modules/consola/utils.d.ts +0 -1
  947. package/dist/node_modules/debug/LICENSE +0 -20
  948. package/dist/node_modules/debug/README.md +0 -481
  949. package/dist/node_modules/debug/package.json +0 -64
  950. package/dist/node_modules/debug/src/browser.js +0 -272
  951. package/dist/node_modules/debug/src/common.js +0 -292
  952. package/dist/node_modules/debug/src/index.js +0 -10
  953. package/dist/node_modules/debug/src/node.js +0 -263
  954. package/dist/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  955. package/dist/node_modules/emoji-regex/README.md +0 -107
  956. package/dist/node_modules/emoji-regex/index.d.ts +0 -3
  957. package/dist/node_modules/emoji-regex/index.js +0 -4
  958. package/dist/node_modules/emoji-regex/index.mjs +0 -4
  959. package/dist/node_modules/emoji-regex/package.json +0 -45
  960. package/dist/node_modules/fast-deep-equal/LICENSE +0 -21
  961. package/dist/node_modules/fast-deep-equal/README.md +0 -96
  962. package/dist/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
  963. package/dist/node_modules/fast-deep-equal/es6/index.js +0 -72
  964. package/dist/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
  965. package/dist/node_modules/fast-deep-equal/es6/react.js +0 -79
  966. package/dist/node_modules/fast-deep-equal/index.d.ts +0 -4
  967. package/dist/node_modules/fast-deep-equal/index.js +0 -46
  968. package/dist/node_modules/fast-deep-equal/package.json +0 -61
  969. package/dist/node_modules/fast-deep-equal/react.d.ts +0 -2
  970. package/dist/node_modules/fast-deep-equal/react.js +0 -53
  971. package/dist/node_modules/fast-string-truncated-width/dist/index.d.ts +0 -4
  972. package/dist/node_modules/fast-string-truncated-width/dist/index.js +0 -111
  973. package/dist/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -19
  974. package/dist/node_modules/fast-string-truncated-width/dist/types.js +0 -2
  975. package/dist/node_modules/fast-string-truncated-width/dist/utils.d.ts +0 -4
  976. package/dist/node_modules/fast-string-truncated-width/dist/utils.js +0 -20
  977. package/dist/node_modules/fast-string-truncated-width/license +0 -21
  978. package/dist/node_modules/fast-string-truncated-width/package.json +0 -35
  979. package/dist/node_modules/fast-string-truncated-width/readme.md +0 -59
  980. package/dist/node_modules/fast-string-width/dist/index.d.ts +0 -4
  981. package/dist/node_modules/fast-string-width/dist/index.js +0 -14
  982. package/dist/node_modules/fast-string-width/license +0 -21
  983. package/dist/node_modules/fast-string-width/package.json +0 -34
  984. package/dist/node_modules/fast-string-width/readme.md +0 -42
  985. package/dist/node_modules/fast-uri/.gitattributes +0 -2
  986. package/dist/node_modules/fast-uri/.github/dependabot.yml +0 -13
  987. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +0 -106
  988. package/dist/node_modules/fast-uri/.github/workflows/lock-threads.yml +0 -19
  989. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
  990. package/dist/node_modules/fast-uri/LICENSE +0 -30
  991. package/dist/node_modules/fast-uri/README.md +0 -152
  992. package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
  993. package/dist/node_modules/fast-uri/benchmark/equal.mjs +0 -51
  994. package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
  995. package/dist/node_modules/fast-uri/benchmark/package.json +0 -17
  996. package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
  997. package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
  998. package/dist/node_modules/fast-uri/eslint.config.js +0 -6
  999. package/dist/node_modules/fast-uri/index.js +0 -406
  1000. package/dist/node_modules/fast-uri/lib/schemes.js +0 -267
  1001. package/dist/node_modules/fast-uri/lib/utils.js +0 -443
  1002. package/dist/node_modules/fast-uri/package.json +0 -68
  1003. package/dist/node_modules/fast-uri/test/ajv.test.js +0 -43
  1004. package/dist/node_modules/fast-uri/test/equal.test.js +0 -117
  1005. package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -501
  1006. package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
  1007. package/dist/node_modules/fast-uri/test/parse.test.js +0 -323
  1008. package/dist/node_modules/fast-uri/test/resolve.test.js +0 -87
  1009. package/dist/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
  1010. package/dist/node_modules/fast-uri/test/security-normalization.test.js +0 -39
  1011. package/dist/node_modules/fast-uri/test/security.test.js +0 -133
  1012. package/dist/node_modules/fast-uri/test/serialize.test.js +0 -151
  1013. package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
  1014. package/dist/node_modules/fast-uri/test/uri-js.test.js +0 -912
  1015. package/dist/node_modules/fast-uri/test/util.test.js +0 -38
  1016. package/dist/node_modules/fast-uri/tsconfig.json +0 -9
  1017. package/dist/node_modules/fast-uri/types/index.d.ts +0 -60
  1018. package/dist/node_modules/fast-uri/types/index.test-d.ts +0 -17
  1019. package/dist/node_modules/fast-wrap-ansi/LICENSE +0 -23
  1020. package/dist/node_modules/fast-wrap-ansi/README.md +0 -26
  1021. package/dist/node_modules/fast-wrap-ansi/lib/main.d.ts +0 -6
  1022. package/dist/node_modules/fast-wrap-ansi/lib/main.js +0 -218
  1023. package/dist/node_modules/fast-wrap-ansi/package.json +0 -51
  1024. package/dist/node_modules/fs-extra/LICENSE +0 -15
  1025. package/dist/node_modules/fs-extra/README.md +0 -294
  1026. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +0 -176
  1027. package/dist/node_modules/fs-extra/lib/copy/copy.js +0 -180
  1028. package/dist/node_modules/fs-extra/lib/copy/index.js +0 -7
  1029. package/dist/node_modules/fs-extra/lib/empty/index.js +0 -39
  1030. package/dist/node_modules/fs-extra/lib/ensure/file.js +0 -66
  1031. package/dist/node_modules/fs-extra/lib/ensure/index.js +0 -23
  1032. package/dist/node_modules/fs-extra/lib/ensure/link.js +0 -64
  1033. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
  1034. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
  1035. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +0 -92
  1036. package/dist/node_modules/fs-extra/lib/esm.mjs +0 -68
  1037. package/dist/node_modules/fs-extra/lib/fs/index.js +0 -146
  1038. package/dist/node_modules/fs-extra/lib/index.js +0 -16
  1039. package/dist/node_modules/fs-extra/lib/json/index.js +0 -16
  1040. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
  1041. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
  1042. package/dist/node_modules/fs-extra/lib/json/output-json.js +0 -12
  1043. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
  1044. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
  1045. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
  1046. package/dist/node_modules/fs-extra/lib/move/index.js +0 -7
  1047. package/dist/node_modules/fs-extra/lib/move/move-sync.js +0 -55
  1048. package/dist/node_modules/fs-extra/lib/move/move.js +0 -59
  1049. package/dist/node_modules/fs-extra/lib/output-file/index.js +0 -31
  1050. package/dist/node_modules/fs-extra/lib/path-exists/index.js +0 -12
  1051. package/dist/node_modules/fs-extra/lib/remove/index.js +0 -17
  1052. package/dist/node_modules/fs-extra/lib/util/async.js +0 -29
  1053. package/dist/node_modules/fs-extra/lib/util/stat.js +0 -159
  1054. package/dist/node_modules/fs-extra/lib/util/utimes.js +0 -53
  1055. package/dist/node_modules/fs-extra/package.json +0 -71
  1056. package/dist/node_modules/get-east-asian-width/index.d.ts +0 -60
  1057. package/dist/node_modules/get-east-asian-width/index.js +0 -30
  1058. package/dist/node_modules/get-east-asian-width/license +0 -9
  1059. package/dist/node_modules/get-east-asian-width/lookup-data.js +0 -21
  1060. package/dist/node_modules/get-east-asian-width/lookup.js +0 -138
  1061. package/dist/node_modules/get-east-asian-width/package.json +0 -71
  1062. package/dist/node_modules/get-east-asian-width/readme.md +0 -65
  1063. package/dist/node_modules/get-east-asian-width/utilities.js +0 -24
  1064. package/dist/node_modules/graceful-fs/LICENSE +0 -15
  1065. package/dist/node_modules/graceful-fs/README.md +0 -143
  1066. package/dist/node_modules/graceful-fs/clone.js +0 -23
  1067. package/dist/node_modules/graceful-fs/graceful-fs.js +0 -448
  1068. package/dist/node_modules/graceful-fs/legacy-streams.js +0 -118
  1069. package/dist/node_modules/graceful-fs/package.json +0 -53
  1070. package/dist/node_modules/graceful-fs/polyfills.js +0 -355
  1071. package/dist/node_modules/iconv-lite/LICENSE +0 -21
  1072. package/dist/node_modules/iconv-lite/README.md +0 -138
  1073. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  1074. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  1075. package/dist/node_modules/iconv-lite/encodings/index.js +0 -23
  1076. package/dist/node_modules/iconv-lite/encodings/internal.js +0 -218
  1077. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  1078. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  1079. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  1080. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  1081. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  1082. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  1083. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  1084. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  1085. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  1086. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  1087. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  1088. package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -187
  1089. package/dist/node_modules/iconv-lite/encodings/utf32.js +0 -307
  1090. package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -283
  1091. package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  1092. package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  1093. package/dist/node_modules/iconv-lite/lib/index.d.ts +0 -129
  1094. package/dist/node_modules/iconv-lite/lib/index.js +0 -182
  1095. package/dist/node_modules/iconv-lite/lib/streams.js +0 -105
  1096. package/dist/node_modules/iconv-lite/package.json +0 -70
  1097. package/dist/node_modules/iconv-lite/types/encodings.d.ts +0 -423
  1098. package/dist/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
  1099. package/dist/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
  1100. package/dist/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
  1101. package/dist/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
  1102. package/dist/node_modules/json-schema-traverse/LICENSE +0 -21
  1103. package/dist/node_modules/json-schema-traverse/README.md +0 -95
  1104. package/dist/node_modules/json-schema-traverse/index.d.ts +0 -40
  1105. package/dist/node_modules/json-schema-traverse/index.js +0 -93
  1106. package/dist/node_modules/json-schema-traverse/package.json +0 -43
  1107. package/dist/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
  1108. package/dist/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
  1109. package/dist/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
  1110. package/dist/node_modules/jsonfile/LICENSE +0 -15
  1111. package/dist/node_modules/jsonfile/README.md +0 -230
  1112. package/dist/node_modules/jsonfile/index.js +0 -88
  1113. package/dist/node_modules/jsonfile/package.json +0 -40
  1114. package/dist/node_modules/jsonfile/utils.js +0 -18
  1115. package/dist/node_modules/ms/index.js +0 -162
  1116. package/dist/node_modules/ms/license.md +0 -21
  1117. package/dist/node_modules/ms/package.json +0 -38
  1118. package/dist/node_modules/ms/readme.md +0 -59
  1119. package/dist/node_modules/mute-stream/LICENSE +0 -15
  1120. package/dist/node_modules/mute-stream/README.md +0 -68
  1121. package/dist/node_modules/mute-stream/lib/index.js +0 -142
  1122. package/dist/node_modules/mute-stream/package.json +0 -54
  1123. package/dist/node_modules/progress/CHANGELOG.md +0 -115
  1124. package/dist/node_modules/progress/LICENSE +0 -22
  1125. package/dist/node_modules/progress/Makefile +0 -8
  1126. package/dist/node_modules/progress/Readme.md +0 -146
  1127. package/dist/node_modules/progress/index.js +0 -1
  1128. package/dist/node_modules/progress/lib/node-progress.js +0 -236
  1129. package/dist/node_modules/progress/package.json +0 -26
  1130. package/dist/node_modules/require-from-string/index.js +0 -34
  1131. package/dist/node_modules/require-from-string/license +0 -21
  1132. package/dist/node_modules/require-from-string/package.json +0 -28
  1133. package/dist/node_modules/require-from-string/readme.md +0 -56
  1134. package/dist/node_modules/safer-buffer/LICENSE +0 -21
  1135. package/dist/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  1136. package/dist/node_modules/safer-buffer/Readme.md +0 -156
  1137. package/dist/node_modules/safer-buffer/dangerous.js +0 -58
  1138. package/dist/node_modules/safer-buffer/package.json +0 -34
  1139. package/dist/node_modules/safer-buffer/safer.js +0 -77
  1140. package/dist/node_modules/safer-buffer/tests.js +0 -406
  1141. package/dist/node_modules/signal-exit/LICENSE.txt +0 -16
  1142. package/dist/node_modules/signal-exit/README.md +0 -74
  1143. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  1144. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  1145. package/dist/node_modules/signal-exit/dist/cjs/browser.js +0 -10
  1146. package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  1147. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  1148. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  1149. package/dist/node_modules/signal-exit/dist/cjs/index.js +0 -279
  1150. package/dist/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  1151. package/dist/node_modules/signal-exit/dist/cjs/package.json +0 -3
  1152. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  1153. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  1154. package/dist/node_modules/signal-exit/dist/cjs/signals.js +0 -42
  1155. package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  1156. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  1157. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  1158. package/dist/node_modules/signal-exit/dist/mjs/browser.js +0 -4
  1159. package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  1160. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  1161. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  1162. package/dist/node_modules/signal-exit/dist/mjs/index.js +0 -275
  1163. package/dist/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  1164. package/dist/node_modules/signal-exit/dist/mjs/package.json +0 -3
  1165. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  1166. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  1167. package/dist/node_modules/signal-exit/dist/mjs/signals.js +0 -39
  1168. package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  1169. package/dist/node_modules/signal-exit/package.json +0 -106
  1170. package/dist/node_modules/simple-git/dist/cjs/index.js +0 -4898
  1171. package/dist/node_modules/simple-git/dist/cjs/index.js.map +0 -7
  1172. package/dist/node_modules/simple-git/dist/esm/index.js +0 -4745
  1173. package/dist/node_modules/simple-git/dist/esm/index.js.map +0 -7
  1174. package/dist/node_modules/simple-git/dist/esm/package.json +0 -3
  1175. package/dist/node_modules/simple-git/dist/src/lib/api.d.ts +0 -13
  1176. package/dist/node_modules/simple-git/dist/src/lib/args/log-format.d.ts +0 -9
  1177. package/dist/node_modules/simple-git/dist/src/lib/errors/git-construct-error.d.ts +0 -15
  1178. package/dist/node_modules/simple-git/dist/src/lib/errors/git-error.d.ts +0 -30
  1179. package/dist/node_modules/simple-git/dist/src/lib/errors/git-plugin-error.d.ts +0 -7
  1180. package/dist/node_modules/simple-git/dist/src/lib/errors/git-response-error.d.ts +0 -32
  1181. package/dist/node_modules/simple-git/dist/src/lib/errors/task-configuration-error.d.ts +0 -12
  1182. package/dist/node_modules/simple-git/dist/src/lib/git-factory.d.ts +0 -15
  1183. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +0 -21
  1184. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch-delete.d.ts +0 -5
  1185. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +0 -2
  1186. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-commit.d.ts +0 -2
  1187. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-diff-summary.d.ts +0 -3
  1188. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-fetch.d.ts +0 -2
  1189. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-list-log-summary.d.ts +0 -6
  1190. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-merge.d.ts +0 -11
  1191. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-move.d.ts +0 -2
  1192. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-pull.d.ts +0 -6
  1193. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-push.d.ts +0 -4
  1194. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-messages.d.ts +0 -5
  1195. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-remote-objects.d.ts +0 -3
  1196. package/dist/node_modules/simple-git/dist/src/lib/plugins/abort-plugin.d.ts +0 -3
  1197. package/dist/node_modules/simple-git/dist/src/lib/plugins/block-unsafe-operations-plugin.d.ts +0 -3
  1198. package/dist/node_modules/simple-git/dist/src/lib/plugins/command-config-prefixing-plugin.d.ts +0 -2
  1199. package/dist/node_modules/simple-git/dist/src/lib/plugins/completion-detection.plugin.d.ts +0 -3
  1200. package/dist/node_modules/simple-git/dist/src/lib/plugins/custom-binary.plugin.d.ts +0 -3
  1201. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +0 -7
  1202. package/dist/node_modules/simple-git/dist/src/lib/plugins/index.d.ts +0 -11
  1203. package/dist/node_modules/simple-git/dist/src/lib/plugins/plugin-store.d.ts +0 -11
  1204. package/dist/node_modules/simple-git/dist/src/lib/plugins/progress-monitor-plugin.d.ts +0 -3
  1205. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +0 -48
  1206. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -3
  1207. package/dist/node_modules/simple-git/dist/src/lib/plugins/suffix-paths.plugin.d.ts +0 -2
  1208. package/dist/node_modules/simple-git/dist/src/lib/plugins/timout-plugin.d.ts +0 -3
  1209. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchDeleteSummary.d.ts +0 -12
  1210. package/dist/node_modules/simple-git/dist/src/lib/responses/BranchSummary.d.ts +0 -14
  1211. package/dist/node_modules/simple-git/dist/src/lib/responses/CheckIgnore.d.ts +0 -4
  1212. package/dist/node_modules/simple-git/dist/src/lib/responses/CleanSummary.d.ts +0 -9
  1213. package/dist/node_modules/simple-git/dist/src/lib/responses/ConfigList.d.ts +0 -13
  1214. package/dist/node_modules/simple-git/dist/src/lib/responses/DiffSummary.d.ts +0 -10
  1215. package/dist/node_modules/simple-git/dist/src/lib/responses/FileStatusSummary.d.ts +0 -9
  1216. package/dist/node_modules/simple-git/dist/src/lib/responses/GetRemoteSummary.d.ts +0 -11
  1217. package/dist/node_modules/simple-git/dist/src/lib/responses/InitSummary.d.ts +0 -9
  1218. package/dist/node_modules/simple-git/dist/src/lib/responses/MergeSummary.d.ts +0 -16
  1219. package/dist/node_modules/simple-git/dist/src/lib/responses/PullSummary.d.ts +0 -25
  1220. package/dist/node_modules/simple-git/dist/src/lib/responses/StatusSummary.d.ts +0 -19
  1221. package/dist/node_modules/simple-git/dist/src/lib/responses/TagList.d.ts +0 -7
  1222. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor-chain.d.ts +0 -25
  1223. package/dist/node_modules/simple-git/dist/src/lib/runners/git-executor.d.ts +0 -14
  1224. package/dist/node_modules/simple-git/dist/src/lib/runners/promise-wrapped.d.ts +0 -2
  1225. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +0 -11
  1226. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +0 -23
  1227. package/dist/node_modules/simple-git/dist/src/lib/simple-git-api.d.ts +0 -20
  1228. package/dist/node_modules/simple-git/dist/src/lib/task-callback.d.ts +0 -2
  1229. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +0 -3
  1230. package/dist/node_modules/simple-git/dist/src/lib/tasks/branch.d.ts +0 -7
  1231. package/dist/node_modules/simple-git/dist/src/lib/tasks/change-working-directory.d.ts +0 -2
  1232. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-ignore.d.ts +0 -2
  1233. package/dist/node_modules/simple-git/dist/src/lib/tasks/check-is-repo.d.ts +0 -9
  1234. package/dist/node_modules/simple-git/dist/src/lib/tasks/checkout.d.ts +0 -2
  1235. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +0 -25
  1236. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +0 -9
  1237. package/dist/node_modules/simple-git/dist/src/lib/tasks/commit.d.ts +0 -4
  1238. package/dist/node_modules/simple-git/dist/src/lib/tasks/config.d.ts +0 -8
  1239. package/dist/node_modules/simple-git/dist/src/lib/tasks/count-objects.d.ts +0 -12
  1240. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff-name-status.d.ts +0 -12
  1241. package/dist/node_modules/simple-git/dist/src/lib/tasks/diff.d.ts +0 -5
  1242. package/dist/node_modules/simple-git/dist/src/lib/tasks/fetch.d.ts +0 -4
  1243. package/dist/node_modules/simple-git/dist/src/lib/tasks/first-commit.d.ts +0 -2
  1244. package/dist/node_modules/simple-git/dist/src/lib/tasks/grep.d.ts +0 -12
  1245. package/dist/node_modules/simple-git/dist/src/lib/tasks/hash-object.d.ts +0 -5
  1246. package/dist/node_modules/simple-git/dist/src/lib/tasks/init.d.ts +0 -3
  1247. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +0 -32
  1248. package/dist/node_modules/simple-git/dist/src/lib/tasks/merge.d.ts +0 -4
  1249. package/dist/node_modules/simple-git/dist/src/lib/tasks/move.d.ts +0 -3
  1250. package/dist/node_modules/simple-git/dist/src/lib/tasks/pull.d.ts +0 -3
  1251. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +0 -9
  1252. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +0 -8
  1253. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +0 -11
  1254. package/dist/node_modules/simple-git/dist/src/lib/tasks/show.d.ts +0 -2
  1255. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +0 -4
  1256. package/dist/node_modules/simple-git/dist/src/lib/tasks/status.d.ts +0 -3
  1257. package/dist/node_modules/simple-git/dist/src/lib/tasks/sub-module.d.ts +0 -5
  1258. package/dist/node_modules/simple-git/dist/src/lib/tasks/tag.d.ts +0 -18
  1259. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +0 -14
  1260. package/dist/node_modules/simple-git/dist/src/lib/tasks/version.d.ts +0 -9
  1261. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +0 -21
  1262. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +0 -136
  1263. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +0 -19
  1264. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +0 -14
  1265. package/dist/node_modules/simple-git/dist/src/lib/utils/exit-codes.d.ts +0 -10
  1266. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -7
  1267. package/dist/node_modules/simple-git/dist/src/lib/utils/index.d.ts +0 -8
  1268. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +0 -15
  1269. package/dist/node_modules/simple-git/dist/src/lib/utils/simple-git-options.d.ts +0 -2
  1270. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +0 -13
  1271. package/dist/node_modules/simple-git/dist/src/lib/utils/task-parser.d.ts +0 -5
  1272. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +0 -47
  1273. package/dist/node_modules/simple-git/dist/typings/errors.d.ts +0 -5
  1274. package/dist/node_modules/simple-git/dist/typings/index.d.ts +0 -14
  1275. package/dist/node_modules/simple-git/dist/typings/response.d.ts +0 -556
  1276. package/dist/node_modules/simple-git/dist/typings/simple-git.d.ts +0 -1033
  1277. package/dist/node_modules/simple-git/dist/typings/types.d.ts +0 -22
  1278. package/dist/node_modules/simple-git/package.json +0 -51
  1279. package/dist/node_modules/simple-git/promise.js +0 -17
  1280. package/dist/node_modules/simple-git/readme.md +0 -851
  1281. package/dist/node_modules/string-width/index.d.ts +0 -39
  1282. package/dist/node_modules/string-width/index.js +0 -82
  1283. package/dist/node_modules/string-width/license +0 -9
  1284. package/dist/node_modules/string-width/package.json +0 -64
  1285. package/dist/node_modules/string-width/readme.md +0 -66
  1286. package/dist/node_modules/strip-ansi/index.d.ts +0 -15
  1287. package/dist/node_modules/strip-ansi/index.js +0 -19
  1288. package/dist/node_modules/strip-ansi/license +0 -9
  1289. package/dist/node_modules/strip-ansi/package.json +0 -59
  1290. package/dist/node_modules/strip-ansi/readme.md +0 -37
  1291. package/dist/node_modules/type-fest/index.d.ts +0 -178
  1292. package/dist/node_modules/type-fest/license-cc0 +0 -121
  1293. package/dist/node_modules/type-fest/license-mit +0 -9
  1294. package/dist/node_modules/type-fest/package.json +0 -91
  1295. package/dist/node_modules/type-fest/readme.md +0 -1060
  1296. package/dist/node_modules/type-fest/source/all-union-fields.d.ts +0 -88
  1297. package/dist/node_modules/type-fest/source/and.d.ts +0 -25
  1298. package/dist/node_modules/type-fest/source/array-indices.d.ts +0 -23
  1299. package/dist/node_modules/type-fest/source/array-slice.d.ts +0 -109
  1300. package/dist/node_modules/type-fest/source/array-splice.d.ts +0 -99
  1301. package/dist/node_modules/type-fest/source/array-tail.d.ts +0 -76
  1302. package/dist/node_modules/type-fest/source/array-values.d.ts +0 -22
  1303. package/dist/node_modules/type-fest/source/arrayable.d.ts +0 -29
  1304. package/dist/node_modules/type-fest/source/async-return-type.d.ts +0 -23
  1305. package/dist/node_modules/type-fest/source/asyncify.d.ts +0 -32
  1306. package/dist/node_modules/type-fest/source/basic.d.ts +0 -68
  1307. package/dist/node_modules/type-fest/source/camel-case.d.ts +0 -89
  1308. package/dist/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +0 -97
  1309. package/dist/node_modules/type-fest/source/camel-cased-properties.d.ts +0 -43
  1310. package/dist/node_modules/type-fest/source/conditional-except.d.ts +0 -45
  1311. package/dist/node_modules/type-fest/source/conditional-keys.d.ts +0 -47
  1312. package/dist/node_modules/type-fest/source/conditional-pick-deep.d.ts +0 -118
  1313. package/dist/node_modules/type-fest/source/conditional-pick.d.ts +0 -44
  1314. package/dist/node_modules/type-fest/source/conditional-simplify.d.ts +0 -32
  1315. package/dist/node_modules/type-fest/source/delimiter-case.d.ts +0 -78
  1316. package/dist/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +0 -106
  1317. package/dist/node_modules/type-fest/source/delimiter-cased-properties.d.ts +0 -46
  1318. package/dist/node_modules/type-fest/source/distributed-omit.d.ts +0 -89
  1319. package/dist/node_modules/type-fest/source/distributed-pick.d.ts +0 -85
  1320. package/dist/node_modules/type-fest/source/empty-object.d.ts +0 -46
  1321. package/dist/node_modules/type-fest/source/enforce-optional.d.ts +0 -47
  1322. package/dist/node_modules/type-fest/source/entries.d.ts +0 -62
  1323. package/dist/node_modules/type-fest/source/entry.d.ts +0 -65
  1324. package/dist/node_modules/type-fest/source/exact.d.ts +0 -68
  1325. package/dist/node_modules/type-fest/source/except.d.ts +0 -108
  1326. package/dist/node_modules/type-fest/source/find-global-type.d.ts +0 -64
  1327. package/dist/node_modules/type-fest/source/fixed-length-array.d.ts +0 -43
  1328. package/dist/node_modules/type-fest/source/get.d.ts +0 -219
  1329. package/dist/node_modules/type-fest/source/global-this.d.ts +0 -21
  1330. package/dist/node_modules/type-fest/source/greater-than-or-equal.d.ts +0 -22
  1331. package/dist/node_modules/type-fest/source/greater-than.d.ts +0 -56
  1332. package/dist/node_modules/type-fest/source/has-optional-keys.d.ts +0 -21
  1333. package/dist/node_modules/type-fest/source/has-readonly-keys.d.ts +0 -21
  1334. package/dist/node_modules/type-fest/source/has-required-keys.d.ts +0 -59
  1335. package/dist/node_modules/type-fest/source/has-writable-keys.d.ts +0 -21
  1336. package/dist/node_modules/type-fest/source/if-any.d.ts +0 -24
  1337. package/dist/node_modules/type-fest/source/if-empty-object.d.ts +0 -26
  1338. package/dist/node_modules/type-fest/source/if-never.d.ts +0 -24
  1339. package/dist/node_modules/type-fest/source/if-null.d.ts +0 -24
  1340. package/dist/node_modules/type-fest/source/if-unknown.d.ts +0 -24
  1341. package/dist/node_modules/type-fest/source/includes.d.ts +0 -22
  1342. package/dist/node_modules/type-fest/source/int-closed-range.d.ts +0 -35
  1343. package/dist/node_modules/type-fest/source/int-range.d.ts +0 -55
  1344. package/dist/node_modules/type-fest/source/internal/array.d.ts +0 -126
  1345. package/dist/node_modules/type-fest/source/internal/characters.d.ts +0 -67
  1346. package/dist/node_modules/type-fest/source/internal/index.d.ts +0 -8
  1347. package/dist/node_modules/type-fest/source/internal/keys.d.ts +0 -97
  1348. package/dist/node_modules/type-fest/source/internal/numeric.d.ts +0 -118
  1349. package/dist/node_modules/type-fest/source/internal/object.d.ts +0 -236
  1350. package/dist/node_modules/type-fest/source/internal/string.d.ts +0 -210
  1351. package/dist/node_modules/type-fest/source/internal/tuple.d.ts +0 -90
  1352. package/dist/node_modules/type-fest/source/internal/type.d.ts +0 -139
  1353. package/dist/node_modules/type-fest/source/invariant-of.d.ts +0 -76
  1354. package/dist/node_modules/type-fest/source/is-any.d.ts +0 -33
  1355. package/dist/node_modules/type-fest/source/is-equal.d.ts +0 -31
  1356. package/dist/node_modules/type-fest/source/is-float.d.ts +0 -41
  1357. package/dist/node_modules/type-fest/source/is-integer.d.ts +0 -58
  1358. package/dist/node_modules/type-fest/source/is-literal.d.ts +0 -296
  1359. package/dist/node_modules/type-fest/source/is-never.d.ts +0 -42
  1360. package/dist/node_modules/type-fest/source/is-null.d.ts +0 -20
  1361. package/dist/node_modules/type-fest/source/is-tuple.d.ts +0 -89
  1362. package/dist/node_modules/type-fest/source/is-unknown.d.ts +0 -52
  1363. package/dist/node_modules/type-fest/source/iterable-element.d.ts +0 -64
  1364. package/dist/node_modules/type-fest/source/join.d.ts +0 -68
  1365. package/dist/node_modules/type-fest/source/jsonifiable.d.ts +0 -37
  1366. package/dist/node_modules/type-fest/source/jsonify.d.ts +0 -122
  1367. package/dist/node_modules/type-fest/source/kebab-case.d.ts +0 -44
  1368. package/dist/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +0 -63
  1369. package/dist/node_modules/type-fest/source/kebab-cased-properties.d.ts +0 -40
  1370. package/dist/node_modules/type-fest/source/keys-of-union.d.ts +0 -42
  1371. package/dist/node_modules/type-fest/source/last-array-element.d.ts +0 -38
  1372. package/dist/node_modules/type-fest/source/less-than-or-equal.d.ts +0 -22
  1373. package/dist/node_modules/type-fest/source/less-than.d.ts +0 -26
  1374. package/dist/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +0 -36
  1375. package/dist/node_modules/type-fest/source/literal-to-primitive.d.ts +0 -36
  1376. package/dist/node_modules/type-fest/source/literal-union.d.ts +0 -37
  1377. package/dist/node_modules/type-fest/source/merge-deep.d.ts +0 -486
  1378. package/dist/node_modules/type-fest/source/merge-exclusive.d.ts +0 -41
  1379. package/dist/node_modules/type-fest/source/merge.d.ts +0 -48
  1380. package/dist/node_modules/type-fest/source/multidimensional-array.d.ts +0 -44
  1381. package/dist/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +0 -48
  1382. package/dist/node_modules/type-fest/source/non-empty-object.d.ts +0 -35
  1383. package/dist/node_modules/type-fest/source/non-empty-string.d.ts +0 -28
  1384. package/dist/node_modules/type-fest/source/non-empty-tuple.d.ts +0 -21
  1385. package/dist/node_modules/type-fest/source/numeric.d.ts +0 -222
  1386. package/dist/node_modules/type-fest/source/observable-like.d.ts +0 -63
  1387. package/dist/node_modules/type-fest/source/omit-deep.d.ts +0 -167
  1388. package/dist/node_modules/type-fest/source/omit-index-signature.d.ts +0 -95
  1389. package/dist/node_modules/type-fest/source/opaque.d.ts +0 -1
  1390. package/dist/node_modules/type-fest/source/optional-keys-of.d.ts +0 -39
  1391. package/dist/node_modules/type-fest/source/or.d.ts +0 -25
  1392. package/dist/node_modules/type-fest/source/override-properties.d.ts +0 -36
  1393. package/dist/node_modules/type-fest/source/package-json.d.ts +0 -676
  1394. package/dist/node_modules/type-fest/source/partial-deep.d.ts +0 -151
  1395. package/dist/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +0 -78
  1396. package/dist/node_modules/type-fest/source/pascal-case.d.ts +0 -42
  1397. package/dist/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +0 -62
  1398. package/dist/node_modules/type-fest/source/pascal-cased-properties.d.ts +0 -36
  1399. package/dist/node_modules/type-fest/source/paths.d.ts +0 -262
  1400. package/dist/node_modules/type-fest/source/pick-deep.d.ts +0 -149
  1401. package/dist/node_modules/type-fest/source/pick-index-signature.d.ts +0 -50
  1402. package/dist/node_modules/type-fest/source/primitive.d.ts +0 -13
  1403. package/dist/node_modules/type-fest/source/promisable.d.ts +0 -25
  1404. package/dist/node_modules/type-fest/source/readonly-deep.d.ts +0 -81
  1405. package/dist/node_modules/type-fest/source/readonly-keys-of.d.ts +0 -30
  1406. package/dist/node_modules/type-fest/source/readonly-tuple.d.ts +0 -41
  1407. package/dist/node_modules/type-fest/source/replace.d.ts +0 -85
  1408. package/dist/node_modules/type-fest/source/require-all-or-none.d.ts +0 -51
  1409. package/dist/node_modules/type-fest/source/require-at-least-one.d.ts +0 -47
  1410. package/dist/node_modules/type-fest/source/require-exactly-one.d.ts +0 -45
  1411. package/dist/node_modules/type-fest/source/require-one-or-none.d.ts +0 -46
  1412. package/dist/node_modules/type-fest/source/required-deep.d.ts +0 -78
  1413. package/dist/node_modules/type-fest/source/required-keys-of.d.ts +0 -30
  1414. package/dist/node_modules/type-fest/source/schema.d.ts +0 -114
  1415. package/dist/node_modules/type-fest/source/screaming-snake-case.d.ts +0 -28
  1416. package/dist/node_modules/type-fest/source/set-field-type.d.ts +0 -65
  1417. package/dist/node_modules/type-fest/source/set-non-nullable-deep.d.ts +0 -83
  1418. package/dist/node_modules/type-fest/source/set-non-nullable.d.ts +0 -39
  1419. package/dist/node_modules/type-fest/source/set-optional.d.ts +0 -38
  1420. package/dist/node_modules/type-fest/source/set-parameter-type.d.ts +0 -117
  1421. package/dist/node_modules/type-fest/source/set-readonly.d.ts +0 -39
  1422. package/dist/node_modules/type-fest/source/set-required-deep.d.ts +0 -68
  1423. package/dist/node_modules/type-fest/source/set-required.d.ts +0 -70
  1424. package/dist/node_modules/type-fest/source/set-return-type.d.ts +0 -29
  1425. package/dist/node_modules/type-fest/source/shared-union-fields-deep.d.ts +0 -178
  1426. package/dist/node_modules/type-fest/source/shared-union-fields.d.ts +0 -76
  1427. package/dist/node_modules/type-fest/source/simplify-deep.d.ts +0 -115
  1428. package/dist/node_modules/type-fest/source/simplify.d.ts +0 -58
  1429. package/dist/node_modules/type-fest/source/single-key-object.d.ts +0 -29
  1430. package/dist/node_modules/type-fest/source/snake-case.d.ts +0 -45
  1431. package/dist/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +0 -63
  1432. package/dist/node_modules/type-fest/source/snake-cased-properties.d.ts +0 -40
  1433. package/dist/node_modules/type-fest/source/split.d.ts +0 -88
  1434. package/dist/node_modules/type-fest/source/spread.d.ts +0 -84
  1435. package/dist/node_modules/type-fest/source/string-key-of.d.ts +0 -25
  1436. package/dist/node_modules/type-fest/source/string-repeat.d.ts +0 -47
  1437. package/dist/node_modules/type-fest/source/string-slice.d.ts +0 -37
  1438. package/dist/node_modules/type-fest/source/stringified.d.ts +0 -23
  1439. package/dist/node_modules/type-fest/source/structured-cloneable.d.ts +0 -92
  1440. package/dist/node_modules/type-fest/source/subtract.d.ts +0 -83
  1441. package/dist/node_modules/type-fest/source/sum.d.ts +0 -78
  1442. package/dist/node_modules/type-fest/source/tagged-union.d.ts +0 -51
  1443. package/dist/node_modules/type-fest/source/tagged.d.ts +0 -256
  1444. package/dist/node_modules/type-fest/source/trim.d.ts +0 -27
  1445. package/dist/node_modules/type-fest/source/tsconfig-json.d.ts +0 -1294
  1446. package/dist/node_modules/type-fest/source/tuple-to-object.d.ts +0 -42
  1447. package/dist/node_modules/type-fest/source/tuple-to-union.d.ts +0 -51
  1448. package/dist/node_modules/type-fest/source/typed-array.d.ts +0 -17
  1449. package/dist/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +0 -80
  1450. package/dist/node_modules/type-fest/source/union-to-intersection.d.ts +0 -61
  1451. package/dist/node_modules/type-fest/source/union-to-tuple.d.ts +0 -56
  1452. package/dist/node_modules/type-fest/source/unknown-array.d.ts +0 -25
  1453. package/dist/node_modules/type-fest/source/unknown-map.d.ts +0 -24
  1454. package/dist/node_modules/type-fest/source/unknown-record.d.ts +0 -31
  1455. package/dist/node_modules/type-fest/source/unknown-set.d.ts +0 -24
  1456. package/dist/node_modules/type-fest/source/value-of.d.ts +0 -42
  1457. package/dist/node_modules/type-fest/source/words.d.ts +0 -118
  1458. package/dist/node_modules/type-fest/source/writable-deep.d.ts +0 -83
  1459. package/dist/node_modules/type-fest/source/writable-keys-of.d.ts +0 -33
  1460. package/dist/node_modules/type-fest/source/writable.d.ts +0 -68
  1461. package/dist/node_modules/undici-types/LICENSE +0 -21
  1462. package/dist/node_modules/undici-types/README.md +0 -6
  1463. package/dist/node_modules/undici-types/agent.d.ts +0 -30
  1464. package/dist/node_modules/undici-types/api.d.ts +0 -43
  1465. package/dist/node_modules/undici-types/balanced-pool.d.ts +0 -30
  1466. package/dist/node_modules/undici-types/cache-interceptor.d.ts +0 -179
  1467. package/dist/node_modules/undici-types/cache.d.ts +0 -36
  1468. package/dist/node_modules/undici-types/client-stats.d.ts +0 -15
  1469. package/dist/node_modules/undici-types/client.d.ts +0 -129
  1470. package/dist/node_modules/undici-types/connector.d.ts +0 -36
  1471. package/dist/node_modules/undici-types/content-type.d.ts +0 -21
  1472. package/dist/node_modules/undici-types/cookies.d.ts +0 -30
  1473. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +0 -74
  1474. package/dist/node_modules/undici-types/dispatcher.d.ts +0 -253
  1475. package/dist/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
  1476. package/dist/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -22
  1477. package/dist/node_modules/undici-types/errors.d.ts +0 -177
  1478. package/dist/node_modules/undici-types/eventsource.d.ts +0 -66
  1479. package/dist/node_modules/undici-types/fetch.d.ts +0 -231
  1480. package/dist/node_modules/undici-types/formdata.d.ts +0 -108
  1481. package/dist/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  1482. package/dist/node_modules/undici-types/global-origin.d.ts +0 -7
  1483. package/dist/node_modules/undici-types/h2c-client.d.ts +0 -73
  1484. package/dist/node_modules/undici-types/handlers.d.ts +0 -14
  1485. package/dist/node_modules/undici-types/header.d.ts +0 -165
  1486. package/dist/node_modules/undici-types/index.d.ts +0 -93
  1487. package/dist/node_modules/undici-types/interceptors.d.ts +0 -80
  1488. package/dist/node_modules/undici-types/mock-agent.d.ts +0 -68
  1489. package/dist/node_modules/undici-types/mock-call-history.d.ts +0 -111
  1490. package/dist/node_modules/undici-types/mock-client.d.ts +0 -27
  1491. package/dist/node_modules/undici-types/mock-errors.d.ts +0 -12
  1492. package/dist/node_modules/undici-types/mock-interceptor.d.ts +0 -94
  1493. package/dist/node_modules/undici-types/mock-pool.d.ts +0 -27
  1494. package/dist/node_modules/undici-types/package.json +0 -55
  1495. package/dist/node_modules/undici-types/patch.d.ts +0 -29
  1496. package/dist/node_modules/undici-types/pool-stats.d.ts +0 -19
  1497. package/dist/node_modules/undici-types/pool.d.ts +0 -39
  1498. package/dist/node_modules/undici-types/proxy-agent.d.ts +0 -29
  1499. package/dist/node_modules/undici-types/readable.d.ts +0 -68
  1500. package/dist/node_modules/undici-types/retry-agent.d.ts +0 -8
  1501. package/dist/node_modules/undici-types/retry-handler.d.ts +0 -125
  1502. package/dist/node_modules/undici-types/round-robin-pool.d.ts +0 -39
  1503. package/dist/node_modules/undici-types/snapshot-agent.d.ts +0 -113
  1504. package/dist/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
  1505. package/dist/node_modules/undici-types/util.d.ts +0 -18
  1506. package/dist/node_modules/undici-types/utility.d.ts +0 -7
  1507. package/dist/node_modules/undici-types/webidl.d.ts +0 -346
  1508. package/dist/node_modules/undici-types/websocket.d.ts +0 -188
  1509. package/dist/node_modules/universalify/LICENSE +0 -20
  1510. package/dist/node_modules/universalify/README.md +0 -76
  1511. package/dist/node_modules/universalify/index.js +0 -24
  1512. package/dist/node_modules/universalify/package.json +0 -34
  1513. package/dist/node_modules/widest-line/index.d.ts +0 -12
  1514. package/dist/node_modules/widest-line/index.js +0 -11
  1515. package/dist/node_modules/widest-line/license +0 -9
  1516. package/dist/node_modules/widest-line/package.json +0 -60
  1517. package/dist/node_modules/widest-line/readme.md +0 -26
  1518. package/dist/node_modules/wrap-ansi/index.d.ts +0 -41
  1519. package/dist/node_modules/wrap-ansi/index.js +0 -222
  1520. package/dist/node_modules/wrap-ansi/license +0 -9
  1521. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +0 -236
  1522. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +0 -223
  1523. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/license +0 -9
  1524. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +0 -54
  1525. package/dist/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +0 -173
  1526. package/dist/node_modules/wrap-ansi/package.json +0 -69
  1527. package/dist/node_modules/wrap-ansi/readme.md +0 -75
  1528. package/dist/package-lock.json +0 -10655
  1529. package/dist/package.json +0 -76
  1530. package/dist/scripts/jsonSchemaToTs.js +0 -16
  1531. package/dist/scripts/versionDevelop.js +0 -116
@@ -1,2279 +0,0 @@
1
- declare module "node:test" {
2
- import { AssertMethodNames, AssertPredicate } from "node:assert";
3
- import { Readable, ReadableEventMap } from "node:stream";
4
- import { TestEvent } from "node:test/reporters";
5
- import { URL } from "node:url";
6
- import TestFn = test.TestFn;
7
- import TestOptions = test.TestOptions;
8
- /**
9
- * The `test()` function is the value imported from the `test` module. Each
10
- * invocation of this function results in reporting the test to the `TestsStream`.
11
- *
12
- * The `TestContext` object passed to the `fn` argument can be used to perform
13
- * actions related to the current test. Examples include skipping the test, adding
14
- * additional diagnostic information, or creating subtests.
15
- *
16
- * `test()` returns a `Promise` that fulfills once the test completes.
17
- * if `test()` is called within a suite, it fulfills immediately.
18
- * The return value can usually be discarded for top level tests.
19
- * However, the return value from subtests should be used to prevent the parent
20
- * test from finishing first and cancelling the subtest
21
- * as shown in the following example.
22
- *
23
- * ```js
24
- * test('top level test', async (t) => {
25
- * // The setTimeout() in the following subtest would cause it to outlive its
26
- * // parent test if 'await' is removed on the next line. Once the parent test
27
- * // completes, it will cancel any outstanding subtests.
28
- * await t.test('longer running subtest', async (t) => {
29
- * return new Promise((resolve, reject) => {
30
- * setTimeout(resolve, 1000);
31
- * });
32
- * });
33
- * });
34
- * ```
35
- *
36
- * The `timeout` option can be used to fail the test if it takes longer than `timeout` milliseconds to complete. However, it is not a reliable mechanism for
37
- * canceling tests because a running test might block the application thread and
38
- * thus prevent the scheduled cancellation.
39
- * @since v18.0.0, v16.17.0
40
- * @param name The name of the test, which is displayed when reporting test results.
41
- * Defaults to the `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
42
- * @param options Configuration options for the test.
43
- * @param fn The function under test. The first argument to this function is a {@link TestContext} object.
44
- * If the test uses callbacks, the callback function is passed as the second argument.
45
- * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite.
46
- */
47
- function test(name?: string, fn?: TestFn): Promise<void>;
48
- function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
49
- function test(options?: TestOptions, fn?: TestFn): Promise<void>;
50
- function test(fn?: TestFn): Promise<void>;
51
- namespace test {
52
- export { test };
53
- export { suite as describe, test as it };
54
- }
55
- namespace test {
56
- /**
57
- * **Note:** `shard` is used to horizontally parallelize test running across
58
- * machines or processes, ideal for large-scale executions across varied
59
- * environments. It's incompatible with `watch` mode, tailored for rapid
60
- * code iteration by automatically rerunning tests on file changes.
61
- *
62
- * ```js
63
- * import { tap } from 'node:test/reporters';
64
- * import { run } from 'node:test';
65
- * import process from 'node:process';
66
- * import path from 'node:path';
67
- *
68
- * run({ files: [path.resolve('./tests/test.js')] })
69
- * .compose(tap)
70
- * .pipe(process.stdout);
71
- * ```
72
- * @since v18.9.0, v16.19.0
73
- * @param options Configuration options for running tests.
74
- */
75
- function run(options?: RunOptions): TestsStream;
76
- /**
77
- * The `suite()` function is imported from the `node:test` module.
78
- * @param name The name of the suite, which is displayed when reporting test results.
79
- * Defaults to the `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
80
- * @param options Configuration options for the suite. This supports the same options as {@link test}.
81
- * @param fn The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object.
82
- * @return Immediately fulfilled with `undefined`.
83
- * @since v20.13.0
84
- */
85
- function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
86
- function suite(name?: string, fn?: SuiteFn): Promise<void>;
87
- function suite(options?: TestOptions, fn?: SuiteFn): Promise<void>;
88
- function suite(fn?: SuiteFn): Promise<void>;
89
- namespace suite {
90
- /**
91
- * Shorthand for skipping a suite. This is the same as calling {@link suite} with `options.skip` set to `true`.
92
- * @since v20.13.0
93
- */
94
- function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
95
- function skip(name?: string, fn?: SuiteFn): Promise<void>;
96
- function skip(options?: TestOptions, fn?: SuiteFn): Promise<void>;
97
- function skip(fn?: SuiteFn): Promise<void>;
98
- /**
99
- * Shorthand for marking a suite as `TODO`. This is the same as calling {@link suite} with `options.todo` set to `true`.
100
- * @since v20.13.0
101
- */
102
- function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
103
- function todo(name?: string, fn?: SuiteFn): Promise<void>;
104
- function todo(options?: TestOptions, fn?: SuiteFn): Promise<void>;
105
- function todo(fn?: SuiteFn): Promise<void>;
106
- /**
107
- * Shorthand for marking a suite as `only`. This is the same as calling {@link suite} with `options.only` set to `true`.
108
- * @since v20.13.0
109
- */
110
- function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
111
- function only(name?: string, fn?: SuiteFn): Promise<void>;
112
- function only(options?: TestOptions, fn?: SuiteFn): Promise<void>;
113
- function only(fn?: SuiteFn): Promise<void>;
114
- /**
115
- * This flips the pass/fail reporting for a specific test or suite: a flagged test
116
- * case must throw in order to pass, and a flagged test case that does not throw
117
- * fails.
118
- * @since v25.5.0
119
- */
120
- function expectFailure(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
121
- function expectFailure(name?: string, fn?: SuiteFn): Promise<void>;
122
- function expectFailure(options?: TestOptions, fn?: SuiteFn): Promise<void>;
123
- function expectFailure(fn?: SuiteFn): Promise<void>;
124
- }
125
- /**
126
- * Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`.
127
- * @since v20.2.0
128
- */
129
- function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
130
- function skip(name?: string, fn?: TestFn): Promise<void>;
131
- function skip(options?: TestOptions, fn?: TestFn): Promise<void>;
132
- function skip(fn?: TestFn): Promise<void>;
133
- /**
134
- * Shorthand for marking a test as `TODO`. This is the same as calling {@link test} with `options.todo` set to `true`.
135
- * @since v20.2.0
136
- */
137
- function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
138
- function todo(name?: string, fn?: TestFn): Promise<void>;
139
- function todo(options?: TestOptions, fn?: TestFn): Promise<void>;
140
- function todo(fn?: TestFn): Promise<void>;
141
- /**
142
- * Shorthand for marking a test as `only`. This is the same as calling {@link test} with `options.only` set to `true`.
143
- * @since v20.2.0
144
- */
145
- function only(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
146
- function only(name?: string, fn?: TestFn): Promise<void>;
147
- function only(options?: TestOptions, fn?: TestFn): Promise<void>;
148
- function only(fn?: TestFn): Promise<void>;
149
- // added in v25.5.0, undocumented
150
- function expectFailure(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
151
- function expectFailure(name?: string, fn?: TestFn): Promise<void>;
152
- function expectFailure(options?: TestOptions, fn?: TestFn): Promise<void>;
153
- function expectFailure(fn?: TestFn): Promise<void>;
154
- /**
155
- * The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object.
156
- * If the test uses callbacks, the callback function is passed as the second argument.
157
- */
158
- type TestFn = (t: TestContext, done: (result?: any) => void) => void | Promise<void>;
159
- /**
160
- * The type of a suite test function. The argument to this function is a {@link SuiteContext} object.
161
- */
162
- type SuiteFn = (s: SuiteContext) => void | Promise<void>;
163
- interface TestShard {
164
- /**
165
- * A positive integer between 1 and `total` that specifies the index of the shard to run.
166
- */
167
- index: number;
168
- /**
169
- * A positive integer that specifies the total number of shards to split the test files to.
170
- */
171
- total: number;
172
- }
173
- interface RunOptions {
174
- /**
175
- * If a number is provided, then that many tests would run asynchronously (they are still managed by the single-threaded event loop).
176
- * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time.
177
- * @default false
178
- */
179
- concurrency?: number | boolean | undefined;
180
- /**
181
- * Specifies the current working directory to be used by the test runner.
182
- * Serves as the base path for resolving files according to the
183
- * [test runner execution model](https://nodejs.org/docs/latest-v26.x/api/test.html#test-runner-execution-model).
184
- * @since v23.0.0
185
- * @default process.cwd()
186
- */
187
- cwd?: string | undefined;
188
- /**
189
- * An array containing the list of files to run. If omitted, files are run according to the
190
- * [test runner execution model](https://nodejs.org/docs/latest-v26.x/api/test.html#test-runner-execution-model).
191
- */
192
- files?: readonly string[] | undefined;
193
- /**
194
- * Configures the test runner to exit the process once all known
195
- * tests have finished executing even if the event loop would
196
- * otherwise remain active.
197
- * @default false
198
- */
199
- forceExit?: boolean | undefined;
200
- /**
201
- * An array containing the list of glob patterns to match test files.
202
- * This option cannot be used together with `files`. If omitted, files are run according to the
203
- * [test runner execution model](https://nodejs.org/docs/latest-v26.x/api/test.html#test-runner-execution-model).
204
- * @since v22.6.0
205
- */
206
- globPatterns?: readonly string[] | undefined;
207
- /**
208
- * Sets inspector port of test child process.
209
- * This can be a number, or a function that takes no arguments and returns a
210
- * number. If a nullish value is provided, each process gets its own port,
211
- * incremented from the primary's `process.debugPort`. This option is ignored
212
- * if the `isolation` option is set to `'none'` as no child processes are
213
- * spawned.
214
- * @default undefined
215
- */
216
- inspectPort?: number | (() => number) | undefined;
217
- /**
218
- * Configures the type of test isolation. If set to
219
- * `'process'`, each test file is run in a separate child process. If set to
220
- * `'none'`, all test files run in the current process.
221
- * @default 'process'
222
- * @since v22.8.0
223
- */
224
- isolation?: "process" | "none" | undefined;
225
- /**
226
- * If truthy, the test context will only run tests that have the `only` option set
227
- */
228
- only?: boolean | undefined;
229
- /**
230
- * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run.
231
- * @default undefined
232
- */
233
- setup?: ((reporter: TestsStream) => void | Promise<void>) | undefined;
234
- /**
235
- * An array of CLI flags to pass to the `node` executable when
236
- * spawning the subprocesses. This option has no effect when `isolation` is `'none`'.
237
- * @since v22.10.0
238
- * @default []
239
- */
240
- execArgv?: readonly string[] | undefined;
241
- /**
242
- * An array of CLI flags to pass to each test file when spawning the
243
- * subprocesses. This option has no effect when `isolation` is `'none'`.
244
- * @since v22.10.0
245
- * @default []
246
- */
247
- argv?: readonly string[] | undefined;
248
- /**
249
- * Allows aborting an in-progress test execution.
250
- */
251
- signal?: AbortSignal | undefined;
252
- /**
253
- * If provided, only run tests whose name matches the provided pattern.
254
- * Strings are interpreted as JavaScript regular expressions.
255
- * @default undefined
256
- */
257
- testNamePatterns?: string | RegExp | ReadonlyArray<string | RegExp> | undefined;
258
- /**
259
- * A String, RegExp or a RegExp Array, that can be used to exclude running tests whose
260
- * name matches the provided pattern. Test name patterns are interpreted as JavaScript
261
- * regular expressions. For each test that is executed, any corresponding test hooks,
262
- * such as `beforeEach()`, are also run.
263
- * @default undefined
264
- * @since v22.1.0
265
- */
266
- testSkipPatterns?: string | RegExp | ReadonlyArray<string | RegExp> | undefined;
267
- /**
268
- * The number of milliseconds after which the test execution will fail.
269
- * If unspecified, subtests inherit this value from their parent.
270
- * @default Infinity
271
- */
272
- timeout?: number | undefined;
273
- /**
274
- * Whether to run in watch mode or not.
275
- * @default false
276
- */
277
- watch?: boolean | undefined;
278
- /**
279
- * Running tests in a specific shard.
280
- * @default undefined
281
- */
282
- shard?: TestShard | undefined;
283
- /**
284
- * A file path where the test runner will
285
- * store the state of the tests to allow rerunning only the failed tests on a next run.
286
- * @since v24.7.0
287
- * @default undefined
288
- */
289
- rerunFailuresFilePath?: string | undefined;
290
- /**
291
- * enable [code coverage](https://nodejs.org/docs/latest-v26.x/api/test.html#collecting-code-coverage) collection.
292
- * @since v22.10.0
293
- * @default false
294
- */
295
- coverage?: boolean | undefined;
296
- /**
297
- * Excludes specific files from code coverage
298
- * using a glob pattern, which can match both absolute and relative file paths.
299
- * This property is only applicable when `coverage` was set to `true`.
300
- * If both `coverageExcludeGlobs` and `coverageIncludeGlobs` are provided,
301
- * files must meet **both** criteria to be included in the coverage report.
302
- * @since v22.10.0
303
- * @default undefined
304
- */
305
- coverageExcludeGlobs?: string | readonly string[] | undefined;
306
- /**
307
- * Includes specific files in code coverage
308
- * using a glob pattern, which can match both absolute and relative file paths.
309
- * This property is only applicable when `coverage` was set to `true`.
310
- * If both `coverageExcludeGlobs` and `coverageIncludeGlobs` are provided,
311
- * files must meet **both** criteria to be included in the coverage report.
312
- * @since v22.10.0
313
- * @default undefined
314
- */
315
- coverageIncludeGlobs?: string | readonly string[] | undefined;
316
- /**
317
- * Require a minimum percent of covered lines. If code
318
- * coverage does not reach the threshold specified, the process will exit with code `1`.
319
- * @since v22.10.0
320
- * @default 0
321
- */
322
- lineCoverage?: number | undefined;
323
- /**
324
- * Require a minimum percent of covered branches. If code
325
- * coverage does not reach the threshold specified, the process will exit with code `1`.
326
- * @since v22.10.0
327
- * @default 0
328
- */
329
- branchCoverage?: number | undefined;
330
- /**
331
- * Require a minimum percent of covered functions. If code
332
- * coverage does not reach the threshold specified, the process will exit with code `1`.
333
- * @since v22.10.0
334
- * @default 0
335
- */
336
- functionCoverage?: number | undefined;
337
- /**
338
- * Specify environment variables to be passed along to the test process.
339
- * This options is not compatible with `isolation='none'`. These variables will override
340
- * those from the main process, and are not merged with `process.env`.
341
- * @since v25.6.0
342
- * @default process.env
343
- */
344
- env?: NodeJS.ProcessEnv | undefined;
345
- }
346
- interface TestsStreamEventMap extends ReadableEventMap {
347
- "data": [data: TestEvent];
348
- "test:coverage": [data: EventData.TestCoverage];
349
- "test:complete": [data: EventData.TestComplete];
350
- "test:dequeue": [data: EventData.TestDequeue];
351
- "test:diagnostic": [data: EventData.TestDiagnostic];
352
- "test:enqueue": [data: EventData.TestEnqueue];
353
- "test:fail": [data: EventData.TestFail];
354
- "test:interrupted": [data: EventData.TestInterrupted];
355
- "test:pass": [data: EventData.TestPass];
356
- "test:plan": [data: EventData.TestPlan];
357
- "test:start": [data: EventData.TestStart];
358
- "test:stderr": [data: EventData.TestStderr];
359
- "test:stdout": [data: EventData.TestStdout];
360
- "test:summary": [data: EventData.TestSummary];
361
- "test:watch:drained": [];
362
- "test:watch:restarted": [];
363
- }
364
- /**
365
- * A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests.
366
- *
367
- * Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute.
368
- * @since v18.9.0, v16.19.0
369
- */
370
- interface TestsStream extends Readable {
371
- // #region InternalEventEmitter
372
- addListener<E extends keyof TestsStreamEventMap>(
373
- eventName: E,
374
- listener: (...args: TestsStreamEventMap[E]) => void,
375
- ): this;
376
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
377
- emit<E extends keyof TestsStreamEventMap>(eventName: E, ...args: TestsStreamEventMap[E]): boolean;
378
- emit(eventName: string | symbol, ...args: any[]): boolean;
379
- listenerCount<E extends keyof TestsStreamEventMap>(
380
- eventName: E,
381
- listener?: (...args: TestsStreamEventMap[E]) => void,
382
- ): number;
383
- listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
384
- listeners<E extends keyof TestsStreamEventMap>(eventName: E): ((...args: TestsStreamEventMap[E]) => void)[];
385
- listeners(eventName: string | symbol): ((...args: any[]) => void)[];
386
- off<E extends keyof TestsStreamEventMap>(
387
- eventName: E,
388
- listener: (...args: TestsStreamEventMap[E]) => void,
389
- ): this;
390
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
391
- on<E extends keyof TestsStreamEventMap>(
392
- eventName: E,
393
- listener: (...args: TestsStreamEventMap[E]) => void,
394
- ): this;
395
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
396
- once<E extends keyof TestsStreamEventMap>(
397
- eventName: E,
398
- listener: (...args: TestsStreamEventMap[E]) => void,
399
- ): this;
400
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
401
- prependListener<E extends keyof TestsStreamEventMap>(
402
- eventName: E,
403
- listener: (...args: TestsStreamEventMap[E]) => void,
404
- ): this;
405
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
406
- prependOnceListener<E extends keyof TestsStreamEventMap>(
407
- eventName: E,
408
- listener: (...args: TestsStreamEventMap[E]) => void,
409
- ): this;
410
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
411
- rawListeners<E extends keyof TestsStreamEventMap>(
412
- eventName: E,
413
- ): ((...args: TestsStreamEventMap[E]) => void)[];
414
- rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
415
- // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
416
- removeAllListeners<E extends keyof TestsStreamEventMap>(eventName?: E): this;
417
- removeAllListeners(eventName?: string | symbol): this;
418
- removeListener<E extends keyof TestsStreamEventMap>(
419
- eventName: E,
420
- listener: (...args: TestsStreamEventMap[E]) => void,
421
- ): this;
422
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
423
- // #endregion
424
- }
425
- namespace EventData {
426
- interface Error extends globalThis.Error {
427
- cause: unknown;
428
- }
429
- interface LocationInfo {
430
- /**
431
- * The column number where the test is defined, or
432
- * `undefined` if the test was run through the REPL.
433
- */
434
- column?: number;
435
- /**
436
- * The path of the test file, `undefined` if test was run through the REPL.
437
- */
438
- file?: string;
439
- /**
440
- * The line number where the test is defined, or `undefined` if the test was run through the REPL.
441
- */
442
- line?: number;
443
- }
444
- interface TestDiagnostic extends LocationInfo {
445
- /**
446
- * The diagnostic message.
447
- */
448
- message: string;
449
- /**
450
- * The nesting level of the test.
451
- */
452
- nesting: number;
453
- /**
454
- * The severity level of the diagnostic message.
455
- * Possible values are:
456
- * * `'info'`: Informational messages.
457
- * * `'warn'`: Warnings.
458
- * * `'error'`: Errors.
459
- */
460
- level: "info" | "warn" | "error";
461
- }
462
- interface TestCoverage {
463
- /**
464
- * An object containing the coverage report.
465
- */
466
- summary: {
467
- /**
468
- * An array of coverage reports for individual files.
469
- */
470
- files: Array<{
471
- /**
472
- * The absolute path of the file.
473
- */
474
- path: string;
475
- /**
476
- * The total number of lines.
477
- */
478
- totalLineCount: number;
479
- /**
480
- * The total number of branches.
481
- */
482
- totalBranchCount: number;
483
- /**
484
- * The total number of functions.
485
- */
486
- totalFunctionCount: number;
487
- /**
488
- * The number of covered lines.
489
- */
490
- coveredLineCount: number;
491
- /**
492
- * The number of covered branches.
493
- */
494
- coveredBranchCount: number;
495
- /**
496
- * The number of covered functions.
497
- */
498
- coveredFunctionCount: number;
499
- /**
500
- * The percentage of lines covered.
501
- */
502
- coveredLinePercent: number;
503
- /**
504
- * The percentage of branches covered.
505
- */
506
- coveredBranchPercent: number;
507
- /**
508
- * The percentage of functions covered.
509
- */
510
- coveredFunctionPercent: number;
511
- /**
512
- * An array of functions representing function coverage.
513
- */
514
- functions: Array<{
515
- /**
516
- * The name of the function.
517
- */
518
- name: string;
519
- /**
520
- * The line number where the function is defined.
521
- */
522
- line: number;
523
- /**
524
- * The number of times the function was called.
525
- */
526
- count: number;
527
- }>;
528
- /**
529
- * An array of branches representing branch coverage.
530
- */
531
- branches: Array<{
532
- /**
533
- * The line number where the branch is defined.
534
- */
535
- line: number;
536
- /**
537
- * The number of times the branch was taken.
538
- */
539
- count: number;
540
- }>;
541
- /**
542
- * An array of lines representing line numbers and the number of times they were covered.
543
- */
544
- lines: Array<{
545
- /**
546
- * The line number.
547
- */
548
- line: number;
549
- /**
550
- * The number of times the line was covered.
551
- */
552
- count: number;
553
- }>;
554
- }>;
555
- /**
556
- * An object containing whether or not the coverage for
557
- * each coverage type.
558
- * @since v22.9.0
559
- */
560
- thresholds: {
561
- /**
562
- * The function coverage threshold.
563
- */
564
- function: number;
565
- /**
566
- * The branch coverage threshold.
567
- */
568
- branch: number;
569
- /**
570
- * The line coverage threshold.
571
- */
572
- line: number;
573
- };
574
- /**
575
- * An object containing a summary of coverage for all files.
576
- */
577
- totals: {
578
- /**
579
- * The total number of lines.
580
- */
581
- totalLineCount: number;
582
- /**
583
- * The total number of branches.
584
- */
585
- totalBranchCount: number;
586
- /**
587
- * The total number of functions.
588
- */
589
- totalFunctionCount: number;
590
- /**
591
- * The number of covered lines.
592
- */
593
- coveredLineCount: number;
594
- /**
595
- * The number of covered branches.
596
- */
597
- coveredBranchCount: number;
598
- /**
599
- * The number of covered functions.
600
- */
601
- coveredFunctionCount: number;
602
- /**
603
- * The percentage of lines covered.
604
- */
605
- coveredLinePercent: number;
606
- /**
607
- * The percentage of branches covered.
608
- */
609
- coveredBranchPercent: number;
610
- /**
611
- * The percentage of functions covered.
612
- */
613
- coveredFunctionPercent: number;
614
- };
615
- /**
616
- * The working directory when code coverage began. This
617
- * is useful for displaying relative path names in case
618
- * the tests changed the working directory of the Node.js process.
619
- */
620
- workingDirectory: string;
621
- };
622
- /**
623
- * The nesting level of the test.
624
- */
625
- nesting: number;
626
- }
627
- interface TestComplete extends LocationInfo {
628
- /**
629
- * Additional execution metadata.
630
- */
631
- details: {
632
- /**
633
- * Whether the test passed or not.
634
- */
635
- passed: boolean;
636
- /**
637
- * The duration of the test in milliseconds.
638
- */
639
- duration_ms: number;
640
- /**
641
- * An error wrapping the error thrown by the test if it did not pass.
642
- */
643
- error?: Error;
644
- /**
645
- * The type of the test, used to denote whether this is a suite.
646
- */
647
- type?: "suite" | "test";
648
- };
649
- /**
650
- * The test name.
651
- */
652
- name: string;
653
- /**
654
- * The nesting level of the test.
655
- */
656
- nesting: number;
657
- /**
658
- * The ordinal number of the test.
659
- */
660
- testNumber: number;
661
- /**
662
- * Present if `context.todo` is called.
663
- */
664
- todo?: string | boolean;
665
- /**
666
- * Present if `context.skip` is called.
667
- */
668
- skip?: string | boolean;
669
- }
670
- interface TestDequeue extends LocationInfo {
671
- /**
672
- * The test name.
673
- */
674
- name: string;
675
- /**
676
- * The nesting level of the test.
677
- */
678
- nesting: number;
679
- /**
680
- * The test type. Either `'suite'` or `'test'`.
681
- * @since v22.15.0
682
- */
683
- type: "suite" | "test";
684
- }
685
- interface TestEnqueue extends LocationInfo {
686
- /**
687
- * The test name.
688
- */
689
- name: string;
690
- /**
691
- * The nesting level of the test.
692
- */
693
- nesting: number;
694
- /**
695
- * The test type. Either `'suite'` or `'test'`.
696
- * @since v22.15.0
697
- */
698
- type: "suite" | "test";
699
- }
700
- interface TestFail extends LocationInfo {
701
- /**
702
- * Additional execution metadata.
703
- */
704
- details: {
705
- /**
706
- * The duration of the test in milliseconds.
707
- */
708
- duration_ms: number;
709
- /**
710
- * An error wrapping the error thrown by the test.
711
- */
712
- error: Error;
713
- /**
714
- * The type of the test, used to denote whether this is a suite.
715
- * @since v20.0.0, v19.9.0, v18.17.0
716
- */
717
- type?: "suite" | "test";
718
- /**
719
- * The attempt number of the test run,
720
- * present only when using the `--test-rerun-failures` flag.
721
- * @since v24.7.0
722
- */
723
- attempt?: number;
724
- };
725
- /**
726
- * The test name.
727
- */
728
- name: string;
729
- /**
730
- * The nesting level of the test.
731
- */
732
- nesting: number;
733
- /**
734
- * The ordinal number of the test.
735
- */
736
- testNumber: number;
737
- /**
738
- * Present if `context.todo` is called.
739
- */
740
- todo?: string | boolean;
741
- /**
742
- * Present if `context.skip` is called.
743
- */
744
- skip?: string | boolean;
745
- }
746
- interface TestInterrupted {
747
- /**
748
- * An array of objects containing information about the
749
- * interrupted tests.
750
- */
751
- tests: TestStart[];
752
- }
753
- interface TestPass extends LocationInfo {
754
- /**
755
- * Additional execution metadata.
756
- */
757
- details: {
758
- /**
759
- * The duration of the test in milliseconds.
760
- */
761
- duration_ms: number;
762
- /**
763
- * The type of the test, used to denote whether this is a suite.
764
- * @since 20.0.0, 19.9.0, 18.17.0
765
- */
766
- type?: "suite" | "test";
767
- /**
768
- * The attempt number of the test run,
769
- * present only when using the `--test-rerun-failures` flag.
770
- * @since v24.7.0
771
- */
772
- attempt?: number;
773
- /**
774
- * The attempt number the test passed on,
775
- * present only when using the `--test-rerun-failures` flag.
776
- * @since v24.7.0
777
- */
778
- passed_on_attempt?: number;
779
- };
780
- /**
781
- * The test name.
782
- */
783
- name: string;
784
- /**
785
- * The nesting level of the test.
786
- */
787
- nesting: number;
788
- /**
789
- * The ordinal number of the test.
790
- */
791
- testNumber: number;
792
- /**
793
- * Present if `context.todo` is called.
794
- */
795
- todo?: string | boolean;
796
- /**
797
- * Present if `context.skip` is called.
798
- */
799
- skip?: string | boolean;
800
- }
801
- interface TestPlan extends LocationInfo {
802
- /**
803
- * The nesting level of the test.
804
- */
805
- nesting: number;
806
- /**
807
- * The number of subtests that have ran.
808
- */
809
- count: number;
810
- }
811
- interface TestStart extends LocationInfo {
812
- /**
813
- * The test name.
814
- */
815
- name: string;
816
- /**
817
- * The nesting level of the test.
818
- */
819
- nesting: number;
820
- }
821
- interface TestStderr {
822
- /**
823
- * The path of the test file.
824
- */
825
- file: string;
826
- /**
827
- * The message written to `stderr`.
828
- */
829
- message: string;
830
- }
831
- interface TestStdout {
832
- /**
833
- * The path of the test file.
834
- */
835
- file: string;
836
- /**
837
- * The message written to `stdout`.
838
- */
839
- message: string;
840
- }
841
- interface TestSummary {
842
- /**
843
- * An object containing the counts of various test results.
844
- */
845
- counts: {
846
- /**
847
- * The total number of cancelled tests.
848
- */
849
- cancelled: number;
850
- /**
851
- * The total number of passed tests.
852
- */
853
- passed: number;
854
- /**
855
- * The total number of skipped tests.
856
- */
857
- skipped: number;
858
- /**
859
- * The total number of suites run.
860
- */
861
- suites: number;
862
- /**
863
- * The total number of tests run, excluding suites.
864
- */
865
- tests: number;
866
- /**
867
- * The total number of TODO tests.
868
- */
869
- todo: number;
870
- /**
871
- * The total number of top level tests and suites.
872
- */
873
- topLevel: number;
874
- };
875
- /**
876
- * The duration of the test run in milliseconds.
877
- */
878
- duration_ms: number;
879
- /**
880
- * The path of the test file that generated the
881
- * summary. If the summary corresponds to multiple files, this value is
882
- * `undefined`.
883
- */
884
- file: string | undefined;
885
- /**
886
- * Indicates whether or not the test run is considered
887
- * successful or not. If any error condition occurs, such as a failing test or
888
- * unmet coverage threshold, this value will be set to `false`.
889
- */
890
- success: boolean;
891
- }
892
- }
893
- /**
894
- * An instance of `TestContext` is passed to each test function in order to
895
- * interact with the test runner. However, the `TestContext` constructor is not
896
- * exposed as part of the API.
897
- * @since v18.0.0, v16.17.0
898
- */
899
- interface TestContext {
900
- /**
901
- * An object containing assertion methods bound to the test context.
902
- * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
903
- *
904
- * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the
905
- * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed**
906
- * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler:
907
- * ```ts
908
- * import { test, type TestContext } from 'node:test';
909
- *
910
- * // The test function's context parameter must have a type annotation.
911
- * test('example', (t: TestContext) => {
912
- * t.assert.deepStrictEqual(actual, expected);
913
- * });
914
- *
915
- * // Omitting the type annotation will result in a compilation error.
916
- * test('example', t => {
917
- * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
918
- * });
919
- * ```
920
- * @since v22.2.0, v20.15.0
921
- */
922
- readonly assert: TestContextAssert;
923
- /**
924
- * This function is used to create a hook running before subtest of the current test.
925
- * @param fn The hook function. The first argument to this function is a `TestContext` object.
926
- * If the hook uses callbacks, the callback function is passed as the second argument.
927
- * @param options Configuration options for the hook.
928
- * @since v20.1.0, v18.17.0
929
- */
930
- before(fn?: TestContextHookFn, options?: HookOptions): void;
931
- /**
932
- * This function is used to create a hook running before each subtest of the current test.
933
- * @param fn The hook function. The first argument to this function is a `TestContext` object.
934
- * If the hook uses callbacks, the callback function is passed as the second argument.
935
- * @param options Configuration options for the hook.
936
- * @since v18.8.0
937
- */
938
- beforeEach(fn?: TestContextHookFn, options?: HookOptions): void;
939
- /**
940
- * This function is used to create a hook that runs after the current test finishes.
941
- * @param fn The hook function. The first argument to this function is a `TestContext` object.
942
- * If the hook uses callbacks, the callback function is passed as the second argument.
943
- * @param options Configuration options for the hook.
944
- * @since v18.13.0
945
- */
946
- after(fn?: TestContextHookFn, options?: HookOptions): void;
947
- /**
948
- * This function is used to create a hook running after each subtest of the current test.
949
- * @param fn The hook function. The first argument to this function is a `TestContext` object.
950
- * If the hook uses callbacks, the callback function is passed as the second argument.
951
- * @param options Configuration options for the hook.
952
- * @since v18.8.0
953
- */
954
- afterEach(fn?: TestContextHookFn, options?: HookOptions): void;
955
- /**
956
- * This function is used to write diagnostics to the output. Any diagnostic
957
- * information is included at the end of the test's results. This function does
958
- * not return a value.
959
- *
960
- * ```js
961
- * test('top level test', (t) => {
962
- * t.diagnostic('A diagnostic message');
963
- * });
964
- * ```
965
- * @since v18.0.0, v16.17.0
966
- * @param message Message to be reported.
967
- */
968
- diagnostic(message: string): void;
969
- /**
970
- * The absolute path of the test file that created the current test. If a test file imports
971
- * additional modules that generate tests, the imported tests will return the path of the root test file.
972
- * @since v22.6.0
973
- */
974
- readonly filePath: string | undefined;
975
- /**
976
- * The name of the test and each of its ancestors, separated by `>`.
977
- * @since v22.3.0
978
- */
979
- readonly fullName: string;
980
- /**
981
- * The name of the test.
982
- * @since v18.8.0, v16.18.0
983
- */
984
- readonly name: string;
985
- /**
986
- * Indicated whether the test succeeded.
987
- * @since v21.7.0, v20.12.0
988
- */
989
- readonly passed: boolean;
990
- /**
991
- * The failure reason for the test/case; wrapped and available via `context.error.cause`.
992
- * @since v21.7.0, v20.12.0
993
- */
994
- readonly error: EventData.Error | null;
995
- /**
996
- * Number of times the test has been attempted.
997
- * @since v21.7.0, v20.12.0
998
- */
999
- readonly attempt: number;
1000
- /**
1001
- * The unique identifier of the worker running the current test file. This value is
1002
- * derived from the `NODE_TEST_WORKER_ID` environment variable. When running tests
1003
- * with `--test-isolation=process` (the default), each test file runs in a separate
1004
- * child process and is assigned a worker ID from 1 to N, where N is the number of
1005
- * concurrent workers. When running with `--test-isolation=none`, all tests run in
1006
- * the same process and the worker ID is always 1. This value is `undefined` when
1007
- * not running in a test context.
1008
- *
1009
- * This property is useful for splitting resources (like database connections or
1010
- * server ports) across concurrent test files:
1011
- *
1012
- * ```js
1013
- * import { test } from 'node:test';
1014
- * import { process } from 'node:process';
1015
- *
1016
- * test('database operations', async (t) => {
1017
- * // Worker ID is available via context
1018
- * console.log(`Running in worker ${t.workerId}`);
1019
- *
1020
- * // Or via environment variable (available at import time)
1021
- * const workerId = process.env.NODE_TEST_WORKER_ID;
1022
- * // Use workerId to allocate separate resources per worker
1023
- * });
1024
- * ```
1025
- * @since v25.8.0
1026
- */
1027
- readonly workerId: number | undefined;
1028
- /**
1029
- * This function is used to set the number of assertions and subtests that are expected to run
1030
- * within the test. If the number of assertions and subtests that run does not match the
1031
- * expected count, the test will fail.
1032
- *
1033
- * > Note: To make sure assertions are tracked, `t.assert` must be used instead of `assert` directly.
1034
- *
1035
- * ```js
1036
- * test('top level test', (t) => {
1037
- * t.plan(2);
1038
- * t.assert.ok('some relevant assertion here');
1039
- * t.test('subtest', () => {});
1040
- * });
1041
- * ```
1042
- *
1043
- * When working with asynchronous code, the `plan` function can be used to ensure that the
1044
- * correct number of assertions are run:
1045
- *
1046
- * ```js
1047
- * test('planning with streams', (t, done) => {
1048
- * function* generate() {
1049
- * yield 'a';
1050
- * yield 'b';
1051
- * yield 'c';
1052
- * }
1053
- * const expected = ['a', 'b', 'c'];
1054
- * t.plan(expected.length);
1055
- * const stream = Readable.from(generate());
1056
- * stream.on('data', (chunk) => {
1057
- * t.assert.strictEqual(chunk, expected.shift());
1058
- * });
1059
- *
1060
- * stream.on('end', () => {
1061
- * done();
1062
- * });
1063
- * });
1064
- * ```
1065
- *
1066
- * When using the `wait` option, you can control how long the test will wait for the expected assertions.
1067
- * For example, setting a maximum wait time ensures that the test will wait for asynchronous assertions
1068
- * to complete within the specified timeframe:
1069
- *
1070
- * ```js
1071
- * test('plan with wait: 2000 waits for async assertions', (t) => {
1072
- * t.plan(1, { wait: 2000 }); // Waits for up to 2 seconds for the assertion to complete.
1073
- *
1074
- * const asyncActivity = () => {
1075
- * setTimeout(() => {
1076
- * * t.assert.ok(true, 'Async assertion completed within the wait time');
1077
- * }, 1000); // Completes after 1 second, within the 2-second wait time.
1078
- * };
1079
- *
1080
- * asyncActivity(); // The test will pass because the assertion is completed in time.
1081
- * });
1082
- * ```
1083
- *
1084
- * Note: If a `wait` timeout is specified, it begins counting down only after the test function finishes executing.
1085
- * @since v22.2.0
1086
- */
1087
- plan(count: number, options?: TestContextPlanOptions): void;
1088
- /**
1089
- * If `shouldRunOnlyTests` is truthy, the test context will only run tests that
1090
- * have the `only` option set. Otherwise, all tests are run. If Node.js was not
1091
- * started with the `--test-only` command-line option, this function is a
1092
- * no-op.
1093
- *
1094
- * ```js
1095
- * test('top level test', (t) => {
1096
- * // The test context can be set to run subtests with the 'only' option.
1097
- * t.runOnly(true);
1098
- * return Promise.all([
1099
- * t.test('this subtest is now skipped'),
1100
- * t.test('this subtest is run', { only: true }),
1101
- * ]);
1102
- * });
1103
- * ```
1104
- * @since v18.0.0, v16.17.0
1105
- * @param shouldRunOnlyTests Whether or not to run `only` tests.
1106
- */
1107
- runOnly(shouldRunOnlyTests: boolean): void;
1108
- /**
1109
- * ```js
1110
- * test('top level test', async (t) => {
1111
- * await fetch('some/uri', { signal: t.signal });
1112
- * });
1113
- * ```
1114
- * @since v18.7.0, v16.17.0
1115
- */
1116
- readonly signal: AbortSignal;
1117
- /**
1118
- * This function causes the test's output to indicate the test as skipped. If `message` is provided, it is included in the output. Calling `skip()` does
1119
- * not terminate execution of the test function. This function does not return a
1120
- * value.
1121
- *
1122
- * ```js
1123
- * test('top level test', (t) => {
1124
- * // Make sure to return here as well if the test contains additional logic.
1125
- * t.skip('this is skipped');
1126
- * });
1127
- * ```
1128
- * @since v18.0.0, v16.17.0
1129
- * @param message Optional skip message.
1130
- */
1131
- skip(message?: string): void;
1132
- /**
1133
- * This function adds a `TODO` directive to the test's output. If `message` is
1134
- * provided, it is included in the output. Calling `todo()` does not terminate
1135
- * execution of the test function. This function does not return a value.
1136
- *
1137
- * ```js
1138
- * test('top level test', (t) => {
1139
- * // This test is marked as `TODO`
1140
- * t.todo('this is a todo');
1141
- * });
1142
- * ```
1143
- * @since v18.0.0, v16.17.0
1144
- * @param message Optional `TODO` message.
1145
- */
1146
- todo(message?: string): void;
1147
- /**
1148
- * This function is used to create subtests under the current test. This function behaves in
1149
- * the same fashion as the top level {@link test} function.
1150
- * @since v18.0.0
1151
- * @param name The name of the test, which is displayed when reporting test results.
1152
- * Defaults to the `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
1153
- * @param options Configuration options for the test.
1154
- * @param fn The function under test. This first argument to this function is a {@link TestContext} object.
1155
- * If the test uses callbacks, the callback function is passed as the second argument.
1156
- * @returns A {@link Promise} resolved with `undefined` once the test completes.
1157
- */
1158
- test: typeof test;
1159
- /**
1160
- * This method polls a `condition` function until that function either returns
1161
- * successfully or the operation times out.
1162
- * @since v22.14.0
1163
- * @param condition An assertion function that is invoked
1164
- * periodically until it completes successfully or the defined polling timeout
1165
- * elapses. Successful completion is defined as not throwing or rejecting. This
1166
- * function does not accept any arguments, and is allowed to return any value.
1167
- * @param options An optional configuration object for the polling operation.
1168
- * @returns Fulfilled with the value returned by `condition`.
1169
- */
1170
- waitFor<T>(condition: () => T, options?: TestContextWaitForOptions): Promise<Awaited<T>>;
1171
- /**
1172
- * Each test provides its own MockTracker instance.
1173
- */
1174
- readonly mock: MockTracker;
1175
- }
1176
- interface TestContextAssert extends Pick<typeof import("assert"), AssertMethodNames> {
1177
- /**
1178
- * This function serializes `value` and writes it to the file specified by `path`.
1179
- *
1180
- * ```js
1181
- * test('snapshot test with default serialization', (t) => {
1182
- * t.assert.fileSnapshot({ value1: 1, value2: 2 }, './snapshots/snapshot.json');
1183
- * });
1184
- * ```
1185
- *
1186
- * This function differs from `context.assert.snapshot()` in the following ways:
1187
- *
1188
- * * The snapshot file path is explicitly provided by the user.
1189
- * * Each snapshot file is limited to a single snapshot value.
1190
- * * No additional escaping is performed by the test runner.
1191
- *
1192
- * These differences allow snapshot files to better support features such as syntax
1193
- * highlighting.
1194
- * @since v22.14.0
1195
- * @param value A value to serialize to a string. If Node.js was started with
1196
- * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--test-update-snapshots)
1197
- * flag, the serialized value is written to
1198
- * `path`. Otherwise, the serialized value is compared to the contents of the
1199
- * existing snapshot file.
1200
- * @param path The file where the serialized `value` is written.
1201
- * @param options Optional configuration options.
1202
- */
1203
- fileSnapshot(value: any, path: string, options?: AssertSnapshotOptions): void;
1204
- /**
1205
- * This function implements assertions for snapshot testing.
1206
- * ```js
1207
- * test('snapshot test with default serialization', (t) => {
1208
- * t.assert.snapshot({ value1: 1, value2: 2 });
1209
- * });
1210
- *
1211
- * test('snapshot test with custom serialization', (t) => {
1212
- * t.assert.snapshot({ value3: 3, value4: 4 }, {
1213
- * serializers: [(value) => JSON.stringify(value)]
1214
- * });
1215
- * });
1216
- * ```
1217
- * @since v22.3.0
1218
- * @param value A value to serialize to a string. If Node.js was started with
1219
- * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--test-update-snapshots)
1220
- * flag, the serialized value is written to
1221
- * the snapshot file. Otherwise, the serialized value is compared to the
1222
- * corresponding value in the existing snapshot file.
1223
- */
1224
- snapshot(value: any, options?: AssertSnapshotOptions): void;
1225
- /**
1226
- * A custom assertion function registered with `assert.register()`.
1227
- */
1228
- [name: string]: (...args: any[]) => void;
1229
- }
1230
- interface AssertSnapshotOptions {
1231
- /**
1232
- * An array of synchronous functions used to serialize `value` into a string.
1233
- * `value` is passed as the only argument to the first serializer function.
1234
- * The return value of each serializer is passed as input to the next serializer.
1235
- * Once all serializers have run, the resulting value is coerced to a string.
1236
- *
1237
- * If no serializers are provided, the test runner's default serializers are used.
1238
- */
1239
- serializers?: ReadonlyArray<(value: any) => any> | undefined;
1240
- }
1241
- interface TestContextPlanOptions {
1242
- /**
1243
- * The wait time for the plan:
1244
- * * If `true`, the plan waits indefinitely for all assertions and subtests to run.
1245
- * * If `false`, the plan performs an immediate check after the test function completes,
1246
- * without waiting for any pending assertions or subtests.
1247
- * Any assertions or subtests that complete after this check will not be counted towards the plan.
1248
- * * If a number, it specifies the maximum wait time in milliseconds
1249
- * before timing out while waiting for expected assertions and subtests to be matched.
1250
- * If the timeout is reached, the test will fail.
1251
- * @default false
1252
- */
1253
- wait?: boolean | number | undefined;
1254
- }
1255
- interface TestContextWaitForOptions {
1256
- /**
1257
- * The number of milliseconds to wait after an unsuccessful
1258
- * invocation of `condition` before trying again.
1259
- * @default 50
1260
- */
1261
- interval?: number | undefined;
1262
- /**
1263
- * The poll timeout in milliseconds. If `condition` has not
1264
- * succeeded by the time this elapses, an error occurs.
1265
- * @default 1000
1266
- */
1267
- timeout?: number | undefined;
1268
- }
1269
- /**
1270
- * An instance of `SuiteContext` is passed to each suite function in order to
1271
- * interact with the test runner. However, the `SuiteContext` constructor is not
1272
- * exposed as part of the API.
1273
- * @since v18.7.0, v16.17.0
1274
- */
1275
- interface SuiteContext {
1276
- /**
1277
- * The absolute path of the test file that created the current suite. If a test file imports
1278
- * additional modules that generate suites, the imported suites will return the path of the root test file.
1279
- * @since v22.6.0
1280
- */
1281
- readonly filePath: string | undefined;
1282
- /**
1283
- * The name of the suite and each of its ancestors, separated by `>`.
1284
- * @since v22.3.0, v20.16.0
1285
- */
1286
- readonly fullName: string;
1287
- /**
1288
- * The name of the suite.
1289
- * @since v18.8.0, v16.18.0
1290
- */
1291
- readonly name: string;
1292
- /**
1293
- * Can be used to abort test subtasks when the test has been aborted.
1294
- * @since v18.7.0, v16.17.0
1295
- */
1296
- readonly signal: AbortSignal;
1297
- }
1298
- interface TestOptions {
1299
- /**
1300
- * If a number is provided, then that many tests would run in parallel.
1301
- * If truthy, it would run (number of cpu cores - 1) tests in parallel.
1302
- * For subtests, it will be `Infinity` tests in parallel.
1303
- * If falsy, it would only run one test at a time.
1304
- * If unspecified, subtests inherit this value from their parent.
1305
- * @default false
1306
- */
1307
- concurrency?: number | boolean | undefined;
1308
- /**
1309
- * If truthy, the test is expected to fail. If a non-empty string is provided, that string is displayed
1310
- * in the test results as the reason why the test is expected to fail. If a
1311
- * `RegExp`, `Function`, `Object`, or `Error` is provided directly (without wrapping in `{ match: … }`), the test passes
1312
- * only if the thrown error matches, following the behavior of
1313
- * `assert.throws`. To provide both a reason and validation, pass an object
1314
- * with `label` (string) and `match` (RegExp, Function, Object, or Error).
1315
- * @since v25.5.0
1316
- * @default false
1317
- */
1318
- expectFailure?: boolean | string | AssertPredicate | undefined;
1319
- /**
1320
- * If truthy, and the test context is configured to run `only` tests, then this test will be
1321
- * run. Otherwise, the test is skipped.
1322
- * @default false
1323
- */
1324
- only?: boolean | undefined;
1325
- /**
1326
- * Allows aborting an in-progress test.
1327
- * @since v18.8.0
1328
- */
1329
- signal?: AbortSignal | undefined;
1330
- /**
1331
- * If truthy, the test is skipped. If a string is provided, that string is displayed in the
1332
- * test results as the reason for skipping the test.
1333
- * @default false
1334
- */
1335
- skip?: boolean | string | undefined;
1336
- /**
1337
- * A number of milliseconds the test will fail after. If unspecified, subtests inherit this
1338
- * value from their parent.
1339
- * @default Infinity
1340
- * @since v18.7.0
1341
- */
1342
- timeout?: number | undefined;
1343
- /**
1344
- * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in
1345
- * the test results as the reason why the test is `TODO`.
1346
- * @default false
1347
- */
1348
- todo?: boolean | string | undefined;
1349
- /**
1350
- * The number of assertions and subtests expected to be run in the test.
1351
- * If the number of assertions run in the test does not match the number
1352
- * specified in the plan, the test will fail.
1353
- * @default undefined
1354
- * @since v22.2.0
1355
- */
1356
- plan?: number | undefined;
1357
- }
1358
- /**
1359
- * This function creates a hook that runs before executing a suite.
1360
- *
1361
- * ```js
1362
- * describe('tests', async () => {
1363
- * before(() => console.log('about to run some test'));
1364
- * it('is a subtest', () => {
1365
- * // Some relevant assertion here
1366
- * });
1367
- * });
1368
- * ```
1369
- * @since v18.8.0, v16.18.0
1370
- * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
1371
- * @param options Configuration options for the hook.
1372
- */
1373
- function before(fn?: HookFn, options?: HookOptions): void;
1374
- /**
1375
- * This function creates a hook that runs after executing a suite.
1376
- *
1377
- * ```js
1378
- * describe('tests', async () => {
1379
- * after(() => console.log('finished running tests'));
1380
- * it('is a subtest', () => {
1381
- * // Some relevant assertion here
1382
- * });
1383
- * });
1384
- * ```
1385
- * @since v18.8.0, v16.18.0
1386
- * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
1387
- * @param options Configuration options for the hook.
1388
- */
1389
- function after(fn?: HookFn, options?: HookOptions): void;
1390
- /**
1391
- * This function creates a hook that runs before each test in the current suite.
1392
- *
1393
- * ```js
1394
- * describe('tests', async () => {
1395
- * beforeEach(() => console.log('about to run a test'));
1396
- * it('is a subtest', () => {
1397
- * // Some relevant assertion here
1398
- * });
1399
- * });
1400
- * ```
1401
- * @since v18.8.0, v16.18.0
1402
- * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
1403
- * @param options Configuration options for the hook.
1404
- */
1405
- function beforeEach(fn?: HookFn, options?: HookOptions): void;
1406
- /**
1407
- * This function creates a hook that runs after each test in the current suite.
1408
- * The `afterEach()` hook is run even if the test fails.
1409
- *
1410
- * ```js
1411
- * describe('tests', async () => {
1412
- * afterEach(() => console.log('finished running a test'));
1413
- * it('is a subtest', () => {
1414
- * // Some relevant assertion here
1415
- * });
1416
- * });
1417
- * ```
1418
- * @since v18.8.0, v16.18.0
1419
- * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument.
1420
- * @param options Configuration options for the hook.
1421
- */
1422
- function afterEach(fn?: HookFn, options?: HookOptions): void;
1423
- /**
1424
- * The hook function. The first argument is the context in which the hook is called.
1425
- * If the hook uses callbacks, the callback function is passed as the second argument.
1426
- */
1427
- type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any;
1428
- /**
1429
- * The hook function. The first argument is a `TestContext` object.
1430
- * If the hook uses callbacks, the callback function is passed as the second argument.
1431
- */
1432
- type TestContextHookFn = (t: TestContext, done: (result?: any) => void) => any;
1433
- /**
1434
- * Configuration options for hooks.
1435
- * @since v18.8.0
1436
- */
1437
- interface HookOptions {
1438
- /**
1439
- * Allows aborting an in-progress hook.
1440
- */
1441
- signal?: AbortSignal | undefined;
1442
- /**
1443
- * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
1444
- * value from their parent.
1445
- * @default Infinity
1446
- */
1447
- timeout?: number | undefined;
1448
- }
1449
- interface MockFunctionOptions {
1450
- /**
1451
- * The number of times that the mock will use the behavior of `implementation`.
1452
- * Once the mock function has been called `times` times,
1453
- * it will automatically restore the behavior of `original`.
1454
- * This value must be an integer greater than zero.
1455
- * @default Infinity
1456
- */
1457
- times?: number | undefined;
1458
- }
1459
- interface MockMethodOptions extends MockFunctionOptions {
1460
- /**
1461
- * If `true`, `object[methodName]` is treated as a getter.
1462
- * This option cannot be used with the `setter` option.
1463
- */
1464
- getter?: boolean | undefined;
1465
- /**
1466
- * If `true`, `object[methodName]` is treated as a setter.
1467
- * This option cannot be used with the `getter` option.
1468
- */
1469
- setter?: boolean | undefined;
1470
- }
1471
- type Mock<F extends Function> = F & {
1472
- mock: MockFunctionContext<F>;
1473
- };
1474
- interface MockModuleOptions {
1475
- /**
1476
- * If false, each call to `require()` or `import()` generates a new mock module.
1477
- * If true, subsequent calls will return the same module mock, and the mock module is inserted into the CommonJS cache.
1478
- * @default false
1479
- */
1480
- cache?: boolean | undefined;
1481
- /**
1482
- * Optional mocked exports. The `default` property, if
1483
- * provided, is used as the mocked module's default export. All other own
1484
- * enumerable properties are used as named exports.
1485
- * **This option cannot be used with `defaultExport` or `namedExports`.**
1486
- * * If the mock is a CommonJS or builtin module, `exports.default` is used as
1487
- * the value of `module.exports`.
1488
- * * If `exports.default` is not provided for a CommonJS or builtin mock,
1489
- * `module.exports` defaults to an empty object.
1490
- * * If named exports are provided with a non-object default export, the mock
1491
- * throws an exception when used as a CommonJS or builtin module.
1492
- */
1493
- exports?: object | undefined;
1494
- /**
1495
- * An optional value used as the mocked module's default
1496
- * export. If this value is not provided, ESM mocks do not include a default
1497
- * export. If the mock is a CommonJS or builtin module, this setting is used as
1498
- * the value of `module.exports`. If this value is not provided, CJS and builtin
1499
- * mocks use an empty object as the value of `module.exports`.
1500
- * **This option cannot be used with `options.exports`.**
1501
- * This option is deprecated and will be removed in a later version.
1502
- * Prefer `options.exports.default`.
1503
- * @deprecated
1504
- */
1505
- defaultExport?: any;
1506
- /**
1507
- * An optional object whose keys and values are used to
1508
- * create the named exports of the mock module. If the mock is a CommonJS or
1509
- * builtin module, these values are copied onto `module.exports`. Therefore, if a
1510
- * mock is created with both named exports and a non-object default export, the
1511
- * mock will throw an exception when used as a CJS or builtin module.
1512
- * **This option cannot be used with `options.exports`.**
1513
- * This option is deprecated and will be removed in a later version.
1514
- * Prefer `options.exports`.
1515
- * @deprecated
1516
- */
1517
- namedExports?: object | undefined;
1518
- }
1519
- /**
1520
- * The `MockTracker` class is used to manage mocking functionality. The test runner
1521
- * module provides a top level `mock` export which is a `MockTracker` instance.
1522
- * Each test also provides its own `MockTracker` instance via the test context's `mock` property.
1523
- * @since v19.1.0, v18.13.0
1524
- */
1525
- interface MockTracker {
1526
- /**
1527
- * This function is used to create a mock function.
1528
- *
1529
- * The following example creates a mock function that increments a counter by one
1530
- * on each invocation. The `times` option is used to modify the mock behavior such
1531
- * that the first two invocations add two to the counter instead of one.
1532
- *
1533
- * ```js
1534
- * test('mocks a counting function', (t) => {
1535
- * let cnt = 0;
1536
- *
1537
- * function addOne() {
1538
- * cnt++;
1539
- * return cnt;
1540
- * }
1541
- *
1542
- * function addTwo() {
1543
- * cnt += 2;
1544
- * return cnt;
1545
- * }
1546
- *
1547
- * const fn = t.mock.fn(addOne, addTwo, { times: 2 });
1548
- *
1549
- * assert.strictEqual(fn(), 2);
1550
- * assert.strictEqual(fn(), 4);
1551
- * assert.strictEqual(fn(), 5);
1552
- * assert.strictEqual(fn(), 6);
1553
- * });
1554
- * ```
1555
- * @since v19.1.0, v18.13.0
1556
- * @param original An optional function to create a mock on.
1557
- * @param implementation An optional function used as the mock implementation for `original`. This is useful for creating mocks that exhibit one behavior for a specified number of calls and
1558
- * then restore the behavior of `original`.
1559
- * @param options Optional configuration options for the mock function.
1560
- * @return The mocked function. The mocked function contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the
1561
- * behavior of the mocked function.
1562
- */
1563
- fn<F extends Function = (...args: any[]) => undefined>(
1564
- original?: F,
1565
- options?: MockFunctionOptions,
1566
- ): Mock<F>;
1567
- fn<F extends Function = (...args: any[]) => undefined, Implementation extends Function = F>(
1568
- original?: F,
1569
- implementation?: Implementation,
1570
- options?: MockFunctionOptions,
1571
- ): Mock<F | Implementation>;
1572
- /**
1573
- * This function is used to create a mock on an existing object method. The
1574
- * following example demonstrates how a mock is created on an existing object
1575
- * method.
1576
- *
1577
- * ```js
1578
- * test('spies on an object method', (t) => {
1579
- * const number = {
1580
- * value: 5,
1581
- * subtract(a) {
1582
- * return this.value - a;
1583
- * },
1584
- * };
1585
- *
1586
- * t.mock.method(number, 'subtract');
1587
- * assert.strictEqual(number.subtract.mock.calls.length, 0);
1588
- * assert.strictEqual(number.subtract(3), 2);
1589
- * assert.strictEqual(number.subtract.mock.calls.length, 1);
1590
- *
1591
- * const call = number.subtract.mock.calls[0];
1592
- *
1593
- * assert.deepStrictEqual(call.arguments, [3]);
1594
- * assert.strictEqual(call.result, 2);
1595
- * assert.strictEqual(call.error, undefined);
1596
- * assert.strictEqual(call.target, undefined);
1597
- * assert.strictEqual(call.this, number);
1598
- * });
1599
- * ```
1600
- * @since v19.1.0, v18.13.0
1601
- * @param object The object whose method is being mocked.
1602
- * @param methodName The identifier of the method on `object` to mock. If `object[methodName]` is not a function, an error is thrown.
1603
- * @param implementation An optional function used as the mock implementation for `object[methodName]`.
1604
- * @param options Optional configuration options for the mock method.
1605
- * @return The mocked method. The mocked method contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the
1606
- * behavior of the mocked method.
1607
- */
1608
- method<
1609
- MockedObject extends object,
1610
- MethodName extends FunctionPropertyNames<MockedObject>,
1611
- >(
1612
- object: MockedObject,
1613
- methodName: MethodName,
1614
- options?: MockFunctionOptions,
1615
- ): MockedObject[MethodName] extends Function ? Mock<MockedObject[MethodName]>
1616
- : never;
1617
- method<
1618
- MockedObject extends object,
1619
- MethodName extends FunctionPropertyNames<MockedObject>,
1620
- Implementation extends Function,
1621
- >(
1622
- object: MockedObject,
1623
- methodName: MethodName,
1624
- implementation: Implementation,
1625
- options?: MockFunctionOptions,
1626
- ): MockedObject[MethodName] extends Function ? Mock<MockedObject[MethodName] | Implementation>
1627
- : never;
1628
- method<MockedObject extends object>(
1629
- object: MockedObject,
1630
- methodName: keyof MockedObject,
1631
- options: MockMethodOptions,
1632
- ): Mock<Function>;
1633
- method<MockedObject extends object>(
1634
- object: MockedObject,
1635
- methodName: keyof MockedObject,
1636
- implementation: Function,
1637
- options: MockMethodOptions,
1638
- ): Mock<Function>;
1639
- /**
1640
- * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`.
1641
- * @since v19.3.0, v18.13.0
1642
- */
1643
- getter<
1644
- MockedObject extends object,
1645
- MethodName extends keyof MockedObject,
1646
- >(
1647
- object: MockedObject,
1648
- methodName: MethodName,
1649
- options?: MockFunctionOptions,
1650
- ): Mock<() => MockedObject[MethodName]>;
1651
- getter<
1652
- MockedObject extends object,
1653
- MethodName extends keyof MockedObject,
1654
- Implementation extends Function,
1655
- >(
1656
- object: MockedObject,
1657
- methodName: MethodName,
1658
- implementation?: Implementation,
1659
- options?: MockFunctionOptions,
1660
- ): Mock<(() => MockedObject[MethodName]) | Implementation>;
1661
- /**
1662
- * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`.
1663
- * @since v19.3.0, v18.13.0
1664
- */
1665
- setter<
1666
- MockedObject extends object,
1667
- MethodName extends keyof MockedObject,
1668
- >(
1669
- object: MockedObject,
1670
- methodName: MethodName,
1671
- options?: MockFunctionOptions,
1672
- ): Mock<(value: MockedObject[MethodName]) => void>;
1673
- setter<
1674
- MockedObject extends object,
1675
- MethodName extends keyof MockedObject,
1676
- Implementation extends Function,
1677
- >(
1678
- object: MockedObject,
1679
- methodName: MethodName,
1680
- implementation?: Implementation,
1681
- options?: MockFunctionOptions,
1682
- ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>;
1683
- /**
1684
- * This function is used to mock the exports of ECMAScript modules, CommonJS modules, JSON modules, and
1685
- * Node.js builtin modules. Any references to the original module prior to mocking are not impacted. In
1686
- * order to enable module mocking, Node.js must be started with the
1687
- * [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--experimental-test-module-mocks)
1688
- * command-line flag.
1689
- *
1690
- * **Note**: [module customization hooks](https://nodejs.org/docs/latest-v26.x/api/module.html#customization-hooks) registered via the **synchronous** API effect resolution of
1691
- * the `specifier` provided to `mock.module`. Customization hooks registered via the **asynchronous**
1692
- * API are currently ignored (because the test runner's loader is synchronous, and node does not
1693
- * support multi-chain / cross-chain loading).
1694
- *
1695
- * The following example demonstrates how a mock is created for a module.
1696
- *
1697
- * ```js
1698
- * test('mocks a builtin module in both module systems', async (t) => {
1699
- * // Create a mock of 'node:readline' with a named export named 'foo', which
1700
- * // does not exist in the original 'node:readline' module.
1701
- * const mock = t.mock.module('node:readline', {
1702
- * exports: { foo: () => 42 },
1703
- * });
1704
- *
1705
- * let esmImpl = await import('node:readline');
1706
- * let cjsImpl = require('node:readline');
1707
- *
1708
- * // cursorTo() is an export of the original 'node:readline' module.
1709
- * assert.strictEqual(esmImpl.cursorTo, undefined);
1710
- * assert.strictEqual(cjsImpl.cursorTo, undefined);
1711
- * assert.strictEqual(esmImpl.fn(), 42);
1712
- * assert.strictEqual(cjsImpl.fn(), 42);
1713
- *
1714
- * mock.restore();
1715
- *
1716
- * // The mock is restored, so the original builtin module is returned.
1717
- * esmImpl = await import('node:readline');
1718
- * cjsImpl = require('node:readline');
1719
- *
1720
- * assert.strictEqual(typeof esmImpl.cursorTo, 'function');
1721
- * assert.strictEqual(typeof cjsImpl.cursorTo, 'function');
1722
- * assert.strictEqual(esmImpl.fn, undefined);
1723
- * assert.strictEqual(cjsImpl.fn, undefined);
1724
- * });
1725
- * ```
1726
- * @since v22.3.0
1727
- * @experimental
1728
- * @param specifier A string identifying the module to mock.
1729
- * @param options Optional configuration options for the mock module.
1730
- */
1731
- module(specifier: string | URL, options?: MockModuleOptions): MockModuleContext;
1732
- /**
1733
- * Creates a mock for a property value on an object. This allows you to track and control access to a specific property,
1734
- * including how many times it is read (getter) or written (setter), and to restore the original value after mocking.
1735
- *
1736
- * ```js
1737
- * test('mocks a property value', (t) => {
1738
- * const obj = { foo: 42 };
1739
- * const prop = t.mock.property(obj, 'foo', 100);
1740
- *
1741
- * assert.strictEqual(obj.foo, 100);
1742
- * assert.strictEqual(prop.mock.accessCount(), 1);
1743
- * assert.strictEqual(prop.mock.accesses[0].type, 'get');
1744
- * assert.strictEqual(prop.mock.accesses[0].value, 100);
1745
- *
1746
- * obj.foo = 200;
1747
- * assert.strictEqual(prop.mock.accessCount(), 2);
1748
- * assert.strictEqual(prop.mock.accesses[1].type, 'set');
1749
- * assert.strictEqual(prop.mock.accesses[1].value, 200);
1750
- *
1751
- * prop.mock.restore();
1752
- * assert.strictEqual(obj.foo, 42);
1753
- * });
1754
- * ```
1755
- * @since v24.3.0
1756
- * @param object The object whose value is being mocked.
1757
- * @param propertyName The identifier of the property on `object` to mock.
1758
- * @param value An optional value used as the mock value
1759
- * for `object[propertyName]`. **Default:** The original property value.
1760
- * @returns A proxy to the mocked object. The mocked object contains a
1761
- * special `mock` property, which is an instance of [`MockPropertyContext`][], and
1762
- * can be used for inspecting and changing the behavior of the mocked property.
1763
- */
1764
- property<
1765
- MockedObject extends object,
1766
- PropertyName extends keyof MockedObject,
1767
- >(
1768
- object: MockedObject,
1769
- property: PropertyName,
1770
- value?: MockedObject[PropertyName],
1771
- ): MockedObject & { mock: MockPropertyContext<MockedObject[PropertyName]> };
1772
- /**
1773
- * This function restores the default behavior of all mocks that were previously
1774
- * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
1775
- * used to reset their behavior or
1776
- * otherwise interact with them.
1777
- *
1778
- * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this
1779
- * function manually is recommended.
1780
- * @since v19.1.0, v18.13.0
1781
- */
1782
- reset(): void;
1783
- /**
1784
- * This function restores the default behavior of all mocks that were previously
1785
- * created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does
1786
- * not disassociate the mocks from the `MockTracker` instance.
1787
- * @since v19.1.0, v18.13.0
1788
- */
1789
- restoreAll(): void;
1790
- readonly timers: MockTimers;
1791
- }
1792
- const mock: MockTracker;
1793
- interface MockFunctionCall<
1794
- F extends Function,
1795
- ReturnType = F extends (...args: any) => infer T ? T
1796
- : F extends abstract new(...args: any) => infer T ? T
1797
- : unknown,
1798
- Args = F extends (...args: infer Y) => any ? Y
1799
- : F extends abstract new(...args: infer Y) => any ? Y
1800
- : unknown[],
1801
- > {
1802
- /**
1803
- * An array of the arguments passed to the mock function.
1804
- */
1805
- arguments: Args;
1806
- /**
1807
- * If the mocked function threw then this property contains the thrown value.
1808
- */
1809
- error: unknown | undefined;
1810
- /**
1811
- * The value returned by the mocked function.
1812
- *
1813
- * If the mocked function threw, it will be `undefined`.
1814
- */
1815
- result: ReturnType | undefined;
1816
- /**
1817
- * An `Error` object whose stack can be used to determine the callsite of the mocked function invocation.
1818
- */
1819
- stack: Error;
1820
- /**
1821
- * If the mocked function is a constructor, this field contains the class being constructed.
1822
- * Otherwise this will be `undefined`.
1823
- */
1824
- target: F extends abstract new(...args: any) => any ? F : undefined;
1825
- /**
1826
- * The mocked function's `this` value.
1827
- */
1828
- this: unknown;
1829
- }
1830
- /**
1831
- * The `MockFunctionContext` class is used to inspect or manipulate the behavior of
1832
- * mocks created via the `MockTracker` APIs.
1833
- * @since v19.1.0, v18.13.0
1834
- */
1835
- interface MockFunctionContext<F extends Function> {
1836
- /**
1837
- * A getter that returns a copy of the internal array used to track calls to the
1838
- * mock. Each entry in the array is an object with the following properties.
1839
- * @since v19.1.0, v18.13.0
1840
- */
1841
- readonly calls: MockFunctionCall<F>[];
1842
- /**
1843
- * This function returns the number of times that this mock has been invoked. This
1844
- * function is more efficient than checking `ctx.calls.length` because `ctx.calls` is a getter that creates a copy of the internal call tracking array.
1845
- * @since v19.1.0, v18.13.0
1846
- * @return The number of times that this mock has been invoked.
1847
- */
1848
- callCount(): number;
1849
- /**
1850
- * This function is used to change the behavior of an existing mock.
1851
- *
1852
- * The following example creates a mock function using `t.mock.fn()`, calls the
1853
- * mock function, and then changes the mock implementation to a different function.
1854
- *
1855
- * ```js
1856
- * test('changes a mock behavior', (t) => {
1857
- * let cnt = 0;
1858
- *
1859
- * function addOne() {
1860
- * cnt++;
1861
- * return cnt;
1862
- * }
1863
- *
1864
- * function addTwo() {
1865
- * cnt += 2;
1866
- * return cnt;
1867
- * }
1868
- *
1869
- * const fn = t.mock.fn(addOne);
1870
- *
1871
- * assert.strictEqual(fn(), 1);
1872
- * fn.mock.mockImplementation(addTwo);
1873
- * assert.strictEqual(fn(), 3);
1874
- * assert.strictEqual(fn(), 5);
1875
- * });
1876
- * ```
1877
- * @since v19.1.0, v18.13.0
1878
- * @param implementation The function to be used as the mock's new implementation.
1879
- */
1880
- mockImplementation(implementation: F): void;
1881
- /**
1882
- * This function is used to change the behavior of an existing mock for a single
1883
- * invocation. Once invocation `onCall` has occurred, the mock will revert to
1884
- * whatever behavior it would have used had `mockImplementationOnce()` not been
1885
- * called.
1886
- *
1887
- * The following example creates a mock function using `t.mock.fn()`, calls the
1888
- * mock function, changes the mock implementation to a different function for the
1889
- * next invocation, and then resumes its previous behavior.
1890
- *
1891
- * ```js
1892
- * test('changes a mock behavior once', (t) => {
1893
- * let cnt = 0;
1894
- *
1895
- * function addOne() {
1896
- * cnt++;
1897
- * return cnt;
1898
- * }
1899
- *
1900
- * function addTwo() {
1901
- * cnt += 2;
1902
- * return cnt;
1903
- * }
1904
- *
1905
- * const fn = t.mock.fn(addOne);
1906
- *
1907
- * assert.strictEqual(fn(), 1);
1908
- * fn.mock.mockImplementationOnce(addTwo);
1909
- * assert.strictEqual(fn(), 3);
1910
- * assert.strictEqual(fn(), 4);
1911
- * });
1912
- * ```
1913
- * @since v19.1.0, v18.13.0
1914
- * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`.
1915
- * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown.
1916
- */
1917
- mockImplementationOnce(implementation: F, onCall?: number): void;
1918
- /**
1919
- * Resets the call history of the mock function.
1920
- * @since v19.3.0, v18.13.0
1921
- */
1922
- resetCalls(): void;
1923
- /**
1924
- * Resets the implementation of the mock function to its original behavior. The
1925
- * mock can still be used after calling this function.
1926
- * @since v19.1.0, v18.13.0
1927
- */
1928
- restore(): void;
1929
- }
1930
- /**
1931
- * @since v22.3.0
1932
- * @experimental
1933
- */
1934
- interface MockModuleContext {
1935
- /**
1936
- * Resets the implementation of the mock module.
1937
- * @since v22.3.0
1938
- */
1939
- restore(): void;
1940
- }
1941
- /**
1942
- * @since v24.3.0
1943
- */
1944
- class MockPropertyContext<PropertyType = any> {
1945
- /**
1946
- * A getter that returns a copy of the internal array used to track accesses (get/set) to
1947
- * the mocked property. Each entry in the array is an object with the following properties:
1948
- */
1949
- readonly accesses: Array<{
1950
- type: "get" | "set";
1951
- value: PropertyType;
1952
- stack: Error;
1953
- }>;
1954
- /**
1955
- * This function returns the number of times that the property was accessed.
1956
- * This function is more efficient than checking `ctx.accesses.length` because
1957
- * `ctx.accesses` is a getter that creates a copy of the internal access tracking array.
1958
- * @returns The number of times that the property was accessed (read or written).
1959
- */
1960
- accessCount(): number;
1961
- /**
1962
- * This function is used to change the value returned by the mocked property getter.
1963
- * @param value The new value to be set as the mocked property value.
1964
- */
1965
- mockImplementation(value: PropertyType): void;
1966
- /**
1967
- * This function is used to change the behavior of an existing mock for a single
1968
- * invocation. Once invocation `onAccess` has occurred, the mock will revert to
1969
- * whatever behavior it would have used had `mockImplementationOnce()` not been
1970
- * called.
1971
- *
1972
- * The following example creates a mock function using `t.mock.property()`, calls the
1973
- * mock property, changes the mock implementation to a different value for the
1974
- * next invocation, and then resumes its previous behavior.
1975
- *
1976
- * ```js
1977
- * test('changes a mock behavior once', (t) => {
1978
- * const obj = { foo: 1 };
1979
- *
1980
- * const prop = t.mock.property(obj, 'foo', 5);
1981
- *
1982
- * assert.strictEqual(obj.foo, 5);
1983
- * prop.mock.mockImplementationOnce(25);
1984
- * assert.strictEqual(obj.foo, 25);
1985
- * assert.strictEqual(obj.foo, 5);
1986
- * });
1987
- * ```
1988
- * @param value The value to be used as the mock's
1989
- * implementation for the invocation number specified by `onAccess`.
1990
- * @param onAccess The invocation number that will use `value`. If
1991
- * the specified invocation has already occurred then an exception is thrown.
1992
- * **Default:** The number of the next invocation.
1993
- */
1994
- mockImplementationOnce(value: PropertyType, onAccess?: number): void;
1995
- /**
1996
- * Resets the access history of the mocked property.
1997
- */
1998
- resetAccesses(): void;
1999
- /**
2000
- * Resets the implementation of the mock property to its original behavior. The
2001
- * mock can still be used after calling this function.
2002
- */
2003
- restore(): void;
2004
- }
2005
- interface MockTimersOptions {
2006
- apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">;
2007
- now?: number | Date | undefined;
2008
- }
2009
- /**
2010
- * Mocking timers is a technique commonly used in software testing to simulate and
2011
- * control the behavior of timers, such as `setInterval` and `setTimeout`,
2012
- * without actually waiting for the specified time intervals.
2013
- *
2014
- * The MockTimers API also allows for mocking of the `Date` constructor and
2015
- * `setImmediate`/`clearImmediate` functions.
2016
- *
2017
- * The `MockTracker` provides a top-level `timers` export
2018
- * which is a `MockTimers` instance.
2019
- * @since v20.4.0
2020
- */
2021
- interface MockTimers {
2022
- /**
2023
- * Enables timer mocking for the specified timers.
2024
- *
2025
- * **Note:** When you enable mocking for a specific timer, its associated
2026
- * clear function will also be implicitly mocked.
2027
- *
2028
- * **Note:** Mocking `Date` will affect the behavior of the mocked timers
2029
- * as they use the same internal clock.
2030
- *
2031
- * Example usage without setting initial time:
2032
- *
2033
- * ```js
2034
- * import { mock } from 'node:test';
2035
- * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 });
2036
- * ```
2037
- *
2038
- * The above example enables mocking for the `Date` constructor, `setInterval` timer and
2039
- * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`,
2040
- * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked.
2041
- *
2042
- * Example usage with initial time set
2043
- *
2044
- * ```js
2045
- * import { mock } from 'node:test';
2046
- * mock.timers.enable({ apis: ['Date'], now: 1000 });
2047
- * ```
2048
- *
2049
- * Example usage with initial Date object as time set
2050
- *
2051
- * ```js
2052
- * import { mock } from 'node:test';
2053
- * mock.timers.enable({ apis: ['Date'], now: new Date() });
2054
- * ```
2055
- *
2056
- * Alternatively, if you call `mock.timers.enable()` without any parameters:
2057
- *
2058
- * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`)
2059
- * will be mocked.
2060
- *
2061
- * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`,
2062
- * and `globalThis` will be mocked.
2063
- * The `Date` constructor from `globalThis` will be mocked.
2064
- *
2065
- * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can
2066
- * set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date
2067
- * object. It can either be a positive integer, or another Date object.
2068
- * @since v20.4.0
2069
- */
2070
- enable(options?: MockTimersOptions): void;
2071
- /**
2072
- * Sets the current Unix timestamp that will be used as reference for any mocked
2073
- * `Date` objects.
2074
- *
2075
- * ```js
2076
- * import assert from 'node:assert';
2077
- * import { test } from 'node:test';
2078
- *
2079
- * test('runAll functions following the given order', (context) => {
2080
- * const now = Date.now();
2081
- * const setTime = 1000;
2082
- * // Date.now is not mocked
2083
- * assert.deepStrictEqual(Date.now(), now);
2084
- *
2085
- * context.mock.timers.enable({ apis: ['Date'] });
2086
- * context.mock.timers.setTime(setTime);
2087
- * // Date.now is now 1000
2088
- * assert.strictEqual(Date.now(), setTime);
2089
- * });
2090
- * ```
2091
- * @since v21.2.0, v20.11.0
2092
- */
2093
- setTime(milliseconds: number): void;
2094
- /**
2095
- * This function restores the default behavior of all mocks that were previously
2096
- * created by this `MockTimers` instance and disassociates the mocks
2097
- * from the `MockTracker` instance.
2098
- *
2099
- * **Note:** After each test completes, this function is called on
2100
- * the test context's `MockTracker`.
2101
- *
2102
- * ```js
2103
- * import { mock } from 'node:test';
2104
- * mock.timers.reset();
2105
- * ```
2106
- * @since v20.4.0
2107
- */
2108
- reset(): void;
2109
- /**
2110
- * Advances time for all mocked timers.
2111
- *
2112
- * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts
2113
- * only positive numbers. In Node.js, `setTimeout` with negative numbers is
2114
- * only supported for web compatibility reasons.
2115
- *
2116
- * The following example mocks a `setTimeout` function and
2117
- * by using `.tick` advances in
2118
- * time triggering all pending timers.
2119
- *
2120
- * ```js
2121
- * import assert from 'node:assert';
2122
- * import { test } from 'node:test';
2123
- *
2124
- * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
2125
- * const fn = context.mock.fn();
2126
- *
2127
- * context.mock.timers.enable({ apis: ['setTimeout'] });
2128
- *
2129
- * setTimeout(fn, 9999);
2130
- *
2131
- * assert.strictEqual(fn.mock.callCount(), 0);
2132
- *
2133
- * // Advance in time
2134
- * context.mock.timers.tick(9999);
2135
- *
2136
- * assert.strictEqual(fn.mock.callCount(), 1);
2137
- * });
2138
- * ```
2139
- *
2140
- * Alternativelly, the `.tick` function can be called many times
2141
- *
2142
- * ```js
2143
- * import assert from 'node:assert';
2144
- * import { test } from 'node:test';
2145
- *
2146
- * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
2147
- * const fn = context.mock.fn();
2148
- * context.mock.timers.enable({ apis: ['setTimeout'] });
2149
- * const nineSecs = 9000;
2150
- * setTimeout(fn, nineSecs);
2151
- *
2152
- * const twoSeconds = 3000;
2153
- * context.mock.timers.tick(twoSeconds);
2154
- * context.mock.timers.tick(twoSeconds);
2155
- * context.mock.timers.tick(twoSeconds);
2156
- *
2157
- * assert.strictEqual(fn.mock.callCount(), 1);
2158
- * });
2159
- * ```
2160
- *
2161
- * Advancing time using `.tick` will also advance the time for any `Date` object
2162
- * created after the mock was enabled (if `Date` was also set to be mocked).
2163
- *
2164
- * ```js
2165
- * import assert from 'node:assert';
2166
- * import { test } from 'node:test';
2167
- *
2168
- * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => {
2169
- * const fn = context.mock.fn();
2170
- *
2171
- * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] });
2172
- * setTimeout(fn, 9999);
2173
- *
2174
- * assert.strictEqual(fn.mock.callCount(), 0);
2175
- * assert.strictEqual(Date.now(), 0);
2176
- *
2177
- * // Advance in time
2178
- * context.mock.timers.tick(9999);
2179
- * assert.strictEqual(fn.mock.callCount(), 1);
2180
- * assert.strictEqual(Date.now(), 9999);
2181
- * });
2182
- * ```
2183
- * @since v20.4.0
2184
- */
2185
- tick(milliseconds: number): void;
2186
- /**
2187
- * Triggers all pending mocked timers immediately. If the `Date` object is also
2188
- * mocked, it will also advance the `Date` object to the furthest timer's time.
2189
- *
2190
- * The example below triggers all pending timers immediately,
2191
- * causing them to execute without any delay.
2192
- *
2193
- * ```js
2194
- * import assert from 'node:assert';
2195
- * import { test } from 'node:test';
2196
- *
2197
- * test('runAll functions following the given order', (context) => {
2198
- * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] });
2199
- * const results = [];
2200
- * setTimeout(() => results.push(1), 9999);
2201
- *
2202
- * // Notice that if both timers have the same timeout,
2203
- * // the order of execution is guaranteed
2204
- * setTimeout(() => results.push(3), 8888);
2205
- * setTimeout(() => results.push(2), 8888);
2206
- *
2207
- * assert.deepStrictEqual(results, []);
2208
- *
2209
- * context.mock.timers.runAll();
2210
- * assert.deepStrictEqual(results, [3, 2, 1]);
2211
- * // The Date object is also advanced to the furthest timer's time
2212
- * assert.strictEqual(Date.now(), 9999);
2213
- * });
2214
- * ```
2215
- *
2216
- * **Note:** The `runAll()` function is specifically designed for
2217
- * triggering timers in the context of timer mocking.
2218
- * It does not have any effect on real-time system
2219
- * clocks or actual timers outside of the mocking environment.
2220
- * @since v20.4.0
2221
- */
2222
- runAll(): void;
2223
- /**
2224
- * Calls {@link MockTimers.reset()}.
2225
- */
2226
- [Symbol.dispose](): void;
2227
- }
2228
- /**
2229
- * An object whose methods are used to configure available assertions on the
2230
- * `TestContext` objects in the current process. The methods from `node:assert`
2231
- * and snapshot testing functions are available by default.
2232
- *
2233
- * It is possible to apply the same configuration to all files by placing common
2234
- * configuration code in a module
2235
- * preloaded with `--require` or `--import`.
2236
- * @since v22.14.0
2237
- */
2238
- namespace assert {
2239
- /**
2240
- * Defines a new assertion function with the provided name and function. If an
2241
- * assertion already exists with the same name, it is overwritten.
2242
- * @since v22.14.0
2243
- */
2244
- function register(name: string, fn: (this: TestContext, ...args: any[]) => void): void;
2245
- }
2246
- /**
2247
- * @since v22.3.0
2248
- */
2249
- namespace snapshot {
2250
- /**
2251
- * This function is used to customize the default serialization mechanism used by the test runner.
2252
- *
2253
- * By default, the test runner performs serialization by calling `JSON.stringify(value, null, 2)` on the provided value.
2254
- * `JSON.stringify()` does have limitations regarding circular structures and supported data types.
2255
- * If a more robust serialization mechanism is required, this function should be used to specify a list of custom serializers.
2256
- *
2257
- * Serializers are called in order, with the output of the previous serializer passed as input to the next.
2258
- * The final result must be a string value.
2259
- * @since v22.3.0
2260
- * @param serializers An array of synchronous functions used as the default serializers for snapshot tests.
2261
- */
2262
- function setDefaultSnapshotSerializers(serializers: ReadonlyArray<(value: any) => any>): void;
2263
- /**
2264
- * This function is used to set a custom resolver for the location of the snapshot file used for snapshot testing.
2265
- * By default, the snapshot filename is the same as the entry point filename with `.snapshot` appended.
2266
- * @since v22.3.0
2267
- * @param fn A function used to compute the location of the snapshot file.
2268
- * The function receives the path of the test file as its only argument. If the
2269
- * test is not associated with a file (for example in the REPL), the input is
2270
- * undefined. `fn()` must return a string specifying the location of the snapshot file.
2271
- */
2272
- function setResolveSnapshotPath(fn: (path: string | undefined) => string): void;
2273
- }
2274
- }
2275
- type FunctionPropertyNames<T> = {
2276
- [K in keyof T]: T[K] extends Function ? K : never;
2277
- }[keyof T];
2278
- export = test;
2279
- }