node-red-contrib-tak-registration 0.11.6 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) 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 -110
  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 +106 -142
  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 +34 -12
  17. package/node_modules/@types/node/fs.d.ts +104 -40
  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/module.d.ts +0 -14
  25. package/node_modules/@types/node/net.d.ts +58 -13
  26. package/node_modules/@types/node/os.d.ts +29 -12
  27. package/node_modules/@types/node/package.json +4 -16
  28. package/node_modules/@types/node/path.d.ts +1 -1
  29. package/node_modules/@types/node/perf_hooks.d.ts +308 -48
  30. package/node_modules/@types/node/process.d.ts +241 -48
  31. package/node_modules/@types/node/punycode.d.ts +4 -4
  32. package/node_modules/@types/node/querystring.d.ts +18 -6
  33. package/node_modules/@types/node/readline/promises.d.ts +9 -9
  34. package/node_modules/@types/node/readline.d.ts +23 -22
  35. package/node_modules/@types/node/repl.d.ts +21 -21
  36. package/node_modules/@types/node/sea.d.ts +153 -0
  37. package/node_modules/@types/node/stream/web.d.ts +3 -2
  38. package/node_modules/@types/node/stream.d.ts +63 -57
  39. package/node_modules/@types/node/string_decoder.d.ts +3 -3
  40. package/node_modules/@types/node/test.d.ts +363 -98
  41. package/node_modules/@types/node/timers/promises.d.ts +10 -6
  42. package/node_modules/@types/node/timers.d.ts +5 -5
  43. package/node_modules/@types/node/tls.d.ts +39 -32
  44. package/node_modules/@types/node/trace_events.d.ts +40 -25
  45. package/node_modules/@types/node/tty.d.ts +8 -8
  46. package/node_modules/@types/node/url.d.ts +15 -7
  47. package/node_modules/@types/node/util.d.ts +131 -22
  48. package/node_modules/@types/node/v8.d.ts +51 -7
  49. package/node_modules/@types/node/vm.d.ts +43 -24
  50. package/node_modules/@types/node/wasi.d.ts +12 -10
  51. package/node_modules/@types/node/worker_threads.d.ts +19 -16
  52. package/node_modules/@types/node/zlib.d.ts +16 -3
  53. package/node_modules/adm-zip/README.md +2 -1
  54. package/node_modules/adm-zip/adm-zip.js +46 -45
  55. package/node_modules/adm-zip/headers/entryHeader.js +14 -12
  56. package/node_modules/adm-zip/headers/mainHeader.js +1 -1
  57. package/node_modules/adm-zip/methods/inflater.js +6 -3
  58. package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
  59. package/node_modules/adm-zip/package.json +2 -2
  60. package/node_modules/adm-zip/util/errors.js +1 -0
  61. package/node_modules/adm-zip/zipEntry.js +64 -43
  62. package/node_modules/adm-zip/zipFile.js +35 -35
  63. package/node_modules/axios/CHANGELOG.md +868 -759
  64. package/node_modules/axios/README.md +65 -17
  65. package/node_modules/axios/dist/axios.js +1330 -583
  66. package/node_modules/axios/dist/axios.js.map +1 -1
  67. package/node_modules/axios/dist/axios.min.js +1 -1
  68. package/node_modules/axios/dist/axios.min.js.map +1 -1
  69. package/node_modules/axios/dist/browser/axios.cjs +696 -316
  70. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  71. package/node_modules/axios/dist/esm/axios.js +696 -316
  72. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  73. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  74. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  75. package/node_modules/axios/dist/node/axios.cjs +607 -257
  76. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  77. package/node_modules/axios/index.d.cts +5 -2
  78. package/node_modules/axios/index.d.ts +5 -2
  79. package/node_modules/axios/lib/adapters/adapters.js +3 -1
  80. package/node_modules/axios/lib/adapters/fetch.js +227 -0
  81. package/node_modules/axios/lib/adapters/http.js +1 -1
  82. package/node_modules/axios/lib/adapters/xhr.js +31 -101
  83. package/node_modules/axios/lib/core/Axios.js +17 -11
  84. package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
  85. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  86. package/node_modules/axios/lib/defaults/index.js +7 -5
  87. package/node_modules/axios/lib/env/data.js +1 -1
  88. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
  89. package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
  90. package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
  91. package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  92. package/node_modules/axios/lib/helpers/throttle.js +5 -3
  93. package/node_modules/axios/lib/helpers/trackStream.js +55 -0
  94. package/node_modules/axios/lib/platform/common/utils.js +4 -1
  95. package/node_modules/axios/lib/utils.js +7 -2
  96. package/node_modules/axios/package.json +27 -26
  97. package/node_modules/fast-xml-parser/CHANGELOG.md +14 -0
  98. package/node_modules/fast-xml-parser/README.md +7 -14
  99. package/node_modules/fast-xml-parser/package.json +1 -1
  100. package/node_modules/fast-xml-parser/src/fxp.d.ts +4 -4
  101. package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
  102. package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
  103. package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
  104. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
  105. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
  106. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
  107. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
  108. package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
  109. package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
  110. package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
  111. package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
  112. package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
  113. package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
  114. package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
  115. package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
  116. package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
  117. package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
  118. package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
  119. package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
  120. package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
  121. package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
  122. package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
  123. package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
  124. package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
  125. package/node_modules/fast-xml-parser/src/validator.js +2 -0
  126. package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +13 -4
  127. package/node_modules/follow-redirects/index.js +1 -1
  128. package/node_modules/follow-redirects/package.json +1 -1
  129. package/node_modules/hasown/CHANGELOG.md +12 -0
  130. package/node_modules/hasown/index.d.ts +2 -2
  131. package/node_modules/hasown/package.json +5 -2
  132. package/node_modules/hasown/tsconfig.json +3 -46
  133. package/node_modules/object-is/.eslintrc +1 -1
  134. package/node_modules/object-is/.nycrc +0 -4
  135. package/node_modules/object-is/CHANGELOG.md +25 -0
  136. package/node_modules/object-is/README.md +20 -20
  137. package/node_modules/object-is/package.json +23 -14
  138. package/node_modules/protobufjs/LICENSE +39 -39
  139. package/node_modules/protobufjs/README.md +727 -740
  140. package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
  141. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  142. package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
  143. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  144. package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
  145. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  146. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  147. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  148. package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
  149. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  150. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  151. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  152. package/node_modules/protobufjs/ext/debug/README.md +4 -4
  153. package/node_modules/protobufjs/ext/debug/index.js +71 -71
  154. package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
  155. package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
  156. package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
  157. package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
  158. package/node_modules/protobufjs/google/LICENSE +27 -27
  159. package/node_modules/protobufjs/google/README.md +1 -1
  160. package/node_modules/protobufjs/google/api/annotations.json +82 -82
  161. package/node_modules/protobufjs/google/api/annotations.proto +10 -10
  162. package/node_modules/protobufjs/google/api/http.json +85 -85
  163. package/node_modules/protobufjs/google/api/http.proto +30 -30
  164. package/node_modules/protobufjs/google/protobuf/api.json +117 -117
  165. package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
  166. package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
  167. package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
  168. package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
  169. package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
  170. package/node_modules/protobufjs/google/protobuf/type.json +201 -201
  171. package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
  172. package/node_modules/protobufjs/index.d.ts +2741 -2741
  173. package/node_modules/protobufjs/index.js +4 -4
  174. package/node_modules/protobufjs/light.d.ts +2 -2
  175. package/node_modules/protobufjs/light.js +3 -3
  176. package/node_modules/protobufjs/minimal.d.ts +2 -2
  177. package/node_modules/protobufjs/minimal.js +4 -4
  178. package/node_modules/protobufjs/package.json +111 -111
  179. package/node_modules/protobufjs/scripts/postinstall.js +32 -32
  180. package/node_modules/protobufjs/src/common.js +399 -399
  181. package/node_modules/protobufjs/src/converter.js +301 -301
  182. package/node_modules/protobufjs/src/decoder.js +129 -129
  183. package/node_modules/protobufjs/src/encoder.js +100 -100
  184. package/node_modules/protobufjs/src/enum.js +198 -198
  185. package/node_modules/protobufjs/src/field.js +377 -377
  186. package/node_modules/protobufjs/src/index-light.js +104 -104
  187. package/node_modules/protobufjs/src/index-minimal.js +36 -36
  188. package/node_modules/protobufjs/src/index.js +12 -12
  189. package/node_modules/protobufjs/src/mapfield.js +126 -126
  190. package/node_modules/protobufjs/src/message.js +138 -138
  191. package/node_modules/protobufjs/src/method.js +160 -160
  192. package/node_modules/protobufjs/src/namespace.js +433 -433
  193. package/node_modules/protobufjs/src/object.js +243 -243
  194. package/node_modules/protobufjs/src/oneof.js +203 -203
  195. package/node_modules/protobufjs/src/parse.js +889 -872
  196. package/node_modules/protobufjs/src/reader.js +416 -416
  197. package/node_modules/protobufjs/src/reader_buffer.js +51 -51
  198. package/node_modules/protobufjs/src/root.js +368 -368
  199. package/node_modules/protobufjs/src/roots.js +18 -18
  200. package/node_modules/protobufjs/src/rpc/service.js +142 -142
  201. package/node_modules/protobufjs/src/rpc.js +36 -36
  202. package/node_modules/protobufjs/src/service.js +167 -167
  203. package/node_modules/protobufjs/src/tokenize.js +416 -416
  204. package/node_modules/protobufjs/src/type.js +589 -589
  205. package/node_modules/protobufjs/src/types.js +196 -196
  206. package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
  207. package/node_modules/protobufjs/src/util/longbits.js +200 -200
  208. package/node_modules/protobufjs/src/util/minimal.js +438 -438
  209. package/node_modules/protobufjs/src/util.js +212 -212
  210. package/node_modules/protobufjs/src/verifier.js +176 -176
  211. package/node_modules/protobufjs/src/wrappers.js +102 -102
  212. package/node_modules/protobufjs/src/writer.js +465 -465
  213. package/node_modules/protobufjs/src/writer_buffer.js +85 -85
  214. package/node_modules/protobufjs/tsconfig.json +7 -7
  215. package/node_modules/set-function-length/CHANGELOG.md +11 -0
  216. package/node_modules/set-function-length/env.d.ts +9 -6
  217. package/node_modules/set-function-length/env.js +1 -0
  218. package/node_modules/set-function-length/index.d.ts +6 -6
  219. package/node_modules/set-function-length/index.js +1 -3
  220. package/node_modules/set-function-length/package.json +11 -13
  221. package/node_modules/set-function-length/tsconfig.json +7 -57
  222. package/node_modules/undici-types/LICENSE +21 -0
  223. package/node_modules/undici-types/balanced-pool.d.ts +11 -0
  224. package/node_modules/undici-types/client.d.ts +12 -1
  225. package/node_modules/undici-types/diagnostics-channel.d.ts +1 -2
  226. package/node_modules/undici-types/dispatcher.d.ts +17 -3
  227. package/node_modules/undici-types/eventsource.d.ts +61 -0
  228. package/node_modules/undici-types/fetch.d.ts +22 -23
  229. package/node_modules/undici-types/handlers.d.ts +10 -4
  230. package/node_modules/undici-types/index.d.ts +6 -1
  231. package/node_modules/undici-types/package.json +1 -1
  232. package/node_modules/undici-types/pool.d.ts +11 -0
  233. package/node_modules/undici-types/proxy-agent.d.ts +0 -2
  234. package/node_modules/undici-types/readable.d.ts +2 -3
  235. package/node_modules/undici-types/retry-agent.d.ts +11 -0
  236. package/node_modules/undici-types/retry-handler.d.ts +116 -0
  237. package/node_modules/undici-types/util.d.ts +31 -0
  238. package/node_modules/undici-types/webidl.d.ts +6 -1
  239. package/node_modules/undici-types/websocket.d.ts +22 -1
  240. package/node_modules/uuid/CHANGELOG.md +18 -0
  241. package/node_modules/uuid/README.md +134 -16
  242. package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
  243. package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
  244. package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
  245. package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
  246. package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
  247. package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
  248. package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
  249. package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
  250. package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
  251. package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
  252. package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
  253. package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
  254. package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
  255. package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
  256. package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
  257. package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
  258. package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
  259. package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
  260. package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
  261. package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
  262. package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
  263. package/node_modules/uuid/dist/esm-browser/index.js +9 -4
  264. package/node_modules/uuid/dist/esm-browser/max.js +1 -0
  265. package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
  266. package/node_modules/uuid/dist/esm-browser/native.js +1 -1
  267. package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
  268. package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
  269. package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
  270. package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
  271. package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
  272. package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
  273. package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
  274. package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
  275. package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
  276. package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
  277. package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
  278. package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
  279. package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
  280. package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
  281. package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
  282. package/node_modules/uuid/dist/esm-browser/version.js +0 -3
  283. package/node_modules/uuid/dist/esm-node/index.js +9 -4
  284. package/node_modules/uuid/dist/esm-node/max.js +1 -0
  285. package/node_modules/uuid/dist/esm-node/md5.js +1 -4
  286. package/node_modules/uuid/dist/esm-node/native.js +1 -1
  287. package/node_modules/uuid/dist/esm-node/parse.js +11 -9
  288. package/node_modules/uuid/dist/esm-node/regex.js +1 -1
  289. package/node_modules/uuid/dist/esm-node/rng.js +1 -3
  290. package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
  291. package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
  292. package/node_modules/uuid/dist/esm-node/v1.js +66 -36
  293. package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
  294. package/node_modules/uuid/dist/esm-node/v35.js +8 -19
  295. package/node_modules/uuid/dist/esm-node/v4.js +4 -8
  296. package/node_modules/uuid/dist/esm-node/v6.js +32 -0
  297. package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
  298. package/node_modules/uuid/dist/esm-node/v7.js +146 -0
  299. package/node_modules/uuid/dist/esm-node/validate.js +0 -2
  300. package/node_modules/uuid/dist/esm-node/version.js +0 -3
  301. package/node_modules/uuid/dist/index.js +40 -15
  302. package/node_modules/uuid/dist/max.js +7 -0
  303. package/node_modules/uuid/dist/md5-browser.js +8 -31
  304. package/node_modules/uuid/dist/md5.js +4 -10
  305. package/node_modules/uuid/dist/native-browser.js +2 -3
  306. package/node_modules/uuid/dist/native.js +5 -9
  307. package/node_modules/uuid/dist/nil.js +1 -2
  308. package/node_modules/uuid/dist/parse.js +13 -14
  309. package/node_modules/uuid/dist/regex.js +1 -2
  310. package/node_modules/uuid/dist/rng-browser.js +1 -3
  311. package/node_modules/uuid/dist/rng.js +3 -10
  312. package/node_modules/uuid/dist/sha1-browser.js +1 -23
  313. package/node_modules/uuid/dist/sha1.js +4 -10
  314. package/node_modules/uuid/dist/stringify.js +8 -14
  315. package/node_modules/uuid/dist/uuid-bin.js +12 -22
  316. package/node_modules/uuid/dist/v1.js +66 -42
  317. package/node_modules/uuid/dist/v1ToV6.js +26 -0
  318. package/node_modules/uuid/dist/v3.js +2 -7
  319. package/node_modules/uuid/dist/v35.js +11 -28
  320. package/node_modules/uuid/dist/v4.js +6 -17
  321. package/node_modules/uuid/dist/v5.js +2 -7
  322. package/node_modules/uuid/dist/v6.js +38 -0
  323. package/node_modules/uuid/dist/v6ToV1.js +26 -0
  324. package/node_modules/uuid/dist/v7.js +152 -0
  325. package/node_modules/uuid/dist/validate.js +2 -7
  326. package/node_modules/uuid/dist/version.js +2 -8
  327. package/node_modules/uuid/package.json +41 -34
  328. package/node_modules/uuid/wrapper.mjs +5 -0
  329. package/package.json +6 -6
  330. package/tak-ingest.js +1 -1
  331. package/tak-registration.js +8 -1
  332. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  333. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  334. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  335. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
  336. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  337. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  338. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  339. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  340. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  341. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  342. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  343. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  344. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  345. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  346. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  347. package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  348. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  349. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  350. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  351. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  352. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  353. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  354. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  355. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  356. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  357. package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  358. package/node_modules/@types/node/ts4.8/net.d.ts +0 -954
  359. package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  360. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  361. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  362. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  363. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  364. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  365. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  366. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  367. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  368. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  369. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  370. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  371. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  372. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  373. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  374. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  375. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  376. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  377. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  378. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  379. package/node_modules/@types/node/ts4.8/url.d.ts +0 -944
  380. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  381. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  382. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  383. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  384. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  385. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  386. package/node_modules/object-is/.eslintignore +0 -1
  387. package/node_modules/set-function-length/env.d.ts.map +0 -1
  388. package/node_modules/set-function-length/index.d.ts.map +0 -1
