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
@@ -14,7 +14,7 @@
14
14
  * // Prints:
15
15
  * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
16
16
  * ```
17
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/crypto.js)
17
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/crypto.js)
18
18
  */
19
19
  declare module "crypto" {
20
20
  import * as stream from "node:stream";
@@ -27,7 +27,7 @@ declare module "crypto" {
27
27
  * should not use this element anymore.
28
28
  *
29
29
  * The `node:crypto` module provides the `Certificate` class for working with SPKAC
30
- * data. The most common usage is handling output generated by the HTML5`<keygen>` element. Node.js uses [OpenSSL's SPKAC
30
+ * data. The most common usage is handling output generated by the HTML5 `<keygen>` element. Node.js uses [OpenSSL's SPKAC
31
31
  * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally.
32
32
  * @since v0.11.8
33
33
  */
@@ -96,7 +96,7 @@ declare module "crypto" {
96
96
  verifySpkac(spkac: NodeJS.ArrayBufferView): boolean;
97
97
  }
98
98
  namespace constants {
99
- // https://nodejs.org/dist/latest-v20.x/docs/api/crypto.html#crypto-constants
99
+ // https://nodejs.org/dist/latest-v22.x/docs/api/crypto.html#crypto-constants
100
100
  const OPENSSL_VERSION_NUMBER: number;
101
101
  /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */
102
102
  const SSL_OP_ALL: number;
@@ -106,7 +106,7 @@ declare module "crypto" {
106
106
  const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number;
107
107
  /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */
108
108
  const SSL_OP_CIPHER_SERVER_PREFERENCE: number;
109
- /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */
109
+ /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */
110
110
  const SSL_OP_CISCO_ANYCONNECT: number;
111
111
  /** Instructs OpenSSL to turn on cookie exchange. */
112
112
  const SSL_OP_COOKIE_EXCHANGE: number;
@@ -470,6 +470,7 @@ declare module "crypto" {
470
470
  * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e
471
471
  * ```
472
472
  * @since v0.1.94
473
+ * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances.
473
474
  */
