valley-baileys 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1750) hide show
  1. package/index.js +4 -0
  2. package/node_modules/@borewit/text-codec/LICENSE.txt +9 -0
  3. package/node_modules/@borewit/text-codec/README.md +87 -0
  4. package/node_modules/@borewit/text-codec/lib/index.d.ts +6 -0
  5. package/node_modules/@borewit/text-codec/lib/index.js +380 -0
  6. package/node_modules/@borewit/text-codec/package.json +70 -0
  7. package/node_modules/@cacheable/memory/LICENSE +19 -0
  8. package/node_modules/@cacheable/memory/README.md +340 -0
  9. package/node_modules/@cacheable/memory/dist/index.cjs +830 -0
  10. package/node_modules/@cacheable/memory/dist/index.d.cts +310 -0
  11. package/node_modules/@cacheable/memory/dist/index.d.ts +310 -0
  12. package/node_modules/@cacheable/memory/dist/index.js +807 -0
  13. package/node_modules/@cacheable/memory/package.json +65 -0
  14. package/node_modules/@cacheable/node-cache/LICENSE +19 -0
  15. package/node_modules/@cacheable/node-cache/README.md +352 -0
  16. package/node_modules/@cacheable/node-cache/dist/index.cjs +567 -0
  17. package/node_modules/@cacheable/node-cache/dist/index.d.cts +335 -0
  18. package/node_modules/@cacheable/node-cache/dist/index.d.ts +335 -0
  19. package/node_modules/@cacheable/node-cache/dist/index.js +540 -0
  20. package/node_modules/@cacheable/node-cache/package.json +69 -0
  21. package/node_modules/@cacheable/utils/LICENSE +19 -0
  22. package/node_modules/@cacheable/utils/README.md +520 -0
  23. package/node_modules/@cacheable/utils/dist/index.cjs +677 -0
  24. package/node_modules/@cacheable/utils/dist/index.d.cts +307 -0
  25. package/node_modules/@cacheable/utils/dist/index.d.ts +307 -0
  26. package/node_modules/@cacheable/utils/dist/index.js +630 -0
  27. package/node_modules/@cacheable/utils/package.json +56 -0
  28. package/node_modules/@hapi/boom/LICENSE.md +10 -0
  29. package/node_modules/@hapi/boom/README.md +17 -0
  30. package/node_modules/@hapi/boom/lib/index.d.ts +549 -0
  31. package/node_modules/@hapi/boom/lib/index.js +469 -0
  32. package/node_modules/@hapi/boom/package.json +28 -0
  33. package/node_modules/@hapi/hoek/LICENSE.md +12 -0
  34. package/node_modules/@hapi/hoek/README.md +19 -0
  35. package/node_modules/@hapi/hoek/lib/applyToDefaults.js +102 -0
  36. package/node_modules/@hapi/hoek/lib/assert.js +22 -0
  37. package/node_modules/@hapi/hoek/lib/bench.js +29 -0
  38. package/node_modules/@hapi/hoek/lib/block.js +12 -0
  39. package/node_modules/@hapi/hoek/lib/clone.js +176 -0
  40. package/node_modules/@hapi/hoek/lib/contain.js +307 -0
  41. package/node_modules/@hapi/hoek/lib/deepEqual.js +317 -0
  42. package/node_modules/@hapi/hoek/lib/error.js +26 -0
  43. package/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js +16 -0
  44. package/node_modules/@hapi/hoek/lib/escapeHtml.js +87 -0
  45. package/node_modules/@hapi/hoek/lib/escapeJson.js +28 -0
  46. package/node_modules/@hapi/hoek/lib/escapeRegex.js +11 -0
  47. package/node_modules/@hapi/hoek/lib/flatten.js +20 -0
  48. package/node_modules/@hapi/hoek/lib/ignore.js +6 -0
  49. package/node_modules/@hapi/hoek/lib/index.d.ts +471 -0
  50. package/node_modules/@hapi/hoek/lib/index.js +45 -0
  51. package/node_modules/@hapi/hoek/lib/intersect.js +41 -0
  52. package/node_modules/@hapi/hoek/lib/isPromise.js +9 -0
  53. package/node_modules/@hapi/hoek/lib/merge.js +78 -0
  54. package/node_modules/@hapi/hoek/lib/once.js +25 -0
  55. package/node_modules/@hapi/hoek/lib/reach.js +76 -0
  56. package/node_modules/@hapi/hoek/lib/reachTemplate.js +16 -0
  57. package/node_modules/@hapi/hoek/lib/stringify.js +14 -0
  58. package/node_modules/@hapi/hoek/lib/types.js +55 -0
  59. package/node_modules/@hapi/hoek/lib/utils.js +9 -0
  60. package/node_modules/@hapi/hoek/lib/wait.js +37 -0
  61. package/node_modules/@hapi/hoek/package.json +31 -0
  62. package/node_modules/@keyv/bigmap/LICENSE +21 -0
  63. package/node_modules/@keyv/bigmap/README.md +624 -0
  64. package/node_modules/@keyv/bigmap/dist/index.cjs +268 -0
  65. package/node_modules/@keyv/bigmap/dist/index.d.cts +157 -0
  66. package/node_modules/@keyv/bigmap/dist/index.d.ts +157 -0
  67. package/node_modules/@keyv/bigmap/dist/index.js +239 -0
  68. package/node_modules/@keyv/bigmap/package.json +73 -0
  69. package/node_modules/@keyv/serialize/LICENSE +22 -0
  70. package/node_modules/@keyv/serialize/README.md +15 -0
  71. package/node_modules/@keyv/serialize/dist/index.cjs +84 -0
  72. package/node_modules/@keyv/serialize/dist/index.d.cts +4 -0
  73. package/node_modules/@keyv/serialize/dist/index.d.ts +4 -0
  74. package/node_modules/@keyv/serialize/dist/index.js +58 -0
  75. package/node_modules/@keyv/serialize/package.json +55 -0
  76. package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
  77. package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
  78. package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
  79. package/node_modules/@pinojs/redact/LICENSE +21 -0
  80. package/node_modules/@pinojs/redact/README.md +350 -0
  81. package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
  82. package/node_modules/@pinojs/redact/eslint.config.js +1 -0
  83. package/node_modules/@pinojs/redact/index.d.ts +52 -0
  84. package/node_modules/@pinojs/redact/index.js +529 -0
  85. package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
  86. package/node_modules/@pinojs/redact/package.json +37 -0
  87. package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
  88. package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
  89. package/node_modules/@pinojs/redact/test/index.test.js +824 -0
  90. package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
  91. package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
  92. package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
  93. package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
  94. package/node_modules/@pinojs/redact/tsconfig.json +19 -0
  95. package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  96. package/node_modules/@protobufjs/aspromise/README.md +13 -0
  97. package/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
  98. package/node_modules/@protobufjs/aspromise/index.js +52 -0
  99. package/node_modules/@protobufjs/aspromise/package.json +21 -0
  100. package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  101. package/node_modules/@protobufjs/base64/LICENSE +26 -0
  102. package/node_modules/@protobufjs/base64/README.md +19 -0
  103. package/node_modules/@protobufjs/base64/index.d.ts +32 -0
  104. package/node_modules/@protobufjs/base64/index.js +139 -0
  105. package/node_modules/@protobufjs/base64/package.json +21 -0
  106. package/node_modules/@protobufjs/base64/tests/index.js +46 -0
  107. package/node_modules/@protobufjs/codegen/LICENSE +26 -0
  108. package/node_modules/@protobufjs/codegen/README.md +49 -0
  109. package/node_modules/@protobufjs/codegen/index.d.ts +31 -0
  110. package/node_modules/@protobufjs/codegen/index.js +112 -0
  111. package/node_modules/@protobufjs/codegen/package.json +13 -0
  112. package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  113. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  114. package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  115. package/node_modules/@protobufjs/eventemitter/README.md +22 -0
  116. package/node_modules/@protobufjs/eventemitter/index.d.ts +45 -0
  117. package/node_modules/@protobufjs/eventemitter/index.js +86 -0
  118. package/node_modules/@protobufjs/eventemitter/package.json +21 -0
  119. package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
  120. package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  121. package/node_modules/@protobufjs/fetch/LICENSE +26 -0
  122. package/node_modules/@protobufjs/fetch/README.md +13 -0
  123. package/node_modules/@protobufjs/fetch/index.d.ts +56 -0
  124. package/node_modules/@protobufjs/fetch/index.js +112 -0
  125. package/node_modules/@protobufjs/fetch/package.json +27 -0
  126. package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  127. package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
  128. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  129. package/node_modules/@protobufjs/float/LICENSE +26 -0
  130. package/node_modules/@protobufjs/float/README.md +102 -0
  131. package/node_modules/@protobufjs/float/bench/index.js +87 -0
  132. package/node_modules/@protobufjs/float/bench/suite.js +46 -0
  133. package/node_modules/@protobufjs/float/index.d.ts +83 -0
  134. package/node_modules/@protobufjs/float/index.js +335 -0
  135. package/node_modules/@protobufjs/float/package.json +26 -0
  136. package/node_modules/@protobufjs/float/tests/index.js +100 -0
  137. package/node_modules/@protobufjs/path/LICENSE +26 -0
  138. package/node_modules/@protobufjs/path/README.md +19 -0
  139. package/node_modules/@protobufjs/path/index.d.ts +22 -0
  140. package/node_modules/@protobufjs/path/index.js +65 -0
  141. package/node_modules/@protobufjs/path/package.json +21 -0
  142. package/node_modules/@protobufjs/path/tests/index.js +60 -0
  143. package/node_modules/@protobufjs/pool/.npmignore +3 -0
  144. package/node_modules/@protobufjs/pool/LICENSE +26 -0
  145. package/node_modules/@protobufjs/pool/README.md +13 -0
  146. package/node_modules/@protobufjs/pool/index.d.ts +32 -0
  147. package/node_modules/@protobufjs/pool/index.js +48 -0
  148. package/node_modules/@protobufjs/pool/package.json +21 -0
  149. package/node_modules/@protobufjs/pool/tests/index.js +33 -0
  150. package/node_modules/@protobufjs/utf8/LICENSE +26 -0
  151. package/node_modules/@protobufjs/utf8/README.md +20 -0
  152. package/node_modules/@protobufjs/utf8/index.d.ts +24 -0
  153. package/node_modules/@protobufjs/utf8/index.js +104 -0
  154. package/node_modules/@protobufjs/utf8/package.json +21 -0
  155. package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
  156. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  157. package/node_modules/@protobufjs/utf8/tests/index.js +74 -0
  158. package/node_modules/@tokenizer/inflate/LICENSE +15 -0
  159. package/node_modules/@tokenizer/inflate/README.md +114 -0
  160. package/node_modules/@tokenizer/inflate/lib/GzipHandler.d.ts +6 -0
  161. package/node_modules/@tokenizer/inflate/lib/GzipHandler.js +19 -0
  162. package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +26 -0
  163. package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +233 -0
  164. package/node_modules/@tokenizer/inflate/lib/ZipToken.d.ts +94 -0
  165. package/node_modules/@tokenizer/inflate/lib/ZipToken.js +117 -0
  166. package/node_modules/@tokenizer/inflate/lib/index.d.ts +3 -0
  167. package/node_modules/@tokenizer/inflate/lib/index.js +2 -0
  168. package/node_modules/@tokenizer/inflate/package.json +76 -0
  169. package/node_modules/@tokenizer/token/README.md +19 -0
  170. package/node_modules/@tokenizer/token/index.d.ts +30 -0
  171. package/node_modules/@tokenizer/token/package.json +33 -0
  172. package/node_modules/@types/node/LICENSE +21 -0
  173. package/node_modules/@types/node/README.md +15 -0
  174. package/node_modules/@types/node/assert/strict.d.ts +68 -0
  175. package/node_modules/@types/node/assert.d.ts +1077 -0
  176. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  177. package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  178. package/node_modules/@types/node/buffer.d.ts +1760 -0
  179. package/node_modules/@types/node/child_process.d.ts +1362 -0
  180. package/node_modules/@types/node/cluster.d.ts +432 -0
  181. package/node_modules/@types/node/console.d.ts +93 -0
  182. package/node_modules/@types/node/constants.d.ts +14 -0
  183. package/node_modules/@types/node/crypto.d.ts +3941 -0
  184. package/node_modules/@types/node/dgram.d.ts +537 -0
  185. package/node_modules/@types/node/diagnostics_channel.d.ts +563 -0
  186. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  187. package/node_modules/@types/node/dns.d.ts +876 -0
  188. package/node_modules/@types/node/domain.d.ts +150 -0
  189. package/node_modules/@types/node/events.d.ts +1008 -0
  190. package/node_modules/@types/node/fs/promises.d.ts +1468 -0
  191. package/node_modules/@types/node/fs.d.ts +4771 -0
  192. package/node_modules/@types/node/globals.d.ts +150 -0
  193. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  194. package/node_modules/@types/node/http.d.ts +2147 -0
  195. package/node_modules/@types/node/http2.d.ts +2489 -0
  196. package/node_modules/@types/node/https.d.ts +400 -0
  197. package/node_modules/@types/node/index.d.ts +114 -0
  198. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  199. package/node_modules/@types/node/inspector.d.ts +264 -0
  200. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  201. package/node_modules/@types/node/module.d.ts +726 -0
  202. package/node_modules/@types/node/net.d.ts +970 -0
  203. package/node_modules/@types/node/os.d.ts +498 -0
  204. package/node_modules/@types/node/package.json +155 -0
  205. package/node_modules/@types/node/path/posix.d.ts +8 -0
  206. package/node_modules/@types/node/path/win32.d.ts +8 -0
  207. package/node_modules/@types/node/path.d.ts +178 -0
  208. package/node_modules/@types/node/perf_hooks.d.ts +604 -0
  209. package/node_modules/@types/node/process.d.ts +2204 -0
  210. package/node_modules/@types/node/punycode.d.ts +89 -0
  211. package/node_modules/@types/node/querystring.d.ts +139 -0
  212. package/node_modules/@types/node/quic.d.ts +897 -0
  213. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  214. package/node_modules/@types/node/readline.d.ts +508 -0
  215. package/node_modules/@types/node/repl.d.ts +420 -0
  216. package/node_modules/@types/node/sea.d.ts +47 -0
  217. package/node_modules/@types/node/sqlite.d.ts +1068 -0
  218. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  219. package/node_modules/@types/node/stream/iter.d.ts +301 -0
  220. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  221. package/node_modules/@types/node/stream/web.d.ts +300 -0
  222. package/node_modules/@types/node/stream.d.ts +1774 -0
  223. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  224. package/node_modules/@types/node/test/reporters.d.ts +59 -0
  225. package/node_modules/@types/node/test.d.ts +2279 -0
  226. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  227. package/node_modules/@types/node/timers.d.ts +149 -0
  228. package/node_modules/@types/node/tls.d.ts +1193 -0
  229. package/node_modules/@types/node/trace_events.d.ts +103 -0
  230. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  231. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  232. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  233. package/node_modules/@types/node/ts5.6/index.d.ts +116 -0
  234. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  235. package/node_modules/@types/node/ts5.7/index.d.ts +116 -0
  236. package/node_modules/@types/node/tty.d.ts +225 -0
  237. package/node_modules/@types/node/url.d.ts +556 -0
  238. package/node_modules/@types/node/util/types.d.ts +558 -0
  239. package/node_modules/@types/node/util.d.ts +1660 -0
  240. package/node_modules/@types/node/v8.d.ts +980 -0
  241. package/node_modules/@types/node/vm.d.ts +1136 -0
  242. package/node_modules/@types/node/wasi.d.ts +131 -0
  243. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  244. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  245. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  246. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  247. package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
  248. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  249. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  250. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  251. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  252. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  253. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  254. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  255. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  256. package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  257. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  258. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  259. package/node_modules/@types/node/worker_threads.d.ts +668 -0
  260. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  261. package/node_modules/@types/node/zlib.d.ts +589 -0
  262. package/node_modules/@whiskeysockets/baileys/LICENSE +21 -0
  263. package/node_modules/@whiskeysockets/baileys/README.md +1312 -0
  264. package/node_modules/@whiskeysockets/baileys/WAProto/GenerateStatics.sh +3 -0
  265. package/node_modules/@whiskeysockets/baileys/WAProto/WAProto.proto +5479 -0
  266. package/node_modules/@whiskeysockets/baileys/WAProto/fix-imports.js +85 -0
  267. package/node_modules/@whiskeysockets/baileys/WAProto/index.d.ts +14017 -0
  268. package/node_modules/@whiskeysockets/baileys/WAProto/index.js +97691 -0
  269. package/node_modules/@whiskeysockets/baileys/engine-requirements.js +10 -0
  270. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.d.ts +75 -0
  271. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.d.ts.map +1 -0
  272. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js +129 -0
  273. package/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js.map +1 -0
  274. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.d.ts +10 -0
  275. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.d.ts.map +1 -0
  276. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.js +12 -0
  277. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/ciphertext-message.js.map +1 -0
  278. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.d.ts +15 -0
  279. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.d.ts.map +1 -0
  280. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.js +30 -0
  281. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group-session-builder.js.map +1 -0
  282. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.d.ts +17 -0
  283. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.d.ts.map +1 -0
  284. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.js +82 -0
  285. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/group_cipher.js.map +1 -0
  286. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.d.ts +12 -0
  287. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.d.ts.map +1 -0
  288. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.js +12 -0
  289. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/index.js.map +1 -0
  290. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.d.ts +11 -0
  291. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.d.ts.map +1 -0
  292. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.js +18 -0
  293. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/keyhelper.js.map +1 -0
  294. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  295. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.d.ts.map +1 -0
  296. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.js +26 -0
  297. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-chain-key.js.map +1 -0
  298. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  299. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.d.ts.map +1 -0
  300. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.js +63 -0
  301. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-distribution-message.js.map +1 -0
  302. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.d.ts +19 -0
  303. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.d.ts.map +1 -0
  304. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.js +66 -0
  305. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-message.js.map +1 -0
  306. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.d.ts +18 -0
  307. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.d.ts.map +1 -0
  308. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.js +48 -0
  309. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-name.js.map +1 -0
  310. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.d.ts +31 -0
  311. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.d.ts.map +1 -0
  312. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.js +41 -0
  313. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-record.js.map +1 -0
  314. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.d.ts +39 -0
  315. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.d.ts.map +1 -0
  316. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.js +84 -0
  317. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-key-state.js.map +1 -0
  318. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.d.ts +12 -0
  319. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.d.ts.map +1 -0
  320. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.js +26 -0
  321. package/node_modules/@whiskeysockets/baileys/lib/Signal/Group/sender-message-key.js.map +1 -0
  322. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.d.ts +5 -0
  323. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.d.ts.map +1 -0
  324. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js +431 -0
  325. package/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js.map +1 -0
  326. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.d.ts +23 -0
  327. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.d.ts.map +1 -0
  328. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.js +277 -0
  329. package/node_modules/@whiskeysockets/baileys/lib/Signal/lid-mapping.js.map +1 -0
  330. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.d.ts +3 -0
  331. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.d.ts.map +1 -0
  332. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.js +3 -0
  333. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/index.js.map +1 -0
  334. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.d.ts +16 -0
  335. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.d.ts.map +1 -0
  336. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js +11 -0
  337. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/types.js.map +1 -0
  338. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.d.ts +13 -0
  339. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.d.ts.map +1 -0
  340. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.js +54 -0
  341. package/node_modules/@whiskeysockets/baileys/lib/Socket/Client/websocket.js.map +1 -0
  342. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.d.ts +217 -0
  343. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.d.ts.map +1 -0
  344. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.js +379 -0
  345. package/node_modules/@whiskeysockets/baileys/lib/Socket/business.js.map +1 -0
  346. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.d.ts +124 -0
  347. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.d.ts.map +1 -0
  348. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js +1193 -0
  349. package/node_modules/@whiskeysockets/baileys/lib/Socket/chats.js.map +1 -0
  350. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.d.ts +273 -0
  351. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.d.ts.map +1 -0
  352. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.js +431 -0
  353. package/node_modules/@whiskeysockets/baileys/lib/Socket/communities.js.map +1 -0
  354. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.d.ts +161 -0
  355. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.d.ts.map +1 -0
  356. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js +347 -0
  357. package/node_modules/@whiskeysockets/baileys/lib/Socket/groups.js.map +1 -0
  358. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.d.ts +260 -0
  359. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.d.ts.map +1 -0
  360. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.js +13 -0
  361. package/node_modules/@whiskeysockets/baileys/lib/Socket/index.js.map +1 -0
  362. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.d.ts +203 -0
  363. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.d.ts.map +1 -0
  364. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js +1772 -0
  365. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js.map +1 -0
  366. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.d.ts +199 -0
  367. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.d.ts.map +1 -0
  368. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js +1145 -0
  369. package/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js.map +1 -0
  370. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.d.ts +3 -0
  371. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.d.ts.map +1 -0
  372. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.js +42 -0
  373. package/node_modules/@whiskeysockets/baileys/lib/Socket/mex.js.map +1 -0
  374. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.d.ts +170 -0
  375. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.d.ts.map +1 -0
  376. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.js +181 -0
  377. package/node_modules/@whiskeysockets/baileys/lib/Socket/newsletter.js.map +1 -0
  378. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.d.ts +59 -0
  379. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.d.ts.map +1 -0
  380. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js +967 -0
  381. package/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js.map +1 -0
  382. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.d.ts +117 -0
  383. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.d.ts.map +1 -0
  384. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.js +2 -0
  385. package/node_modules/@whiskeysockets/baileys/lib/Types/Auth.js.map +1 -0
  386. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.d.ts +25 -0
  387. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.d.ts.map +1 -0
  388. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.js +2 -0
  389. package/node_modules/@whiskeysockets/baileys/lib/Types/Bussines.js.map +1 -0
  390. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.d.ts +15 -0
  391. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.d.ts.map +1 -0
  392. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.js +2 -0
  393. package/node_modules/@whiskeysockets/baileys/lib/Types/Call.js.map +1 -0
  394. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.d.ts +124 -0
  395. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.d.ts.map +1 -0
  396. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.js +8 -0
  397. package/node_modules/@whiskeysockets/baileys/lib/Types/Chat.js.map +1 -0
  398. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.d.ts +26 -0
  399. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.d.ts.map +1 -0
  400. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.js +2 -0
  401. package/node_modules/@whiskeysockets/baileys/lib/Types/Contact.js.map +1 -0
  402. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.d.ts +256 -0
  403. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.d.ts.map +1 -0
  404. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.js +2 -0
  405. package/node_modules/@whiskeysockets/baileys/lib/Types/Events.js.map +1 -0
  406. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.d.ts +71 -0
  407. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.d.ts.map +1 -0
  408. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.js +2 -0
  409. package/node_modules/@whiskeysockets/baileys/lib/Types/GroupMetadata.js.map +1 -0
  410. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.d.ts +47 -0
  411. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.d.ts.map +1 -0
  412. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.js +25 -0
  413. package/node_modules/@whiskeysockets/baileys/lib/Types/Label.js.map +1 -0
  414. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.d.ts +30 -0
  415. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.d.ts.map +1 -0
  416. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.js +7 -0
  417. package/node_modules/@whiskeysockets/baileys/lib/Types/LabelAssociation.js.map +1 -0
  418. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.d.ts +320 -0
  419. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.d.ts.map +1 -0
  420. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.js +11 -0
  421. package/node_modules/@whiskeysockets/baileys/lib/Types/Message.js.map +1 -0
  422. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.d.ts +141 -0
  423. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.d.ts.map +1 -0
  424. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.js +37 -0
  425. package/node_modules/@whiskeysockets/baileys/lib/Types/Mex.js.map +1 -0
  426. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.d.ts +79 -0
  427. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.d.ts.map +1 -0
  428. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.js +2 -0
  429. package/node_modules/@whiskeysockets/baileys/lib/Types/Product.js.map +1 -0
  430. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.d.ts +87 -0
  431. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.d.ts.map +1 -0
  432. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.js +2 -0
  433. package/node_modules/@whiskeysockets/baileys/lib/Types/Signal.js.map +1 -0
  434. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.d.ts +136 -0
  435. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.d.ts.map +1 -0
  436. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.js +3 -0
  437. package/node_modules/@whiskeysockets/baileys/lib/Types/Socket.js.map +1 -0
  438. package/node_modules/@whiskeysockets/baileys/lib/Types/State.d.ts +97 -0
  439. package/node_modules/@whiskeysockets/baileys/lib/Types/State.d.ts.map +1 -0
  440. package/node_modules/@whiskeysockets/baileys/lib/Types/State.js +56 -0
  441. package/node_modules/@whiskeysockets/baileys/lib/Types/State.js.map +1 -0
  442. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.d.ts +26 -0
  443. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.d.ts.map +1 -0
  444. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.js +2 -0
  445. package/node_modules/@whiskeysockets/baileys/lib/Types/USync.js.map +1 -0
  446. package/node_modules/@whiskeysockets/baileys/lib/Types/index.d.ts +65 -0
  447. package/node_modules/@whiskeysockets/baileys/lib/Types/index.d.ts.map +1 -0
  448. package/node_modules/@whiskeysockets/baileys/lib/Types/index.js +26 -0
  449. package/node_modules/@whiskeysockets/baileys/lib/Types/index.js.map +1 -0
  450. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.d.ts +24 -0
  451. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.d.ts.map +1 -0
  452. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js +302 -0
  453. package/node_modules/@whiskeysockets/baileys/lib/Utils/auth-utils.js.map +1 -0
  454. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.d.ts +4 -0
  455. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.d.ts.map +1 -0
  456. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.js +28 -0
  457. package/node_modules/@whiskeysockets/baileys/lib/Utils/browser-utils.js.map +1 -0
  458. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.d.ts +23 -0
  459. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.d.ts.map +1 -0
  460. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.js +231 -0
  461. package/node_modules/@whiskeysockets/baileys/lib/Utils/business.js.map +1 -0
  462. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.d.ts +100 -0
  463. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.d.ts.map +1 -0
  464. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js +872 -0
  465. package/node_modules/@whiskeysockets/baileys/lib/Utils/chat-utils.js.map +1 -0
  466. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.d.ts +17 -0
  467. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.d.ts.map +1 -0
  468. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.js +35 -0
  469. package/node_modules/@whiskeysockets/baileys/lib/Utils/companion-reg-client-utils.js.map +1 -0
  470. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.d.ts +37 -0
  471. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.d.ts.map +1 -0
  472. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.js +118 -0
  473. package/node_modules/@whiskeysockets/baileys/lib/Utils/crypto.js.map +1 -0
  474. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.d.ts +66 -0
  475. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.d.ts.map +1 -0
  476. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js +317 -0
  477. package/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js.map +1 -0
  478. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.d.ts +36 -0
  479. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.d.ts.map +1 -0
  480. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.js +622 -0
  481. package/node_modules/@whiskeysockets/baileys/lib/Utils/event-buffer.js.map +1 -0
  482. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.d.ts +91 -0
  483. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.d.ts.map +1 -0
  484. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js +393 -0
  485. package/node_modules/@whiskeysockets/baileys/lib/Utils/generics.js.map +1 -0
  486. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.d.ts +24 -0
  487. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.d.ts.map +1 -0
  488. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.js +134 -0
  489. package/node_modules/@whiskeysockets/baileys/lib/Utils/history.js.map +1 -0
  490. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.d.ts +44 -0
  491. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.d.ts.map +1 -0
  492. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.js +50 -0
  493. package/node_modules/@whiskeysockets/baileys/lib/Utils/identity-change-handler.js.map +1 -0
  494. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.d.ts +22 -0
  495. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.d.ts.map +1 -0
  496. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.js +22 -0
  497. package/node_modules/@whiskeysockets/baileys/lib/Utils/index.js.map +1 -0
  498. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts +21 -0
  499. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts.map +1 -0
  500. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.js +85 -0
  501. package/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.js.map +1 -0
  502. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.d.ts +12 -0
  503. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.d.ts.map +1 -0
  504. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.js +3 -0
  505. package/node_modules/@whiskeysockets/baileys/lib/Utils/logger.js.map +1 -0
  506. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.d.ts +8 -0
  507. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.d.ts.map +1 -0
  508. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.js +8 -0
  509. package/node_modules/@whiskeysockets/baileys/lib/Utils/lt-hash.js.map +1 -0
  510. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.d.ts +9 -0
  511. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.d.ts.map +1 -0
  512. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js +33 -0
  513. package/node_modules/@whiskeysockets/baileys/lib/Utils/make-mutex.js.map +1 -0
  514. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.d.ts +115 -0
  515. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.d.ts.map +1 -0
  516. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.js +265 -0
  517. package/node_modules/@whiskeysockets/baileys/lib/Utils/message-retry-manager.js.map +1 -0
  518. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.d.ts +133 -0
  519. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.d.ts.map +1 -0
  520. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js +788 -0
  521. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js.map +1 -0
  522. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.d.ts +91 -0
  523. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.d.ts.map +1 -0
  524. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js +893 -0
  525. package/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js.map +1 -0
  526. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.d.ts +20 -0
  527. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.d.ts.map +1 -0
  528. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js +201 -0
  529. package/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js.map +1 -0
  530. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.d.ts +17 -0
  531. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.d.ts.map +1 -0
  532. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.js +40 -0
  533. package/node_modules/@whiskeysockets/baileys/lib/Utils/offline-node-processor.js.map +1 -0
  534. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.d.ts +28 -0
  535. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.d.ts.map +1 -0
  536. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.js +106 -0
  537. package/node_modules/@whiskeysockets/baileys/lib/Utils/pre-key-manager.js.map +1 -0
  538. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.d.ts +60 -0
  539. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.d.ts.map +1 -0
  540. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.js +630 -0
  541. package/node_modules/@whiskeysockets/baileys/lib/Utils/process-message.js.map +1 -0
  542. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.d.ts +11 -0
  543. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.d.ts.map +1 -0
  544. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.js +258 -0
  545. package/node_modules/@whiskeysockets/baileys/lib/Utils/reporting-utils.js.map +1 -0
  546. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts +47 -0
  547. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.d.ts.map +1 -0
  548. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.js +201 -0
  549. package/node_modules/@whiskeysockets/baileys/lib/Utils/signal.js.map +1 -0
  550. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.d.ts +11 -0
  551. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.d.ts.map +1 -0
  552. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.js +38 -0
  553. package/node_modules/@whiskeysockets/baileys/lib/Utils/stanza-ack.js.map +1 -0
  554. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.d.ts +19 -0
  555. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.d.ts.map +1 -0
  556. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.js +49 -0
  557. package/node_modules/@whiskeysockets/baileys/lib/Utils/sync-action-utils.js.map +1 -0
  558. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.d.ts +37 -0
  559. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.d.ts.map +1 -0
  560. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.js +163 -0
  561. package/node_modules/@whiskeysockets/baileys/lib/Utils/tc-token-utils.js.map +1 -0
  562. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.d.ts +13 -0
  563. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.d.ts.map +1 -0
  564. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.js +121 -0
  565. package/node_modules/@whiskeysockets/baileys/lib/Utils/use-multi-file-auth-state.js.map +1 -0
  566. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.d.ts +11 -0
  567. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.d.ts.map +1 -0
  568. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.js +203 -0
  569. package/node_modules/@whiskeysockets/baileys/lib/Utils/validate-connection.js.map +1 -0
  570. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.d.ts +28 -0
  571. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.d.ts.map +1 -0
  572. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.js +1301 -0
  573. package/node_modules/@whiskeysockets/baileys/lib/WABinary/constants.js.map +1 -0
  574. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.d.ts +7 -0
  575. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.d.ts.map +1 -0
  576. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.js +262 -0
  577. package/node_modules/@whiskeysockets/baileys/lib/WABinary/decode.js.map +1 -0
  578. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.d.ts +3 -0
  579. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.d.ts.map +1 -0
  580. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.js +220 -0
  581. package/node_modules/@whiskeysockets/baileys/lib/WABinary/encode.js.map +1 -0
  582. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.d.ts +15 -0
  583. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.d.ts.map +1 -0
  584. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js +113 -0
  585. package/node_modules/@whiskeysockets/baileys/lib/WABinary/generic-utils.js.map +1 -0
  586. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.d.ts +6 -0
  587. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.d.ts.map +1 -0
  588. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.js +6 -0
  589. package/node_modules/@whiskeysockets/baileys/lib/WABinary/index.js.map +1 -0
  590. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.d.ts +48 -0
  591. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.d.ts.map +1 -0
  592. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.js +96 -0
  593. package/node_modules/@whiskeysockets/baileys/lib/WABinary/jid-utils.js.map +1 -0
  594. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.d.ts +19 -0
  595. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.d.ts.map +1 -0
  596. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.js +2 -0
  597. package/node_modules/@whiskeysockets/baileys/lib/WABinary/types.js.map +1 -0
  598. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.d.ts +9 -0
  599. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.d.ts.map +1 -0
  600. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.js +10 -0
  601. package/node_modules/@whiskeysockets/baileys/lib/WAM/BinaryInfo.js.map +1 -0
  602. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.d.ts +40 -0
  603. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.d.ts.map +1 -0
  604. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.js +22853 -0
  605. package/node_modules/@whiskeysockets/baileys/lib/WAM/constants.js.map +1 -0
  606. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.d.ts +3 -0
  607. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.d.ts.map +1 -0
  608. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.js +150 -0
  609. package/node_modules/@whiskeysockets/baileys/lib/WAM/encode.js.map +1 -0
  610. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.d.ts +4 -0
  611. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.d.ts.map +1 -0
  612. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.js +4 -0
  613. package/node_modules/@whiskeysockets/baileys/lib/WAM/index.js.map +1 -0
  614. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +10 -0
  615. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.d.ts.map +1 -0
  616. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.js +52 -0
  617. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncContactProtocol.js.map +1 -0
  618. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
  619. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts.map +1 -0
  620. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.js +54 -0
  621. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDeviceProtocol.js.map +1 -0
  622. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
  623. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts.map +1 -0
  624. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +27 -0
  625. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js.map +1 -0
  626. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
  627. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts.map +1 -0
  628. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.js +38 -0
  629. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncStatusProtocol.js.map +1 -0
  630. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
  631. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts.map +1 -0
  632. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.js +25 -0
  633. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/USyncUsernameProtocol.js.map +1 -0
  634. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +26 -0
  635. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts.map +1 -0
  636. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +51 -0
  637. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js.map +1 -0
  638. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +10 -0
  639. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts.map +1 -0
  640. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js +29 -0
  641. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/UsyncLIDProtocol.js.map +1 -0
  642. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.d.ts +6 -0
  643. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.d.ts.map +1 -0
  644. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.js +6 -0
  645. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/Protocols/index.js.map +1 -0
  646. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.d.ts +30 -0
  647. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.d.ts.map +1 -0
  648. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.js +98 -0
  649. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncQuery.js.map +1 -0
  650. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.d.ts +17 -0
  651. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.d.ts.map +1 -0
  652. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.js +31 -0
  653. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/USyncUser.js.map +1 -0
  654. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.d.ts +4 -0
  655. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.d.ts.map +1 -0
  656. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.js +4 -0
  657. package/node_modules/@whiskeysockets/baileys/lib/WAUSync/index.js.map +1 -0
  658. package/node_modules/@whiskeysockets/baileys/lib/index.d.ts +12 -0
  659. package/node_modules/@whiskeysockets/baileys/lib/index.d.ts.map +1 -0
  660. package/node_modules/@whiskeysockets/baileys/lib/index.js +11 -0
  661. package/node_modules/@whiskeysockets/baileys/lib/index.js.map +1 -0
  662. package/node_modules/@whiskeysockets/baileys/package.json +139 -0
  663. package/node_modules/async-mutex/LICENSE +21 -0
  664. package/node_modules/async-mutex/README.md +540 -0
  665. package/node_modules/async-mutex/es6/Mutex.js +41 -0
  666. package/node_modules/async-mutex/es6/MutexInterface.js +1 -0
  667. package/node_modules/async-mutex/es6/Semaphore.js +153 -0
  668. package/node_modules/async-mutex/es6/SemaphoreInterface.js +1 -0
  669. package/node_modules/async-mutex/es6/errors.js +3 -0
  670. package/node_modules/async-mutex/es6/index.js +5 -0
  671. package/node_modules/async-mutex/es6/tryAcquire.js +8 -0
  672. package/node_modules/async-mutex/es6/withTimeout.js +124 -0
  673. package/node_modules/async-mutex/index.mjs +291 -0
  674. package/node_modules/async-mutex/lib/Mutex.d.ts +12 -0
  675. package/node_modules/async-mutex/lib/Mutex.js +43 -0
  676. package/node_modules/async-mutex/lib/MutexInterface.d.ts +17 -0
  677. package/node_modules/async-mutex/lib/MutexInterface.js +2 -0
  678. package/node_modules/async-mutex/lib/Semaphore.d.ts +22 -0
  679. package/node_modules/async-mutex/lib/Semaphore.js +155 -0
  680. package/node_modules/async-mutex/lib/SemaphoreInterface.d.ts +19 -0
  681. package/node_modules/async-mutex/lib/SemaphoreInterface.js +2 -0
  682. package/node_modules/async-mutex/lib/errors.d.ts +3 -0
  683. package/node_modules/async-mutex/lib/errors.js +6 -0
  684. package/node_modules/async-mutex/lib/index.d.ts +7 -0
  685. package/node_modules/async-mutex/lib/index.js +13 -0
  686. package/node_modules/async-mutex/lib/tryAcquire.d.ts +4 -0
  687. package/node_modules/async-mutex/lib/tryAcquire.js +12 -0
  688. package/node_modules/async-mutex/lib/withTimeout.d.ts +4 -0
  689. package/node_modules/async-mutex/lib/withTimeout.js +128 -0
  690. package/node_modules/async-mutex/package.json +88 -0
  691. package/node_modules/atomic-sleep/.travis.yml +11 -0
  692. package/node_modules/atomic-sleep/LICENSE +22 -0
  693. package/node_modules/atomic-sleep/index.js +38 -0
  694. package/node_modules/atomic-sleep/package.json +37 -0
  695. package/node_modules/atomic-sleep/readme.md +58 -0
  696. package/node_modules/atomic-sleep/test.js +47 -0
  697. package/node_modules/cacheable/LICENSE +19 -0
  698. package/node_modules/cacheable/README.md +846 -0
  699. package/node_modules/cacheable/dist/index.cjs +1157 -0
  700. package/node_modules/cacheable/dist/index.d.cts +494 -0
  701. package/node_modules/cacheable/dist/index.d.ts +494 -0
  702. package/node_modules/cacheable/dist/index.js +1141 -0
  703. package/node_modules/cacheable/package.json +81 -0
  704. package/node_modules/content-type/LICENSE +22 -0
  705. package/node_modules/content-type/README.md +69 -0
  706. package/node_modules/content-type/dist/index.d.ts +26 -0
  707. package/node_modules/content-type/dist/index.js +170 -0
  708. package/node_modules/content-type/dist/index.js.map +1 -0
  709. package/node_modules/content-type/package.json +52 -0
  710. package/node_modules/curve25519-js/.prettierrc +6 -0
  711. package/node_modules/curve25519-js/LICENSE +19 -0
  712. package/node_modules/curve25519-js/README.md +111 -0
  713. package/node_modules/curve25519-js/lib/index.d.ts +69 -0
  714. package/node_modules/curve25519-js/lib/index.js +1669 -0
  715. package/node_modules/curve25519-js/package.json +34 -0
  716. package/node_modules/curve25519-js/tsconfig.json +20 -0
  717. package/node_modules/curve25519-js/tslint.json +10 -0
  718. package/node_modules/debug/LICENSE +20 -0
  719. package/node_modules/debug/README.md +481 -0
  720. package/node_modules/debug/package.json +64 -0
  721. package/node_modules/debug/src/browser.js +272 -0
  722. package/node_modules/debug/src/common.js +292 -0
  723. package/node_modules/debug/src/index.js +10 -0
  724. package/node_modules/debug/src/node.js +263 -0
  725. package/node_modules/eventemitter3/LICENSE +21 -0
  726. package/node_modules/eventemitter3/README.md +85 -0
  727. package/node_modules/eventemitter3/dist/eventemitter3.esm.js +355 -0
  728. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
  729. package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
  730. package/node_modules/eventemitter3/dist/eventemitter3.umd.js +363 -0
  731. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
  732. package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
  733. package/node_modules/eventemitter3/index.d.ts +135 -0
  734. package/node_modules/eventemitter3/index.js +336 -0
  735. package/node_modules/eventemitter3/index.mjs +4 -0
  736. package/node_modules/eventemitter3/package.json +62 -0
  737. package/node_modules/file-type/core.d.ts +253 -0
  738. package/node_modules/file-type/core.js +2899 -0
  739. package/node_modules/file-type/index.d.ts +98 -0
  740. package/node_modules/file-type/index.js +163 -0
  741. package/node_modules/file-type/license +9 -0
  742. package/node_modules/file-type/package.json +290 -0
  743. package/node_modules/file-type/readme.md +667 -0
  744. package/node_modules/file-type/supported.js +360 -0
  745. package/node_modules/file-type/util.js +60 -0
  746. package/node_modules/hashery/LICENSE +21 -0
  747. package/node_modules/hashery/README.md +1373 -0
  748. package/node_modules/hashery/dist/browser/index.global.js +8 -0
  749. package/node_modules/hashery/dist/browser/index.global.js.map +1 -0
  750. package/node_modules/hashery/dist/browser/index.js +3 -0
  751. package/node_modules/hashery/dist/browser/index.js.map +1 -0
  752. package/node_modules/hashery/dist/node/index.cjs +989 -0
  753. package/node_modules/hashery/dist/node/index.d.cts +935 -0
  754. package/node_modules/hashery/dist/node/index.d.ts +935 -0
  755. package/node_modules/hashery/dist/node/index.js +957 -0
  756. package/node_modules/hashery/package.json +92 -0
  757. package/node_modules/hookified/LICENSE +19 -0
  758. package/node_modules/hookified/README.md +1424 -0
  759. package/node_modules/hookified/dist/browser/index.global.js +693 -0
  760. package/node_modules/hookified/dist/browser/index.global.js.map +1 -0
  761. package/node_modules/hookified/dist/browser/index.js +694 -0
  762. package/node_modules/hookified/dist/browser/index.js.map +1 -0
  763. package/node_modules/hookified/dist/node/index.cjs +717 -0
  764. package/node_modules/hookified/dist/node/index.d.cts +543 -0
  765. package/node_modules/hookified/dist/node/index.d.ts +543 -0
  766. package/node_modules/hookified/dist/node/index.js +689 -0
  767. package/node_modules/hookified/package.json +92 -0
  768. package/node_modules/ieee754/LICENSE +11 -0
  769. package/node_modules/ieee754/README.md +51 -0
  770. package/node_modules/ieee754/index.d.ts +10 -0
  771. package/node_modules/ieee754/index.js +85 -0
  772. package/node_modules/ieee754/package.json +52 -0
  773. package/node_modules/keyv/LICENSE +22 -0
  774. package/node_modules/keyv/README.md +828 -0
  775. package/node_modules/keyv/dist/index.cjs +990 -0
  776. package/node_modules/keyv/dist/index.d.cts +378 -0
  777. package/node_modules/keyv/dist/index.d.ts +378 -0
  778. package/node_modules/keyv/dist/index.js +964 -0
  779. package/node_modules/keyv/package.json +88 -0
  780. package/node_modules/libsignal/LICENSE +621 -0
  781. package/node_modules/libsignal/README.md +64 -0
  782. package/node_modules/libsignal/index.d.ts +55 -0
  783. package/node_modules/libsignal/index.js +10 -0
  784. package/node_modules/libsignal/package.json +34 -0
  785. package/node_modules/libsignal/src/.eslintrc.json +31 -0
  786. package/node_modules/libsignal/src/WhisperTextProtocol.js +933 -0
  787. package/node_modules/libsignal/src/base_key_type.js +7 -0
  788. package/node_modules/libsignal/src/chain_type.js +6 -0
  789. package/node_modules/libsignal/src/crypto.d.ts +19 -0
  790. package/node_modules/libsignal/src/crypto.js +98 -0
  791. package/node_modules/libsignal/src/curve.d.ts +22 -0
  792. package/node_modules/libsignal/src/curve.js +142 -0
  793. package/node_modules/libsignal/src/errors.js +33 -0
  794. package/node_modules/libsignal/src/keyhelper.js +45 -0
  795. package/node_modules/libsignal/src/numeric_fingerprint.js +72 -0
  796. package/node_modules/libsignal/src/protobufs.js +10 -0
  797. package/node_modules/libsignal/src/protocol_address.js +40 -0
  798. package/node_modules/libsignal/src/queue_job.js +69 -0
  799. package/node_modules/libsignal/src/session_builder.js +164 -0
  800. package/node_modules/libsignal/src/session_cipher.js +336 -0
  801. package/node_modules/libsignal/src/session_record.js +316 -0
  802. package/node_modules/long/LICENSE +202 -0
  803. package/node_modules/long/README.md +286 -0
  804. package/node_modules/long/index.d.ts +2 -0
  805. package/node_modules/long/index.js +1581 -0
  806. package/node_modules/long/package.json +58 -0
  807. package/node_modules/long/types.d.ts +474 -0
  808. package/node_modules/long/umd/index.d.ts +3 -0
  809. package/node_modules/long/umd/index.js +1622 -0
  810. package/node_modules/long/umd/package.json +3 -0
  811. package/node_modules/long/umd/types.d.ts +474 -0
  812. package/node_modules/lru-cache/LICENSE.md +55 -0
  813. package/node_modules/lru-cache/README.md +469 -0
  814. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  815. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  816. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  817. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  818. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
  819. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  820. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
  821. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  822. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  823. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  824. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  825. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  826. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  827. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  828. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  829. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  830. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  831. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  832. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
  833. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  834. package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
  835. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  836. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  837. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  838. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  839. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  840. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  841. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  842. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  843. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  844. package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
  845. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  846. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  847. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  848. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  849. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  850. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  851. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  852. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  853. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  854. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  855. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  856. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  857. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  858. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  859. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  860. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  861. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  862. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  863. package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
  864. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  865. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  866. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  867. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  868. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  869. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  870. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  871. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  872. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  873. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  874. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  875. package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  876. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  877. package/node_modules/lru-cache/dist/esm/index.js +1722 -0
  878. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  879. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  880. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  881. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  882. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  883. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  884. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  885. package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  886. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  887. package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
  888. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  889. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  890. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  891. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  892. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  893. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  894. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  895. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  896. package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  897. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  898. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  899. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  900. package/node_modules/lru-cache/package.json +154 -0
  901. package/node_modules/media-typer/LICENSE +22 -0
  902. package/node_modules/media-typer/README.md +79 -0
  903. package/node_modules/media-typer/dist/index.d.ts +29 -0
  904. package/node_modules/media-typer/dist/index.js +64 -0
  905. package/node_modules/media-typer/dist/index.js.map +1 -0
  906. package/node_modules/media-typer/package.json +48 -0
  907. package/node_modules/ms/index.js +162 -0
  908. package/node_modules/ms/license.md +21 -0
  909. package/node_modules/ms/package.json +38 -0
  910. package/node_modules/ms/readme.md +59 -0
  911. package/node_modules/music-metadata/LICENSE.txt +9 -0
  912. package/node_modules/music-metadata/README.md +878 -0
  913. package/node_modules/music-metadata/lib/ParseError.d.ts +87 -0
  914. package/node_modules/music-metadata/lib/ParseError.js +38 -0
  915. package/node_modules/music-metadata/lib/ParserFactory.d.ts +44 -0
  916. package/node_modules/music-metadata/lib/ParserFactory.js +141 -0
  917. package/node_modules/music-metadata/lib/aiff/AiffLoader.d.ts +2 -0
  918. package/node_modules/music-metadata/lib/aiff/AiffLoader.js +8 -0
  919. package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +15 -0
  920. package/node_modules/music-metadata/lib/aiff/AiffParser.js +104 -0
  921. package/node_modules/music-metadata/lib/aiff/AiffTagMap.d.ts +4 -0
  922. package/node_modules/music-metadata/lib/aiff/AiffTagMap.js +15 -0
  923. package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +48 -0
  924. package/node_modules/music-metadata/lib/aiff/AiffToken.js +58 -0
  925. package/node_modules/music-metadata/lib/apev2/APEv2Parser.d.ts +46 -0
  926. package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +176 -0
  927. package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.d.ts +4 -0
  928. package/node_modules/music-metadata/lib/apev2/APEv2TagMapper.js +83 -0
  929. package/node_modules/music-metadata/lib/apev2/APEv2Token.d.ts +99 -0
  930. package/node_modules/music-metadata/lib/apev2/APEv2Token.js +116 -0
  931. package/node_modules/music-metadata/lib/apev2/Apev2Loader.d.ts +2 -0
  932. package/node_modules/music-metadata/lib/apev2/Apev2Loader.js +8 -0
  933. package/node_modules/music-metadata/lib/asf/AsfGuid.d.ts +83 -0
  934. package/node_modules/music-metadata/lib/asf/AsfGuid.js +109 -0
  935. package/node_modules/music-metadata/lib/asf/AsfLoader.d.ts +2 -0
  936. package/node_modules/music-metadata/lib/asf/AsfLoader.js +8 -0
  937. package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +325 -0
  938. package/node_modules/music-metadata/lib/asf/AsfObject.js +347 -0
  939. package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +17 -0
  940. package/node_modules/music-metadata/lib/asf/AsfParser.js +134 -0
  941. package/node_modules/music-metadata/lib/asf/AsfTagMapper.d.ts +7 -0
  942. package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +92 -0
  943. package/node_modules/music-metadata/lib/asf/AsfUtil.d.ts +4 -0
  944. package/node_modules/music-metadata/lib/asf/AsfUtil.js +32 -0
  945. package/node_modules/music-metadata/lib/common/BasicParser.d.ts +17 -0
  946. package/node_modules/music-metadata/lib/common/BasicParser.js +13 -0
  947. package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.d.ts +10 -0
  948. package/node_modules/music-metadata/lib/common/CaseInsensitiveTagMap.js +17 -0
  949. package/node_modules/music-metadata/lib/common/CombinedTagMapper.d.ts +19 -0
  950. package/node_modules/music-metadata/lib/common/CombinedTagMapper.js +50 -0
  951. package/node_modules/music-metadata/lib/common/FourCC.d.ts +6 -0
  952. package/node_modules/music-metadata/lib/common/FourCC.js +25 -0
  953. package/node_modules/music-metadata/lib/common/GenericTagMapper.d.ts +51 -0
  954. package/node_modules/music-metadata/lib/common/GenericTagMapper.js +51 -0
  955. package/node_modules/music-metadata/lib/common/GenericTagTypes.d.ts +34 -0
  956. package/node_modules/music-metadata/lib/common/GenericTagTypes.js +133 -0
  957. package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +86 -0
  958. package/node_modules/music-metadata/lib/common/MetadataCollector.js +307 -0
  959. package/node_modules/music-metadata/lib/common/Util.d.ts +56 -0
  960. package/node_modules/music-metadata/lib/common/Util.js +152 -0
  961. package/node_modules/music-metadata/lib/core.d.ts +75 -0
  962. package/node_modules/music-metadata/lib/core.js +126 -0
  963. package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.d.ts +2 -0
  964. package/node_modules/music-metadata/lib/dsdiff/DsdiffLoader.js +8 -0
  965. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +29 -0
  966. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +154 -0
  967. package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.d.ts +9 -0
  968. package/node_modules/music-metadata/lib/dsdiff/DsdiffToken.js +18 -0
  969. package/node_modules/music-metadata/lib/dsf/DsfChunk.d.ts +87 -0
  970. package/node_modules/music-metadata/lib/dsf/DsfChunk.js +50 -0
  971. package/node_modules/music-metadata/lib/dsf/DsfLoader.d.ts +2 -0
  972. package/node_modules/music-metadata/lib/dsf/DsfLoader.js +8 -0
  973. package/node_modules/music-metadata/lib/dsf/DsfParser.d.ts +24 -0
  974. package/node_modules/music-metadata/lib/dsf/DsfParser.js +57 -0
  975. package/node_modules/music-metadata/lib/ebml/EbmlIterator.d.ts +67 -0
  976. package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +218 -0
  977. package/node_modules/music-metadata/lib/ebml/types.d.ts +37 -0
  978. package/node_modules/music-metadata/lib/ebml/types.js +8 -0
  979. package/node_modules/music-metadata/lib/flac/FlacLoader.d.ts +2 -0
  980. package/node_modules/music-metadata/lib/flac/FlacLoader.js +8 -0
  981. package/node_modules/music-metadata/lib/flac/FlacParser.d.ts +29 -0
  982. package/node_modules/music-metadata/lib/flac/FlacParser.js +125 -0
  983. package/node_modules/music-metadata/lib/flac/FlacToken.d.ts +45 -0
  984. package/node_modules/music-metadata/lib/flac/FlacToken.js +63 -0
  985. package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.d.ts +17 -0
  986. package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +137 -0
  987. package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.d.ts +4 -0
  988. package/node_modules/music-metadata/lib/id3v1/ID3v1TagMap.js +18 -0
  989. package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.d.ts +17 -0
  990. package/node_modules/music-metadata/lib/id3v2/AbstractID3Parser.js +56 -0
  991. package/node_modules/music-metadata/lib/id3v2/FrameHeader.d.ts +31 -0
  992. package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +73 -0
  993. package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +92 -0
  994. package/node_modules/music-metadata/lib/id3v2/FrameParser.js +470 -0
  995. package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.d.ts +9 -0
  996. package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +46 -0
  997. package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.d.ts +14 -0
  998. package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +195 -0
  999. package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.d.ts +11 -0
  1000. package/node_modules/music-metadata/lib/id3v2/ID3v2ChapterToken.js +17 -0
  1001. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +33 -0
  1002. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +169 -0
  1003. package/node_modules/music-metadata/lib/id3v2/ID3v2Token.d.ts +111 -0
  1004. package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +146 -0
  1005. package/node_modules/music-metadata/lib/iff/index.d.ts +33 -0
  1006. package/node_modules/music-metadata/lib/iff/index.js +16 -0
  1007. package/node_modules/music-metadata/lib/index.d.ts +22 -0
  1008. package/node_modules/music-metadata/lib/index.js +53 -0
  1009. package/node_modules/music-metadata/lib/lrc/LyricsParser.d.ts +9 -0
  1010. package/node_modules/music-metadata/lib/lrc/LyricsParser.js +45 -0
  1011. package/node_modules/music-metadata/lib/lyrics3/Lyrics3.d.ts +3 -0
  1012. package/node_modules/music-metadata/lib/lyrics3/Lyrics3.js +17 -0
  1013. package/node_modules/music-metadata/lib/matroska/MatroskaDtd.d.ts +8 -0
  1014. package/node_modules/music-metadata/lib/matroska/MatroskaDtd.js +283 -0
  1015. package/node_modules/music-metadata/lib/matroska/MatroskaLoader.d.ts +2 -0
  1016. package/node_modules/music-metadata/lib/matroska/MatroskaLoader.js +8 -0
  1017. package/node_modules/music-metadata/lib/matroska/MatroskaParser.d.ts +19 -0
  1018. package/node_modules/music-metadata/lib/matroska/MatroskaParser.js +143 -0
  1019. package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.d.ts +4 -0
  1020. package/node_modules/music-metadata/lib/matroska/MatroskaTagMapper.js +32 -0
  1021. package/node_modules/music-metadata/lib/matroska/types.d.ts +142 -0
  1022. package/node_modules/music-metadata/lib/matroska/types.js +27 -0
  1023. package/node_modules/music-metadata/lib/mp4/Atom.d.ts +16 -0
  1024. package/node_modules/music-metadata/lib/mp4/Atom.js +65 -0
  1025. package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +487 -0
  1026. package/node_modules/music-metadata/lib/mp4/AtomToken.js +576 -0
  1027. package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +32 -0
  1028. package/node_modules/music-metadata/lib/mp4/MP4Parser.js +647 -0
  1029. package/node_modules/music-metadata/lib/mp4/MP4TagMapper.d.ts +8 -0
  1030. package/node_modules/music-metadata/lib/mp4/MP4TagMapper.js +123 -0
  1031. package/node_modules/music-metadata/lib/mp4/Mp4Loader.d.ts +2 -0
  1032. package/node_modules/music-metadata/lib/mp4/Mp4Loader.js +8 -0
  1033. package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.d.ts +27 -0
  1034. package/node_modules/music-metadata/lib/mpeg/ExtendedLameHeader.js +28 -0
  1035. package/node_modules/music-metadata/lib/mpeg/MpegLoader.d.ts +2 -0
  1036. package/node_modules/music-metadata/lib/mpeg/MpegLoader.js +8 -0
  1037. package/node_modules/music-metadata/lib/mpeg/MpegParser.d.ts +62 -0
  1038. package/node_modules/music-metadata/lib/mpeg/MpegParser.js +569 -0
  1039. package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.d.ts +57 -0
  1040. package/node_modules/music-metadata/lib/mpeg/ReplayGainDataFormat.js +64 -0
  1041. package/node_modules/music-metadata/lib/mpeg/XingTag.d.ts +44 -0
  1042. package/node_modules/music-metadata/lib/mpeg/XingTag.js +65 -0
  1043. package/node_modules/music-metadata/lib/musepack/MusepackConentError.d.ts +15 -0
  1044. package/node_modules/music-metadata/lib/musepack/MusepackConentError.js +3 -0
  1045. package/node_modules/music-metadata/lib/musepack/MusepackLoader.d.ts +2 -0
  1046. package/node_modules/music-metadata/lib/musepack/MusepackLoader.js +8 -0
  1047. package/node_modules/music-metadata/lib/musepack/MusepackParser.d.ts +4 -0
  1048. package/node_modules/music-metadata/lib/musepack/MusepackParser.js +30 -0
  1049. package/node_modules/music-metadata/lib/musepack/sv7/BitReader.d.ts +13 -0
  1050. package/node_modules/music-metadata/lib/musepack/sv7/BitReader.js +46 -0
  1051. package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.d.ts +8 -0
  1052. package/node_modules/music-metadata/lib/musepack/sv7/MpcSv7Parser.js +47 -0
  1053. package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.d.ts +28 -0
  1054. package/node_modules/music-metadata/lib/musepack/sv7/StreamVersion7.js +39 -0
  1055. package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.d.ts +6 -0
  1056. package/node_modules/music-metadata/lib/musepack/sv8/MpcSv8Parser.js +56 -0
  1057. package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.d.ts +42 -0
  1058. package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +82 -0
  1059. package/node_modules/music-metadata/lib/ogg/OggLoader.d.ts +2 -0
  1060. package/node_modules/music-metadata/lib/ogg/OggLoader.js +8 -0
  1061. package/node_modules/music-metadata/lib/ogg/OggParser.d.ts +27 -0
  1062. package/node_modules/music-metadata/lib/ogg/OggParser.js +125 -0
  1063. package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +83 -0
  1064. package/node_modules/music-metadata/lib/ogg/OggToken.js +41 -0
  1065. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +29 -0
  1066. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +74 -0
  1067. package/node_modules/music-metadata/lib/ogg/opus/Opus.d.ts +63 -0
  1068. package/node_modules/music-metadata/lib/ogg/opus/Opus.js +27 -0
  1069. package/node_modules/music-metadata/lib/ogg/opus/OpusStream.d.ts +24 -0
  1070. package/node_modules/music-metadata/lib/ogg/opus/OpusStream.js +56 -0
  1071. package/node_modules/music-metadata/lib/ogg/speex/Speex.d.ts +36 -0
  1072. package/node_modules/music-metadata/lib/ogg/speex/Speex.js +28 -0
  1073. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +20 -0
  1074. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +31 -0
  1075. package/node_modules/music-metadata/lib/ogg/theora/Theora.d.ts +20 -0
  1076. package/node_modules/music-metadata/lib/ogg/theora/Theora.js +20 -0
  1077. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.d.ts +25 -0
  1078. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +39 -0
  1079. package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.d.ts +68 -0
  1080. package/node_modules/music-metadata/lib/ogg/vorbis/Vorbis.js +83 -0
  1081. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +12 -0
  1082. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +29 -0
  1083. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +53 -0
  1084. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +136 -0
  1085. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.d.ts +7 -0
  1086. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +133 -0
  1087. package/node_modules/music-metadata/lib/riff/RiffChunk.d.ts +16 -0
  1088. package/node_modules/music-metadata/lib/riff/RiffChunk.js +28 -0
  1089. package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.d.ts +10 -0
  1090. package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.js +34 -0
  1091. package/node_modules/music-metadata/lib/type.d.ts +661 -0
  1092. package/node_modules/music-metadata/lib/type.js +2 -0
  1093. package/node_modules/music-metadata/lib/wav/BwfChunk.d.ts +17 -0
  1094. package/node_modules/music-metadata/lib/wav/BwfChunk.js +26 -0
  1095. package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +104 -0
  1096. package/node_modules/music-metadata/lib/wav/WaveChunk.js +88 -0
  1097. package/node_modules/music-metadata/lib/wav/WaveLoader.d.ts +2 -0
  1098. package/node_modules/music-metadata/lib/wav/WaveLoader.js +8 -0
  1099. package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +25 -0
  1100. package/node_modules/music-metadata/lib/wav/WaveParser.js +171 -0
  1101. package/node_modules/music-metadata/lib/wavpack/WavPackLoader.d.ts +2 -0
  1102. package/node_modules/music-metadata/lib/wavpack/WavPackLoader.js +8 -0
  1103. package/node_modules/music-metadata/lib/wavpack/WavPackParser.d.ts +30 -0
  1104. package/node_modules/music-metadata/lib/wavpack/WavPackParser.js +109 -0
  1105. package/node_modules/music-metadata/lib/wavpack/WavPackToken.d.ts +60 -0
  1106. package/node_modules/music-metadata/lib/wavpack/WavPackToken.js +70 -0
  1107. package/node_modules/music-metadata/package.json +156 -0
  1108. package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
  1109. package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
  1110. package/node_modules/on-exit-leak-free/LICENSE +21 -0
  1111. package/node_modules/on-exit-leak-free/README.md +54 -0
  1112. package/node_modules/on-exit-leak-free/index.js +108 -0
  1113. package/node_modules/on-exit-leak-free/package.json +37 -0
  1114. package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
  1115. package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
  1116. package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
  1117. package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
  1118. package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
  1119. package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
  1120. package/node_modules/p-queue/dist/index.d.ts +263 -0
  1121. package/node_modules/p-queue/dist/index.js +796 -0
  1122. package/node_modules/p-queue/dist/lower-bound.d.ts +1 -0
  1123. package/node_modules/p-queue/dist/lower-bound.js +18 -0
  1124. package/node_modules/p-queue/dist/options.d.ts +137 -0
  1125. package/node_modules/p-queue/dist/options.js +1 -0
  1126. package/node_modules/p-queue/dist/priority-queue.d.ts +15 -0
  1127. package/node_modules/p-queue/dist/priority-queue.js +94 -0
  1128. package/node_modules/p-queue/dist/queue.d.ts +9 -0
  1129. package/node_modules/p-queue/dist/queue.js +1 -0
  1130. package/node_modules/p-queue/license +9 -0
  1131. package/node_modules/p-queue/package.json +81 -0
  1132. package/node_modules/p-queue/readme.md +1079 -0
  1133. package/node_modules/p-timeout/index.d.ts +149 -0
  1134. package/node_modules/p-timeout/index.js +95 -0
  1135. package/node_modules/p-timeout/license +9 -0
  1136. package/node_modules/p-timeout/package.json +52 -0
  1137. package/node_modules/p-timeout/readme.md +192 -0
  1138. package/node_modules/pino/.eslintignore +2 -0
  1139. package/node_modules/pino/.eslintrc +8 -0
  1140. package/node_modules/pino/.github/dependabot.yml +13 -0
  1141. package/node_modules/pino/.github/workflows/bench.yml +61 -0
  1142. package/node_modules/pino/.github/workflows/ci.yml +90 -0
  1143. package/node_modules/pino/.github/workflows/lock-threads.yml +30 -0
  1144. package/node_modules/pino/.github/workflows/publish-release.yml +43 -0
  1145. package/node_modules/pino/.github/workflows/target-main.yml +23 -0
  1146. package/node_modules/pino/.nojekyll +0 -0
  1147. package/node_modules/pino/.prettierignore +1 -0
  1148. package/node_modules/pino/.taprc.yaml +8 -0
  1149. package/node_modules/pino/CNAME +1 -0
  1150. package/node_modules/pino/CONTRIBUTING.md +30 -0
  1151. package/node_modules/pino/LICENSE +21 -0
  1152. package/node_modules/pino/README.md +177 -0
  1153. package/node_modules/pino/SECURITY.md +68 -0
  1154. package/node_modules/pino/benchmarks/basic.bench.js +95 -0
  1155. package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
  1156. package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
  1157. package/node_modules/pino/benchmarks/child.bench.js +62 -0
  1158. package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
  1159. package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
  1160. package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
  1161. package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
  1162. package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
  1163. package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
  1164. package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
  1165. package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
  1166. package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
  1167. package/node_modules/pino/benchmarks/multistream.js +98 -0
  1168. package/node_modules/pino/benchmarks/object.bench.js +82 -0
  1169. package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
  1170. package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
  1171. package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
  1172. package/node_modules/pino/bin.js +6 -0
  1173. package/node_modules/pino/browser.js +505 -0
  1174. package/node_modules/pino/build/sync-version.js +25 -0
  1175. package/node_modules/pino/docs/api.md +1588 -0
  1176. package/node_modules/pino/docs/asynchronous.md +40 -0
  1177. package/node_modules/pino/docs/benchmarks.md +55 -0
  1178. package/node_modules/pino/docs/browser.md +242 -0
  1179. package/node_modules/pino/docs/bundling.md +40 -0
  1180. package/node_modules/pino/docs/child-loggers.md +95 -0
  1181. package/node_modules/pino/docs/diagnostics.md +16 -0
  1182. package/node_modules/pino/docs/ecosystem.md +86 -0
  1183. package/node_modules/pino/docs/help.md +345 -0
  1184. package/node_modules/pino/docs/lts.md +64 -0
  1185. package/node_modules/pino/docs/pretty.md +35 -0
  1186. package/node_modules/pino/docs/redaction.md +135 -0
  1187. package/node_modules/pino/docs/transports.md +1263 -0
  1188. package/node_modules/pino/docs/web.md +309 -0
  1189. package/node_modules/pino/docsify/sidebar.md +26 -0
  1190. package/node_modules/pino/examples/basic.js +43 -0
  1191. package/node_modules/pino/examples/transport.js +68 -0
  1192. package/node_modules/pino/favicon-16x16.png +0 -0
  1193. package/node_modules/pino/favicon-32x32.png +0 -0
  1194. package/node_modules/pino/favicon.ico +0 -0
  1195. package/node_modules/pino/file.js +12 -0
  1196. package/node_modules/pino/inc-version.sh +42 -0
  1197. package/node_modules/pino/index.html +55 -0
  1198. package/node_modules/pino/lib/caller.js +30 -0
  1199. package/node_modules/pino/lib/constants.js +28 -0
  1200. package/node_modules/pino/lib/deprecations.js +8 -0
  1201. package/node_modules/pino/lib/levels.js +241 -0
  1202. package/node_modules/pino/lib/meta.js +3 -0
  1203. package/node_modules/pino/lib/multistream.js +203 -0
  1204. package/node_modules/pino/lib/proto.js +260 -0
  1205. package/node_modules/pino/lib/redaction.js +114 -0
  1206. package/node_modules/pino/lib/symbols.js +74 -0
  1207. package/node_modules/pino/lib/time.js +39 -0
  1208. package/node_modules/pino/lib/tools.js +436 -0
  1209. package/node_modules/pino/lib/transport-stream.js +56 -0
  1210. package/node_modules/pino/lib/transport.js +167 -0
  1211. package/node_modules/pino/lib/worker.js +194 -0
  1212. package/node_modules/pino/package.json +122 -0
  1213. package/node_modules/pino/pino-banner.png +0 -0
  1214. package/node_modules/pino/pino-logo-hire.png +0 -0
  1215. package/node_modules/pino/pino-tree.png +0 -0
  1216. package/node_modules/pino/pino.d.ts +904 -0
  1217. package/node_modules/pino/pino.js +234 -0
  1218. package/node_modules/pino/pretty-demo.png +0 -0
  1219. package/node_modules/pino/test/basic.test.js +876 -0
  1220. package/node_modules/pino/test/broken-pipe.test.js +57 -0
  1221. package/node_modules/pino/test/browser-child.test.js +132 -0
  1222. package/node_modules/pino/test/browser-disabled.test.js +87 -0
  1223. package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
  1224. package/node_modules/pino/test/browser-is-level-enabled.test.js +104 -0
  1225. package/node_modules/pino/test/browser-levels.test.js +241 -0
  1226. package/node_modules/pino/test/browser-serializers.test.js +352 -0
  1227. package/node_modules/pino/test/browser-timestamp.test.js +88 -0
  1228. package/node_modules/pino/test/browser-transmit.test.js +417 -0
  1229. package/node_modules/pino/test/browser.test.js +679 -0
  1230. package/node_modules/pino/test/complex-objects.test.js +34 -0
  1231. package/node_modules/pino/test/crlf.test.js +32 -0
  1232. package/node_modules/pino/test/custom-levels.test.js +253 -0
  1233. package/node_modules/pino/test/diagnostics.test.js +107 -0
  1234. package/node_modules/pino/test/error.test.js +398 -0
  1235. package/node_modules/pino/test/errorKey.test.js +34 -0
  1236. package/node_modules/pino/test/escaping.test.js +91 -0
  1237. package/node_modules/pino/test/esm/esm.mjs +12 -0
  1238. package/node_modules/pino/test/esm/index.test.js +34 -0
  1239. package/node_modules/pino/test/esm/named-exports.mjs +27 -0
  1240. package/node_modules/pino/test/exit.test.js +77 -0
  1241. package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
  1242. package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
  1243. package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
  1244. package/node_modules/pino/test/fixtures/console-transport.js +13 -0
  1245. package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
  1246. package/node_modules/pino/test/fixtures/default-exit.js +8 -0
  1247. package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
  1248. package/node_modules/pino/test/fixtures/eval/index.js +13 -0
  1249. package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
  1250. package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
  1251. package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
  1252. package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
  1253. package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
  1254. package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
  1255. package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
  1256. package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
  1257. package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
  1258. package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
  1259. package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
  1260. package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
  1261. package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
  1262. package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
  1263. package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
  1264. package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
  1265. package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
  1266. package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
  1267. package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
  1268. package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
  1269. package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
  1270. package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
  1271. package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
  1272. package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
  1273. package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
  1274. package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
  1275. package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
  1276. package/node_modules/pino/test/fixtures/transport/index.js +12 -0
  1277. package/node_modules/pino/test/fixtures/transport/package.json +5 -0
  1278. package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
  1279. package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
  1280. package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
  1281. package/node_modules/pino/test/fixtures/transport-main.js +9 -0
  1282. package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
  1283. package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
  1284. package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
  1285. package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
  1286. package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
  1287. package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
  1288. package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
  1289. package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
  1290. package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
  1291. package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
  1292. package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
  1293. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
  1294. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
  1295. package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
  1296. package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
  1297. package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
  1298. package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
  1299. package/node_modules/pino/test/formatters.test.js +355 -0
  1300. package/node_modules/pino/test/helper.d.ts +4 -0
  1301. package/node_modules/pino/test/helper.js +128 -0
  1302. package/node_modules/pino/test/hooks.test.js +118 -0
  1303. package/node_modules/pino/test/http.test.js +242 -0
  1304. package/node_modules/pino/test/internals/version.test.js +15 -0
  1305. package/node_modules/pino/test/is-level-enabled.test.js +185 -0
  1306. package/node_modules/pino/test/jest/basic.spec.js +10 -0
  1307. package/node_modules/pino/test/levels.test.js +772 -0
  1308. package/node_modules/pino/test/metadata.test.js +106 -0
  1309. package/node_modules/pino/test/mixin-merge-strategy.test.js +55 -0
  1310. package/node_modules/pino/test/mixin.test.js +218 -0
  1311. package/node_modules/pino/test/multistream.test.js +723 -0
  1312. package/node_modules/pino/test/pkg/index.js +46 -0
  1313. package/node_modules/pino/test/pkg/pkg.config.json +16 -0
  1314. package/node_modules/pino/test/pkg/pkg.test.js +58 -0
  1315. package/node_modules/pino/test/redact.test.js +847 -0
  1316. package/node_modules/pino/test/serializers.test.js +253 -0
  1317. package/node_modules/pino/test/sinon-child-logger.test.js +75 -0
  1318. package/node_modules/pino/test/stdout-protection.test.js +39 -0
  1319. package/node_modules/pino/test/syncfalse.test.js +188 -0
  1320. package/node_modules/pino/test/timestamp-nano.test.js +35 -0
  1321. package/node_modules/pino/test/timestamp.test.js +122 -0
  1322. package/node_modules/pino/test/transport/big.test.js +43 -0
  1323. package/node_modules/pino/test/transport/bundlers-support.test.js +97 -0
  1324. package/node_modules/pino/test/transport/caller.test.js +23 -0
  1325. package/node_modules/pino/test/transport/core.test.js +643 -0
  1326. package/node_modules/pino/test/transport/core.test.ts +236 -0
  1327. package/node_modules/pino/test/transport/core.transpiled.test.ts +112 -0
  1328. package/node_modules/pino/test/transport/crash.test.js +34 -0
  1329. package/node_modules/pino/test/transport/module-link.test.js +239 -0
  1330. package/node_modules/pino/test/transport/pipeline.test.js +135 -0
  1331. package/node_modules/pino/test/transport/repl.test.js +14 -0
  1332. package/node_modules/pino/test/transport/syncTrue.test.js +55 -0
  1333. package/node_modules/pino/test/transport/syncfalse.test.js +68 -0
  1334. package/node_modules/pino/test/transport/targets.test.js +44 -0
  1335. package/node_modules/pino/test/transport/uses-pino-config.test.js +167 -0
  1336. package/node_modules/pino/test/transport-stream.test.js +26 -0
  1337. package/node_modules/pino/test/types/pino-import.test-d.cts +29 -0
  1338. package/node_modules/pino/test/types/pino-multistream.test-d.ts +28 -0
  1339. package/node_modules/pino/test/types/pino-top-export.test-d.ts +36 -0
  1340. package/node_modules/pino/test/types/pino-transport.test-d.ts +145 -0
  1341. package/node_modules/pino/test/types/pino-type-only.test-d.ts +66 -0
  1342. package/node_modules/pino/test/types/pino.test-d.ts +585 -0
  1343. package/node_modules/pino/test/types/pino.ts +90 -0
  1344. package/node_modules/pino/tsconfig.json +14 -0
  1345. package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
  1346. package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
  1347. package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
  1348. package/node_modules/pino-abstract-transport/LICENSE +21 -0
  1349. package/node_modules/pino-abstract-transport/README.md +172 -0
  1350. package/node_modules/pino-abstract-transport/index.d.ts +122 -0
  1351. package/node_modules/pino-abstract-transport/index.js +128 -0
  1352. package/node_modules/pino-abstract-transport/package.json +40 -0
  1353. package/node_modules/pino-abstract-transport/test/base.test.js +445 -0
  1354. package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
  1355. package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
  1356. package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
  1357. package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
  1358. package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
  1359. package/node_modules/pino-abstract-transport/test/worker.test.js +357 -0
  1360. package/node_modules/pino-std-serializers/.editorconfig +13 -0
  1361. package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
  1362. package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
  1363. package/node_modules/pino-std-serializers/LICENSE +7 -0
  1364. package/node_modules/pino-std-serializers/Readme.md +182 -0
  1365. package/node_modules/pino-std-serializers/eslint.config.js +7 -0
  1366. package/node_modules/pino-std-serializers/index.d.ts +145 -0
  1367. package/node_modules/pino-std-serializers/index.js +36 -0
  1368. package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
  1369. package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
  1370. package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
  1371. package/node_modules/pino-std-serializers/lib/err.js +45 -0
  1372. package/node_modules/pino-std-serializers/lib/req.js +100 -0
  1373. package/node_modules/pino-std-serializers/lib/res.js +47 -0
  1374. package/node_modules/pino-std-serializers/package.json +42 -0
  1375. package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
  1376. package/node_modules/pino-std-serializers/test/err.test.js +200 -0
  1377. package/node_modules/pino-std-serializers/test/req.test.js +477 -0
  1378. package/node_modules/pino-std-serializers/test/res.test.js +120 -0
  1379. package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
  1380. package/node_modules/pino-std-serializers/tsconfig.json +13 -0
  1381. package/node_modules/process-warning/.gitattributes +2 -0
  1382. package/node_modules/process-warning/.github/dependabot.yml +13 -0
  1383. package/node_modules/process-warning/.github/workflows/ci.yml +22 -0
  1384. package/node_modules/process-warning/LICENSE +21 -0
  1385. package/node_modules/process-warning/README.md +118 -0
  1386. package/node_modules/process-warning/benchmarks/warn.js +25 -0
  1387. package/node_modules/process-warning/eslint.config.js +6 -0
  1388. package/node_modules/process-warning/examples/example.js +11 -0
  1389. package/node_modules/process-warning/index.js +124 -0
  1390. package/node_modules/process-warning/package.json +73 -0
  1391. package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
  1392. package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
  1393. package/node_modules/process-warning/test/emit-reset.test.js +40 -0
  1394. package/node_modules/process-warning/test/emit-set.test.js +35 -0
  1395. package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
  1396. package/node_modules/process-warning/test/index.test.js +99 -0
  1397. package/node_modules/process-warning/test/issue-88.test.js +38 -0
  1398. package/node_modules/process-warning/test/jest.test.js +24 -0
  1399. package/node_modules/process-warning/test/no-warnings.test.js +80 -0
  1400. package/node_modules/process-warning/test/promise.js +10 -0
  1401. package/node_modules/process-warning/types/index.d.ts +37 -0
  1402. package/node_modules/process-warning/types/index.test-d.ts +36 -0
  1403. package/node_modules/protobufjs/LICENSE +39 -0
  1404. package/node_modules/protobufjs/README.md +727 -0
  1405. package/node_modules/protobufjs/dist/light/protobuf.js +8041 -0
  1406. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
  1407. package/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
  1408. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
  1409. package/node_modules/protobufjs/dist/minimal/protobuf.js +2791 -0
  1410. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
  1411. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
  1412. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
  1413. package/node_modules/protobufjs/dist/protobuf.js +9865 -0
  1414. package/node_modules/protobufjs/dist/protobuf.js.map +1 -0
  1415. package/node_modules/protobufjs/dist/protobuf.min.js +8 -0
  1416. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
  1417. package/node_modules/protobufjs/ext/debug/README.md +4 -0
  1418. package/node_modules/protobufjs/ext/debug/index.js +71 -0
  1419. package/node_modules/protobufjs/ext/descriptor/README.md +72 -0
  1420. package/node_modules/protobufjs/ext/descriptor/index.d.ts +195 -0
  1421. package/node_modules/protobufjs/ext/descriptor/index.js +1186 -0
  1422. package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  1423. package/node_modules/protobufjs/google/LICENSE +27 -0
  1424. package/node_modules/protobufjs/google/README.md +1 -0
  1425. package/node_modules/protobufjs/google/api/annotations.json +83 -0
  1426. package/node_modules/protobufjs/google/api/annotations.proto +11 -0
  1427. package/node_modules/protobufjs/google/api/http.json +86 -0
  1428. package/node_modules/protobufjs/google/api/http.proto +31 -0
  1429. package/node_modules/protobufjs/google/protobuf/api.json +118 -0
  1430. package/node_modules/protobufjs/google/protobuf/api.proto +34 -0
  1431. package/node_modules/protobufjs/google/protobuf/descriptor.json +1382 -0
  1432. package/node_modules/protobufjs/google/protobuf/descriptor.proto +535 -0
  1433. package/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
  1434. package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
  1435. package/node_modules/protobufjs/google/protobuf/type.json +202 -0
  1436. package/node_modules/protobufjs/google/protobuf/type.proto +89 -0
  1437. package/node_modules/protobufjs/index.d.ts +2832 -0
  1438. package/node_modules/protobufjs/index.js +4 -0
  1439. package/node_modules/protobufjs/light.d.ts +2 -0
  1440. package/node_modules/protobufjs/light.js +4 -0
  1441. package/node_modules/protobufjs/minimal.d.ts +2 -0
  1442. package/node_modules/protobufjs/minimal.js +4 -0
  1443. package/node_modules/protobufjs/package.json +119 -0
  1444. package/node_modules/protobufjs/scripts/postinstall.js +32 -0
  1445. package/node_modules/protobufjs/src/common.js +399 -0
  1446. package/node_modules/protobufjs/src/converter.js +318 -0
  1447. package/node_modules/protobufjs/src/decoder.js +135 -0
  1448. package/node_modules/protobufjs/src/encoder.js +103 -0
  1449. package/node_modules/protobufjs/src/enum.js +226 -0
  1450. package/node_modules/protobufjs/src/field.js +453 -0
  1451. package/node_modules/protobufjs/src/index-light.js +104 -0
  1452. package/node_modules/protobufjs/src/index-minimal.js +36 -0
  1453. package/node_modules/protobufjs/src/index.js +12 -0
  1454. package/node_modules/protobufjs/src/mapfield.js +126 -0
  1455. package/node_modules/protobufjs/src/message.js +143 -0
  1456. package/node_modules/protobufjs/src/method.js +160 -0
  1457. package/node_modules/protobufjs/src/namespace.js +558 -0
  1458. package/node_modules/protobufjs/src/object.js +382 -0
  1459. package/node_modules/protobufjs/src/oneof.js +222 -0
  1460. package/node_modules/protobufjs/src/parse.js +989 -0
  1461. package/node_modules/protobufjs/src/reader.js +426 -0
  1462. package/node_modules/protobufjs/src/reader_buffer.js +51 -0
  1463. package/node_modules/protobufjs/src/root.js +412 -0
  1464. package/node_modules/protobufjs/src/roots.js +18 -0
  1465. package/node_modules/protobufjs/src/rpc/service.js +142 -0
  1466. package/node_modules/protobufjs/src/rpc.js +36 -0
  1467. package/node_modules/protobufjs/src/service.js +193 -0
  1468. package/node_modules/protobufjs/src/tokenize.js +416 -0
  1469. package/node_modules/protobufjs/src/type.js +632 -0
  1470. package/node_modules/protobufjs/src/types.js +196 -0
  1471. package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  1472. package/node_modules/protobufjs/src/util/fs.js +11 -0
  1473. package/node_modules/protobufjs/src/util/longbits.js +200 -0
  1474. package/node_modules/protobufjs/src/util/minimal.js +491 -0
  1475. package/node_modules/protobufjs/src/util/patterns.js +7 -0
  1476. package/node_modules/protobufjs/src/util.js +230 -0
  1477. package/node_modules/protobufjs/src/verifier.js +180 -0
  1478. package/node_modules/protobufjs/src/wrappers.js +107 -0
  1479. package/node_modules/protobufjs/src/writer.js +467 -0
  1480. package/node_modules/protobufjs/src/writer_buffer.js +85 -0
  1481. package/node_modules/protobufjs/tsconfig.json +8 -0
  1482. package/node_modules/qified/LICENSE +19 -0
  1483. package/node_modules/qified/README.md +677 -0
  1484. package/node_modules/qified/dist/index.cjs +662 -0
  1485. package/node_modules/qified/dist/index.d.cts +626 -0
  1486. package/node_modules/qified/dist/index.d.mts +626 -0
  1487. package/node_modules/qified/dist/index.mjs +657 -0
  1488. package/node_modules/qified/node_modules/hookified/LICENSE +19 -0
  1489. package/node_modules/qified/node_modules/hookified/README.md +1792 -0
  1490. package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js +951 -0
  1491. package/node_modules/qified/node_modules/hookified/dist/browser/index.global.js.map +1 -0
  1492. package/node_modules/qified/node_modules/hookified/dist/browser/index.js +943 -0
  1493. package/node_modules/qified/node_modules/hookified/dist/browser/index.js.map +1 -0
  1494. package/node_modules/qified/node_modules/hookified/dist/node/index.cjs +908 -0
  1495. package/node_modules/qified/node_modules/hookified/dist/node/index.d.cts +771 -0
  1496. package/node_modules/qified/node_modules/hookified/dist/node/index.d.ts +771 -0
  1497. package/node_modules/qified/node_modules/hookified/dist/node/index.js +903 -0
  1498. package/node_modules/qified/node_modules/hookified/package.json +94 -0
  1499. package/node_modules/qified/package.json +50 -0
  1500. package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
  1501. package/node_modules/quick-format-unescaped/LICENSE +21 -0
  1502. package/node_modules/quick-format-unescaped/benchmark.js +24 -0
  1503. package/node_modules/quick-format-unescaped/index.js +109 -0
  1504. package/node_modules/quick-format-unescaped/package.json +29 -0
  1505. package/node_modules/quick-format-unescaped/readme.md +66 -0
  1506. package/node_modules/quick-format-unescaped/test/index.js +136 -0
  1507. package/node_modules/real-require/LICENSE.md +21 -0
  1508. package/node_modules/real-require/README.md +51 -0
  1509. package/node_modules/real-require/package.json +49 -0
  1510. package/node_modules/real-require/src/index.js +14 -0
  1511. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  1512. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  1513. package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
  1514. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  1515. package/node_modules/safe-stable-stringify/index.d.ts +22 -0
  1516. package/node_modules/safe-stable-stringify/index.js +625 -0
  1517. package/node_modules/safe-stable-stringify/package.json +65 -0
  1518. package/node_modules/safe-stable-stringify/readme.md +179 -0
  1519. package/node_modules/sonic-boom/.eslintignore +2 -0
  1520. package/node_modules/sonic-boom/.taprc +3 -0
  1521. package/node_modules/sonic-boom/LICENSE +21 -0
  1522. package/node_modules/sonic-boom/README.md +153 -0
  1523. package/node_modules/sonic-boom/bench.js +98 -0
  1524. package/node_modules/sonic-boom/check.js +18 -0
  1525. package/node_modules/sonic-boom/example.js +8 -0
  1526. package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
  1527. package/node_modules/sonic-boom/index.js +733 -0
  1528. package/node_modules/sonic-boom/package.json +52 -0
  1529. package/node_modules/sonic-boom/test/destroy.test.js +49 -0
  1530. package/node_modules/sonic-boom/test/end.test.js +98 -0
  1531. package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
  1532. package/node_modules/sonic-boom/test/flush.test.js +419 -0
  1533. package/node_modules/sonic-boom/test/fsync.test.js +63 -0
  1534. package/node_modules/sonic-boom/test/helper.js +42 -0
  1535. package/node_modules/sonic-boom/test/minlength.test.js +35 -0
  1536. package/node_modules/sonic-boom/test/mode.test.js +116 -0
  1537. package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
  1538. package/node_modules/sonic-boom/test/reopen.test.js +239 -0
  1539. package/node_modules/sonic-boom/test/retry.test.js +414 -0
  1540. package/node_modules/sonic-boom/test/sync.test.js +261 -0
  1541. package/node_modules/sonic-boom/test/write.test.js +515 -0
  1542. package/node_modules/sonic-boom/types/index.d.ts +63 -0
  1543. package/node_modules/sonic-boom/types/tests/test.ts +4 -0
  1544. package/node_modules/split2/LICENSE +13 -0
  1545. package/node_modules/split2/README.md +85 -0
  1546. package/node_modules/split2/bench.js +27 -0
  1547. package/node_modules/split2/index.js +141 -0
  1548. package/node_modules/split2/package.json +39 -0
  1549. package/node_modules/split2/test.js +409 -0
  1550. package/node_modules/strtok3/LICENSE.txt +21 -0
  1551. package/node_modules/strtok3/README.md +399 -0
  1552. package/node_modules/strtok3/lib/AbstractTokenizer.d.ts +76 -0
  1553. package/node_modules/strtok3/lib/AbstractTokenizer.js +111 -0
  1554. package/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
  1555. package/node_modules/strtok3/lib/BlobTokenizer.js +53 -0
  1556. package/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
  1557. package/node_modules/strtok3/lib/BufferTokenizer.js +52 -0
  1558. package/node_modules/strtok3/lib/FileTokenizer.d.ts +37 -0
  1559. package/node_modules/strtok3/lib/FileTokenizer.js +61 -0
  1560. package/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
  1561. package/node_modules/strtok3/lib/ReadStreamTokenizer.js +107 -0
  1562. package/node_modules/strtok3/lib/core.d.ts +40 -0
  1563. package/node_modules/strtok3/lib/core.js +62 -0
  1564. package/node_modules/strtok3/lib/index.d.ts +16 -0
  1565. package/node_modules/strtok3/lib/index.js +22 -0
  1566. package/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
  1567. package/node_modules/strtok3/lib/stream/AbstractStreamReader.js +71 -0
  1568. package/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
  1569. package/node_modules/strtok3/lib/stream/Deferred.js +10 -0
  1570. package/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
  1571. package/node_modules/strtok3/lib/stream/Errors.js +16 -0
  1572. package/node_modules/strtok3/lib/stream/StreamReader.d.ts +29 -0
  1573. package/node_modules/strtok3/lib/stream/StreamReader.js +83 -0
  1574. package/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
  1575. package/node_modules/strtok3/lib/stream/WebStreamByobReader.js +27 -0
  1576. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
  1577. package/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +62 -0
  1578. package/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +14 -0
  1579. package/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
  1580. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
  1581. package/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
  1582. package/node_modules/strtok3/lib/stream/index.d.ts +6 -0
  1583. package/node_modules/strtok3/lib/stream/index.js +5 -0
  1584. package/node_modules/strtok3/lib/types.d.ts +139 -0
  1585. package/node_modules/strtok3/lib/types.js +1 -0
  1586. package/node_modules/strtok3/package.json +94 -0
  1587. package/node_modules/thread-stream/.claude/settings.local.json +15 -0
  1588. package/node_modules/thread-stream/.github/dependabot.yml +13 -0
  1589. package/node_modules/thread-stream/.github/workflows/ci.yml +94 -0
  1590. package/node_modules/thread-stream/.husky/pre-commit +4 -0
  1591. package/node_modules/thread-stream/.taprc +4 -0
  1592. package/node_modules/thread-stream/CLAUDE.md +64 -0
  1593. package/node_modules/thread-stream/LICENSE +21 -0
  1594. package/node_modules/thread-stream/README.md +136 -0
  1595. package/node_modules/thread-stream/bench.js +85 -0
  1596. package/node_modules/thread-stream/index.d.ts +92 -0
  1597. package/node_modules/thread-stream/index.js +565 -0
  1598. package/node_modules/thread-stream/lib/indexes.js +11 -0
  1599. package/node_modules/thread-stream/lib/wait.js +61 -0
  1600. package/node_modules/thread-stream/lib/worker.js +186 -0
  1601. package/node_modules/thread-stream/package.json +57 -0
  1602. package/node_modules/thread-stream/test/base.test.js +258 -0
  1603. package/node_modules/thread-stream/test/bench.test.js +38 -0
  1604. package/node_modules/thread-stream/test/bundlers.test.js +60 -0
  1605. package/node_modules/thread-stream/test/close-on-gc.js +37 -0
  1606. package/node_modules/thread-stream/test/commonjs-fallback.test.js +80 -0
  1607. package/node_modules/thread-stream/test/context.test.js +21 -0
  1608. package/node_modules/thread-stream/test/create-and-exit.js +16 -0
  1609. package/node_modules/thread-stream/test/custom-worker.js +9 -0
  1610. package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
  1611. package/node_modules/thread-stream/test/emit-event.js +22 -0
  1612. package/node_modules/thread-stream/test/end.test.js +61 -0
  1613. package/node_modules/thread-stream/test/error.js +14 -0
  1614. package/node_modules/thread-stream/test/esm.test.mjs +47 -0
  1615. package/node_modules/thread-stream/test/event.test.js +23 -0
  1616. package/node_modules/thread-stream/test/exit.js +14 -0
  1617. package/node_modules/thread-stream/test/get-context.js +22 -0
  1618. package/node_modules/thread-stream/test/helper.d.ts +1 -0
  1619. package/node_modules/thread-stream/test/helper.js +35 -0
  1620. package/node_modules/thread-stream/test/indexes.test.js +11 -0
  1621. package/node_modules/thread-stream/test/message-without-code.js +19 -0
  1622. package/node_modules/thread-stream/test/multibyte-chars.test.mjs +74 -0
  1623. package/node_modules/thread-stream/test/never-drain.test.js +57 -0
  1624. package/node_modules/thread-stream/test/on-message.js +18 -0
  1625. package/node_modules/thread-stream/test/pkg/index.js +37 -0
  1626. package/node_modules/thread-stream/test/pkg/pkg.config.json +15 -0
  1627. package/node_modules/thread-stream/test/pkg/pkg.test.js +46 -0
  1628. package/node_modules/thread-stream/test/port.js +16 -0
  1629. package/node_modules/thread-stream/test/post-message.test.js +24 -0
  1630. package/node_modules/thread-stream/test/string-limit-2.test.js +41 -0
  1631. package/node_modules/thread-stream/test/string-limit.test.js +42 -0
  1632. package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
  1633. package/node_modules/thread-stream/test/thread-management.test.js +121 -0
  1634. package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
  1635. package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
  1636. package/node_modules/thread-stream/test/to-file.js +12 -0
  1637. package/node_modules/thread-stream/test/to-file.mjs +8 -0
  1638. package/node_modules/thread-stream/test/to-next.js +9 -0
  1639. package/node_modules/thread-stream/test/transpiled.test.js +30 -0
  1640. package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
  1641. package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
  1642. package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
  1643. package/node_modules/thread-stream/test/ts.test.ts +33 -0
  1644. package/node_modules/thread-stream/test/uncaughtException.js +21 -0
  1645. package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
  1646. package/node_modules/thread-stream/test/watch-mode.test.js +28 -0
  1647. package/node_modules/thread-stream/test/yarnrc.yml +7 -0
  1648. package/node_modules/thread-stream/tsconfig.json +8 -0
  1649. package/node_modules/token-types/LICENSE.txt +9 -0
  1650. package/node_modules/token-types/README.md +120 -0
  1651. package/node_modules/token-types/lib/index.d.ts +135 -0
  1652. package/node_modules/token-types/lib/index.js +401 -0
  1653. package/node_modules/token-types/package.json +81 -0
  1654. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  1655. package/node_modules/tslib/LICENSE.txt +12 -0
  1656. package/node_modules/tslib/README.md +164 -0
  1657. package/node_modules/tslib/SECURITY.md +41 -0
  1658. package/node_modules/tslib/modules/index.d.ts +38 -0
  1659. package/node_modules/tslib/modules/index.js +70 -0
  1660. package/node_modules/tslib/modules/package.json +3 -0
  1661. package/node_modules/tslib/package.json +47 -0
  1662. package/node_modules/tslib/tslib.d.ts +460 -0
  1663. package/node_modules/tslib/tslib.es6.html +1 -0
  1664. package/node_modules/tslib/tslib.es6.js +402 -0
  1665. package/node_modules/tslib/tslib.es6.mjs +401 -0
  1666. package/node_modules/tslib/tslib.html +1 -0
  1667. package/node_modules/tslib/tslib.js +484 -0
  1668. package/node_modules/uint8array-extras/index.d.ts +331 -0
  1669. package/node_modules/uint8array-extras/index.js +318 -0
  1670. package/node_modules/uint8array-extras/license +9 -0
  1671. package/node_modules/uint8array-extras/package.json +54 -0
  1672. package/node_modules/uint8array-extras/readme.md +318 -0
  1673. package/node_modules/undici-types/LICENSE +21 -0
  1674. package/node_modules/undici-types/README.md +6 -0
  1675. package/node_modules/undici-types/agent.d.ts +30 -0
  1676. package/node_modules/undici-types/api.d.ts +43 -0
  1677. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  1678. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  1679. package/node_modules/undici-types/cache.d.ts +36 -0
  1680. package/node_modules/undici-types/client-stats.d.ts +15 -0
  1681. package/node_modules/undici-types/client.d.ts +129 -0
  1682. package/node_modules/undici-types/connector.d.ts +36 -0
  1683. package/node_modules/undici-types/content-type.d.ts +21 -0
  1684. package/node_modules/undici-types/cookies.d.ts +30 -0
  1685. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  1686. package/node_modules/undici-types/dispatcher.d.ts +253 -0
  1687. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  1688. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  1689. package/node_modules/undici-types/errors.d.ts +177 -0
  1690. package/node_modules/undici-types/eventsource.d.ts +66 -0
  1691. package/node_modules/undici-types/fetch.d.ts +231 -0
  1692. package/node_modules/undici-types/formdata.d.ts +108 -0
  1693. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  1694. package/node_modules/undici-types/global-origin.d.ts +7 -0
  1695. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  1696. package/node_modules/undici-types/handlers.d.ts +14 -0
  1697. package/node_modules/undici-types/header.d.ts +165 -0
  1698. package/node_modules/undici-types/index.d.ts +93 -0
  1699. package/node_modules/undici-types/interceptors.d.ts +80 -0
  1700. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  1701. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  1702. package/node_modules/undici-types/mock-client.d.ts +27 -0
  1703. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  1704. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  1705. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  1706. package/node_modules/undici-types/package.json +55 -0
  1707. package/node_modules/undici-types/patch.d.ts +29 -0
  1708. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  1709. package/node_modules/undici-types/pool.d.ts +39 -0
  1710. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  1711. package/node_modules/undici-types/readable.d.ts +68 -0
  1712. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  1713. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  1714. package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
  1715. package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
  1716. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  1717. package/node_modules/undici-types/util.d.ts +18 -0
  1718. package/node_modules/undici-types/utility.d.ts +7 -0
  1719. package/node_modules/undici-types/webidl.d.ts +346 -0
  1720. package/node_modules/undici-types/websocket.d.ts +188 -0
  1721. package/node_modules/whatsapp-rust-bridge/README.md +19 -0
  1722. package/node_modules/whatsapp-rust-bridge/dist/index.d.ts +2 -0
  1723. package/node_modules/whatsapp-rust-bridge/dist/index.js +2015 -0
  1724. package/node_modules/whatsapp-rust-bridge/package.json +45 -0
  1725. package/node_modules/whatsapp-rust-bridge/pkg/whatsapp_rust_bridge.d.ts +446 -0
  1726. package/node_modules/win-guid/LICENSE.txt +9 -0
  1727. package/node_modules/win-guid/README.md +113 -0
  1728. package/node_modules/win-guid/lib/guid.d.ts +20 -0
  1729. package/node_modules/win-guid/lib/guid.js +107 -0
  1730. package/node_modules/win-guid/package.json +55 -0
  1731. package/node_modules/ws/LICENSE +20 -0
  1732. package/node_modules/ws/README.md +548 -0
  1733. package/node_modules/ws/browser.js +8 -0
  1734. package/node_modules/ws/index.js +22 -0
  1735. package/node_modules/ws/lib/buffer-util.js +131 -0
  1736. package/node_modules/ws/lib/constants.js +19 -0
  1737. package/node_modules/ws/lib/event-target.js +292 -0
  1738. package/node_modules/ws/lib/extension.js +203 -0
  1739. package/node_modules/ws/lib/limiter.js +55 -0
  1740. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  1741. package/node_modules/ws/lib/receiver.js +760 -0
  1742. package/node_modules/ws/lib/sender.js +607 -0
  1743. package/node_modules/ws/lib/stream.js +161 -0
  1744. package/node_modules/ws/lib/subprotocol.js +62 -0
  1745. package/node_modules/ws/lib/validation.js +152 -0
  1746. package/node_modules/ws/lib/websocket-server.js +562 -0
  1747. package/node_modules/ws/lib/websocket.js +1571 -0
  1748. package/node_modules/ws/package.json +70 -0
  1749. package/node_modules/ws/wrapper.mjs +21 -0
  1750. package/package.json +28 -0