@@ -32,7 +32,7 @@
32
32
  * });
33
33
  * myEmitter.emit('event');
34
34
  * ```
35
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/events.js)
35
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/events.js)
36
36
  */
37
37
  declare module "events" {
38
38
  import { AsyncResource, AsyncResourceOptions } from "node:async_hooks";
@@ -75,24 +75,48 @@ declare module "events" {
75
75
  */
76
76
  captureRejections?: boolean | undefined;
77
77
  }
78
- // Any EventTarget with a Node-style `once` function
79
- interface _NodeEventTarget {
80
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
81
- }
82
- // Any EventTarget with a DOM-style `addEventListener`
83
- interface _DOMEventTarget {
84
- addEventListener(
85
- eventName: string,
86
- listener: (...args: any[]) => void,
87
- opts?: {
88
- once: boolean;
89
- },
90
- ): any;
91
- }
92
78
  interface StaticEventEmitterOptions {
79
+ /**
80
+ * Can be used to cancel awaiting events.
81
+ */
93
82
  signal?: AbortSignal | undefined;
94
83
  }
95
- interface EventEmitter extends NodeJS.EventEmitter {}
84
+ interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions {
85
+ /**
86
+ * Names of events that will end the iteration.
87
+ */
88
+ close?: string[] | undefined;
89
+ /**
90
+ * The high watermark. The emitter is paused every time the size of events being buffered is higher than it.
91
+ * Supported only on emitters implementing `pause()` and `resume()` methods.
92
+ * @default Number.MAX_SAFE_INTEGER
93
+ */
94
+ highWaterMark?: number | undefined;
95
+ /**
96
+ * The low watermark. The emitter is resumed every time the size of events being buffered is lower than it.
97
+ * Supported only on emitters implementing `pause()` and `resume()` methods.
98
+ * @default 1
99
+ */
100
+ lowWaterMark?: number | undefined;
101
+ }
102
+ interface EventEmitter<T extends EventMap<T> = DefaultEventMap> extends NodeJS.EventEmitter<T> {}
103
+ type EventMap<T> = Record<keyof T, any[]> | DefaultEventMap;
104
+ type DefaultEventMap = [never];
105
+ type AnyRest = [...args: any[]];
106
+ type Args<K, T> = T extends DefaultEventMap ? AnyRest : (
107
+ K extends keyof T ? T[K] : never
108
+ );
109
+ type Key<K, T> = T extends DefaultEventMap ? string | symbol : K | keyof T;
110
+ type Key2<K, T> = T extends DefaultEventMap ? string | symbol : K & keyof T;
111
+ type Listener<K, T, F> = T extends DefaultEventMap ? F : (
112
+ K extends keyof T ? (
113
+ T[K] extends unknown[] ? (...args: T[K]) => void : never
114
+ )
115
+ : never
116
+ );
117
+ type Listener1<K, T> = Listener<K, T, (...args: any[]) => void>;
118
+ type Listener2<K, T> = Listener<K, T, Function>;
119
+
96
120
  /**
97
121
  * The `EventEmitter` class is defined and exposed by the `node:events` module:
98
122
  *
@@ -106,10 +130,10 @@ declare module "events" {
106
130
  * It supports the following option:
107
131
  * @since v0.1.26
108
132
  */
109
- class EventEmitter {
133
+ class EventEmitter<T extends EventMap<T> = DefaultEventMap> {
110
134
  constructor(options?: EventEmitterOptions);
111
135
 
112
- [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
136
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
113
137
 
114
138
  /**
115
139
  * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
@@ -145,7 +169,7 @@ declare module "events" {
145
169
  * }
146
170
  * ```