474
475
  class Hmac extends stream.Transform {
475
476
  private constructor();
@@ -687,48 +688,6 @@ declare module "crypto" {
687
688
  interface CipherOCBOptions extends stream.TransformOptions {
688
689
  authTagLength: number;
689
690
  }
690
- /**
691
- * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
692
- *
693
- * The `options` argument controls stream behavior and is optional except when a
694
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
695
- * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication
696
- * tag that will be returned by `getAuthTag()` and defaults to 16 bytes.
697
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
698
- *
699
- * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On
700
- * recent OpenSSL releases, `openssl list -cipher-algorithms` will
701
- * display the available cipher algorithms.
702
- *
703
- * The `password` is used to derive the cipher key and initialization vector (IV).
704
- * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`.
705
- *
706
- * **This function is semantically insecure for all**
707
- * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
708
- * **GCM, or CCM).**
709
- *
710
- * The implementation of `crypto.createCipher()` derives keys using the OpenSSL
711
- * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
712
- * iteration, and no salt. The lack of salt allows dictionary attacks as the same
713
- * password always creates the same key. The low iteration count and
714
- * non-cryptographically secure hash algorithm allow passwords to be tested very
715
- * rapidly.
716
- *
717
- * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
718
- * developers derive a key and IV on
719
- * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode
720
- * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when
721
- * they are used in order to avoid the risk of IV reuse that causes
722
- * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details.
723
- * @since v0.1.94
724
- * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead.
725
- * @param options `stream.transform` options
726
- */
727
- function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
728
- /** @deprecated since v10.0.0 use `createCipheriv()` */
729
- function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
730
- /** @deprecated since v10.0.0 use `createCipheriv()` */
731
- function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
732
691
  /**
733
692
  * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and
734
693
  * initialization vector (`iv`).
@@ -792,7 +751,7 @@ declare module "crypto" {
792
751
  * * Using the `cipher.update()` and `cipher.final()` methods to produce
793
752
  * the encrypted data.
794
753
  *
795
- * The {@link createCipher} or {@link createCipheriv} methods are
754
+ * The {@link createCipheriv} method is
796
755
  * used to create `Cipher` instances. `Cipher` objects are not to be created
797
756
  * directly using the `new` keyword.
798
757
  *
@@ -906,8 +865,8 @@ declare module "crypto" {
906
865
  private constructor();
907
866
  /**
908
867
  * Updates the cipher with `data`. If the `inputEncoding` argument is given,
909
- * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or`DataView`. If `data` is a `Buffer`,
910
- * `TypedArray`, or `DataView`, then`inputEncoding` is ignored.
868
+ * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`,
869
+ * `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
911
870
  *
912
871
  * The `outputEncoding` specifies the output format of the enciphered
913
872
  * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
@@ -977,42 +936,11 @@ declare module "crypto" {
977
936
  getAuthTag(): Buffer;
978
937
  }
979
938
  /**
980
- * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
981
- *
982
- * The `options` argument controls stream behavior and is optional except when a
983
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
984
- * authentication tag in bytes, see `CCM mode`.
985
- * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
986
- *
987
- * **This function is semantically insecure for all**
988
- * **supported ciphers and fatally flawed for ciphers in counter mode (such as CTR,**
989
- * **GCM, or CCM).**
990
- *
991
- * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL
992
- * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) with the digest algorithm set to MD5, one
993
- * iteration, and no salt. The lack of salt allows dictionary attacks as the same
994
- * password always creates the same key. The low iteration count and
995
- * non-cryptographically secure hash algorithm allow passwords to be tested very
996
- * rapidly.
997
- *
998
- * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man3.0/man3/EVP_BytesToKey.html) it is recommended that
999
- * developers derive a key and IV on
1000
- * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object.
1001
- * @since v0.1.94
1002
- * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead.
1003
- * @param options `stream.transform` options
1004
- */
1005
- function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
1006
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
1007
- function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
1008
- /** @deprecated since v10.0.0 use `createDecipheriv()` */
1009
- function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
1010
- /**
1011
- * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
939
+ * Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
1012
940
  *
1013
941
  * The `options` argument controls stream behavior and is optional except when a
1014
- * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
1015
- * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to restrict accepted authentication tags
942
+ * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
943
+ * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags
1016
944
  * to those with the specified length.
1017
945
  * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes.
1018
946
  *
@@ -1069,7 +997,7 @@ declare module "crypto" {
1069
997
  * * Using the `decipher.update()` and `decipher.final()` methods to
1070
998
  * produce the unencrypted data.
1071
999
  *
1072
- * The {@link createDecipher} or {@link createDecipheriv} methods are
1000
+ * The {@link createDecipheriv} method is
1073
1001
  * used to create `Decipher` instances. `Decipher` objects are not to be created
1074
1002
  * directly using the `new` keyword.
1075
1003
  *
@@ -1172,11 +1100,11 @@ declare module "crypto" {
1172
1100
  private constructor();
1173
1101
  /**
1174
1102
  * Updates the decipher with `data`. If the `inputEncoding` argument is given,
1175
- * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
1103
+ * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is
1176
1104
  * ignored.
1177
1105
  *
1178
1106
  * The `outputEncoding` specifies the output format of the enciphered
1179
- * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned.
1107
+ * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned.
1180
1108
  *
1181
1109
  * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error
1182
1110
  * being thrown.
@@ -1199,7 +1127,7 @@ declare module "crypto" {
1199
1127
  final(): Buffer;
1200
1128
  final(outputEncoding: BufferEncoding): string;
1201
1129
  /**
1202
- * When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
1130
+ * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and
1203
1131
  * removing padding.
1204
1132
  *
1205
1133
  * Turning auto padding off will only work if the input data's length is a
@@ -1253,7 +1181,7 @@ declare module "crypto" {
1253
1181
  encoding?: string | undefined;
1254
1182
  }
1255
1183
  /**
1256
- * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
1184
+ * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1257
1185
  *
1258
1186
  * ```js
1259
1187
  * const {
@@ -1279,7 +1207,7 @@ declare module "crypto" {
1279
1207
  callback: (err: Error | null, key: KeyObject) => void,
1280
1208
  ): void;
1281
1209
  /**
1282
- * Synchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
1210
+ * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`.
1283
1211
  *
1284
1212
  * ```js
1285
1213
  * const {
@@ -1307,7 +1235,7 @@ declare module "crypto" {
1307
1235
  }
1308
1236
  /**
1309
1237
  * Creates and returns a new key object containing a private key. If `key` is a
1310
- * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above.
1238
+ * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above.
1311
1239
  *
1312
1240
  * If the private key is encrypted, a `passphrase` must be specified. The length
1313
1241
  * of the passphrase is limited to 1024 bytes.
@@ -1316,7 +1244,7 @@ declare module "crypto" {
1316
1244
  function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject;
1317
1245
  /**
1318
1246
  * Creates and returns a new key object containing a public key. If `key` is a
1319
- * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject`with type `'private'`, the public key is derived from the given private key;
1247
+ * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key;
1320
1248
  * otherwise, `key` must be an object with the properties described above.
1321
1249
  *
1322
1250
  * If the format is `'pem'`, the `'key'` may also be an X.509 certificate.
@@ -1324,7 +1252,7 @@ declare module "crypto" {
1324
1252
  * Because public keys can be derived from private keys, a private key may be
1325
1253
  * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the
1326
1254
  * returned `KeyObject` will be `'public'` and that the private key cannot be
1327
- * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned
1255
+ * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned
1328
1256
  * and it will be impossible to extract the private key from the returned object.
1329
1257
  * @since v11.6.0
1330
1258
  */
@@ -1363,6 +1291,7 @@ declare module "crypto" {
1363
1291
  interface SignKeyObjectInput extends SigningOptions {
1364
1292
  key: KeyObject;
1365
1293
  }
1294
+ interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1366
1295
  interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1367
1296
  interface VerifyKeyObjectInput extends SigningOptions {
1368
1297
  key: KeyObject;
@@ -1449,7 +1378,7 @@ declare module "crypto" {
1449
1378
  /**
1450
1379
  * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`.
1451
1380
  *
1452
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
1381
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
1453
1382
  * object, the following additional properties can be passed:
1454
1383
  *
1455
1384
  * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned.
@@ -1458,16 +1387,16 @@ declare module "crypto" {
1458
1387
  * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1459
1388
  * @since v0.1.92
1460
1389
  */
1461
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
1390
+ sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
1462
1391
  sign(
1463
- privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
1392
+ privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
1464
1393
  outputFormat: BinaryToTextEncoding,
1465
1394
  ): string;
1466
1395
  }
1467
1396
  /**
1468
1397
  * Creates and returns a `Verify` object that uses the given algorithm.
1469
1398
  * Use {@link getHashes} to obtain an array of names of the available
1470
- * signing algorithms. Optional `options` argument controls the`stream.Writable` behavior.
1399
+ * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior.
1471
1400
  *
1472
1401
  * In some cases, a `Verify` instance can be created using the name of a signature
1473
1402
  * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use
@@ -1487,7 +1416,7 @@ declare module "crypto" {
1487
1416
  * * Using the `verify.update()` and `verify.verify()` methods to verify
1488
1417
  * the signature.
1489
1418
  *
1490
- * The {@link createVerify} method is used to create `Verify` instances.`Verify` objects are not to be created directly using the `new` keyword.
1419
+ * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword.
1491
1420
  *
1492
1421
  * See `Sign` for examples.
1493
1422
  * @since v0.1.92
@@ -1498,7 +1427,7 @@ declare module "crypto" {
1498
1427
  * Updates the `Verify` content with the given `data`, the encoding of which
1499
1428
  * is given in `inputEncoding`.
1500
1429
  * If `inputEncoding` is not provided, and the `data` is a string, an
1501
- * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored.
1430
+ * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored.
1502
1431
  *
1503
1432
  * This can be called many times with new data as it is streamed.
1504
1433
  * @since v0.1.92
@@ -1509,13 +1438,13 @@ declare module "crypto" {
1509
1438
  /**
1510
1439
  * Verifies the provided data using the given `object` and `signature`.
1511
1440
  *
1512
- * If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an
1441
+ * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an
1513
1442
  * object, the following additional properties can be passed:
1514
1443
  *
1515
1444
  * The `signature` argument is the previously calculated signature for the data, in
1516
1445
  * the `signatureEncoding`.
1517
1446
  * If a `signatureEncoding` is specified, the `signature` is expected to be a
1518
- * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
1447
+ * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1519
1448
  *
1520
1449
  * The `verify` object can not be used again after `verify.verify()` has been
1521
1450
  * called. Multiple calls to `verify.verify()` will result in an error being
@@ -1539,7 +1468,7 @@ declare module "crypto" {
1539
1468
  * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
1540
1469
  * optional specific `generator`.
1541
1470
  *
1542
- * The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used.
1471
+ * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used.
1543
1472
  *
1544
1473
  * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise
1545
1474
  * a `Buffer`, `TypedArray`, or `DataView` is expected.
@@ -1625,7 +1554,7 @@ declare module "crypto" {
1625
1554
  * key is interpreted using the specified `inputEncoding`, and secret is
1626
1555
  * encoded using specified `outputEncoding`.
1627
1556
  * If the `inputEncoding` is not
1628
- * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
1557
+ * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
1629
1558
  *
1630
1559
  * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
1631
1560
  * @since v0.5.0
@@ -1681,7 +1610,7 @@ declare module "crypto" {
1681
1610
  getPrivateKey(): Buffer;
1682
1611
  getPrivateKey(encoding: BinaryToTextEncoding): string;
1683
1612
  /**
1684
- * Sets the Diffie-Hellman public key. If the `encoding` argument is provided,`publicKey` is expected
1613
+ * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected
1685
1614
  * to be a string. If no `encoding` is provided, `publicKey` is expected
1686
1615
  * to be a `Buffer`, `TypedArray`, or `DataView`.
1687
1616
  * @since v0.5.0
@@ -1784,10 +1713,10 @@ declare module "crypto" {
1784
1713
  /**
1785
1714
  * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2)
1786
1715
  * implementation. A selected HMAC digest algorithm specified by `digest` is
1787
- * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
1716
+ * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1788
1717
  *
1789
- * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
1790
- * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
1718
+ * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
1719
+ * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be
1791
1720
  * thrown if any of the input arguments specify invalid values or types.
1792
1721
  *
1793
1722
  * The `iterations` argument must be a number set as high as possible. The
@@ -1827,7 +1756,7 @@ declare module "crypto" {
1827
1756
  /**
1828
1757
  * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2)
1829
1758
  * implementation. A selected HMAC digest algorithm specified by `digest` is
1830
- * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
1759
+ * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`.
1831
1760
  *
1832
1761
  * If an error occurs an `Error` will be thrown, otherwise the derived key will be
1833
1762
  * returned as a `Buffer`.
@@ -1866,7 +1795,7 @@ declare module "crypto" {
1866
1795
  *
1867
1796
  * If a `callback` function is provided, the bytes are generated asynchronously
1868
1797
  * and the `callback` function is invoked with two arguments: `err` and `buf`.
1869
- * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes.
1798
+ * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes.
1870
1799
  *
1871
1800
  * ```js
1872
1801
  * // Asynchronous
@@ -2037,7 +1966,7 @@ declare module "crypto" {
2037
1966
  * });
2038
1967
  * ```
2039
1968
  *
2040
- * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`.
1969
+ * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`.
2041
1970
  *
2042
1971
  * While this includes instances of `Float32Array` and `Float64Array`, this
2043
1972
  * function should not be used to generate random floating-point numbers. The
@@ -2117,7 +2046,7 @@ declare module "crypto" {
2117
2046
  *
2118
2047
  * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`.
2119
2048
  *
2120
- * The `callback` function is called with two arguments: `err` and `derivedKey`.`err` is an exception object when key derivation fails, otherwise `err` is`null`. `derivedKey` is passed to the
2049
+ * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the
2121
2050
  * callback as a `Buffer`.
2122
2051
  *
2123
2052
  * An exception is thrown when any of the input arguments specify invalid values
@@ -2203,8 +2132,8 @@ declare module "crypto" {
2203
2132
  * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using
2204
2133
  * the corresponding private key, for example using {@link privateDecrypt}.
2205
2134
  *
2206
- * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
2207
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
2135
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2136
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2208
2137
  *
2209
2138
  * Because RSA public keys can be derived from private keys, a private key may
2210
2139
  * be passed instead of a public key.
@@ -2215,8 +2144,8 @@ declare module "crypto" {
2215
2144
  * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
2216
2145
  * the corresponding private key, for example using {@link privateEncrypt}.
2217
2146
  *
2218
- * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an
2219
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
2147
+ * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an
2148
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2220
2149
  *
2221
2150
  * Because RSA public keys can be derived from private keys, a private key may
2222
2151
  * be passed instead of a public key.
@@ -2227,8 +2156,8 @@ declare module "crypto" {
2227
2156
  * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
2228
2157
  * the corresponding public key, for example using {@link publicEncrypt}.
2229
2158
  *
2230
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
2231
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`.
2159
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2160
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2232
2161
  * @since v0.11.14
2233
2162
  */
2234
2163
  function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
@@ -2236,8 +2165,8 @@ declare module "crypto" {
2236
2165
  * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2237
2166
  * the corresponding public key, for example using {@link publicDecrypt}.
2238
2167
  *
2239
- * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an
2240
- * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`.
2168
+ * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an
2169
+ * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2241
2170
  * @since v1.1.0
2242
2171
  */
2243
2172
  function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
@@ -2332,9 +2261,9 @@ declare module "crypto" {
2332
2261
  * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display
2333
2262
  * the name and description of each available elliptic curve.
2334
2263
  *
2335
- * If `format` is not specified the point will be returned in `'uncompressed'`format.
2264
+ * If `format` is not specified the point will be returned in `'uncompressed'` format.
2336
2265
  *
2337
- * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
2266
+ * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2338
2267
  *
2339
2268
  * Example (uncompressing a key):
2340
2269
  *
@@ -2375,7 +2304,7 @@ declare module "crypto" {
2375
2304
  * the public key in the specified `format` and `encoding`. This key should be
2376
2305
  * transferred to the other party.
2377
2306
  *
2378
- * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
2307
+ * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format.
2379
2308
  *
2380
2309
  * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned.
2381
2310
  * @since v0.11.14
@@ -2390,11 +2319,11 @@ declare module "crypto" {
2390
2319
  * key is interpreted using specified `inputEncoding`, and the returned secret
2391
2320
  * is encoded using the specified `outputEncoding`.
2392
2321
  * If the `inputEncoding` is not
2393
- * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`.
2322
+ * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2394
2323
  *
2395
2324
  * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned.
2396
2325
  *
2397
- * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is
2326
+ * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is
2398
2327
  * usually supplied from a remote user over an insecure network,
2399
2328
  * be sure to handle this exception accordingly.
2400
2329
  * @since v0.11.14
@@ -2419,7 +2348,7 @@ declare module "crypto" {
2419
2348
  getPrivateKey(): Buffer;
2420
2349
  getPrivateKey(encoding: BinaryToTextEncoding): string;
2421
2350
  /**
2422
- * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
2351
+ * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format.
2423
2352
  *
2424
2353
  * If `encoding` is specified, a string is returned; otherwise a `Buffer` is
2425
2354
  * returned.
@@ -2433,7 +2362,7 @@ declare module "crypto" {
2433
2362
  /**
2434
2363
  * Sets the EC Diffie-Hellman private key.
2435
2364
  * If `encoding` is provided, `privateKey` is expected
2436
- * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`.
2365
+ * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
2437
2366
  *
2438
2367
  * If `privateKey` is not valid for the curve specified when the `ECDH` object was
2439
2368
  * created, an error is thrown. Upon setting the private key, the associated
@@ -2453,7 +2382,7 @@ declare module "crypto" {
2453
2382
  */
2454
2383
  function createECDH(curveName: string): ECDH;
2455
2384
  /**
2456
- * This function compares the underlying bytes that represent the given`ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
2385
+ * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time
2457
2386
  * algorithm.
2458
2387
  *
2459
2388
  * This function does not leak timing information that
@@ -2468,8 +2397,8 @@ declare module "crypto" {
2468
2397
  * entry, such as `Uint16Array`, the result will be computed using the platform
2469
2398
  * byte order.
2470
2399
  *
2471
- * **When both of the inputs are `Float32Array`s or`Float64Array`s, this function might return unexpected results due to IEEE 754**
2472
- * **encoding of floating-point numbers. In particular, neither `x === y` nor`Object.is(x, y)` implies that the byte representations of two floating-point**
2400
+ * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754**
2401
+ * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point**
2473
2402
  * **numbers `x` and `y` are equal.**
2474
2403
  *
2475
2404
  * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code
@@ -2846,7 +2775,7 @@ declare module "crypto" {
2846
2775
  * behaves as if `keyObject.export()` had been called on its result. Otherwise,
2847
2776
  * the respective part of the key is returned as a `KeyObject`.
2848
2777
  *
2849
- * It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage:
2778
+ * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage:
2850
2779
  *
2851
2780
  * ```js
2852
2781
  * const {
@@ -2870,7 +2799,7 @@ declare module "crypto" {
2870
2799
  * });
2871
2800
  * ```
2872
2801
  *
2873
- * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
2802
+ * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
2874
2803
  *
2875
2804
  * If this method is invoked as its `util.promisify()` ed version, it returns
2876
2805
  * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
@@ -3335,16 +3264,16 @@ declare module "crypto" {
3335
3264
  function sign(
3336
3265
  algorithm: string | null | undefined,
3337
3266
  data: NodeJS.ArrayBufferView,
3338
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
3267
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3339
3268
  ): Buffer;
3340
3269
  function sign(
3341
3270
  algorithm: string | null | undefined,
3342
3271
  data: NodeJS.ArrayBufferView,
3343
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
3272
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3344
3273
  callback: (error: Error | null, data: Buffer) => void,
3345
3274
  ): void;
3346
3275
  /**
3347
- * Verifies the given signature for `data` using the given key and algorithm. If`algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
3276
+ * Verifies the given signature for `data` using the given key and algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the
3348
3277
  * key type (especially Ed25519 and Ed448).
3349
3278
  *
3350
3279
  * If `key` is not a `KeyObject`, this function behaves as if `key` had been
@@ -3374,10 +3303,45 @@ declare module "crypto" {
3374
3303
  ): void;
3375
3304
  /**
3376
3305
  * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
3377
- * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
3306
+ * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
3378
3307
  * @since v13.9.0, v12.17.0
3379
3308
  */
3380
3309
  function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer;
3310
+ /**
3311
+ * A utility for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data
3312
+ * (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm`
3313
+ * is dependent on the available algorithms supported by the version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. On recent releases
3314
+ * of OpenSSL, `openssl list -digest-algorithms` will display the available digest algorithms.
3315
+ *
3316
+ * Example:
3317
+ *
3318
+ * ```js
3319
+ * const crypto = require('node:crypto');
3320
+ * const { Buffer } = require('node:buffer');
3321
+ *
3322
+ * // Hashing a string and return the result as a hex-encoded string.
3323
+ * const string = 'Node.js';
3324
+ * // 10b3493287f831e81a438811a1ffba01f8cec4b7
3325
+ * console.log(crypto.hash('sha1', string));
3326
+ *
3327
+ * // Encode a base64-encoded string into a Buffer, hash it and return
3328
+ * // the result as a buffer.
3329
+ * const base64 = 'Tm9kZS5qcw==';
3330
+ * // <Buffer 10 b3 49 32 87 f8 31 e8 1a 43 88 11 a1 ff ba 01 f8 ce c4 b7>
3331
+ * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer'));
3332
+ * ```
3333
+ * @since v21.7.0, v20.12.0
3334
+ * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different input encoding is desired for a string input, user
3335
+ * could encode the string into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing the encoded `TypedArray` into this API instead.
3336
+ * @param [outputEncoding='hex'] [Encoding](https://nodejs.org/docs/latest-v22.x/api/buffer.html#buffers-and-character-encodings) used to encode the returned digest.
3337
+ */
3338
+ function hash(algorithm: string, data: BinaryLike, outputEncoding?: BinaryToTextEncoding): string;
3339
+ function hash(algorithm: string, data: BinaryLike, outputEncoding: "buffer"): Buffer;
3340
+ function hash(
3341
+ algorithm: string,
3342
+ data: BinaryLike,
3343
+ outputEncoding?: BinaryToTextEncoding | "buffer",
3344
+ ): string | Buffer;
3381
3345
  type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts";
3382
3346
  interface CipherInfoOptions {
3383
3347
  /**
@@ -3430,9 +3394,9 @@ declare module "crypto" {
3430
3394
  */
3431
3395
  function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
3432
3396
  /**
3433
- * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3397
+ * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3434
3398
  *
3435
- * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
3399
+ * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
3436
3400
  * otherwise `err` will be `null`. The successfully generated `derivedKey` will
3437
3401
  * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
3438
3402
  * of the input arguments specify invalid values or types.
@@ -3466,7 +3430,7 @@ declare module "crypto" {
3466
3430
  ): void;
3467
3431
  /**
3468
3432
  * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The
3469
- * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes.
3433
+ * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
3470
3434
  *
3471
3435
  * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
3472
3436
  *
@@ -3795,7 +3759,7 @@ declare module "crypto" {
3795
3759
  /**
3796
3760
  * Generates a pseudorandom prime of `size` bits.
3797
3761
  *
3798
- * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
3762
+ * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3799
3763
  *
3800
3764
  * The `options.add` and `options.rem` parameters can be used to enforce additional
3801
3765
  * requirements, e.g., for Diffie-Hellman:
@@ -3811,7 +3775,7 @@ declare module "crypto" {
3811
3775
  * * `options.rem` is ignored if `options.add` is not given.
3812
3776
  *
3813
3777
  * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3814
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
3778
+ * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3815
3779
  *
3816
3780
  * By default, the prime is encoded as a big-endian sequence of octets
3817
3781
  * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
@@ -3838,7 +3802,7 @@ declare module "crypto" {
3838
3802
  /**
3839
3803
  * Generates a pseudorandom prime of `size` bits.
3840
3804
  *
3841
- * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime.
3805
+ * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime.
3842
3806
  *
3843
3807
  * The `options.add` and `options.rem` parameters can be used to enforce additional
3844
3808
  * requirements, e.g., for Diffie-Hellman:
@@ -3854,7 +3818,7 @@ declare module "crypto" {
3854
3818
  * * `options.rem` is ignored if `options.add` is not given.
3855
3819
  *
3856
3820
  * Both `options.add` and `options.rem` must be encoded as big-endian sequences
3857
- * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`.
3821
+ * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`.
3858
3822
  *
3859
3823
  * By default, the prime is encoded as a big-endian sequence of octets
3860
3824
  * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a
@@ -3900,7 +3864,7 @@ declare module "crypto" {
3900
3864
  *
3901
3865
  * `engine` could be either an id or a path to the engine's shared library.
3902
3866
  *
3903
- * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags`is a bit field taking one of or a mix of the following flags (defined in`crypto.constants`):
3867
+ * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`):
3904
3868
  *
3905
3869
  * * `crypto.constants.ENGINE_METHOD_RSA`
3906
3870
  * * `crypto.constants.ENGINE_METHOD_DSA`