@@ -0,0 +1,1373 @@
1
+ <div align="center"><img src="./site/logo.svg" width="80%" height="80%" /></div>
2
+
3
+ # hashery
4
+ Browser / Nodejs Compatible Object Hashing
5
+
6
+ [![tests](https://github.com/jaredwray/hashery/actions/workflows/tests.yml/badge.svg)](https://github.com/jaredwray/hashery/actions/workflows/tests.yml)
7
+ [![codecov](https://codecov.io/gh/jaredwray/hashery/branch/main/graph/badge.svg?token=JTuDzWoTRn)](https://codecov.io/gh/jaredwray/hashery)
8
+ [![GitHub license](https://img.shields.io/github/license/jaredwray/hashery)](https://github.com/jaredwray/hashery/blob/main/LICENSE)
9
+ [![npm](https://img.shields.io/npm/dm/hashery)](https://npmjs.com/package/hashery)
10
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/hashery/badge)](https://www.jsdelivr.com/package/npm/hashery)
11
+ [![npm](https://img.shields.io/npm/v/hashery)](https://npmjs.com/package/hashery)
12
+
13
+ # Features
14
+ - **Simple and Easy Object Hashing** - Object hashing based on multiple algorithms.
15
+ - **Browser and Node.js Compatible** - Built using `WebCrypto` API for both environments
16
+ - **Multiple Hash Algorithms** - Supports SHA-256, SHA-384, SHA-512 (WebCrypto), plus DJB2, FNV1, Murmur, and CRC32
17
+ - **Synchronous & Asynchronous** - Both sync and async methods for flexible integration
18
+ - **Custom Serialization** - Easily replace JSON `parse` and `stringify` with custom functions
19
+ - **Deterministic Hashing** - Generate consistent hashes for the same input
20
+ - **Hash to Number** - Convert hashes to deterministic numbers within a specified range. Great for slot management
21
+ - **Provider System** - Extensible hash provider architecture for custom algorithms
22
+ - **Fuzzy Provider Matching** - Case-insensitive and dash-tolerant algorithm name matching
23
+ - **Hooks Support** - Extends Hookified for event-based functionality
24
+ - **Maintained on a Regular Basis** - Active maintenance and updates
25
+
26
+ # Table of Contents
27
+
28
+ - [Features](#features)
29
+ - [Installation](#installation)
30
+ - [Usage](#usage)
31
+ - [Basic Hashing](#basic-hashing)
32
+ - [Synchronous Hashing](#synchronous-hashing)
33
+ - [Using Different Hash Algorithms](#using-different-hash-algorithms)
34
+ - [Using Providers Directly](#using-providers-directly)
35
+ - [Setting a Default Algorithm](#setting-a-default-algorithm)
36
+ - [Truncating Hash Output](#truncating-hash-output)
37
+ - [Hash to Number (Great for Slot Management)](#hash-to-number-great-for-slot-management)
38
+ - [Hash to Number Synchronous](#hash-to-number-synchronous)
39
+ - [Browser Usage](#browser-usage)
40
+ - [Hooks](#hooks)
41
+ - [Warning Events for Invalid Algorithms](#warning-events-for-invalid-algorithms)
42
+ - [Caching](#caching)
43
+ - [Web Crypto](#web-crypto)
44
+ - [Browser Support](#browser-support)
45
+ - [Node.js Support](#nodejs-support)
46
+ - [DJB2 Hashing](#djb2-hashing)
47
+ - [FNV1 Hashing](#fnv1-hashing)
48
+ - [CRC Hashing](#crc-hashing)
49
+ - [API - Properties](#api---properties)
50
+ - [parse](#parse)
51
+ - [stringify](#stringify)
52
+ - [providers](#providers)
53
+ - [names](#names)
54
+ - [defaultAlgorithm](#defaultalgorithm)
55
+ - [defaultAlgorithmSync](#defaultalgorithmsync)
56
+ - [API - Functions](#api---functions)
57
+ - [toHash(data, options?)](#toHashdata-options)
58
+ - [toHashSync(data, options?)](#toHashsyncdata-options)
59
+ - [toNumber(data, options?)](#tonumberdata-options)
60
+ - [toNumberSync(data, options?)](#tonumbersyncdata-options)
61
+ - [loadProviders(providers?, options?)](#loadprovidersproviders-options)
62
+ - [API - Types](#api---types)
63
+ - [HashAlgorithm](#hashalgorithm)
64
+ - [Benchmarks](#benchmarks)
65
+ - [Code of Conduct and Contributing](#code-of-conduct-and-contributing)
66
+ - [License and Copyright](#license-and-copyright)
67
+
68
+ # Installation
69
+
70
+ ```bash
71
+ npm install hashery
72
+ ```
73
+
74
+ # Usage
75
+
76
+ ## Basic Hashing
77
+
78
+ ```typescript
79
+ import { Hashery } from 'hashery';
80
+
81
+ const hashery = new Hashery();
82
+
83
+ // Hash an object (defaults to SHA-256)
84
+ const hash = await hashery.toHash({ name: 'John', age: 30 });
85
+ console.log(hash); // SHA-256 hash string
86
+
87
+ // Hash a string
88
+ const stringHash = await hashery.toHash('hello world');
89
+
90
+ // Hash any value (numbers, arrays, etc.)
91
+ const numberHash = await hashery.toHash(42);
92
+ const arrayHash = await hashery.toHash([1, 2, 3, 4, 5]);
93
+ ```
94
+
95
+ ## Synchronous Hashing
96
+
97
+ For performance-critical applications or when you need to avoid async/await, use the synchronous hashing methods. These work with non-cryptographic hash algorithms (djb2, fnv1, murmur, crc32) and are significantly faster than WebCrypto methods.
98
+
99
+ ```typescript
100
+ import { Hashery } from 'hashery';
101
+
102
+ const hashery = new Hashery();
103
+
104
+ // Synchronous hash (defaults to djb2)
105
+ const hash = hashery.toHashSync({ name: 'John', age: 30 });
106
+ console.log(hash); // djb2 hash string (8 hex characters)
107
+
108
+ // Sync with specific algorithm
109
+ const fnv1Hash = hashery.toHashSync({ data: 'example' }, { algorithm: 'fnv1' });
110
+ const murmurHash = hashery.toHashSync({ data: 'example' }, { algorithm: 'murmur' });
111
+ const crcHash = hashery.toHashSync({ data: 'example' }, { algorithm: 'crc32' });
112
+
113
+ // Note: WebCrypto algorithms (SHA-256, SHA-384, SHA-512) are NOT supported in sync mode
114
+ // This will throw an error:
115
+ // hashery.toHashSync({ data: 'example' }, { algorithm: 'SHA-256' }); // ❌ Error!
116
+ ```
117
+
118
+ ## Using Different Hash Algorithms
119
+
120
+ ```typescript
121
+ import { Hashery } from 'hashery';
122
+
123
+ const hashery = new Hashery();
124
+
125
+ // Use SHA-384
126
+ const hash384 = await hashery.toHash({ data: 'example' }, { algorithm: 'SHA-384' });
127
+
128
+ // Use SHA-512
129
+ const hash512 = await hashery.toHash({ data: 'example' }, { algorithm: 'SHA-512' });
130
+
131
+ // Use non-crypto hash algorithms
132
+ const fastHash = await hashery.toHash({ data: 'example' }, { algorithm: 'djb2' });
133
+ ```
134
+
135
+ ## Using Providers Directly
136
+
137
+ You can import and use the hash provider classes directly without the `Hashery` wrapper. This gives you direct access to the underlying hash algorithms.
138
+
139
+ ```typescript
140
+ import { DJB2, FNV1, Murmur, CRC, WebCrypto } from 'hashery';
141
+
142
+ // Use DJB2 directly
143
+ const djb2 = new DJB2();
144
+ const encoder = new TextEncoder();
145
+ const data = encoder.encode('hello world');
146
+ const hash = djb2.toHashSync(data); // "7c9dc9e0"
147
+
148
+ // Use FNV1 directly
149
+ const fnv1 = new FNV1();
150
+ const fnv1Hash = fnv1.toHashSync(data);
151
+
152
+ // Use Murmur directly (with optional seed)
153
+ const murmur = new Murmur(); // default seed: 0
154
+ const murmurHash = murmur.toHashSync(data);
155
+
156
+ const murmurSeeded = new Murmur(42); // custom seed
157
+ const murmurSeededHash = murmurSeeded.toHashSync(data);
158
+
159
+ // Use CRC32 directly
160
+ const crc = new CRC();
161
+ const crcHash = crc.toHashSync(data);
162
+
163
+ // Use WebCrypto directly (async only)
164
+ const sha256 = new WebCrypto({ algorithm: 'SHA-256' });
165
+ const sha512 = new WebCrypto({ algorithm: 'SHA-512' });
166
+ const cryptoHash = await sha256.toHash(data);
167
+ const cryptoHash512 = await sha512.toHash(data);
168
+ ```
169
+
170
+ ### Managing Providers with HashProviders
171
+
172
+ You can also import the `HashProviders` class to manage a collection of providers:
173
+
174
+ ```typescript
175
+ import { HashProviders, DJB2, FNV1, Murmur } from 'hashery';
176
+
177
+ const providers = new HashProviders();
178
+ providers.add(new DJB2());
179
+ providers.add(new FNV1());
180
+ providers.add(new Murmur());
181
+
182
+ // Get a provider by name (supports fuzzy matching)
183
+ const djb2Provider = providers.get('djb2');
184
+ const alsoWorks = providers.get('DJB2'); // case-insensitive
185
+
186
+ // Both variables point to the same provider instance
187
+ console.log(djb2Provider.name); // 'djb2'
188
+ console.log(alsoWorks.name); // 'djb2'
189
+
190
+ // List all provider names
191
+ console.log(providers.names); // ['djb2', 'fnv1', 'murmur']
192
+ ```
193
+
194
+ ### Creating Custom Providers
195
+
196
+ Implement the `HashProvider` interface to create your own providers:
197
+
198
+ ```typescript
199
+ import { Hashery, type HashProvider } from 'hashery';
200
+
201
+ const myProvider: HashProvider = {
202
+ name: 'my-hash',
203
+ async toHash(data: BufferSource): Promise<string> {
204
+ // Your hashing logic here
205
+ return 'custom-hash-value';
206
+ },
207
+ toHashSync(data: BufferSource): string {
208
+ // Optional: synchronous version
209
+ return 'custom-hash-value';
210
+ }
211
+ };
212
+
213
+ const hashery = new Hashery({ providers: [myProvider] });
214
+ const hash = await hashery.toHash({ data: 'test' }, { algorithm: 'my-hash' });
215
+ console.log(hash); // 'custom-hash-value'
216
+ ```
217
+
218
+ ## Setting a Default Algorithm
219
+
220
+ You can set a default algorithm for all hash operations via constructor or property:
221
+
222
+ ```typescript
223
+ import { Hashery } from 'hashery';
224
+
225
+ // Set default algorithm via constructor
226
+ const hashery = new Hashery({ defaultAlgorithm: 'SHA-512' });
227
+
228
+ // Now all hashes use SHA-512 by default
229
+ const hash1 = await hashery.toHash({ data: 'example' }); // Uses SHA-512
230
+ console.log(hash1.length); // 128 (SHA-512 produces 128 hex characters)
231
+
232
+ // You can still override it per call
233
+ const hash2 = await hashery.toHash({ data: 'example' }, { algorithm: 'SHA-256' });
234
+ console.log(hash2.length); // 64 (SHA-256 produces 64 hex characters)
235
+
236
+ // Change default algorithm at runtime
237
+ hashery.defaultAlgorithm = 'djb2';
238
+ const hash3 = await hashery.toHash({ data: 'example' }); // Uses djb2
239
+ ```
240
+
241
+ ## Truncating Hash Output
242
+
243
+ You can limit the length of the hash output using the `maxLength` option:
244
+
245
+ ```typescript
246
+ import { Hashery } from 'hashery';
247
+
248
+ const hashery = new Hashery();
249
+
250
+ // Get a shorter hash (16 characters instead of 64)
251
+ const shortHash = await hashery.toHash(
252
+ { data: 'example' },
253
+ { algorithm: 'SHA-256', maxLength: 16 }
254
+ );
255
+ console.log(shortHash); // "3f79bb7b435b0518" (16 chars)
256
+
257
+ // Full hash for comparison
258
+ const fullHash = await hashery.toHash({ data: 'example' });
259
+ console.log(fullHash); // "3f79bb7b435b05181e4ccf0d4e8..." (64 chars)
260
+ ```
261
+
262
+ ## Hash to Number (Great for Slot Management)
263
+
264
+ ```typescript
265
+ import { Hashery } from 'hashery';
266
+
267
+ const hashery = new Hashery();
268
+
269
+ // Convert hash to a number within a range
270
+ const slot = await hashery.toNumber({ userId: 123 }, { min: 0, max: 100 });
271
+ console.log(slot); // Deterministic number between 0-100
272
+
273
+ // Use for consistent slot assignment
274
+ const userSlot = await hashery.toNumber({ userId: 'user@example.com' }, { min: 0, max: 9 });
275
+ // Same user will always get the same slot number
276
+ ```
277
+
278
+ ## Hash to Number Synchronous
279
+
280
+ Generate deterministic numbers synchronously for high-performance scenarios. Perfect for A/B testing, sharding, and load balancing without async overhead.
281
+
282
+ ```typescript
283
+ import { Hashery } from 'hashery';
284
+
285
+ const hashery = new Hashery();
286
+
287
+ // Synchronous number generation (defaults to djb2)
288
+ const slot = hashery.toNumberSync({ userId: 123 }, { min: 0, max: 100 });
289
+ console.log(slot); // Deterministic number between 0-100
290
+
291
+ // A/B testing without async/await
292
+ const variant = hashery.toNumberSync({ userId: 'user123' }, { min: 0, max: 1 });
293
+ console.log(variant === 0 ? 'Group A' : 'Group B');
294
+
295
+ // Load balancing across servers
296
+ const serverIndex = hashery.toNumberSync(
297
+ { requestId: 'req_abc123' },
298
+ { min: 0, max: 9, algorithm: 'fnv1' } // 10 servers
299
+ );
300
+
301
+ // Sharding assignment
302
+ const shardId = hashery.toNumberSync(
303
+ { customerId: 'cust_xyz' },
304
+ { min: 0, max: 15, algorithm: 'murmur' } // 16 shards
305
+ );
306
+
307
+ // Set default sync algorithm for all sync operations
308
+ const hashery2 = new Hashery({ defaultAlgorithmSync: 'fnv1' });
309
+ const num = hashery2.toNumberSync({ data: 'test' }); // Uses fnv1 by default
310
+ ```
311
+
312
+ ## Browser Usage
313
+
314
+ Hashery works seamlessly in the browser using the Web Crypto API. You can include it via CDN or bundle it with your application.
315
+
316
+ ### Using via CDN (jsDelivr)
317
+
318
+ ```html
319
+ <!DOCTYPE html>
320
+ <html>
321
+ <head>
322
+ <title>Hashery Browser Example</title>
323
+ </head>
324
+ <body>
325
+ <script type="module">
326
+ import { Hashery } from 'https://cdn.jsdelivr.net/npm/hashery@latest/dist/browser/index.js';
327
+
328
+ const hashery = new Hashery();
329
+
330
+ // Hash data in the browser
331
+ const hash = await hashery.toHash({ page: 'home', userId: 123 });
332
+ console.log('Hash:', hash);
333
+
334
+ // Generate slot numbers for A/B testing
335
+ const variant = await hashery.toNumber({ userId: 'user123' }, { min: 0, max: 1 });
336
+ console.log('A/B Test Variant:', variant === 0 ? 'A' : 'B');
337
+ </script>
338
+ </body>
339
+ </html>
340
+ ```
341
+
342
+ # Hooks
343
+
344
+ Hashery extends [Hookified](https://github.com/jaredwray/hookified) to provide event-based functionality through hooks. Hooks allow you to intercept and modify behavior during the hashing process.
345
+
346
+ ## Available Hooks
347
+
348
+ ### Asynchronous Method Hooks
349
+
350
+ #### `before:toHash`
351
+
352
+ Fired before hashing occurs. This hook receives a context object containing:
353
+ - `data` - The data to be hashed (can be modified)
354
+ - `algorithm` - The hash algorithm to use (can be modified)
355
+ - `maxLength` - Optional maximum length for the hash output
356
+
357
+ #### `after:toHash`
358
+
359
+ Fired after hashing completes. This hook receives a result object containing:
360
+ - `hash` - The generated hash (can be modified)
361
+ - `data` - The data that was hashed
362
+ - `algorithm` - The algorithm that was used
363
+
364
+ ### Synchronous Method Hooks
365
+
366
+ #### `before:toHashSync`
367
+
368
+ Fired before synchronous hashing occurs. This hook receives a context object containing:
369
+ - `data` - The data to be hashed (can be modified)
370
+ - `algorithm` - The hash algorithm to use (can be modified)
371
+ - `maxLength` - Optional maximum length for the hash output
372
+
373
+ **Note:** This hook executes synchronously (blocking). Only synchronous hook handlers will run; async handlers are skipped.
374
+
375
+ #### `after:toHashSync`
376
+
377
+ Fired after synchronous hashing completes. This hook receives a result object containing:
378
+ - `hash` - The generated hash (can be modified)
379
+ - `data` - The data that was hashed
380
+ - `algorithm` - The algorithm that was used
381
+
382
+ **Note:** This hook executes synchronously (blocking). Only synchronous hook handlers will run; async handlers are skipped.
383
+
384
+ ## Basic Hook Usage
385
+
386
+ ```typescript
387
+ import { Hashery } from 'hashery';
388
+
389
+ const hashery = new Hashery();
390
+
391
+ // Listen to before:toHash hook
392
+ hashery.onHook('before:toHash', async (context) => {
393
+ console.log('About to hash:', context.data);
394
+ console.log('Using algorithm:', context.algorithm);
395
+ });
396
+
397
+ // Listen to after:toHash hook
398
+ hashery.onHook('after:toHash', async (result) => {
399
+ console.log('Hash generated:', result.hash);
400
+ console.log('Original data:', result.data);
401
+ });
402
+
403
+ await hashery.toHash({ name: 'John', age: 30 });
404
+ ```
405
+
406
+ ## Modifying Data with Hooks
407
+
408
+ You can modify the data before it's hashed:
409
+
410
+ ```typescript
411
+ const hashery = new Hashery();
412
+
413
+ // Add a timestamp to all hashed data
414
+ hashery.onHook('before:toHash', async (context) => {
415
+ context.data = {
416
+ original: context.data,
417
+ timestamp: new Date().toISOString()
418
+ };
419
+ });
420
+
421
+ const hash = await hashery.toHash({ userId: 123 });
422
+ // Data will be hashed with timestamp included
423
+ ```
424
+
425
+ ## Modifying Algorithms with Hooks
426
+
427
+ You can force a specific algorithm regardless of what's requested:
428
+
429
+ ```typescript
430
+ const hashery = new Hashery();
431
+
432
+ // Force all hashes to use SHA-512
433
+ hashery.onHook('before:toHash', async (context) => {
434
+ context.algorithm = 'SHA-512';
435
+ });
436
+
437
+ // Even though we request SHA-256, it will use SHA-512
438
+ const hash = await hashery.toHash({ data: 'example' }, { algorithm: 'SHA-256' });
439
+ console.log(hash.length); // 128 (SHA-512 hash length)
440
+ ```
441
+
442
+ ## Modifying Hash Results
443
+
444
+ You can transform the hash after it's generated:
445
+
446
+ ```typescript
447
+ const hashery = new Hashery();
448
+
449
+ // Convert all hashes to uppercase
450
+ hashery.onHook('after:toHash', async (result) => {
451
+ result.hash = result.hash.toUpperCase();
452
+ });
453
+
454
+ const hash = await hashery.toHash({ data: 'example' });
455
+ console.log(hash); // Hash will be in uppercase
456
+ ```
457
+
458
+ ## Logging and Debugging
459
+
460
+ Hooks are perfect for logging and debugging:
461
+
462
+ ```typescript
463
+ const hashery = new Hashery();
464
+
465
+ hashery.onHook('before:toHash', async (context) => {
466
+ console.log(`[DEBUG] Hashing data with ${context.algorithm}:`, context.data);
467
+ });
468
+
469
+ hashery.onHook('after:toHash', async (result) => {
470
+ console.log(`[DEBUG] Hash generated: ${result.hash.substring(0, 8)}...`);
471
+ });
472
+
473
+ await hashery.toHash({ userId: 'user123' });
474
+ ```
475
+
476
+ ## Multiple Hooks
477
+
478
+ You can register multiple hooks, and they will execute in the order they were registered:
479
+
480
+ ```typescript
481
+ const hashery = new Hashery();
482
+
483
+ hashery.onHook('before:toHash', async (context) => {
484
+ console.log('First hook');
485
+ context.data = { step: 1, original: context.data };
486
+ });
487
+
488
+ hashery.onHook('before:toHash', async (context) => {
489
+ console.log('Second hook');
490
+ context.data = { step: 2, previous: context.data };
491
+ });
492
+
493
+ await hashery.toHash({ name: 'test' });
494
+ // Output: "First hook" then "Second hook"
495
+ // Data will be wrapped twice
496
+ ```
497
+
498
+ ## Synchronous Method Hooks
499
+
500
+ Synchronous methods (`toHashSync`, `toNumberSync`) support hooks that execute synchronously (blocking). Hook handlers can modify context and results just like their async counterparts.
501
+
502
+ **Important:** Only synchronous hook handlers will run. Async handlers (functions that return a Promise) are skipped. Use synchronous functions when registering hooks for sync methods.
503
+
504
+ ```typescript
505
+ const hashery = new Hashery();
506
+
507
+ // Listen to synchronous hash hooks (use synchronous handlers)
508
+ hashery.onHook('before:toHashSync', (context) => {
509
+ console.log('About to hash synchronously:', context.data);
510
+ console.log('Using algorithm:', context.algorithm);
511
+ });
512
+
513
+ hashery.onHook('after:toHashSync', (result) => {
514
+ console.log('Sync hash generated:', result.hash);
515
+ });
516
+
517
+ const hash = hashery.toHashSync({ name: 'John', age: 30 });
518
+ ```
519
+
520
+ You can modify data and results in sync hooks, just like async hooks:
521
+
522
+ ```typescript
523
+ const hashery = new Hashery();
524
+
525
+ // Modify input data before hashing
526
+ hashery.onHook('before:toHashSync', (context) => {
527
+ context.data = { wrapped: true, original: context.data };
528
+ });
529
+
530
+ // Modify the result after hashing
531
+ hashery.onHook('after:toHashSync', (result) => {
532
+ result.hash = result.hash.toUpperCase();
533
+ });
534
+
535
+ const hash = hashery.toHashSync({ name: 'test' });
536
+ // hash will be uppercase and based on the modified data
537
+ ```
538
+
539
+ ## Warning Events for Invalid Algorithms
540
+
541
+ When an invalid or unknown hash algorithm is provided to `toHash()` or `toHashSync()`, Hashery emits a 'warn' event and automatically falls back to the default algorithm instead of throwing an error. This ensures your application continues to work even when invalid algorithms are specified.
542
+
543
+ ### Listening to Warnings
544
+
545
+ ```typescript
546
+ import { Hashery } from 'hashery';
547
+
548
+ const hashery = new Hashery();
549
+
550
+ // Listen for warning events
551
+ hashery.on('warn', (message: string) => {
552
+ console.log('Warning:', message);
553
+ });
554
+
555
+ // Using an invalid algorithm will trigger the warning
556
+ const hash = await hashery.toHash({ data: 'test' }, { algorithm: 'invalid-algo' });
557
+ // Warning: Invalid algorithm 'invalid-algo' not found. Falling back to default algorithm 'SHA-256'.
558
+
559
+ // Hash is still generated using SHA-256 (the default)
560
+ console.log(hash); // Valid SHA-256 hash
561
+ ```
562
+
563
+ ### Behavior
564
+
565
+ **For async methods (`toHash`, `toNumber`):**
566
+ - Emits 'warn' event with descriptive message
567
+ - Falls back to `defaultAlgorithm` (SHA-256 by default)
568
+ - Returns a valid hash using the fallback algorithm
569
+
570
+ **For sync methods (`toHashSync`, `toNumberSync`):**
571
+ - Emits 'warn' event with descriptive message
572
+ - Falls back to `defaultAlgorithmSync` (djb2 by default)
573
+ - Returns a valid hash using the fallback algorithm
574
+ - **Note:** If the default sync algorithm is also not found, an error will be thrown
575
+
576
+ ### Warning Message Format
577
+
578
+ The warning message includes both the invalid algorithm name and the fallback algorithm being used:
579
+
580
+ ```
581
+ Invalid algorithm '<requested-algorithm>' not found. Falling back to default algorithm '<default-algorithm>'.
582
+ ```
583
+
584
+ ### Example Use Cases
585
+
586
+ **Development/Debugging:**
587
+ ```typescript
588
+ const hashery = new Hashery();
589
+
590
+ hashery.on('warn', (message) => {
591
+ console.error('[Hashery Warning]', message);
592
+ // Log to monitoring service, etc.
593
+ });
594
+ ```
595
+
596
+ **Production Monitoring:**
597
+ ```typescript
598
+ const hashery = new Hashery();
599
+
600
+ hashery.on('warn', (message) => {
601
+ // Send to error tracking service
602
+ errorTracker.captureMessage(message, 'warning');
603
+ });
604
+ ```
605
+
606
+ **Graceful Degradation:**
607
+ ```typescript
608
+ const hashery = new Hashery();
609
+ let hasWarnings = false;
610
+
611
+ hashery.on('warn', () => {
612
+ hasWarnings = true;
613
+ });
614
+
615
+ const hash = await hashery.toHash(userData, { algorithm: userPreferredAlgo });
616
+
617
+ if (hasWarnings) {
618
+ // Notify user that their preferred algorithm is not available
619
+ console.log('Using default algorithm instead of your preference');
620
+ }
621
+ ```
622
+
623
+ ## Removing Hooks
624
+
625
+ You can remove hooks when they're no longer needed:
626
+
627
+ ```typescript
628
+ const hashery = new Hashery();
629
+
630
+ const myHook = async (context: any) => {
631
+ console.log('Hook called');
632
+ };
633
+
634
+ // Add the hook
635
+ hashery.onHook('before:toHash', myHook);
636
+
637
+ // Remove the hook
638
+ hashery.offHook('before:toHash', myHook);
639
+
640
+ // Same works for sync hooks
641
+ hashery.onHook('before:toHashSync', myHook);
642
+ hashery.offHook('before:toHashSync', myHook);
643
+ ```
644
+
645
+ ## Error Handling in Hooks
646
+
647
+ Control how errors in hooks are handled using the `throwOnEmitError` option:
648
+
649
+ ```typescript
650
+ // Throw errors that occur in hooks
651
+ const hashery1 = new Hashery({ throwOnEmitError: true });
652
+
653
+ hashery1.onHook('before:toHash', async (context) => {
654
+ throw new Error('Hook error');
655
+ });
656
+
657
+ // This will throw the error
658
+ await hashery1.toHash({ data: 'example' }); // Throws Error: Hook error
659
+
660
+ // Silently handle errors in hooks
661
+ const hashery2 = new Hashery({ throwOnEmitError: false });
662
+
663
+ hashery2.onHook('before:toHash', async (context) => {
664
+ throw new Error('Hook error');
665
+ });
666
+
667
+ // This will not throw, hashing continues
668
+ const hash = await hashery2.toHash({ data: 'example' }); // Returns hash successfully
669
+ ```
670
+
671
+ # Caching
672
+
673
+ Hashery includes a built-in FIFO (First In, First Out) cache that stores computed hash values. When the same data is hashed with the same algorithm, the cached result is returned instead of recomputing. Caching is enabled by default with a max size of 4000 entries.
674
+
675
+ ```typescript
676
+ import { Hashery } from 'hashery';
677
+
678
+ // Default: cache enabled with maxSize of 4000
679
+ const hashery = new Hashery();
680
+
681
+ // Or customize cache settings
682
+ const hashery2 = new Hashery({ cache: { enabled: true, maxSize: 10000 } });
683
+
684
+ // Hashing results are automatically cached
685
+ const hash1 = await hashery.toHash({ user: 'john' }); // computed
686
+ const hash2 = await hashery.toHash({ user: 'john' }); // served from cache
687
+
688
+ // Cache management
689
+ hashery.cache.size; // number of cached entries
690
+ hashery.cache.clear(); // clear all cached entries
691
+ hashery.cache.enabled = false; // disable caching at runtime
692
+ ```
693
+
694
+ # Web Crypto
695
+
696
+ Hashery is built on top of the Web Crypto API, which provides cryptographic operations in both browser and Node.js environments. This ensures consistent, secure hashing across all platforms.
697
+
698
+ ## Browser Support
699
+
700
+ The Web Crypto API is supported in all modern browsers:
701
+ - Chrome 37+
702
+ - Firefox 34+
703
+ - Safari 11+
704
+ - Edge 12+
705
+
706
+ ## Node.js Support
707
+
708
+ Web Crypto API was introduced in Node.js 15.0.0. Hashery is tested against Node.js LTS 20+ and automatically detects and uses the appropriate crypto implementation for your environment via the `crypto.webcrypto` global.
709
+
710
+ ## Available Algorithms
711
+
712
+ ### Web Crypto Algorithms (Async Only)
713
+ These algorithms use the Web Crypto API and are only available asynchronously:
714
+ - **SHA-256** - Secure Hash Algorithm 256-bit (default for async methods)
715
+ - **SHA-384** - Secure Hash Algorithm 384-bit
716
+ - **SHA-512** - Secure Hash Algorithm 512-bit
717
+
718
+ These are cryptographically secure and suitable for security-sensitive applications.
719
+
720
+ ### Non-Crypto Algorithms (Async & Sync)
721
+ These algorithms support both synchronous and asynchronous operation:
722
+ - **djb2** - Fast hash function by Daniel J. Bernstein (default for sync methods)
723
+ - **fnv1** - Fowler-Noll-Vo hash function
724
+ - **murmur** - MurmurHash algorithm
725
+ - **crc32** - Cyclic Redundancy Check 32-bit
726
+
727
+ **Async methods** (`toHash`, `toNumber`):
728
+ - Default to `SHA-256`
729
+ - Can use any algorithm (WebCrypto or non-crypto)
730
+ - Return Promises
731
+
732
+ **Sync methods** (`toHashSync`, `toNumberSync`):
733
+ - Default to `djb2`
734
+ - Only work with non-crypto algorithms (djb2, fnv1, murmur, crc32)
735
+ - Return values immediately
736
+ - Throw an error if you try to use WebCrypto algorithms
737
+
738
+ ## Example: Using Web Crypto
739
+
740
+ ```typescript
741
+ import { Hashery } from 'hashery';
742
+
743
+ const hashery = new Hashery();
744
+
745
+ // Web Crypto algorithms
746
+ const sha256 = await hashery.toHash({ data: 'example' }); // Default SHA-256
747
+ const sha384 = await hashery.toHash({ data: 'example' }, { algorithm: 'SHA-384' });
748
+ const sha512 = await hashery.toHash({ data: 'example' }, { algorithm: 'SHA-512' });
749
+
750
+ // Non-crypto algorithms (faster, but not cryptographically secure)
751
+ const djb2Hash = await hashery.toHash({ data: 'example' }, { algorithm: 'djb2' });
752
+ const fnv1Hash = await hashery.toHash({ data: 'example' }, { algorithm: 'fnv1' });
753
+ ```
754
+
755
+ # DJB2 Hashing
756
+
757
+ DJB2 is a non-cryptographic hash function created by Daniel J. Bernstein. It's known for its simplicity and speed, making it ideal for hash tables, checksums, and other non-security applications.
758
+
759
+ ## Why Use DJB2?
760
+
761
+ - **Fast Performance** - Significantly faster than cryptographic hash functions
762
+ - **Good Distribution** - Provides good hash distribution for most data
763
+ - **Simple Algorithm** - Easy to understand and implement
764
+ - **Low Collision Rate** - Works well for hash tables and data structures
765
+ - **Deterministic** - Same input always produces the same output
766
+
767
+ ## When to Use DJB2
768
+
769
+ **Good for:**
770
+ - Hash tables and data structures
771
+ - Non-security checksums
772
+ - Fast data lookups
773
+ - Cache keys
774
+ - General-purpose hashing where security isn't a concern
775
+
776
+ **Not suitable for:**
777
+ - Password hashing
778
+ - Cryptographic signatures
779
+ - Security-sensitive applications
780
+ - Data integrity verification where tampering is a concern
781
+
782
+ ## DJB2 vs Cryptographic Hashes
783
+
784
+ | Feature | DJB2 | SHA-256 |
785
+ |---------|------|---------|
786
+ | Speed | Very Fast | Slower |
787
+ | Security | Not Secure | Cryptographically Secure |
788
+ | Hash Length | 32-bit | 256-bit |
789
+ | Collision Resistance | Good | Excellent |
790
+ | Use Case | General Purpose | Security |
791
+
792
+ ## Example: Using DJB2
793
+
794
+ ```typescript
795
+ import { Hashery } from 'hashery';
796
+
797
+ const hashery = new Hashery();
798
+
799
+ // Hash with DJB2 (fast, non-cryptographic)
800
+ const djb2Hash = await hashery.toHash({ userId: 123, action: 'login' }, { algorithm: 'djb2' });
801
+
802
+ // Use for cache keys
803
+ const cacheKey = await hashery.toHash({
804
+ endpoint: '/api/users',
805
+ params: { page: 1, limit: 10 }
806
+ }, { algorithm: 'djb2' });
807
+
808
+ // Generate slot numbers with DJB2
809
+ const slot = await hashery.toNumber({ userId: 'user123' }, { min: 0, max: 99, algorithm: 'djb2' });
810
+ ```
811
+
812
+ ## Algorithm Details
813
+
814
+ DJB2 uses a simple formula:
815
+ ```
816
+ hash = 5381
817
+ for each character c:
818
+ hash = ((hash << 5) + hash) + c
819
+ ```
820
+
821
+ This translates to: `hash * 33 + c`, where 5381 is the magic initial value chosen by Daniel J. Bernstein for its distribution properties.
822
+
823
+ # FNV1 Hashing
824
+
825
+ FNV1 (Fowler-Noll-Vo) is a non-cryptographic hash function designed for fast hash table and checksum use. Created by Glenn Fowler, Landon Curt Noll, and Kiem-Phong Vo, it's known for its excellent distribution properties and simplicity.
826
+
827
+ ## Why Use FNV1?
828
+
829
+ - **Excellent Distribution** - Superior hash distribution reduces collisions
830
+ - **Fast Performance** - Very fast computation with minimal operations
831
+ - **Simple Implementation** - Easy to understand and implement
832
+ - **Public Domain** - No licensing restrictions
833
+ - **Well-Tested** - Extensively used and tested in production systems
834
+ - **Deterministic** - Same input always produces the same output
835
+
836
+ ## When to Use FNV1
837
+
838
+ **Good for:**
839
+ - Hash tables and associative arrays
840
+ - Checksums and fingerprints
841
+ - Data deduplication
842
+ - Bloom filters
843
+ - Fast lookups and indexing
844
+ - Non-cryptographic applications
845
+
846
+ **Not suitable for:**
847
+ - Password hashing
848
+ - Cryptographic signatures
849
+ - Security-critical applications
850
+ - Digital signatures
851
+ - Data integrity in adversarial environments
852
+
853
+ ## FNV1 vs Other Hash Functions
854
+
855
+ | Feature | FNV1 | DJB2 | SHA-256 |
856
+ |---------|------|------|---------|
857
+ | Speed | Very Fast | Very Fast | Slower |
858
+ | Distribution | Excellent | Good | Excellent |
859
+ | Security | Not Secure | Not Secure | Cryptographically Secure |
860
+ | Collision Resistance | Good | Good | Excellent |
861
+ | Use Case | Hash Tables | General Purpose | Security |
862
+
863
+ ## Example: Using FNV1
864
+
865
+ ```typescript
866
+ import { Hashery } from 'hashery';
867
+
868
+ const hashery = new Hashery();
869
+
870
+ // Hash with FNV1 (fast, excellent distribution)
871
+ const fnv1Hash = await hashery.toHash({ productId: 'ABC123', variant: 'red' }, { algorithm: 'fnv1' });
872
+
873
+ // Use for hash table keys
874
+ const tableKey = await hashery.toHash({
875
+ userId: 'user@example.com',
876
+ resource: 'profile'
877
+ }, { algorithm: 'fnv1' });
878
+
879
+ // Generate distributed slot numbers with FNV1
880
+ const slot = await hashery.toNumber({ sessionId: 'sess_xyz789' }, { min: 0, max: 999, algorithm: 'fnv1' });
881
+
882
+ // Use for data deduplication
883
+ const fingerprint = await hashery.toHash({
884
+ content: 'document content here',
885
+ metadata: { author: 'John', date: '2024-01-01' }
886
+ }, { algorithm: 'fnv1' });
887
+ ```
888
+
889
+ ## Algorithm Details
890
+
891
+ FNV1 uses the following formula:
892
+ ```
893
+ hash = FNV_offset_basis
894
+ for each byte b:
895
+ hash = hash * FNV_prime
896
+ hash = hash XOR b
897
+ ```
898
+
899
+ Where:
900
+ - **FNV_offset_basis**: Initial hash value (different for 32-bit, 64-bit, etc.)
901
+ - **FNV_prime**: A carefully chosen prime number for good distribution
902
+ - **XOR**: Bitwise exclusive OR operation
903
+
904
+ The algorithm multiplies by a prime and XORs with each input byte, creating excellent avalanche properties where small input changes result in very different hash values.
905
+
906
+ # CRC Hashing
907
+
908
+ CRC (Cyclic Redundancy Check) is a non-cryptographic hash function designed primarily for detecting accidental changes to data. CRC32 is a 32-bit variant widely used in network protocols, file formats, and data integrity verification.
909
+
910
+ ## Why Use CRC?
911
+
912
+ - **Error Detection** - Excellent at detecting accidental data corruption
913
+ - **Industry Standard** - Widely used in ZIP, PNG, Ethernet, and many other standards
914
+ - **Fast Performance** - Very efficient computation using lookup tables
915
+ - **Hardware Support** - Often implemented in hardware for maximum speed
916
+ - **Well-Understood** - Decades of use and mathematical analysis
917
+ - **Deterministic** - Same input always produces the same output
918
+
919
+ ## When to Use CRC
920
+
921
+ **Good for:**
922
+ - Data integrity verification
923
+ - Error detection in network protocols
924
+ - File format checksums (ZIP, PNG, etc.)
925
+ - Storage integrity checks
926
+ - Detecting accidental corruption
927
+ - Quick data validation
928
+
929
+ **Not suitable for:**
930
+ - Cryptographic applications
931
+ - Password hashing
932
+ - Digital signatures
933
+ - Security-sensitive checksums
934
+ - Protection against intentional tampering
935
+ - Hash tables (not designed for this use case)
936
+
937
+ ## CRC vs Other Hash Functions
938
+
939
+ | Feature | CRC32 | DJB2 | FNV1 | SHA-256 |
940
+ |---------|-------|------|------|---------|
941
+ | Primary Use | Error Detection | Hash Tables | Hash Tables | Security |
942
+ | Speed | Very Fast | Very Fast | Very Fast | Slower |
943
+ | Security | Not Secure | Not Secure | Not Secure | Cryptographically Secure |
944
+ | Hash Length | 32-bit | 32-bit | 32-bit/64-bit | 256-bit |
945
+ | Error Detection | Excellent | Poor | Poor | Excellent |
946
+ | Use Case | Data Integrity | General Purpose | Hash Tables | Security |
947
+
948
+ ## Example: Using CRC
949
+
950
+ ```typescript
951
+ import { Hashery } from 'hashery';
952
+
953
+ const hashery = new Hashery();
954
+
955
+ // Hash with CRC32 for data integrity
956
+ const crcHash = await hashery.toHash({ fileData: 'content here' }, { algorithm: 'crc32' });
957
+
958
+ // Verify file integrity
959
+ const fileChecksum = await hashery.toHash({
960
+ filename: 'document.pdf',
961
+ size: 1024000,
962
+ modified: '2024-01-01'
963
+ }, { algorithm: 'crc32' });
964
+
965
+ // Network packet validation
966
+ const packetChecksum = await hashery.toHash({
967
+ header: { type: 'data', seq: 123 },
968
+ payload: 'packet payload data'
969
+ }, { algorithm: 'crc32' });
970
+
971
+ // Quick data validation
972
+ const dataIntegrity = await hashery.toHash({
973
+ recordId: 'rec_123',
974
+ data: { field1: 'value1', field2: 'value2' }
975
+ }, { algorithm: 'crc32' });
976
+ ```
977
+
978
+ ## Algorithm Details
979
+
980
+ CRC32 uses polynomial division in a finite field (GF(2)):
981
+
982
+ ```
983
+ CRC32 polynomial: 0x04C11DB7 (IEEE 802.3 standard)
984
+
985
+ for each byte b:
986
+ crc = (crc >> 8) XOR table[(crc XOR b) & 0xFF]
987
+ ```
988
+
989
+ Key characteristics:
990
+ - **Polynomial**: Uses a standardized polynomial for consistent results
991
+ - **Lookup Table**: Pre-computed table for fast calculation
992
+ - **Bit Shifting**: Efficient XOR and shift operations
993
+ - **Finite Field**: Mathematical properties ensure good error detection
994
+
995
+ ## Important Notes
996
+
997
+ ⚠️ **Security Warning**: CRC is NOT cryptographically secure. It's designed to detect accidental errors, not intentional tampering. For security applications, use SHA-256 or other cryptographic hash functions.
998
+
999
+ ✅ **Best Practice**: Use CRC32 for checksums and error detection in non-adversarial environments. Use cryptographic hashes (SHA-256, SHA-512) when security matters.
1000
+
1001
+ # API - Properties
1002
+
1003
+ ## `parse`
1004
+
1005
+ Gets or sets the parse function used to deserialize stored values.
1006
+
1007
+ **Type:** `ParseFn`
1008
+
1009
+ **Default:** `JSON.parse`
1010
+
1011
+ ```typescript
1012
+ const hashery = new Hashery();
1013
+ hashery.parse = customParseFunction;
1014
+ ```
1015
+
1016
+ ## `stringify`
1017
+
1018
+ Gets or sets the stringify function used to serialize values for storage.
1019
+
1020
+ **Type:** `StringifyFn`
1021
+
1022
+ **Default:** `JSON.stringify`
1023
+
1024
+ ```typescript
1025
+ const hashery = new Hashery();
1026
+ hashery.stringify = customStringifyFunction;
1027
+ ```
1028
+
1029
+ ## `providers`
1030
+
1031
+ Gets or sets the HashProviders instance used to manage hash providers.
1032
+
1033
+ **Type:** `HashProviders`
1034
+
1035
+ ```typescript
1036
+ const hashery = new Hashery();
1037
+ console.log(hashery.providers);
1038
+ ```
1039
+
1040
+ ## `names`
1041
+
1042
+ Gets the names of all registered hash algorithm providers.
1043
+
1044
+ **Type:** `Array<string>`
1045
+
1046
+ **Returns:** An array of provider names (e.g., ['SHA-256', 'SHA-384', 'SHA-512', 'djb2', 'fnv1', 'murmur', 'crc32'])
1047
+
1048
+ ```typescript
1049
+ const hashery = new Hashery();
1050
+ console.log(hashery.names); // ['SHA-256', 'SHA-384', 'SHA-512', 'djb2', 'fnv1', 'murmur', 'crc32']
1051
+ ```
1052
+
1053
+ ## `defaultAlgorithm`
1054
+
1055
+ Gets or sets the default hash algorithm to use when none is specified for async methods.
1056
+
1057
+ **Type:** `string`
1058
+
1059
+ **Default:** `'SHA-256'`
1060
+
1061
+ ```typescript
1062
+ const hashery = new Hashery();
1063
+
1064
+ // Get default algorithm
1065
+ console.log(hashery.defaultAlgorithm); // 'SHA-256'
1066
+
1067
+ // Set default algorithm
1068
+ hashery.defaultAlgorithm = 'SHA-512';
1069
+
1070
+ // Now all async hashes use SHA-512 by default
1071
+ const hash = await hashery.toHash({ data: 'example' });
1072
+ console.log(hash.length); // 128 (SHA-512 produces 128 hex characters)
1073
+ ```
1074
+
1075
+ ## `defaultAlgorithmSync`
1076
+
1077
+ Gets or sets the default hash algorithm to use when none is specified for synchronous methods.
1078
+
1079
+ **Type:** `string`
1080
+
1081
+ **Default:** `'djb2'`
1082
+
1083
+ ```typescript
1084
+ const hashery = new Hashery();
1085
+
1086
+ // Get default sync algorithm
1087
+ console.log(hashery.defaultAlgorithmSync); // 'djb2'
1088
+
1089
+ // Set default sync algorithm
1090
+ hashery.defaultAlgorithmSync = 'fnv1';
1091
+
1092
+ // Now all sync hashes use fnv1 by default
1093
+ const hash = hashery.toHashSync({ data: 'example' });
1094
+
1095
+ // You can also set it in the constructor
1096
+ const hashery2 = new Hashery({ defaultAlgorithmSync: 'murmur' });
1097
+ const hash2 = hashery2.toHashSync({ data: 'test' }); // Uses murmur
1098
+ ```
1099
+
1100
+ # API - Functions
1101
+
1102
+ ## `toHash(data, options?)`
1103
+
1104
+ Generates a cryptographic hash of the provided data using the specified algorithm (async). The data is first stringified using the configured stringify function, then hashed.
1105
+
1106
+ **Parameters:**
1107
+ - `data` (unknown) - The data to hash (will be stringified before hashing)
1108
+ - `options` (object, optional) - Configuration options
1109
+ - `algorithm` (string, optional) - The hash algorithm to use (defaults to 'SHA-256')
1110
+ - `maxLength` (number, optional) - Maximum length for the hash output (truncates from the start)
1111
+
1112
+ **Returns:** `Promise<string>` - A Promise that resolves to the hexadecimal string representation of the hash
1113
+
1114
+ **Example:**
1115
+
1116
+ ```typescript
1117
+ const hashery = new Hashery();
1118
+
1119
+ // Using default SHA-256
1120
+ const hash = await hashery.toHash({ name: 'John', age: 30 });
1121
+
1122
+ // Using a different algorithm
1123
+ const hash512 = await hashery.toHash({ name: 'John' }, { algorithm: 'SHA-512' });
1124
+ const fastHash = await hashery.toHash({ name: 'John' }, { algorithm: 'djb2' });
1125
+
1126
+ // Truncating hash output
1127
+ const shortHash = await hashery.toHash(
1128
+ { name: 'John' },
1129
+ { algorithm: 'SHA-256', maxLength: 16 }
1130
+ );
1131
+ ```
1132
+
1133
+ ## `toHashSync(data, options?)`
1134
+
1135
+ Generates a hash of the provided data synchronously using a non-cryptographic hash algorithm. The data is first stringified using the configured stringify function, then hashed.
1136
+
1137
+ **Important:** This method only works with synchronous hash providers (djb2, fnv1, murmur, crc32). WebCrypto algorithms (SHA-256, SHA-384, SHA-512) are not supported and will throw an error.
1138
+
1139
+ **Parameters:**
1140
+ - `data` (unknown) - The data to hash (will be stringified before hashing)
1141
+ - `options` (object, optional) - Configuration options
1142
+ - `algorithm` (string, optional) - The hash algorithm to use (defaults to 'djb2')
1143
+ - `maxLength` (number, optional) - Maximum length for the hash output (truncates from the start)
1144
+
1145
+ **Returns:** `string` - The hexadecimal string representation of the hash
1146
+
1147
+ **Throws:** `Error` if the specified algorithm does not support synchronous hashing
1148
+
1149
+ **Example:**
1150
+
1151
+ ```typescript
1152
+ const hashery = new Hashery();
1153
+
1154
+ // Using default djb2
1155
+ const hash = hashery.toHashSync({ name: 'John', age: 30 });
1156
+
1157
+ // Using a different algorithm
1158
+ const hashFnv1 = hashery.toHashSync({ name: 'John' }, { algorithm: 'fnv1' });
1159
+ const hashMurmur = hashery.toHashSync({ name: 'John' }, { algorithm: 'murmur' });
1160
+ const hashCrc = hashery.toHashSync({ name: 'John' }, { algorithm: 'crc32' });
1161
+
1162
+ // Truncating hash output
1163
+ const shortHash = hashery.toHashSync(
1164
+ { name: 'John' },
1165
+ { algorithm: 'djb2', maxLength: 4 }
1166
+ );
1167
+
1168
+ // This will throw an error (WebCrypto not supported in sync mode)
1169
+ // const invalid = hashery.toHashSync({ name: 'John' }, { algorithm: 'SHA-256' }); // ❌
1170
+ ```
1171
+
1172
+ ## `toNumber(data, options?)`
1173
+
1174
+ Generates a deterministic number within a specified range based on the hash of the provided data (async). This method uses the toHash function to create a consistent hash, then maps it to a number between min and max (inclusive).
1175
+
1176
+ **Parameters:**
1177
+ - `data` (unknown) - The data to hash (will be stringified before hashing)
1178
+ - `options` (object, optional) - Configuration options
1179
+ - `min` (number, optional) - The minimum value of the range (inclusive, defaults to 0)
1180
+ - `max` (number, optional) - The maximum value of the range (inclusive, defaults to 100)
1181
+ - `algorithm` (string, optional) - The hash algorithm to use (defaults to 'SHA-256')
1182
+ - `hashLength` (number, optional) - Number of characters from hash to use for conversion (defaults to 16)
1183
+
1184
+ **Returns:** `Promise<number>` - A Promise that resolves to a number between min and max (inclusive)
1185
+
1186
+ **Throws:** Error if min is greater than max
1187
+
1188
+ **Example:**
1189
+
1190
+ ```typescript
1191
+ const hashery = new Hashery();
1192
+
1193
+ // Generate a number between 0 and 100 (default range)
1194
+ const num = await hashery.toNumber({ user: 'john' });
1195
+
1196
+ // Generate a number with custom range
1197
+ const num2 = await hashery.toNumber({ user: 'john' }, { min: 0, max: 100 });
1198
+
1199
+ // Using a different algorithm
1200
+ const num512 = await hashery.toNumber({ user: 'john' }, { min: 0, max: 255, algorithm: 'SHA-512' });
1201
+ ```
1202
+
1203
+ ## `toNumberSync(data, options?)`
1204
+
1205
+ Generates a deterministic number within a specified range based on the hash of the provided data synchronously. This method uses the toHashSync function to create a consistent hash, then maps it to a number between min and max (inclusive).
1206
+
1207
+ **Important:** This method only works with synchronous hash providers (djb2, fnv1, murmur, crc32).
1208
+
1209
+ **Parameters:**
1210
+ - `data` (unknown) - The data to hash (will be stringified before hashing)
1211
+ - `options` (object, optional) - Configuration options
1212
+ - `min` (number, optional) - The minimum value of the range (inclusive, defaults to 0)
1213
+ - `max` (number, optional) - The maximum value of the range (inclusive, defaults to 100)
1214
+ - `algorithm` (string, optional) - The hash algorithm to use (defaults to 'djb2')
1215
+ - `hashLength` (number, optional) - Number of characters from hash to use for conversion (defaults to 16)
1216
+
1217
+ **Returns:** `number` - A number between min and max (inclusive)
1218
+
1219
+ **Throws:**
1220
+ - Error if min is greater than max
1221
+ - Error if the specified algorithm does not support synchronous hashing
1222
+
1223
+ **Example:**
1224
+
1225
+ ```typescript
1226
+ const hashery = new Hashery();
1227
+
1228
+ // Generate a number between 0 and 100 (default range)
1229
+ const num = hashery.toNumberSync({ user: 'john' });
1230
+
1231
+ // Generate a number with custom range
1232
+ const slot = hashery.toNumberSync({ user: 'john' }, { min: 0, max: 9 });
1233
+
1234
+ // Using a different algorithm
1235
+ const numFnv1 = hashery.toNumberSync({ user: 'john' }, { min: 0, max: 255, algorithm: 'fnv1' });
1236
+
1237
+ // A/B testing
1238
+ const variant = hashery.toNumberSync({ userId: 'user123' }, { min: 0, max: 1 });
1239
+ console.log(variant === 0 ? 'Group A' : 'Group B');
1240
+
1241
+ // Load balancing
1242
+ const serverId = hashery.toNumberSync(
1243
+ { requestId: 'req_abc' },
1244
+ { min: 0, max: 9, algorithm: 'murmur' } // 10 servers
1245
+ );
1246
+
1247
+ // This will throw an error (WebCrypto not supported in sync mode)
1248
+ // const invalid = hashery.toNumberSync({ user: 'john' }, { algorithm: 'SHA-256' }); // ❌
1249
+ ```
1250
+
1251
+ ## `loadProviders(providers?, options?)`
1252
+
1253
+ Loads hash providers into the Hashery instance. This allows you to add custom hash providers or replace the default ones.
1254
+
1255
+ **Parameters:**
1256
+ - `providers` (Array<HashProvider>, optional) - Array of hash providers to add
1257
+ - `options` (HasheryLoadProviderOptions, optional) - Options object
1258
+ - `includeBase` (boolean) - Whether to include base providers (default: true)
1259
+
1260
+ **Returns:** `void`
1261
+
1262
+ **Example:**
1263
+
1264
+ ```typescript
1265
+ const hashery = new Hashery();
1266
+
1267
+ // Add a custom provider
1268
+ const customProvider = {
1269
+ name: 'custom',
1270
+ toHash: async (data: BufferSource) => 'custom-hash'
1271
+ };
1272
+
1273
+ hashery.loadProviders([customProvider]);
1274
+
1275
+ // Load without base providers
1276
+ hashery.loadProviders([customProvider], { includeBase: false });
1277
+ ```
1278
+
1279
+ # API - Types
1280
+
1281
+ ## `HashAlgorithm`
1282
+
1283
+ A string literal union type representing all built-in hash algorithm names. Provides autocomplete in IDEs while still accepting custom provider names as strings.
1284
+
1285
+ **Type:** `"SHA-256" | "SHA-384" | "SHA-512" | "djb2" | "fnv1" | "murmur" | "crc32"`
1286
+
1287
+ ```typescript
1288
+ import { Hashery, type HashAlgorithm } from 'hashery';
1289
+
1290
+ const hashery = new Hashery();
1291
+
1292
+ // Use the type for your own variables and functions
1293
+ const algorithm: HashAlgorithm = 'SHA-256';
1294
+ const hash = await hashery.toHash({ data: 'example' }, { algorithm });
1295
+
1296
+ // All option fields accept HashAlgorithm with full autocomplete
1297
+ const hashery2 = new Hashery({ defaultAlgorithm: 'SHA-512' }); // autocomplete for algorithm names
1298
+ ```
1299
+
1300
+ # Benchmarks
1301
+
1302
+ Overall view of the current algorithm's and their performance using simple hashing with random data. `Sync` is when we use `toHashSync` and `Async` is the `toHash` function which requires `await`.
1303
+
1304
+ **NOTE: Many of these are not secure and should be used only for object hashing. Read about each one in the documentation and pick what works best for your use case.**
1305
+
1306
+ ## toHash
1307
+ | name | summary | ops/sec | time/op | margin | samples |
1308
+ |-----------------|:---------:|----------:|----------:|:--------:|----------:|
1309
+ | DJB2 Sync | 🥇 | 649K | 2µs | ±0.01% | 645K |
1310
+ | FNV1 Sync | -0.64% | 644K | 2µs | ±0.01% | 635K |
1311
+ | CRC32 Sync | -1.4% | 639K | 2µs | ±0.02% | 615K |
1312
+ | MURMUR Sync | -2.3% | 634K | 2µs | ±0.01% | 629K |
1313
+ | CRC32 Async | -19% | 524K | 2µs | ±0.02% | 514K |
1314
+ | SHA-384 Async | -20% | 519K | 2µs | ±0.03% | 481K |
1315
+ | MURMUR Async | -20% | 518K | 2µs | ±0.02% | 512K |
1316
+ | SHA-512 Async | -21% | 513K | 2µs | ±0.03% | 473K |
1317
+ | SHA-256 Async | -21% | 513K | 2µs | ±0.03% | 472K |
1318
+ | DJB2 Async | -21% | 512K | 2µs | ±0.02% | 504K |
1319
+ | FNV1 Async | -22% | 508K | 2µs | ±0.02% | 501K |
1320
+
1321
+ ## toNumber
1322
+ | name | summary | ops/sec | time/op | margin | samples |
1323
+ |-----------------|:---------:|----------:|----------:|:--------:|----------:|
1324
+ | CRC32 Sync | 🥇 | 601K | 2µs | ±0.01% | 591K |
1325
+ | DJB2 Sync | -0.51% | 598K | 2µs | ±0.01% | 588K |
1326
+ | MURMUR Sync | -1.4% | 593K | 2µs | ±0.02% | 582K |
1327
+ | FNV1 Sync | -2% | 589K | 2µs | ±0.01% | 583K |
1328
+ | CRC32 Async | -24% | 457K | 2µs | ±0.02% | 446K |
1329
+ | DJB2 Async | -25% | 449K | 2µs | ±0.02% | 441K |
1330
+ | MURMUR Async | -25% | 448K | 2µs | ±0.02% | 434K |
1331
+ | SHA-512 Async | -27% | 439K | 2µs | ±0.03% | 404K |
1332
+ | SHA-384 Async | -27% | 437K | 2µs | ±0.03% | 406K |
1333
+ | SHA-256 Async | -28% | 433K | 2µs | ±0.03% | 404K |
1334
+ | FNV1 Async | -35% | 392K | 3µs | ±0.08% | 296K |
1335
+
1336
+ ## Hashery vs Others
1337
+ | name | summary | ops/sec | time/op | margin | samples |
1338
+ |---------------------------|:---------:|----------:|----------:|:--------:|----------:|
1339
+ | node:crypto SHA-256 | 🥇 | 529K | 2µs | ±0.03% | 470K |
1340
+ | Hashery SHA-512 (Cache) | -3.7% | 509K | 2µs | ±0.03% | 473K |
1341
+ | Hashery SHA-384 (Cache) | -4.7% | 505K | 2µs | ±0.03% | 471K |
1342
+ | Hashery SHA-256 (Cache) | -4.7% | 504K | 2µs | ±0.03% | 471K |
1343
+ | node:crypto SHA-512 | -5% | 502K | 2µs | ±0.02% | 471K |
1344
+ | node:crypto SHA-384 | -5.5% | 500K | 2µs | ±0.02% | 489K |
1345
+ | object-hash SHA1 | -87% | 71K | 14µs | ±0.04% | 70K |
1346
+ | object-hash SHA256 | -87% | 70K | 15µs | ±0.04% | 69K |
1347
+ | Hashery SHA-256 | -88% | 63K | 16µs | ±0.08% | 61K |
1348
+ | Hashery SHA-384 | -89% | 60K | 17µs | ±0.08% | 58K |
1349
+ | Hashery SHA-512 | -89% | 56K | 19µs | ±0.09% | 54K |
1350
+
1351
+ In this benchmark it shows the performance comparison between Hashery, `node:crypto`, and the `object-hash` package. By default `node:crypto` has significant performance natively and doesnt use `async/await` to perform its hash. With caching enabled we start to see the performance become more similar. The `object-hash` package is included for comparison as a popular alternative.
1352
+
1353
+ ## toNumber
1354
+ | name | summary | ops/sec | time/op | margin | samples |
1355
+ |-----------------|:---------:|----------:|----------:|:--------:|----------:|
1356
+ | CRC32 Sync | 🥇 | 601K | 2µs | ±0.01% | 594K |
1357
+ | FNV1 Sync | -0.67% | 597K | 2µs | ±0.01% | 588K |
1358
+ | MURMUR Sync | -0.76% | 597K | 2µs | ±0.01% | 592K |
1359
+ | DJB2 Sync | -1.6% | 592K | 2µs | ±0.02% | 576K |
1360
+ | FNV1 Async | -24% | 456K | 2µs | ±0.02% | 447K |
1361
+ | CRC32 Async | -25% | 453K | 2µs | ±0.03% | 426K |
1362
+ | DJB2 Async | -25% | 451K | 2µs | ±0.02% | 440K |
1363
+ | MURMUR Async | -28% | 433K | 2µs | ±0.03% | 420K |
1364
+ | SHA-384 Async | -28% | 432K | 3µs | ±0.03% | 394K |
1365
+ | SHA-256 Async | -29% | 425K | 3µs | ±0.03% | 393K |
1366
+ | SHA-512 Async | -29% | 425K | 3µs | ±0.04% | 384K |
1367
+
1368
+ # Code of Conduct and Contributing
1369
+ Please use our [Code of Conduct](CODE_OF_CONDUCT.md) and [Contributing](CONTRIBUTING.md) guidelines for development and testing. We appreciate your contributions!
1370
+
1371
+ # License and Copyright
1372
+
1373
+ [MIT](LICENSE) & © [Jared Wray](https://jaredwray.com)