147
171
  *
148
- * The special handling of the `'error'` event is only used when `events.once()`is used to wait for another event. If `events.once()` is used to wait for the
172
+ * The special handling of the `'error'` event is only used when `events.once()` is used to wait for another event. If `events.once()` is used to wait for the
149
173
  * '`error'` event itself, then it is treated as any other kind of event without
150
174
  * special handling:
151
175
  *
@@ -191,11 +215,11 @@ declare module "events" {
191
215
  * @since v11.13.0, v10.16.0
192
216
  */
193
217
  static once(
194
- emitter: _NodeEventTarget,
218
+ emitter: NodeJS.EventEmitter,
195
219
  eventName: string | symbol,
196
220
  options?: StaticEventEmitterOptions,
197
221
  ): Promise<any[]>;
198
- static once(emitter: _DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
222
+ static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise<any[]>;
199
223
  /**
200
224
  * ```js
201
225
  * import { on, EventEmitter } from 'node:events';
@@ -251,17 +275,43 @@ declare module "events" {
251
275
  *
252
276
  * process.nextTick(() => ac.abort());
253
277
  * ```
278
+ *
279
+ * Use the `close` option to specify an array of event names that will end the iteration:
280
+ *
281
+ * ```js
282
+ * import { on, EventEmitter } from 'node:events';
283
+ * import process from 'node:process';
284
+ *
285
+ * const ee = new EventEmitter();
286
+ *
287
+ * // Emit later on
288
+ * process.nextTick(() => {
289
+ * ee.emit('foo', 'bar');
290
+ * ee.emit('foo', 42);
291
+ * ee.emit('close');
292
+ * });
293
+ *
294
+ * for await (const event of on(ee, 'foo', { close: ['close'] })) {
295
+ * console.log(event); // prints ['bar'] [42]
296
+ * }
297
+ * // the loop will exit after 'close' is emitted
298
+ * console.log('done'); // prints 'done'
299
+ * ```
254
300
  * @since v13.6.0, v12.16.0
255
- * @param eventName The name of the event being listened for
256
- * @return that iterates `eventName` events emitted by the `emitter`
301
+ * @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter`
257
302
  */
258
303
  static on(
259
304
  emitter: NodeJS.EventEmitter,
305
+ eventName: string | symbol,
306
+ options?: StaticEventEmitterIteratorOptions,
307
+ ): AsyncIterableIterator<any[]>;
308
+ static on(
309
+ emitter: EventTarget,
260
310
  eventName: string,
261
- options?: StaticEventEmitterOptions,
262
- ): AsyncIterableIterator<any>;
311
+ options?: StaticEventEmitterIteratorOptions,
312
+ ): AsyncIterableIterator<any[]>;
263
313
  /**
264
- * A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`.
314
+ * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`.
265
315
  *
266
316
  * ```js
267
317
  * import { EventEmitter, listenerCount } from 'node:events';
@@ -305,7 +355,7 @@ declare module "events" {
305
355
  * ```
306
356
  * @since v15.2.0, v14.17.0
307
357
  */
