node-red-contrib-tak-registration 0.11.6 → 0.12.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 (369) hide show
  1. package/node_modules/@types/node/README.md +2 -2
  2. package/node_modules/@types/node/assert.d.ts +88 -44
  3. package/node_modules/@types/node/async_hooks.d.ts +17 -15
  4. package/node_modules/@types/node/buffer.d.ts +29 -29
  5. package/node_modules/@types/node/child_process.d.ts +38 -34
  6. package/node_modules/@types/node/cluster.d.ts +165 -19
  7. package/node_modules/@types/node/console.d.ts +64 -27
  8. package/node_modules/@types/node/crypto.d.ts +101 -65
  9. package/node_modules/@types/node/dgram.d.ts +14 -14
  10. package/node_modules/@types/node/diagnostics_channel.d.ts +12 -3
  11. package/node_modules/@types/node/dns/promises.d.ts +79 -28
  12. package/node_modules/@types/node/dns.d.ts +124 -69
  13. package/node_modules/@types/node/dom-events.d.ts +2 -0
  14. package/node_modules/@types/node/domain.d.ts +4 -4
  15. package/node_modules/@types/node/events.d.ts +115 -63
  16. package/node_modules/@types/node/fs/promises.d.ts +18 -12
  17. package/node_modules/@types/node/fs.d.ts +45 -39
  18. package/node_modules/@types/node/globals.d.ts +1 -0
  19. package/node_modules/@types/node/http.d.ts +69 -48
  20. package/node_modules/@types/node/http2.d.ts +83 -47
  21. package/node_modules/@types/node/https.d.ts +3 -3
  22. package/node_modules/@types/node/index.d.ts +1 -0
  23. package/node_modules/@types/node/inspector.d.ts +5 -6
  24. package/node_modules/@types/node/net.d.ts +58 -13
  25. package/node_modules/@types/node/os.d.ts +29 -12
  26. package/node_modules/@types/node/package.json +3 -15
  27. package/node_modules/@types/node/path.d.ts +1 -1
  28. package/node_modules/@types/node/perf_hooks.d.ts +308 -48
  29. package/node_modules/@types/node/process.d.ts +241 -48
  30. package/node_modules/@types/node/punycode.d.ts +4 -4
  31. package/node_modules/@types/node/querystring.d.ts +18 -6
  32. package/node_modules/@types/node/readline/promises.d.ts +9 -9
  33. package/node_modules/@types/node/readline.d.ts +21 -20
  34. package/node_modules/@types/node/repl.d.ts +10 -10
  35. package/node_modules/@types/node/sea.d.ts +153 -0
  36. package/node_modules/@types/node/stream/web.d.ts +3 -2
  37. package/node_modules/@types/node/stream.d.ts +62 -56
  38. package/node_modules/@types/node/string_decoder.d.ts +3 -3
  39. package/node_modules/@types/node/test.d.ts +350 -97
  40. package/node_modules/@types/node/timers/promises.d.ts +10 -6
  41. package/node_modules/@types/node/timers.d.ts +5 -5
  42. package/node_modules/@types/node/tls.d.ts +39 -32
  43. package/node_modules/@types/node/trace_events.d.ts +40 -25
  44. package/node_modules/@types/node/tty.d.ts +8 -8
  45. package/node_modules/@types/node/url.d.ts +15 -7
  46. package/node_modules/@types/node/util.d.ts +131 -22
  47. package/node_modules/@types/node/v8.d.ts +50 -6
  48. package/node_modules/@types/node/vm.d.ts +43 -22
  49. package/node_modules/@types/node/wasi.d.ts +12 -10
  50. package/node_modules/@types/node/worker_threads.d.ts +19 -16
  51. package/node_modules/@types/node/zlib.d.ts +16 -3
  52. package/node_modules/adm-zip/README.md +2 -1
  53. package/node_modules/adm-zip/adm-zip.js +46 -45
  54. package/node_modules/adm-zip/headers/entryHeader.js +14 -12
  55. package/node_modules/adm-zip/headers/mainHeader.js +1 -1
  56. package/node_modules/adm-zip/methods/inflater.js +6 -3
  57. package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
  58. package/node_modules/adm-zip/package.json +2 -2
  59. package/node_modules/adm-zip/util/errors.js +1 -0
  60. package/node_modules/adm-zip/zipEntry.js +64 -43
  61. package/node_modules/adm-zip/zipFile.js +35 -35
  62. package/node_modules/axios/CHANGELOG.md +868 -759
  63. package/node_modules/axios/README.md +65 -17
  64. package/node_modules/axios/dist/axios.js +1330 -583
  65. package/node_modules/axios/dist/axios.js.map +1 -1
  66. package/node_modules/axios/dist/axios.min.js +1 -1
  67. package/node_modules/axios/dist/axios.min.js.map +1 -1
  68. package/node_modules/axios/dist/browser/axios.cjs +696 -316
  69. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  70. package/node_modules/axios/dist/esm/axios.js +696 -316
  71. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  72. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  73. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  74. package/node_modules/axios/dist/node/axios.cjs +607 -257
  75. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  76. package/node_modules/axios/index.d.cts +5 -2
  77. package/node_modules/axios/index.d.ts +5 -2
  78. package/node_modules/axios/lib/adapters/adapters.js +3 -1
  79. package/node_modules/axios/lib/adapters/fetch.js +227 -0
  80. package/node_modules/axios/lib/adapters/http.js +1 -1
  81. package/node_modules/axios/lib/adapters/xhr.js +31 -101
  82. package/node_modules/axios/lib/core/Axios.js +17 -11
  83. package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
  84. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  85. package/node_modules/axios/lib/defaults/index.js +7 -5
  86. package/node_modules/axios/lib/env/data.js +1 -1
  87. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
  88. package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
  89. package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
  90. package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  91. package/node_modules/axios/lib/helpers/throttle.js +5 -3
  92. package/node_modules/axios/lib/helpers/trackStream.js +55 -0
  93. package/node_modules/axios/lib/platform/common/utils.js +4 -1
  94. package/node_modules/axios/lib/utils.js +7 -2
  95. package/node_modules/axios/package.json +27 -26
  96. package/node_modules/fast-xml-parser/CHANGELOG.md +14 -0
  97. package/node_modules/fast-xml-parser/README.md +7 -14
  98. package/node_modules/fast-xml-parser/package.json +1 -1
  99. package/node_modules/fast-xml-parser/src/fxp.d.ts +4 -4
  100. package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
  101. package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
  102. package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
  103. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
  104. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
  105. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
  106. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
  107. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
  108. package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
  109. package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
  110. package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
  111. package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
  112. package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
  113. package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
  114. package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
  115. package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
  116. package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
  117. package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
  118. package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
  119. package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
  120. package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
  121. package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
  122. package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
  123. package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
  124. package/node_modules/fast-xml-parser/src/validator.js +2 -0
  125. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +13 -4
  126. package/node_modules/follow-redirects/index.js +1 -1
  127. package/node_modules/follow-redirects/package.json +1 -1
  128. package/node_modules/hasown/CHANGELOG.md +12 -0
  129. package/node_modules/hasown/index.d.ts +2 -2
  130. package/node_modules/hasown/package.json +5 -2
  131. package/node_modules/hasown/tsconfig.json +3 -46
  132. package/node_modules/object-is/.eslintrc +1 -1
  133. package/node_modules/object-is/.nycrc +0 -4
  134. package/node_modules/object-is/CHANGELOG.md +25 -0
  135. package/node_modules/object-is/README.md +20 -20
  136. package/node_modules/object-is/package.json +23 -14
  137. package/node_modules/protobufjs/LICENSE +39 -39
  138. package/node_modules/protobufjs/README.md +727 -740
  139. package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
  140. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  141. package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
  142. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  143. package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
  144. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  145. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  146. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  147. package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
  148. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  149. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  150. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  151. package/node_modules/protobufjs/ext/debug/README.md +4 -4
  152. package/node_modules/protobufjs/ext/debug/index.js +71 -71
  153. package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
  154. package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
  155. package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
  156. package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
  157. package/node_modules/protobufjs/google/LICENSE +27 -27
  158. package/node_modules/protobufjs/google/README.md +1 -1
  159. package/node_modules/protobufjs/google/api/annotations.json +82 -82
  160. package/node_modules/protobufjs/google/api/annotations.proto +10 -10
  161. package/node_modules/protobufjs/google/api/http.json +85 -85
  162. package/node_modules/protobufjs/google/api/http.proto +30 -30
  163. package/node_modules/protobufjs/google/protobuf/api.json +117 -117
  164. package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
  165. package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
  166. package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
  167. package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
  168. package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
  169. package/node_modules/protobufjs/google/protobuf/type.json +201 -201
  170. package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
  171. package/node_modules/protobufjs/index.d.ts +2741 -2741
  172. package/node_modules/protobufjs/index.js +4 -4
  173. package/node_modules/protobufjs/light.d.ts +2 -2
  174. package/node_modules/protobufjs/light.js +3 -3
  175. package/node_modules/protobufjs/minimal.d.ts +2 -2
  176. package/node_modules/protobufjs/minimal.js +4 -4
  177. package/node_modules/protobufjs/package.json +111 -111
  178. package/node_modules/protobufjs/scripts/postinstall.js +32 -32
  179. package/node_modules/protobufjs/src/common.js +399 -399
  180. package/node_modules/protobufjs/src/converter.js +301 -301
  181. package/node_modules/protobufjs/src/decoder.js +129 -129
  182. package/node_modules/protobufjs/src/encoder.js +100 -100
  183. package/node_modules/protobufjs/src/enum.js +198 -198
  184. package/node_modules/protobufjs/src/field.js +377 -377
  185. package/node_modules/protobufjs/src/index-light.js +104 -104
  186. package/node_modules/protobufjs/src/index-minimal.js +36 -36
  187. package/node_modules/protobufjs/src/index.js +12 -12
  188. package/node_modules/protobufjs/src/mapfield.js +126 -126
  189. package/node_modules/protobufjs/src/message.js +138 -138
  190. package/node_modules/protobufjs/src/method.js +160 -160
  191. package/node_modules/protobufjs/src/namespace.js +433 -433
  192. package/node_modules/protobufjs/src/object.js +243 -243
  193. package/node_modules/protobufjs/src/oneof.js +203 -203
  194. package/node_modules/protobufjs/src/parse.js +889 -872
  195. package/node_modules/protobufjs/src/reader.js +416 -416
  196. package/node_modules/protobufjs/src/reader_buffer.js +51 -51
  197. package/node_modules/protobufjs/src/root.js +368 -368
  198. package/node_modules/protobufjs/src/roots.js +18 -18
  199. package/node_modules/protobufjs/src/rpc/service.js +142 -142
  200. package/node_modules/protobufjs/src/rpc.js +36 -36
  201. package/node_modules/protobufjs/src/service.js +167 -167
  202. package/node_modules/protobufjs/src/tokenize.js +416 -416
  203. package/node_modules/protobufjs/src/type.js +589 -589
  204. package/node_modules/protobufjs/src/types.js +196 -196
  205. package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
  206. package/node_modules/protobufjs/src/util/longbits.js +200 -200
  207. package/node_modules/protobufjs/src/util/minimal.js +438 -438
  208. package/node_modules/protobufjs/src/util.js +212 -212
  209. package/node_modules/protobufjs/src/verifier.js +176 -176
  210. package/node_modules/protobufjs/src/wrappers.js +102 -102
  211. package/node_modules/protobufjs/src/writer.js +465 -465
  212. package/node_modules/protobufjs/src/writer_buffer.js +85 -85
  213. package/node_modules/protobufjs/tsconfig.json +7 -7
  214. package/node_modules/set-function-length/CHANGELOG.md +11 -0
  215. package/node_modules/set-function-length/env.d.ts +9 -6
  216. package/node_modules/set-function-length/env.js +1 -0
  217. package/node_modules/set-function-length/index.d.ts +6 -6
  218. package/node_modules/set-function-length/index.js +1 -3
  219. package/node_modules/set-function-length/package.json +11 -13
  220. package/node_modules/set-function-length/tsconfig.json +7 -57
  221. package/node_modules/uuid/CHANGELOG.md +18 -0
  222. package/node_modules/uuid/README.md +134 -16
  223. package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
  224. package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
  225. package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
  226. package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
  227. package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
  228. package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
  229. package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
  230. package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
  231. package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
  232. package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
  233. package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
  234. package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
  235. package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
  236. package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
  237. package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
  238. package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
  239. package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
  240. package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
  241. package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
  242. package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
  243. package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
  244. package/node_modules/uuid/dist/esm-browser/index.js +9 -4
  245. package/node_modules/uuid/dist/esm-browser/max.js +1 -0
  246. package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
  247. package/node_modules/uuid/dist/esm-browser/native.js +1 -1
  248. package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
  249. package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
  250. package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
  251. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
  252. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
  253. package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
  254. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
  255. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  256. package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
  257. package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
  258. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  259. package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
  260. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
  261. package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
  262. package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
  263. package/node_modules/uuid/dist/esm-browser/version.js +0 -3
  264. package/node_modules/uuid/dist/esm-node/index.js +9 -4
  265. package/node_modules/uuid/dist/esm-node/max.js +1 -0
  266. package/node_modules/uuid/dist/esm-node/md5.js +1 -4
  267. package/node_modules/uuid/dist/esm-node/native.js +1 -1
  268. package/node_modules/uuid/dist/esm-node/parse.js +11 -9
  269. package/node_modules/uuid/dist/esm-node/regex.js +1 -1
  270. package/node_modules/uuid/dist/esm-node/rng.js +1 -3
  271. package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
  272. package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
  273. package/node_modules/uuid/dist/esm-node/v1.js +66 -36
  274. package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
  275. package/node_modules/uuid/dist/esm-node/v35.js +8 -19
  276. package/node_modules/uuid/dist/esm-node/v4.js +4 -8
  277. package/node_modules/uuid/dist/esm-node/v6.js +32 -0
  278. package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
  279. package/node_modules/uuid/dist/esm-node/v7.js +146 -0
  280. package/node_modules/uuid/dist/esm-node/validate.js +0 -2
  281. package/node_modules/uuid/dist/esm-node/version.js +0 -3
  282. package/node_modules/uuid/dist/index.js +40 -15
  283. package/node_modules/uuid/dist/max.js +7 -0
  284. package/node_modules/uuid/dist/md5-browser.js +8 -31
  285. package/node_modules/uuid/dist/md5.js +4 -10
  286. package/node_modules/uuid/dist/native-browser.js +2 -3
  287. package/node_modules/uuid/dist/native.js +5 -9
  288. package/node_modules/uuid/dist/nil.js +1 -2
  289. package/node_modules/uuid/dist/parse.js +13 -14
  290. package/node_modules/uuid/dist/regex.js +1 -2
  291. package/node_modules/uuid/dist/rng-browser.js +1 -3
  292. package/node_modules/uuid/dist/rng.js +3 -10
  293. package/node_modules/uuid/dist/sha1-browser.js +1 -23
  294. package/node_modules/uuid/dist/sha1.js +4 -10
  295. package/node_modules/uuid/dist/stringify.js +8 -14
  296. package/node_modules/uuid/dist/uuid-bin.js +12 -22
  297. package/node_modules/uuid/dist/v1.js +66 -42
  298. package/node_modules/uuid/dist/v1ToV6.js +26 -0
  299. package/node_modules/uuid/dist/v3.js +2 -7
  300. package/node_modules/uuid/dist/v35.js +11 -28
  301. package/node_modules/uuid/dist/v4.js +6 -17
  302. package/node_modules/uuid/dist/v5.js +2 -7
  303. package/node_modules/uuid/dist/v6.js +38 -0
  304. package/node_modules/uuid/dist/v6ToV1.js +26 -0
  305. package/node_modules/uuid/dist/v7.js +152 -0
  306. package/node_modules/uuid/dist/validate.js +2 -7
  307. package/node_modules/uuid/dist/version.js +2 -8
  308. package/node_modules/uuid/package.json +41 -34
  309. package/node_modules/uuid/wrapper.mjs +5 -0
  310. package/package.json +6 -6
  311. package/tak-ingest.js +1 -1
  312. package/tak-registration.js +8 -1
  313. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  314. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  315. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  316. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
  317. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  318. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  319. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  320. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  321. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  322. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  323. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  324. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  325. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  326. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  327. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  328. package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  329. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  330. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  331. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  332. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  333. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  334. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  335. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  336. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  337. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  338. package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  339. package/node_modules/@types/node/ts4.8/net.d.ts +0 -954
  340. package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  341. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  342. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  343. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  344. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  345. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  346. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  347. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  348. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  349. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  350. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  351. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  352. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  353. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  354. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  355. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  356. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  357. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  358. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  359. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  360. package/node_modules/@types/node/ts4.8/url.d.ts +0 -944
  361. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  362. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  363. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  364. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  365. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  366. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  367. package/node_modules/object-is/.eslintignore +0 -1
  368. package/node_modules/set-function-length/env.d.ts.map +0 -1
  369. package/node_modules/set-function-length/index.d.ts.map +0 -1