308
- static getEventListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
358
+ static getEventListeners(emitter: EventTarget | NodeJS.EventEmitter, name: string | symbol): Function[];
309
359
  /**
310
360
  * Returns the currently set max amount of listeners.
311
361
  *
@@ -334,7 +384,7 @@ declare module "events" {
334
384
  * ```
335
385
  * @since v19.9.0
336
386
  */
337
- static getMaxListeners(emitter: _DOMEventTarget | NodeJS.EventEmitter): number;
387
+ static getMaxListeners(emitter: EventTarget | NodeJS.EventEmitter): number;
338
388
  /**
339
389
  * ```js
340
390
  * import { setMaxListeners, EventEmitter } from 'node:events';
@@ -349,7 +399,7 @@ declare module "events" {
349
399
  * @param eventsTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
350
400
  * objects.
351
401
  */
352
- static setMaxListeners(n?: number, ...eventTargets: Array<_DOMEventTarget | NodeJS.EventEmitter>): void;
402
+ static setMaxListeners(n?: number, ...eventTargets: Array<EventTarget | NodeJS.EventEmitter>): void;
353
403
  /**
354
404
  * Listens once to the `abort` event on the provided `signal`.
355
405
  *
@@ -386,9 +436,9 @@ declare module "events" {
386
436
  */