@@ -18,14 +18,14 @@
18
18
  *
19
19
  * 1. A synchronous function that is considered failing if it throws an exception,
20
20
  * and is considered passing otherwise.
21
- * 2. A function that returns a `Promise` that is considered failing if the`Promise` rejects, and is considered passing if the `Promise` fulfills.
21
+ * 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills.
22
22
  * 3. A function that receives a callback function. If the callback receives any
23
23
  * truthy value as its first argument, the test is considered failing. If a
24
24
  * falsy value is passed as the first argument to the callback, the test is
25
25
  * considered passing. If the test function receives a callback function and
26
26
  * also returns a `Promise`, the test will fail.
27
27
  *
28
- * The following example illustrates how tests are written using the`test` module.
28
+ * The following example illustrates how tests are written using the `test` module.
29
29
  *
30
30
  * ```js
31
31
  * test('synchronous passing test', (t) => {
@@ -76,13 +76,13 @@
76
76
  *
77
77
  * If any tests fail, the process exit code is set to `1`.
78
78
  * @since v18.0.0, v16.17.0
79
- * @see [source](https://github.com/nodejs/node/blob/v20.4.0/lib/test.js)
79
+ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test.js)
80
80
  */
81
81
  declare module "node:test" {
82
82
  import { Readable } from "node:stream";
83
83
  import { AsyncResource } from "node:async_hooks";
84
84
  /**
85
- * **Note:**`shard` is used to horizontally parallelize test running across
85
+ * **Note:** `shard` is used to horizontally parallelize test running across
86
86
  * machines or processes, ideal for large-scale executions across varied
87
87
  * environments. It's incompatible with `watch` mode, tailored for rapid
88
88
  * code iteration by automatically rerunning tests on file changes.
@@ -110,7 +110,7 @@ declare module "node:test" {
110
110
  * additional diagnostic information, or creating subtests.
111
111
  *
112
112
  * `test()` returns a `Promise` that fulfills once the test completes.
113
- * if `test()` is called within a `describe()` block, it fulfills immediately.
113
+ * if `test()` is called within a suite, it fulfills immediately.
114
114
  * The return value can usually be discarded for top level tests.
115
115
  * However, the return value from subtests should be used to prevent the parent
116
116
  * test from finishing first and cancelling the subtest
@@ -129,15 +129,15 @@ declare module "node:test" {
129
129
  * });
130
130
  * ```
131
131
  *
132
- * 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
132
+ * 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
133
133
  * canceling tests because a running test might block the application thread and
134
134
  * thus prevent the scheduled cancellation.
135
135
  * @since v18.0.0, v16.17.0
136
136
  * @param [name='The name'] The name of the test, which is displayed when reporting test results.
137
137
  * @param options Configuration options for the test. The following properties are supported:
138
- * @param [fn='A no-op function'] The function under test. The first argument to this function is a {@link TestContext} object. If the test uses callbacks, the callback function is passed as the
139
- * second argument.
140
- * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within {@link describe}.
138
+ * @param [fn='A no-op function'] The function under test. The first argument to this function is a {@link TestContext} object. If the test uses callbacks, the
139
+ * callback function is passed as the second argument.
140
+ * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite.
141
141
  */
142
142
  function test(name?: string, fn?: TestFn): Promise<void>;
143
143
  function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
@@ -147,14 +147,47 @@ declare module "node:test" {
147
147
  export { after, afterEach, before, beforeEach, describe, it, mock, only, run, skip, test, todo };
148
148
  }
149
149
  /**
150
- * The `describe()` function imported from the `node:test` module. Each
151
- * invocation of this function results in the creation of a Subtest.
152
- * After invocation of top level `describe` functions,
153
- * all top level tests and suites will execute.
154
- * @param [name='The name'] The name of the suite, which is displayed when reporting test results.
155
- * @param options Configuration options for the suite. supports the same options as `test([name][, options][, fn])`.
156
- * @param [fn='A no-op function'] The function under suite declaring all subtests and subsuites. The first argument to this function is a {@link SuiteContext} object.
150
+ * The `suite()` function is imported from the `node:test` module.
151
+ * @param name The name of the suite, which is displayed when reporting test results. **Default:** The `name` property of `fn`, or `'<anonymous>'` if `fn` does not have a name.
152
+ * @param options Optional configuration options for the suite. This supports the same options as `test([name][, options][, fn])`.
153
+ * @param [fn='A no-op function'] The suite function declaring nested tests and suites. The first argument to this function is a `{@link SuiteContext}` object.
157
154
  * @return Immediately fulfilled with `undefined`.
155
+ * @since v20.13.0
156
+ */
157
+ function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
158
+ function suite(name?: string, fn?: SuiteFn): Promise<void>;
159
+ function suite(options?: TestOptions, fn?: SuiteFn): Promise<void>;
160
+ function suite(fn?: SuiteFn): Promise<void>;
161
+ namespace suite {
162
+ /**
163
+ * Shorthand for skipping a suite. This is the same as [`suite([name], { skip: true }[, fn])`](https://nodejs.org/docs/latest-v20.x/api/test.html#suitename-options-fn).
164
+ * @since v20.13.0
165
+ */
166
+ function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
167
+ function skip(name?: string, fn?: SuiteFn): Promise<void>;
168
+ function skip(options?: TestOptions, fn?: SuiteFn): Promise<void>;
169
+ function skip(fn?: SuiteFn): Promise<void>;
170
+ /**
171
+ * Shorthand for marking a suite as `TODO`. This is the same as [`suite([name], { todo: true }[, fn])`](https://nodejs.org/docs/latest-v20.x/api/test.html#suitename-options-fn).
172
+ * @since v20.13.0
173
+ */
174
+ function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
175
+ function todo(name?: string, fn?: SuiteFn): Promise<void>;
176
+ function todo(options?: TestOptions, fn?: SuiteFn): Promise<void>;
177
+ function todo(fn?: SuiteFn): Promise<void>;
178
+ /**
179
+ * Shorthand for marking a suite as `only`. This is the same as [`suite([name], { only: true }[, fn])`](https://nodejs.org/docs/latest-v20.x/api/test.html#suitename-options-fn).
180
+ * @since v20.13.0
181
+ */
182
+ function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
183
+ function only(name?: string, fn?: SuiteFn): Promise<void>;
184
+ function only(options?: TestOptions, fn?: SuiteFn): Promise<void>;
185
+ function only(fn?: SuiteFn): Promise<void>;
186
+ }
187
+ /**
188
+ * Alias for `{@link suite}`.
189
+ *
190
+ * The `describe()` function is imported from the `node:test` module.
158
191
  */