387
437
  static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable;
388
438
  /**
389
- * This symbol shall be used to install a listener for only monitoring `'error'`events. Listeners installed using this symbol are called before the regular`'error'` listeners are called.
439
+ * This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called.
390
440
  *
391
- * Installing a listener using this symbol does not change the behavior once an`'error'` event is emitted. Therefore, the process will still crash if no
441
+ * Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted. Therefore, the process will still crash if no
392
442
  * regular `'error'` listener is installed.
393
443
  * @since v13.6.0, v12.17.0
394
444
  */
@@ -411,16 +461,18 @@ declare module "events" {
411
461
  * By default, a maximum of `10` listeners can be registered for any single
412
462
  * event. This limit can be changed for individual `EventEmitter` instances
413
463
  * using the `emitter.setMaxListeners(n)` method. To change the default
414
- * for _all_`EventEmitter` instances, the `events.defaultMaxListeners`property can be used. If this value is not a positive number, a `RangeError`is thrown.
464
+ * for _all_`EventEmitter` instances, the `events.defaultMaxListeners` property
465
+ * can be used. If this value is not a positive number, a `RangeError` is thrown.
415
466
  *
416
467
  * Take caution when setting the `events.defaultMaxListeners` because the
417
- * change affects _all_`EventEmitter` instances, including those created before
468
+ * change affects _all_ `EventEmitter` instances, including those created before
418
469
  * the change is made. However, calling `emitter.setMaxListeners(n)` still has
419
470
  * precedence over `events.defaultMaxListeners`.
420
471
  *
421
472
  * This is not a hard limit. The `EventEmitter` instance will allow
422
473
  * more listeners to be added but will output a trace warning to stderr indicating
423
- * that a "possible EventEmitter memory leak" has been detected. For any single`EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()`methods can be used to
474
+ * that a "possible EventEmitter memory leak" has been detected. For any single
475
+ * `EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()` methods can be used to
424
476
  * temporarily avoid this warning:
425
477
  *
426
478
  * ```js
@@ -536,18 +588,18 @@ declare module "events" {
536
588
  }
537
589
  global {
538
590
  namespace NodeJS {
539
- interface EventEmitter {
540
- [EventEmitter.captureRejectionSymbol]?(error: Error, event: string, ...args: any[]): void;
591
+ interface EventEmitter<T extends EventMap<T> = DefaultEventMap> {
592
+ [EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: Key<K, T>, ...args: Args<K, T>): void;
541
593
  /**
542
594
  * Alias for `emitter.on(eventName, listener)`.
543
595
  * @since v0.1.26
544
596
  */
545
- addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
597
+ addListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
546
598
  /**
547
- * Adds the `listener` function to the end of the listeners array for the
548
- * event named `eventName`. No checks are made to see if the `listener` has
549
- * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple
550
- * times.
599
+ * Adds the `listener` function to the end of the listeners array for the event
600
+ * named `eventName`. No checks are made to see if the `listener` has already
601
+ * been added. Multiple calls passing the same combination of `eventName` and
602
+ * `listener` will result in the `listener` being added, and called, multiple times.
551
603
  *
552
604
  * ```js
553
605
  * server.on('connection', (stream) => {
@@ -557,7 +609,7 @@ declare module "events" {
557
609
  *
558
610
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
559
611
  *
560
- * By default, event listeners are invoked in the order they are added. The`emitter.prependListener()` method can be used as an alternative to add the
612
+ * By default, event listeners are invoked in the order they are added. The `emitter.prependListener()` method can be used as an alternative to add the
561
613
  * event listener to the beginning of the listeners array.
562
614
  *
563
615
  * ```js
@@ -574,9 +626,9 @@ declare module "events" {
574
626
  * @param eventName The name of the event.
575
627
  * @param listener The callback function
576
628
  */
577
- on(eventName: string | symbol, listener: (...args: any[]) => void): this;
629
+ on<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
578
630
  /**
579
- * Adds a **one-time**`listener` function for the event named `eventName`. The
631
+ * Adds a **one-time** `listener` function for the event named `eventName`. The
580
632
  * next time `eventName` is triggered, this listener is removed and then invoked.
581
633
  *
582
634
  * ```js
@@ -587,7 +639,7 @@ declare module "events" {
587
639
  *
588
640
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
589
641
  *
590
- * By default, event listeners are invoked in the order they are added. The`emitter.prependOnceListener()` method can be used as an alternative to add the
642
+ * By default, event listeners are invoked in the order they are added. The `emitter.prependOnceListener()` method can be used as an alternative to add the
591
643
  * event listener to the beginning of the listeners array.
592
644
  *
593
645
  * ```js
@@ -604,9 +656,9 @@ declare module "events" {
604
656
  * @param eventName The name of the event.
605
657
  * @param listener The callback function
606
658
  */
607
- once(eventName: string | symbol, listener: (...args: any[]) => void): this;
659
+ once<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
608
660
  /**
609
- * Removes the specified `listener` from the listener array for the event named`eventName`.
661
+ * Removes the specified `listener` from the listener array for the event named `eventName`.
610
662
  *
611
663
  * ```js
612
664
  * const callback = (stream) => {
@@ -623,7 +675,7 @@ declare module "events" {
623
675
  * called multiple times to remove each instance.
624
676
  *
625
677
  * Once an event is emitted, all listeners attached to it at the
626
- * time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution
678
+ * time of emitting are called in order. This implies that any `removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution
627
679
  * will not remove them from`emit()` in progress. Subsequent events behave as expected.
628
680
  *
629
681
  * ```js
@@ -666,7 +718,7 @@ declare module "events" {
666
718
  *
667
719
  * When a single function has been added as a handler multiple times for a single
668
720
  * event (as in the example below), `removeListener()` will remove the most
669
- * recently added instance. In the example the `once('ping')`listener is removed:
721
+ * recently added instance. In the example the `once('ping')` listener is removed:
670
722
  *
671
723
  * ```js
672
724
  * import { EventEmitter } from 'node:events';
@@ -687,12 +739,12 @@ declare module "events" {
687
739
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
688
740
  * @since v0.1.26
689
741
  */
690
- removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
742
+ removeListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
691
743
  /**
692
744
  * Alias for `emitter.removeListener()`.
693
745
  * @since v10.0.0
694
746
  */
695
- off(eventName: string | symbol, listener: (...args: any[]) => void): this;
747
+ off<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
696
748
  /**
697
749
  * Removes all listeners, or those of the specified `eventName`.
698
750
  *
@@ -703,12 +755,12 @@ declare module "events" {
703
755
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
704
756
  * @since v0.1.26
705
757
  */
706
- removeAllListeners(event?: string | symbol): this;
758
+ removeAllListeners(eventName?: Key<unknown, T>): this;
707
759
  /**
708
760
  * By default `EventEmitter`s will print a warning if more than `10` listeners are
709
761
  * added for a particular event. This is a useful default that helps finding
710
762
  * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be
711
- * modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners.
763
+ * modified for this specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) to indicate an unlimited number of listeners.
712
764
  *
713
765
  * Returns a reference to the `EventEmitter`, so that calls can be chained.
714
766
  * @since v0.3.5
@@ -732,7 +784,7 @@ declare module "events" {
732
784
  * ```
733
785
  * @since v0.1.26
734
786
  */
735
- listeners(eventName: string | symbol): Function[];
787
+ listeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
736
788
  /**
737
789
  * Returns a copy of the array of listeners for the event named `eventName`,
738
790
  * including any wrappers (such as those created by `.once()`).
@@ -763,9 +815,9 @@ declare module "events" {
763
815
  * ```
764
816
  * @since v9.4.0
765
817
  */
766
- rawListeners(eventName: string | symbol): Function[];
818
+ rawListeners<K>(eventName: Key<K, T>): Array<Listener2<K, T>>;
767
819
  /**
768
- * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments
820
+ * Synchronously calls each of the listeners registered for the event named `eventName`, in the order they were registered, passing the supplied arguments
769
821
  * to each.
770
822
  *
771
823
  * Returns `true` if the event had listeners, `false` otherwise.
@@ -804,7 +856,7 @@ declare module "events" {
804
856
  * ```
805
857
  * @since v0.1.26
806
858
  */
807
- emit(eventName: string | symbol, ...args: any[]): boolean;
859
+ emit<K>(eventName: Key<K, T>, ...args: Args<K, T>): boolean;
808
860
  /**
809
861
  * Returns the number of listeners listening for the event named `eventName`.
810
862
  * If `listener` is provided, it will return how many times the listener is found
@@ -813,12 +865,12 @@ declare module "events" {
813
865
  * @param eventName The name of the event being listened for
814
866
  * @param listener The event handler function
815
867
  */
816
- listenerCount(eventName: string | symbol, listener?: Function): number;
868
+ listenerCount<K>(eventName: Key<K, T>, listener?: Listener2<K, T>): number;
817
869
  /**
818
870
  * Adds the `listener` function to the _beginning_ of the listeners array for the
819
871
  * event named `eventName`. No checks are made to see if the `listener` has
820
- * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple
821
- * times.
872
+ * already been added. Multiple calls passing the same combination of `eventName`
873
+ * and `listener` will result in the `listener` being added, and called, multiple times.
822
874
  *
823
875
  * ```js
824
876
  * server.prependListener('connection', (stream) => {
@@ -831,7 +883,7 @@ declare module "events" {
831
883
  * @param eventName The name of the event.
832
884
  * @param listener The callback function
833
885
  */
834
- prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
886
+ prependListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
835
887
  /**
836
888
  * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this
837
889
  * listener is removed, and then invoked.
@@ -847,7 +899,7 @@ declare module "events" {
847
899
  * @param eventName The name of the event.
848
900
  * @param listener The callback function
849
901
  */
850
- prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
902
+ prependOnceListener<K>(eventName: Key<K, T>, listener: Listener1<K, T>): this;
851
903
  /**
852
904
  * Returns an array listing the events for which the emitter has registered
853
905
  * listeners. The values in the array are strings or `Symbol`s.
@@ -867,7 +919,7 @@ declare module "events" {
867
919
  * ```
868
920
  * @since v6.0.0
869
921
  */
870
- eventNames(): Array<string | symbol>;
922
+ eventNames(): Array<(string | symbol) & Key2<unknown, T>>;
871
923
  }
872
924
  }
873
925
  }
@@ -20,6 +20,9 @@ declare module "fs/promises" {
20
20
  CopyOptions,
21
21
  Dir,
22
22
  Dirent,
23
+ GlobOptions,
24
+ GlobOptionsWithFileTypes,
25
+ GlobOptionsWithoutFileTypes,
23
26
  MakeDirectoryOptions,
24
27
  Mode,
25
28
  ObjectEncodingOptions,
@@ -189,7 +192,7 @@ declare module "fs/promises" {
189
192
  * replacing it may require the `flags` `open` option to be set to `r+` rather than
190
193
  * the default `r`. The `encoding` can be any one of those accepted by `Buffer`.
191
194
  *
192
- * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
195
+ * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
193
196
  * then the file descriptor won't be closed, even if there's an error.
194
197
  * It is the application's responsibility to close it and make sure there's no
195
198
  * file descriptor leak.
@@ -268,7 +271,7 @@ declare module "fs/promises" {
268
271
  *
269
272
  * The `FileHandle` has to support reading.
270
273
  *
271
- * If one or more `filehandle.read()` calls are made on a file handle and then a`filehandle.readFile()` call is made, the data will be read from the current
274
+ * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current
272
275
  * position till the end of the file. It doesn't always read from the beginning
273
276
  * of the file.
274
277
  * @since v10.0.0
@@ -375,7 +378,7 @@ declare module "fs/promises" {
375
378
  */
376
379
  utimes(atime: TimeLike, mtime: TimeLike): Promise<void>;
377
380
  /**
378
- * Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an
381
+ * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
379
382
  * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
380
383
  * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
381
384
  * The promise is fulfilled with no arguments upon success.
@@ -485,7 +488,7 @@ declare module "fs/promises" {
485
488
  /**
486
489
  * Tests a user's permissions for the file or directory specified by `path`.
487
490
  * The `mode` argument is an optional integer that specifies the accessibility
488
- * checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`,`fs.constants.W_OK`, and `fs.constants.X_OK`
491
+ * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
489
492
  * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
490
493
  * possible values of `mode`.
491
494
  *
@@ -570,7 +573,7 @@ declare module "fs/promises" {
570
573
  */
571
574
  function rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
572
575
  /**
573
- * Truncates (shortens or extends the length) of the content at `path` to `len`bytes.
576
+ * Truncates (shortens or extends the length) of the content at `path` to `len` bytes.
574
577
  * @since v10.0.0
575
578
  * @param [len=0]
576
579
  * @return Fulfills with `undefined` upon success.
@@ -580,7 +583,7 @@ declare module "fs/promises" {
580
583
  * Removes the directory identified by `path`.
581
584
  *
582
585
  * Using `fsPromises.rmdir()` on a file (not a directory) results in the
583
- * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR`error on POSIX.
586
+ * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX.
584
587
  *
585
588
  * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`.
586
589
  * @since v10.0.0
@@ -597,7 +600,7 @@ declare module "fs/promises" {
597
600
  * Asynchronously creates a directory.
598
601
  *
599
602
  * The optional `options` argument can be an integer specifying `mode` (permission
600
- * and sticky bits), or an object with a `mode` property and a `recursive`property indicating whether parent directories should be created. Calling`fsPromises.mkdir()` when `path` is a directory
603
+ * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory
601
604
  * that exists results in a
602
605
  * rejection only when `recursive` is false.
603
606
  *
@@ -747,7 +750,7 @@ declare module "fs/promises" {
747
750
  /**
748
751
  * Creates a symbolic link.
749
752
  *
750
- * The `type` argument is only used on Windows platforms and can be one of `'dir'`,`'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will
753
+ * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will
751
754
  * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not
752
755
  * exist, `'file'` will be used. Windows junction points require the destination
753
756
  * path to be absolute. When using `'junction'`, the `target` argument will
@@ -867,13 +870,13 @@ declare module "fs/promises" {
867
870
  *
868
871
  * * Values can be either numbers representing Unix epoch time, `Date`s, or a
869
872
  * numeric string like `'123456789.0'`.
870
- * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or`-Infinity`, an `Error` will be thrown.
873
+ * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown.
871
874
  * @since v10.0.0
872
875
  * @return Fulfills with `undefined` upon success.
873
876
  */
874
877
  function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise<void>;
875
878
  /**
876
- * Determines the actual location of `path` using the same semantics as the`fs.realpath.native()` function.
879
+ * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function.
877
880
  *
878
881
  * Only paths that can be converted to UTF8 strings are supported.
879
882
  *
@@ -927,7 +930,7 @@ declare module "fs/promises" {
927
930
  * ```
928
931
  *
929
932
  * The `fsPromises.mkdtemp()` method will append the six randomly selected
930
- * characters directly to the `prefix` string. For instance, given a directory`/tmp`, if the intention is to create a temporary directory _within_`/tmp`, the`prefix` must end with a trailing
933
+ * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing
931
934
  * platform-specific path separator
932
935
  * (`require('node:path').sep`).
933
936
  * @since v10.0.0
@@ -947,7 +950,7 @@ declare module "fs/promises" {
947
950
  */
948
951
  function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>;
949
952
  /**
950
- * Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an
953
+ * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an
951
954
  * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an
952
955
  * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object.
953
956
  *
@@ -1008,6 +1011,12 @@ declare module "fs/promises" {
1008
1011
  | (ObjectEncodingOptions & {
1009
1012
  mode?: Mode | undefined;
1010
1013
  flag?: OpenMode | undefined;
1014
+ /**
1015
+ * If all data is successfully written to the file, and `flush`
1016
+ * is `true`, `filehandle.sync()` is used to flush the data.
1017
+ * @default false
1018
+ */
1019
+ flush?: boolean | undefined;
1011
1020
  } & Abortable)
1012
1021
  | BufferEncoding
1013
1022
  | null,
@@ -1233,6 +1242,19 @@ declare module "fs/promises" {
1233
1242
  * @return Fulfills with `undefined` upon success.
1234
1243
  */
1235
1244
  function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
1245
+ /**
1246
+ * Retrieves the files matching the specified pattern.
1247
+ */
1248
+ function glob(pattern: string | string[]): AsyncIterableIterator<string>;
1249
+ /**
1250
+ * Retrieves the files matching the specified pattern.
1251
+ */
1252
+ function glob<Options extends GlobOptions>(
1253
+ pattern: string | string[],
1254
+ opt: Options,
1255
+ ): Options extends GlobOptionsWithFileTypes ? AsyncIterableIterator<Dirent>
1256
+ : Options extends GlobOptionsWithoutFileTypes ? AsyncIterableIterator<string>
1257
+ : AsyncIterableIterator<Dirent> | AsyncIterableIterator<string>;
1236
1258
  }
1237
1259
  declare module "node:fs/promises" {
1238
1260
  export * from "fs/promises";