159
192
  function describe(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
160
193
  function describe(name?: string, fn?: SuiteFn): Promise<void>;
@@ -162,21 +195,23 @@ declare module "node:test" {
162
195
  function describe(fn?: SuiteFn): Promise<void>;
163
196
  namespace describe {
164
197
  /**
165
- * Shorthand for skipping a suite, same as `describe([name], { skip: true }[, fn])`.
198
+ * Shorthand for skipping a suite. This is the same as [`describe([name], { skip: true }[, fn])`](https://nodejs.org/docs/latest-v20.x/api/test.html#describename-options-fn).
199
+ * @since v18.15.0
166
200
  */
167
201
  function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
168
202
  function skip(name?: string, fn?: SuiteFn): Promise<void>;
169
203
  function skip(options?: TestOptions, fn?: SuiteFn): Promise<void>;
170
204
  function skip(fn?: SuiteFn): Promise<void>;
171
205
  /**
172
- * Shorthand for marking a suite as `TODO`, same as `describe([name], { todo: true }[, fn])`.
206
+ * Shorthand for marking a suite as `TODO`. This is the same as [`describe([name], { todo: true }[, fn])`](https://nodejs.org/docs/latest-v20.x/api/test.html#describename-options-fn).
207
+ * @since v18.15.0
173
208
  */
174
209
  function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
175
210
  function todo(name?: string, fn?: SuiteFn): Promise<void>;
176
211
  function todo(options?: TestOptions, fn?: SuiteFn): Promise<void>;
177
212
  function todo(fn?: SuiteFn): Promise<void>;
178
213
  /**
179
- * Shorthand for marking a suite as `only`, same as `describe([name], { only: true }[, fn])`.
214
+ * Shorthand for marking a suite as `only`. This is the same as [`describe([name], { only: true }[, fn])`](https://nodejs.org/docs/latest-v20.x/api/test.html#describename-options-fn).
180
215
  * @since v18.15.0
181
216
  */
182
217
  function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
@@ -185,7 +220,7 @@ declare module "node:test" {
185
220
  function only(fn?: SuiteFn): Promise<void>;
186
221
  }
187
222
  /**
188
- * Shorthand for `test()`.
223
+ * Alias for `test()`.
189
224
  *
190
225
  * The `it()` function is imported from the `node:test` module.
191
226
  * @since v18.6.0, v16.17.0
@@ -264,49 +299,57 @@ declare module "node:test" {
264
299
  }
265
300
  interface RunOptions {
266
301
  /**
267
- * If a number is provided, then that many files would run in parallel.
268
- * If truthy, it would run (number of cpu cores - 1) files in parallel.
269
- * If falsy, it would only run one file at a time.
270
- * If unspecified, subtests inherit this value from their parent.
271
- * @default true
302
+ * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file.
303
+ * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time.
304
+ * @default false
272
305
  */
273
306
  concurrency?: number | boolean | undefined;
274
307
  /**
275
- * An array containing the list of files to run.
276
- * If unspecified, the test runner execution model will be used.
308
+ * An array containing the list of files to run. **Default** matching files from
309
+ * [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model).
277
310
  */
278
311
  files?: readonly string[] | undefined;
279
312
  /**
280
- * Allows aborting an in-progress test execution.
281
- * @default undefined
282
- */
283
- signal?: AbortSignal | undefined;
284
- /**
285
- * A number of milliseconds the test will fail after.
286
- * If unspecified, subtests inherit this value from their parent.
287
- * @default Infinity
313
+ * Configures the test runner to exit the process once all known
314
+ * tests have finished executing even if the event loop would
315
+ * otherwise remain active.
316
+ * @default false
288
317
  */
289
- timeout?: number | undefined;
318
+ forceExit?: boolean | undefined;
290
319
  /**
291
320
  * Sets inspector port of test child process.
292
321
  * If a nullish value is provided, each process gets its own port,
293
322
  * incremented from the primary's `process.debugPort`.
323
+ * @default undefined
294
324
  */
295
325
  inspectPort?: number | (() => number) | undefined;
296
- /**
297
- * That can be used to only run tests whose name matches the provided pattern.
298
- * Test name patterns are interpreted as JavaScript regular expressions.
299
- * For each test that is executed, any corresponding test hooks, such as `beforeEach()`, are also run.
300
- */
301
- testNamePatterns?: string | RegExp | string[] | RegExp[];
302
326
  /**
303
327
  * If truthy, the test context will only run tests that have the `only` option set
304
328
  */
305
329
  only?: boolean;
306
330
  /**
307
- * A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
331
+ * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run.
332
+ * @default undefined
308
333
  */
309
334
  setup?: (root: Test) => void | Promise<void>;
335
+ /**
336
+ * Allows aborting an in-progress test execution.
337
+ */
338
+ signal?: AbortSignal | undefined;
339
+ /**
340
+ * A String, RegExp or a RegExp Array, that can be used to only run tests whose
341
+ * name matches the provided pattern. Test name patterns are interpreted as JavaScript
342
+ * regular expressions. For each test that is executed, any corresponding test hooks,
343
+ * such as `beforeEach()`, are also run.
344
+ * @default undefined
345
+ */
346
+ testNamePatterns?: string | RegExp | string[] | RegExp[];
347
+ /**
348
+ * A number of milliseconds the test execution will fail after.
349
+ * If unspecified, subtests inherit this value from their parent.
350
+ * @default Infinity
351
+ */
352
+ timeout?: number | undefined;
310
353
  /**
311
354
  * Whether to run in watch mode or not.
312
355
  * @default false
@@ -328,12 +371,18 @@ declare module "node:test" {
328
371
  timeout: number | null;
329
372
  }
330
373
  /**
331
- * A successful call to `run()` method will return a new `TestsStream` object, streaming a series of events representing the execution of the tests.`TestsStream` will emit events, in the
374
+ * A successful call to `run()` method will return a new `TestsStream` object, streaming a series of events representing the execution of the tests. `TestsStream` will emit events, in the
332
375
  * order of the tests definition
376
+ *
377
+ * 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.
333
378
  * @since v18.9.0, v16.19.0
334
379
  */
335
380
  class TestsStream extends Readable implements NodeJS.ReadableStream {
381
+ addListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
382
+ addListener(event: "test:complete", listener: (data: TestComplete) => void): this;
383
+ addListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
336
384
  addListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
385
+ addListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
337
386
  addListener(event: "test:fail", listener: (data: TestFail) => void): this;
338
387
  addListener(event: "test:pass", listener: (data: TestPass) => void): this;
339
388
  addListener(event: "test:plan", listener: (data: TestPlan) => void): this;
@@ -341,7 +390,11 @@ declare module "node:test" {
341
390
  addListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
342
391
  addListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
343
392
  addListener(event: string, listener: (...args: any[]) => void): this;
393
+ emit(event: "test:coverage", data: TestCoverage): boolean;
394
+ emit(event: "test:complete", data: TestComplete): boolean;
395
+ emit(event: "test:dequeue", data: TestDequeue): boolean;
344
396
  emit(event: "test:diagnostic", data: DiagnosticData): boolean;
397
+ emit(event: "test:enqueue", data: TestEnqueue): boolean;
345
398
  emit(event: "test:fail", data: TestFail): boolean;
346
399
  emit(event: "test:pass", data: TestPass): boolean;
347
400
  emit(event: "test:plan", data: TestPlan): boolean;
@@ -349,7 +402,11 @@ declare module "node:test" {
349
402
  emit(event: "test:stderr", data: TestStderr): boolean;
350
403
  emit(event: "test:stdout", data: TestStdout): boolean;
351
404
  emit(event: string | symbol, ...args: any[]): boolean;
405
+ on(event: "test:coverage", listener: (data: TestCoverage) => void): this;
406
+ on(event: "test:complete", listener: (data: TestComplete) => void): this;
407
+ on(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
352
408
  on(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
409
+ on(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
353
410
  on(event: "test:fail", listener: (data: TestFail) => void): this;
354
411
  on(event: "test:pass", listener: (data: TestPass) => void): this;
355
412
  on(event: "test:plan", listener: (data: TestPlan) => void): this;
@@ -357,7 +414,11 @@ declare module "node:test" {
357
414
  on(event: "test:stderr", listener: (data: TestStderr) => void): this;
358
415
  on(event: "test:stdout", listener: (data: TestStdout) => void): this;
359
416
  on(event: string, listener: (...args: any[]) => void): this;
417
+ once(event: "test:coverage", listener: (data: TestCoverage) => void): this;
418
+ once(event: "test:complete", listener: (data: TestComplete) => void): this;
419
+ once(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
360
420
  once(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
421
+ once(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
361
422
  once(event: "test:fail", listener: (data: TestFail) => void): this;
362
423
  once(event: "test:pass", listener: (data: TestPass) => void): this;
363
424
  once(event: "test:plan", listener: (data: TestPlan) => void): this;
@@ -365,7 +426,11 @@ declare module "node:test" {
365
426
  once(event: "test:stderr", listener: (data: TestStderr) => void): this;
366
427
  once(event: "test:stdout", listener: (data: TestStdout) => void): this;
367
428
  once(event: string, listener: (...args: any[]) => void): this;
429
+ prependListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
430
+ prependListener(event: "test:complete", listener: (data: TestComplete) => void): this;
431
+ prependListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
368
432
  prependListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
433
+ prependListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
369
434
  prependListener(event: "test:fail", listener: (data: TestFail) => void): this;
370
435
  prependListener(event: "test:pass", listener: (data: TestPass) => void): this;
371
436
  prependListener(event: "test:plan", listener: (data: TestPlan) => void): this;
@@ -373,7 +438,11 @@ declare module "node:test" {
373
438
  prependListener(event: "test:stderr", listener: (data: TestStderr) => void): this;
374
439
  prependListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
375
440
  prependListener(event: string, listener: (...args: any[]) => void): this;
441
+ prependOnceListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
442
+ prependOnceListener(event: "test:complete", listener: (data: TestComplete) => void): this;
443
+ prependOnceListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
376
444
  prependOnceListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
445
+ prependOnceListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
377
446
  prependOnceListener(event: "test:fail", listener: (data: TestFail) => void): this;
378
447
  prependOnceListener(event: "test:pass", listener: (data: TestPass) => void): this;
379
448
  prependOnceListener(event: "test:plan", listener: (data: TestPlan) => void): this;
@@ -392,7 +461,7 @@ declare module "node:test" {
392
461
  /**
393
462
  * This function is used to create a hook running before subtest of the current test.
394
463
  * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
395
- * the second argument. Default: A no-op function.
464
+ * the second argument. **Default:** A no-op function.
396
465
  * @param options Configuration options for the hook.
397
466
  * @since v20.1.0
398
467
  */
@@ -400,14 +469,14 @@ declare module "node:test" {
400
469
  /**
401
470
  * This function is used to create a hook running before each subtest of the current test.
402
471
  * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
403
- * the second argument. Default: A no-op function.
472
+ * the second argument. **Default:** A no-op function.
404
473
  * @param options Configuration options for the hook.
405
474
  * @since v18.8.0
406
475
  */
407
476
  beforeEach: typeof beforeEach;
408
477
  /**
409
478
  * This function is used to create a hook that runs after the current test finishes.
410
- * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
479
+ * @param [fn='A no-op function'] The hook function. If the hook uses callbacks, the callback function is passed as
411
480
  * the second argument. Default: A no-op function.
412
481
  * @param options Configuration options for the hook.
413
482
  * @since v18.13.0
@@ -416,7 +485,7 @@ declare module "node:test" {
416
485
  /**
417
486
  * This function is used to create a hook running after each subtest of the current test.
418
487
  * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
419
- * the second argument. Default: A no-op function.
488
+ * the second argument. **Default:** A no-op function.
420
489
  * @param options Configuration options for the hook.
421
490
  * @since v18.8.0
422
491
  */
@@ -470,7 +539,7 @@ declare module "node:test" {
470
539
  */
471
540
  readonly signal: AbortSignal;
472
541
  /**
473
- * 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
542
+ * 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
474
543
  * not terminate execution of the test function. This function does not return a
475
544
  * value.
476
545
  *
@@ -508,7 +577,7 @@ declare module "node:test" {
508
577
  * @param options Configuration options for the test
509
578
  * @param fn The function under test. This first argument to this function is a
510
579
  * {@link TestContext} object. If the test uses callbacks, the callback function is
511
- * passed as the second argument. Default: A no-op function.
580
+ * passed as the second argument. **Default:** A no-op function.
512
581
  * @returns A {@link Promise} resolved with `undefined` once the test completes.
513
582
  */
514
583
  test: typeof test;
@@ -517,6 +586,7 @@ declare module "node:test" {
517
586
  */
518
587
  readonly mock: MockTracker;
519
588
  }
589
+
520
590
  /**
521
591
  * An instance of `SuiteContext` is passed to each suite function in order to
522
592
  * interact with the test runner. However, the `SuiteContext` constructor is not
@@ -577,7 +647,7 @@ declare module "node:test" {
577
647
  todo?: boolean | string | undefined;
578
648
  }
579
649
  /**
580
- * This function is used to create a hook running before running a suite.
650
+ * This function creates a hook that runs before executing a suite.
581
651
  *
582
652
  * ```js
583
653
  * describe('tests', async () => {
@@ -593,7 +663,7 @@ declare module "node:test" {
593
663
  */
594
664
  function before(fn?: HookFn, options?: HookOptions): void;
595
665
  /**
596
- * This function is used to create a hook running after running a suite.
666
+ * This function creates a hook that runs after executing a suite.
597
667
  *
598
668
  * ```js
599
669
  * describe('tests', async () => {
@@ -609,8 +679,7 @@ declare module "node:test" {
609
679
  */
610
680
  function after(fn?: HookFn, options?: HookOptions): void;
611
681
  /**
612
- * This function is used to create a hook running
613
- * before each subtest of the current suite.
682
+ * This function creates a hook that runs before each test in the current suite.
614
683
  *
615
684
  * ```js
616
685
  * describe('tests', async () => {
@@ -626,8 +695,8 @@ declare module "node:test" {
626
695
  */
627
696
  function beforeEach(fn?: HookFn, options?: HookOptions): void;
628
697
  /**
629
- * This function is used to create a hook running
630
- * after each subtest of the current test.
698
+ * This function creates a hook that runs after each test in the current suite.
699
+ * The `afterEach()` hook is run even if the test fails.
631
700
  *
632
701
  * ```js
633
702
  * describe('tests', async () => {
@@ -695,7 +764,7 @@ declare module "node:test" {
695
764
  /**
696
765
  * The `MockTracker` class is used to manage mocking functionality. The test runner
697
766
  * module provides a top level `mock` export which is a `MockTracker` instance.
698
- * Each test also provides its own `MockTracker` instance via the test context's`mock` property.
767
+ * Each test also provides its own `MockTracker` instance via the test context's `mock` property.
699
768
  * @since v19.1.0, v18.13.0
700
769
  */
701
770
  class MockTracker {
@@ -811,7 +880,7 @@ declare module "node:test" {
811
880
  ): Mock<Function>;
812
881
 
813
882
  /**
814
- * This function is syntax sugar for `MockTracker.method` with `options.getter`set to `true`.
883
+ * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`.
815
884
  * @since v19.3.0, v18.13.0
816
885
  */
817
886
  getter<
@@ -833,7 +902,7 @@ declare module "node:test" {
833
902
  options?: MockFunctionOptions,
834
903
  ): Mock<(() => MockedObject[MethodName]) | Implementation>;
835
904
  /**
836
- * This function is syntax sugar for `MockTracker.method` with `options.setter`set to `true`.
905
+ * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`.
837
906
  * @since v19.3.0, v18.13.0
838
907
  */
839
908
  setter<
@@ -856,11 +925,11 @@ declare module "node:test" {
856
925
  ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>;
857
926
  /**
858
927
  * This function restores the default behavior of all mocks that were previously
859
- * 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
928
+ * 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
860
929
  * used to reset their behavior or
861
930
  * otherwise interact with them.
862
931
  *
863
- * After each test completes, this function is called on the test context's`MockTracker`. If the global `MockTracker` is used extensively, calling this
932
+ * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this
864
933
  * function manually is recommended.
865
934
  * @since v19.1.0, v18.13.0
866
935
  */
@@ -926,7 +995,7 @@ declare module "node:test" {
926
995
  readonly calls: Array<MockFunctionCall<F>>;
927
996
  /**
928
997
  * This function returns the number of times that this mock has been invoked. This
929
- * 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.
998
+ * 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.
930
999
  * @since v19.1.0, v18.13.0
931
1000
  * @return The number of times that this mock has been invoked.
932
1001
  */
@@ -962,7 +1031,7 @@ declare module "node:test" {
962
1031
  * @since v19.1.0, v18.13.0
963
1032
  * @param implementation The function to be used as the mock's new implementation.
964
1033
  */
965
- mockImplementation(implementation: Function): void;
1034
+ mockImplementation(implementation: F): void;
966
1035
  /**
967
1036
  * This function is used to change the behavior of an existing mock for a single
968
1037
  * invocation. Once invocation `onCall` has occurred, the mock will revert to
@@ -999,7 +1068,7 @@ declare module "node:test" {
999
1068
  * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`.
1000
1069
  * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown.
1001
1070
  */
1002
- mockImplementationOnce(implementation: Function, onCall?: number): void;
1071
+ mockImplementationOnce(implementation: F, onCall?: number): void;
1003
1072
  /**
1004
1073
  * Resets the call history of the mock function.
1005
1074
  * @since v19.3.0, v18.13.0
@@ -1050,7 +1119,7 @@ declare module "node:test" {
1050
1119
  *
1051
1120
  * The above example enables mocking for the `Date` constructor, `setInterval` timer and
1052
1121
  * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`,
1053
- * `setInterval` and `clearInterval` functions from `node:timers`,`node:timers/promises`, and `globalThis` will be mocked.
1122
+ * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked.
1054
1123
  *
1055
1124
  * Example usage with initial time set
1056
1125
  *
@@ -1075,7 +1144,9 @@ declare module "node:test" {
1075
1144
  * and `globalThis` will be mocked.
1076
1145
  * The `Date` constructor from `globalThis` will be mocked.
1077
1146
  *
1078
- * 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 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 object. It can either be a positive integer, or another Date object.
1147
+ * 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
1148
+ * 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
1149
+ * object. It can either be a positive integer, or another Date object.
1079
1150
  * @since v20.4.0
1080
1151
  */
1081
1152
  enable(options?: MockTimersOptions): void;
@@ -1244,8 +1315,10 @@ declare module "node:test" {
1244
1315
  only,
1245
1316
  run,
1246
1317
  skip,
1318
+ SuiteContext,
1247
1319
  test,
1248
1320
  test as default,
1321
+ TestContext,
1249
1322
  todo,
1250
1323
  };
1251
1324
  }
@@ -1257,12 +1330,11 @@ interface TestLocationInfo {
1257
1330
  */
1258
1331
  column?: number;
1259
1332
  /**
1260
- * The path of the test file, `undefined` if test is not ran through a file.
1333
+ * The path of the test file, `undefined` if test was run through the REPL.
1261
1334
  */
1262
1335
  file?: string;
1263
1336
  /**
1264
- * The line number where the test is defined, or
1265
- * `undefined` if the test was run through the REPL.
1337
+ * The line number where the test is defined, or `undefined` if the test was run through the REPL.
1266
1338
  */
1267
1339
  line?: number;
1268
1340
  }
@@ -1276,6 +1348,202 @@ interface DiagnosticData extends TestLocationInfo {
1276
1348
  */
1277
1349
  nesting: number;
1278
1350
  }
1351
+ interface TestCoverage {
1352
+ /**
1353
+ * An object containing the coverage report.
1354
+ */
1355
+ summary: {
1356
+ /**
1357
+ * An array of coverage reports for individual files. Each report is an object with the following schema:
1358
+ */
1359
+ files: Array<{
1360
+ /**
1361
+ * The absolute path of the file.
1362
+ */
1363
+ path: string;
1364
+ /**
1365
+ * The total number of lines.
1366
+ */
1367
+ totalLineCount: number;
1368
+ /**
1369
+ * The total number of branches.
1370
+ */
1371
+ totalBranchCount: number;
1372
+ /**
1373
+ * The total number of functions.
1374
+ */
1375
+ totalFunctionCount: number;
1376
+ /**
1377
+ * The number of covered lines.
1378
+ */
1379
+ coveredLineCount: number;
1380
+ /**
1381
+ * The number of covered branches.
1382
+ */
1383
+ coveredBranchCount: number;
1384
+ /**
1385
+ * The number of covered functions.
1386
+ */
1387
+ coveredFunctionCount: number;
1388
+ /**
1389
+ * The percentage of lines covered.
1390
+ */
1391
+ coveredLinePercent: number;
1392
+ /**
1393
+ * The percentage of branches covered.
1394
+ */
1395
+ coveredBranchPercent: number;
1396
+ /**
1397
+ * The percentage of functions covered.
1398
+ */
1399
+ coveredFunctionPercent: number;
1400
+ /**
1401
+ * An array of functions representing function coverage.
1402
+ */
1403
+ functions: Array<{
1404
+ /**
1405
+ * The name of the function.
1406
+ */
1407
+ name: string;
1408
+ /**
1409
+ * The line number where the function is defined.
1410
+ */
1411
+ line: number;
1412
+ /**
1413
+ * The number of times the function was called.
1414
+ */
1415
+ count: number;
1416
+ }>;
1417
+ /**
1418
+ * An array of lines representing line numbers and the number of times they were covered.
1419
+ */
1420
+ lines: Array<{
1421
+ /**
1422
+ * The line number.
1423
+ */
1424
+ line: number;
1425
+ /**
1426
+ * The number of times the line was covered.
1427
+ */
1428
+ count: number;
1429
+ }>;
1430
+ }>;
1431
+ /**
1432
+ * An object containing a summary of coverage for all files.
1433
+ */
1434
+ totals: {
1435
+ /**
1436
+ * The total number of lines.
1437
+ */
1438
+ totalLineCount: number;
1439
+ /**
1440
+ * The total number of branches.
1441
+ */
1442
+ totalBranchCount: number;
1443
+ /**
1444
+ * The total number of functions.
1445
+ */
1446
+ totalFunctionCount: number;
1447
+ /**
1448
+ * The number of covered lines.
1449
+ */
1450
+ coveredLineCount: number;
1451
+ /**
1452
+ * The number of covered branches.
1453
+ */
1454
+ coveredBranchCount: number;
1455
+ /**
1456
+ * The number of covered functions.
1457
+ */
1458
+ coveredFunctionCount: number;
1459
+ /**
1460
+ * The percentage of lines covered.
1461
+ */
1462
+ coveredLinePercent: number;
1463
+ /**
1464
+ * The percentage of branches covered.
1465
+ */
1466
+ coveredBranchPercent: number;
1467
+ /**
1468
+ * The percentage of functions covered.
1469
+ */
1470
+ coveredFunctionPercent: number;
1471
+ };
1472
+ /**
1473
+ * The working directory when code coverage began. This
1474
+ * is useful for displaying relative path names in case
1475
+ * the tests changed the working directory of the Node.js process.
1476
+ */
1477
+ workingDirectory: string;
1478
+ };
1479
+ /**
1480
+ * The nesting level of the test.
1481
+ */
1482
+ nesting: number;
1483
+ }
1484
+ interface TestComplete extends TestLocationInfo {
1485
+ /**
1486
+ * Additional execution metadata.
1487
+ */
1488
+ details: {
1489
+ /**
1490
+ * Whether the test passed or not.
1491
+ */
1492
+ passed: boolean;
1493
+ /**
1494
+ * The duration of the test in milliseconds.
1495
+ */
1496
+ duration_ms: number;
1497
+ /**
1498
+ * An error wrapping the error thrown by the test if it did not pass.
1499
+ */
1500
+ error: Error;
1501
+ /**
1502
+ * The type of the test, used to denote whether this is a suite.
1503
+ */
1504
+ type?: "suite";
1505
+ };
1506
+ /**
1507
+ * The test name.
1508
+ */
1509
+ name: string;
1510
+ /**
1511
+ * The nesting level of the test.
1512
+ */
1513
+ nesting: number;
1514
+ /**
1515
+ * The ordinal number of the test.
1516
+ */
1517
+ testNumber: number;
1518
+ /**
1519
+ * Present if `context.todo` is called.
1520
+ */
1521
+ todo?: string | boolean;
1522
+ /**
1523
+ * Present if `context.skip` is called.
1524
+ */
1525
+ skip?: string | boolean;
1526
+ }
1527
+ interface TestDequeue extends TestLocationInfo {
1528
+ /**
1529
+ * The test name.
1530
+ */
1531
+ name: string;
1532
+ /**
1533
+ * The nesting level of the test.
1534
+ */
1535
+ nesting: number;
1536
+ }
1537
+ interface TestEnqueue extends TestLocationInfo {
1538
+ /**
1539
+ * The test name.
1540
+ */
1541
+ name: string;
1542
+ /**
1543
+ * The nesting level of the test.
1544
+ */
1545
+ nesting: number;
1546
+ }
1279
1547
  interface TestFail extends TestLocationInfo {
1280
1548
  /**
1281
1549
  * Additional execution metadata.
@@ -1286,12 +1554,12 @@ interface TestFail extends TestLocationInfo {
1286
1554
  */
1287
1555
  duration_ms: number;
1288
1556
  /**
1289
- * The error thrown by the test.
1557
+ * An error wrapping the error thrown by the test if it did not pass.
1290
1558
  */
1291
1559
  error: Error;
1292
1560
  /**
1293
1561
  * The type of the test, used to denote whether this is a suite.
1294
- * @since 20.0.0, 19.9.0, 18.17.0
1562
+ * @since v20.0.0, v19.9.0, v18.17.0
1295
1563
  */
1296
1564
  type?: "suite";
1297
1565
  };
@@ -1374,36 +1642,16 @@ interface TestStart extends TestLocationInfo {
1374
1642
  }
1375
1643
  interface TestStderr extends TestLocationInfo {
1376
1644
  /**
1377
- * The message written to `stderr`
1645
+ * The message written to `stderr`.
1378
1646
  */
1379
1647
  message: string;
1380
1648
  }
1381
1649
  interface TestStdout extends TestLocationInfo {
1382
1650
  /**
1383
- * The message written to `stdout`
1651
+ * The message written to `stdout`.
1384
1652
  */
1385
1653
  message: string;
1386
1654
  }
1387
- interface TestEnqueue extends TestLocationInfo {
1388
- /**
1389
- * The test name
1390
- */
1391
- name: string;
1392
- /**
1393
- * The nesting level of the test.
1394
- */
1395
- nesting: number;
1396
- }
1397
- interface TestDequeue extends TestLocationInfo {
1398
- /**
1399
- * The test name
1400
- */
1401
- name: string;
1402
- /**
1403
- * The nesting level of the test.
1404
- */
1405
- nesting: number;
1406
- }
1407
1655
 
1408
1656
  /**
1409
1657
  * The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
@@ -1420,21 +1668,23 @@ interface TestDequeue extends TestLocationInfo {
1420
1668
  * import test from 'test/reporters';
1421
1669
  * ```
1422
1670
  * @since v19.9.0
1423
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/test/reporters.js)
1671
+ * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/test/reporters.js)
1424
1672
  */
1425
1673
  declare module "node:test/reporters" {
1426
1674
  import { Transform, TransformOptions } from "node:stream";
1427
1675
 
1428
1676
  type TestEvent =
1677
+ | { type: "test:coverage"; data: TestCoverage }
1678
+ | { type: "test:complete"; data: TestComplete }
1679
+ | { type: "test:dequeue"; data: TestDequeue }
1429
1680
  | { type: "test:diagnostic"; data: DiagnosticData }
1681
+ | { type: "test:enqueue"; data: TestEnqueue }
1430
1682
  | { type: "test:fail"; data: TestFail }
1431
1683
  | { type: "test:pass"; data: TestPass }
1432
1684
  | { type: "test:plan"; data: TestPlan }
1433
1685
  | { type: "test:start"; data: TestStart }
1434
1686
  | { type: "test:stderr"; data: TestStderr }
1435
1687
  | { type: "test:stdout"; data: TestStdout }
1436
- | { type: "test:enqueue"; data: TestEnqueue }
1437
- | { type: "test:dequeue"; data: TestDequeue }
1438
1688
  | { type: "test:watch:drained" };
1439
1689
  type TestEventGenerator = AsyncGenerator<TestEvent, void>;
1440
1690
 
@@ -1455,9 +1705,12 @@ declare module "node:test/reporters" {
1455
1705
  constructor();
1456
1706
  }
1457
1707
  /**
1458
- * The `junit` reporter outputs test results in a jUnit XML format
1708
+ * The `junit` reporter outputs test results in a jUnit XML format.
1459
1709
  */
1460
1710
  function junit(source: TestEventGenerator): AsyncGenerator<string, void>;
1711
+ /**
1712
+ * The `lcov` reporter outputs test coverage when used with the [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--experimental-test-coverage) flag.
1713
+ */
1461
1714
  class Lcov extends Transform {
1462
1715
  constructor(opts?: TransformOptions);
1463
1716
  }