@fedify/fedify 1.9.6 → 1.9.8

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 (274) hide show
  1. package/dist/{actor-CEGEmRll.js → actor-BTA45fXF.js} +1205 -2768
  2. package/dist/{actor-Ydzhc8dj.d.cts → actor-Be-68iJP.d.cts} +3 -3
  3. package/dist/{actor-C1Euqngb.d.ts → actor-C5AY0Tno.d.ts} +3 -3
  4. package/dist/{actor-DbpZ6pzg.js → actor-DGa1EWaV.mjs} +8 -15
  5. package/dist/{actor-DlS-Q8hE.cjs → actor-DxfJk4lY.cjs} +3112 -4674
  6. package/dist/{assert-MZs1qjMx.js → assert-DikXweDx.mjs} +5 -9
  7. package/dist/{assert_equals-DSbWqCm3.js → assert_equals-Ew3jOFa3.mjs} +55 -69
  8. package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-C4Ri6VuN.mjs} +5 -9
  9. package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-C50x8tnw.mjs} +5 -9
  10. package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals--wG9hV7u.mjs} +6 -13
  11. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-CJC9ThS-.mjs} +6 -11
  12. package/dist/{assert_throws-BOO88avQ.js → assert_throws-BIL7gChy.mjs} +6 -10
  13. package/dist/{authdocloader-DUQcOTRS.js → authdocloader-BC2rYCy1.mjs} +9 -14
  14. package/dist/{authdocloader-CT_V4Z7G.cjs → authdocloader-BrhFB421.cjs} +14 -22
  15. package/dist/{authdocloader-BLqMyboS.js → authdocloader-CqtNsX_N.js} +8 -15
  16. package/dist/{builder-BO61xeXE.js → builder-CIkAhIGC.mjs} +31 -40
  17. package/dist/{client-DF8anIB5.d.ts → client-D8OSiPBT.d.ts} +2 -2
  18. package/dist/{client-UG5wpNhG.js → client-MXqit6c-.mjs} +11 -15
  19. package/dist/{client-DjT_tegg.d.cts → client-T0VFOdMw.d.cts} +2 -2
  20. package/dist/{collection-CSzG2j1P.js → collection-BD6-SZ6O.mjs} +7 -12
  21. package/dist/compat/mod.cjs +5 -8
  22. package/dist/compat/mod.d.cts +78 -12
  23. package/dist/compat/mod.d.ts +78 -12
  24. package/dist/compat/mod.js +4 -8
  25. package/dist/compat/transformers.test.mjs +62 -0
  26. package/dist/{context-CwUAkopp.d.cts → context-CACMqDzl.d.cts} +33 -26
  27. package/dist/{context-CXUibY4L.d.ts → context-K4cCphQj.d.ts} +33 -26
  28. package/dist/{denokv-Bv33Xxea.js → denokv-CoSB_Eps.mjs} +22 -11
  29. package/dist/{docloader-BIFI3OS7.cjs → docloader-BVuUhBLI.cjs} +112 -212
  30. package/dist/{docloader-fJgJeqiX.js → docloader-BoXhusJ1.js} +17 -151
  31. package/dist/{docloader-CxWcuWqQ.d.ts → docloader-DSaLRXEA.d.ts} +2 -7
  32. package/dist/{docloader-D-MrRyHl.d.cts → docloader-DpGRDZrn.d.cts} +2 -7
  33. package/dist/{esm-C1EfGjSS.js → esm-BHJ7sdNg.mjs} +49 -85
  34. package/dist/federation/{builder.test.js → builder.test.mjs} +22 -41
  35. package/dist/federation/collection.test.d.mts +2 -0
  36. package/dist/federation/collection.test.mjs +21 -0
  37. package/dist/federation/handler.test.d.mts +2 -0
  38. package/dist/federation/{handler.test.js → handler.test.mjs} +22 -49
  39. package/dist/federation/idempotency.test.d.mts +2 -0
  40. package/dist/federation/{idempotency.test.js → idempotency.test.mjs} +29 -59
  41. package/dist/federation/inbox.test.d.mts +2 -0
  42. package/dist/federation/{inbox.test.js → inbox.test.mjs} +10 -15
  43. package/dist/federation/keycache.test.d.mts +2 -0
  44. package/dist/federation/{keycache.test.js → keycache.test.mjs} +13 -18
  45. package/dist/federation/kv.test.d.mts +2 -0
  46. package/dist/federation/{kv.test.js → kv.test.mjs} +9 -20
  47. package/dist/federation/middleware.test.d.mts +2 -0
  48. package/dist/federation/{middleware.test.js → middleware.test.mjs} +182 -197
  49. package/dist/federation/mod.cjs +223 -21
  50. package/dist/federation/mod.d.cts +4 -13
  51. package/dist/federation/mod.d.ts +4 -13
  52. package/dist/federation/mod.js +218 -18
  53. package/dist/federation/mq.test.d.mts +2 -0
  54. package/dist/federation/{mq.test.js → mq.test.mjs} +23 -38
  55. package/dist/federation/retry.test.d.mts +2 -0
  56. package/dist/federation/{retry.test.js → retry.test.mjs} +9 -14
  57. package/dist/federation/router.test.d.mts +2 -0
  58. package/dist/federation/{router.test.js → router.test.mjs} +12 -19
  59. package/dist/federation/send.test.d.mts +2 -0
  60. package/dist/federation/{send.test.js → send.test.mjs} +17 -26
  61. package/dist/{http-wsGR6KkT.d.ts → http-BZpls--H.d.ts} +5 -9
  62. package/dist/{http-CR-Eg1Uq.js → http-Bu5ZNlhZ.mjs} +16 -32
  63. package/dist/{http-B1_DzfAU.d.cts → http-C7WoprmE.d.cts} +5 -9
  64. package/dist/{http-BgopPF-8.cjs → http-DKw-O_VY.cjs} +51 -68
  65. package/dist/{http-05HxN-lp.js → http-VJbz6sKD.js} +17 -33
  66. package/dist/{inbox-DcJN1cxM.js → inbox-DkbTULXE.mjs} +17 -25
  67. package/dist/key-4fu6v0Jf.mjs +5 -0
  68. package/dist/{key-DjS1X9TG.cjs → key-B-wFdaPB.cjs} +42 -50
  69. package/dist/{key-ibMO03_0.js → key-BNMK_IVr.mjs} +12 -18
  70. package/dist/key-CancShOo.cjs +4 -0
  71. package/dist/{key-CPJcJjp-.js → key-DK3o0FEH.js} +19 -19
  72. package/dist/{keycache-CMUfqYqr.js → keycache-D-Vj8z88.mjs} +6 -10
  73. package/dist/{keys-IZ5050fT.js → keys-B27nVeIs.mjs} +6 -10
  74. package/dist/{kv-C7sopW2E.d.ts → kv-Bq9QLKm5.d.ts} +1 -1
  75. package/dist/{kv-CRZrzyXm.js → kv-DM1zFCtL.mjs} +6 -10
  76. package/dist/{kv-63Cil1MD.d.cts → kv-GIrOktyG.d.cts} +1 -1
  77. package/dist/{ld-DHNA2RSQ.js → ld-6jAVu3jV.mjs} +17 -31
  78. package/dist/{lookup-CKZfuyxA.js → lookup-BaU75j-d.js} +5 -11
  79. package/dist/{lookup-C4_dVYz7.cjs → lookup-BiIPmTwB.cjs} +16 -23
  80. package/dist/{lookup-BMAWLsP2.js → lookup-DmeJ8WUw.mjs} +8 -17
  81. package/dist/middleware-9ByEpBvV.cjs +4 -0
  82. package/dist/{middleware-CGbvIGvy.cjs → middleware-C188G4Go.cjs} +494 -547
  83. package/dist/{middleware-DrhEvfTo.js → middleware-Db1yZQaT.mjs} +276 -321
  84. package/dist/{middleware-ODfDRN3q.js → middleware-Do06X21v.js} +349 -393
  85. package/dist/middleware-DrfZEjyc.mjs +5 -0
  86. package/dist/{mod-CDObsV1d.d.ts → mod-BSwc3_rD.d.ts} +3 -3
  87. package/dist/{mod-DBzN0aCM.d.ts → mod-BTNpXcPj.d.ts} +2 -2
  88. package/dist/{mod-fjqfsrty.d.cts → mod-Chb_NKPp.d.cts} +4 -4
  89. package/dist/{mod-DgcYoyZK.d.ts → mod-DHoc3toL.d.ts} +4 -4
  90. package/dist/{mod-jQ4OODsl.d.cts → mod-DIMx6YjJ.d.cts} +2 -2
  91. package/dist/{mod-BUbqxBev.d.cts → mod-HElaq2UB.d.cts} +3 -3
  92. package/dist/mod.cjs +31 -33
  93. package/dist/mod.d.cts +15 -17
  94. package/dist/mod.d.ts +15 -17
  95. package/dist/mod.js +20 -23
  96. package/dist/{mq-B7R1Q-M5.d.cts → mq-CrItclRD.d.cts} +1 -1
  97. package/dist/{mq-CRGm1e_F.d.ts → mq-D_ZZRdby.d.ts} +1 -1
  98. package/dist/nodeinfo/client.test.d.mts +2 -0
  99. package/dist/nodeinfo/{client.test.js → client.test.mjs} +23 -45
  100. package/dist/nodeinfo/handler.test.d.mts +2 -0
  101. package/dist/nodeinfo/{handler.test.js → handler.test.mjs} +14 -43
  102. package/dist/nodeinfo/mod.cjs +5 -9
  103. package/dist/nodeinfo/mod.d.cts +2 -5
  104. package/dist/nodeinfo/mod.d.ts +2 -5
  105. package/dist/nodeinfo/mod.js +4 -9
  106. package/dist/nodeinfo/semver.test.d.mts +2 -0
  107. package/dist/nodeinfo/{semver.test.js → semver.test.mjs} +28 -51
  108. package/dist/nodeinfo/types.test.d.mts +2 -0
  109. package/dist/nodeinfo/{types.test.js → types.test.mjs} +10 -21
  110. package/dist/{owner-DDHsHYQO.js → owner-CKuGt_T9.mjs} +10 -13
  111. package/dist/{owner-BbeUDvOu.d.ts → owner-DPAPnB0R.d.ts} +4 -4
  112. package/dist/{owner-6KSEp9eV.d.cts → owner-_rFs0ik_.d.cts} +4 -4
  113. package/dist/{proof-V1uQaB2y.js → proof-CmTtG_t-.js} +33 -57
  114. package/dist/{proof-CX7ujFFX.cjs → proof-DLOy7HYU.cjs} +112 -135
  115. package/dist/{proof-exgGRW88.js → proof-mJLL2gSA.mjs} +20 -32
  116. package/dist/{retry-D4GJ670a.js → retry-Ddbq3AcK.mjs} +4 -7
  117. package/dist/rolldown-runtime-C7fyD9f2.js +15 -0
  118. package/dist/runtime/authdocloader.test.d.mts +2 -0
  119. package/dist/runtime/{authdocloader.test.js → authdocloader.test.mjs} +16 -28
  120. package/dist/runtime/docloader.test.d.mts +2 -0
  121. package/dist/runtime/{docloader.test.js → docloader.test.mjs} +52 -72
  122. package/dist/runtime/key.test.d.mts +2 -0
  123. package/dist/runtime/{key.test.js → key.test.mjs} +27 -57
  124. package/dist/runtime/langstr.test.d.mts +2 -0
  125. package/dist/runtime/{langstr.test.js → langstr.test.mjs} +9 -19
  126. package/dist/runtime/link.test.d.mts +2 -0
  127. package/dist/runtime/{link.test.js → link.test.mjs} +7 -11
  128. package/dist/runtime/mod.cjs +7 -13
  129. package/dist/runtime/mod.d.cts +103 -6
  130. package/dist/runtime/mod.d.ts +103 -6
  131. package/dist/runtime/mod.js +6 -13
  132. package/dist/runtime/multibase/multibase.test.d.mts +2 -0
  133. package/dist/runtime/multibase/{multibase.test.js → multibase.test.mjs} +16 -33
  134. package/dist/runtime/url.test.d.mts +2 -0
  135. package/dist/runtime/{url.test.js → url.test.mjs} +10 -15
  136. package/dist/{semver-dArNLkR9.js → semver-CgD82xxg.mjs} +13 -28
  137. package/dist/{send-BfMYakUE.js → send-BsQbGuw4.mjs} +7 -12
  138. package/dist/sig/http.test.d.mts +2 -0
  139. package/dist/sig/{http.test.js → http.test.mjs} +119 -203
  140. package/dist/sig/key.test.d.mts +2 -0
  141. package/dist/sig/{key.test.js → key.test.mjs} +13 -22
  142. package/dist/sig/ld.test.d.mts +2 -0
  143. package/dist/sig/{ld.test.js → ld.test.mjs} +24 -39
  144. package/dist/sig/mod.cjs +7 -13
  145. package/dist/sig/mod.d.cts +3 -7
  146. package/dist/sig/mod.d.ts +3 -7
  147. package/dist/sig/mod.js +6 -13
  148. package/dist/sig/owner.test.d.mts +2 -0
  149. package/dist/sig/owner.test.mjs +39 -0
  150. package/dist/sig/proof.test.d.mts +2 -0
  151. package/dist/sig/{proof.test.js → proof.test.mjs} +18 -31
  152. package/dist/{std__assert-X-_kMxKM.js → std__assert-2v7gYiZp.mjs} +13 -24
  153. package/dist/testing/docloader.test.d.mts +2 -0
  154. package/dist/testing/docloader.test.mjs +12 -0
  155. package/dist/testing/{mod.d.ts → mod.d.mts} +371 -541
  156. package/dist/testing/mod.mjs +5 -0
  157. package/dist/{testing-RPOc_gVG.js → testing-DS3gcq8V.mjs} +27 -35
  158. package/dist/{transformers-CoBS-oFG.cjs → transformers-BM0M8hnW.cjs} +20 -25
  159. package/dist/{transformers-BFT6d7J5.js → transformers-BV4OeK9o.js} +3 -7
  160. package/dist/{types-Cptev2nt.js → types-BXfL-dsX.js} +18 -36
  161. package/dist/{types-BIgY6c-l.js → types-CAnkAQGM.mjs} +5 -9
  162. package/dist/{types-CGnM1vft.cjs → types-DpM4FhjW.cjs} +45 -64
  163. package/dist/vocab/actor.test.d.mts +2 -0
  164. package/dist/vocab/{actor.test.js → actor.test.mjs} +308 -550
  165. package/dist/vocab/cjs.test.d.mts +2 -0
  166. package/dist/vocab/cjs.test.mjs +14 -0
  167. package/dist/vocab/lookup.test.d.mts +2 -0
  168. package/dist/vocab/{lookup.test.js → lookup.test.mjs} +29 -45
  169. package/dist/vocab/mod.cjs +251 -16
  170. package/dist/vocab/mod.d.cts +3 -5
  171. package/dist/vocab/mod.d.ts +3 -5
  172. package/dist/vocab/mod.js +244 -10
  173. package/dist/vocab/type.test.d.mts +2 -0
  174. package/dist/vocab/type.test.mjs +16 -0
  175. package/dist/vocab/vocab.test.d.mts +2 -0
  176. package/dist/vocab/{vocab.test.js → vocab.test.mjs} +178 -311
  177. package/dist/{vocab-CDHNj5zp.d.ts → vocab-BLvSEtuz.d.cts} +2 -4
  178. package/dist/{type-COPv6pMi.js → vocab-DuW9rL1h.mjs} +1177 -2871
  179. package/dist/{vocab-Cfs0937i.d.cts → vocab-lhCS9lzq.d.ts} +4 -2
  180. package/dist/webfinger/handler.test.d.mts +2 -0
  181. package/dist/webfinger/{handler.test.js → handler.test.mjs} +23 -56
  182. package/dist/webfinger/lookup.test.d.mts +2 -0
  183. package/dist/webfinger/{lookup.test.js → lookup.test.mjs} +13 -27
  184. package/dist/webfinger/mod.cjs +5 -9
  185. package/dist/webfinger/mod.d.cts +1 -3
  186. package/dist/webfinger/mod.d.ts +1 -3
  187. package/dist/webfinger/mod.js +4 -9
  188. package/dist/x/cfworkers.cjs +25 -14
  189. package/dist/x/cfworkers.d.cts +33 -6
  190. package/dist/x/cfworkers.d.ts +33 -6
  191. package/dist/x/cfworkers.js +22 -12
  192. package/dist/x/cfworkers.test.d.mts +2 -0
  193. package/dist/x/{cfworkers.test.js → cfworkers.test.mjs} +28 -26
  194. package/dist/x/hono.cjs +25 -14
  195. package/dist/x/hono.d.cts +1 -11
  196. package/dist/x/hono.d.ts +1 -11
  197. package/dist/x/hono.js +22 -12
  198. package/dist/x/sveltekit.cjs +23 -12
  199. package/dist/x/sveltekit.d.cts +1 -11
  200. package/dist/x/sveltekit.d.ts +1 -11
  201. package/dist/x/sveltekit.js +20 -10
  202. package/package.json +2 -2
  203. package/dist/chunk-DqRYRqnO.cjs +0 -34
  204. package/dist/compat/transformers.test.d.ts +0 -3
  205. package/dist/compat/transformers.test.js +0 -86
  206. package/dist/compat-DmDDELst.cjs +0 -4
  207. package/dist/compat-nxUqe4Z-.js +0 -4
  208. package/dist/federation/builder.test.d.ts +0 -3
  209. package/dist/federation/collection.test.d.ts +0 -3
  210. package/dist/federation/collection.test.js +0 -35
  211. package/dist/federation/handler.test.d.ts +0 -3
  212. package/dist/federation/idempotency.test.d.ts +0 -3
  213. package/dist/federation/inbox.test.d.ts +0 -3
  214. package/dist/federation/keycache.test.d.ts +0 -3
  215. package/dist/federation/kv.test.d.ts +0 -3
  216. package/dist/federation/middleware.test.d.ts +0 -3
  217. package/dist/federation/mq.test.d.ts +0 -3
  218. package/dist/federation/retry.test.d.ts +0 -3
  219. package/dist/federation/router.test.d.ts +0 -3
  220. package/dist/federation/send.test.d.ts +0 -3
  221. package/dist/federation-D1U8YY9t.js +0 -226
  222. package/dist/federation-H2_En3j5.cjs +0 -244
  223. package/dist/key-BCUd8FWp.js +0 -10
  224. package/dist/key-BUardnTH.cjs +0 -10
  225. package/dist/key-Dr6H_e3K.js +0 -10
  226. package/dist/middleware-BJ83veqi.js +0 -26
  227. package/dist/middleware-CJ4W2ir5.cjs +0 -17
  228. package/dist/middleware-Ve2mHJgo.js +0 -17
  229. package/dist/mod-BcObK1Lz.d.ts +0 -82
  230. package/dist/mod-C2tOeRkN.d.cts +0 -1
  231. package/dist/mod-CIbqfZW0.d.ts +0 -104
  232. package/dist/mod-Dt-G9ZOS.d.cts +0 -102
  233. package/dist/mod-FZd39qVq.d.cts +0 -1
  234. package/dist/mod-mXx9V0q5.d.cts +0 -80
  235. package/dist/nodeinfo/client.test.d.ts +0 -3
  236. package/dist/nodeinfo/handler.test.d.ts +0 -3
  237. package/dist/nodeinfo/semver.test.d.ts +0 -3
  238. package/dist/nodeinfo/types.test.d.ts +0 -3
  239. package/dist/nodeinfo-Co9lJrWl.cjs +0 -4
  240. package/dist/nodeinfo-DfycQ8Wf.js +0 -4
  241. package/dist/runtime/authdocloader.test.d.ts +0 -3
  242. package/dist/runtime/docloader.test.d.ts +0 -3
  243. package/dist/runtime/key.test.d.ts +0 -3
  244. package/dist/runtime/langstr.test.d.ts +0 -3
  245. package/dist/runtime/link.test.d.ts +0 -3
  246. package/dist/runtime/multibase/multibase.test.d.ts +0 -3
  247. package/dist/runtime/url.test.d.ts +0 -3
  248. package/dist/runtime-C58AJWSv.cjs +0 -4
  249. package/dist/runtime-DPYEDf-o.js +0 -4
  250. package/dist/sig/http.test.d.ts +0 -3
  251. package/dist/sig/key.test.d.ts +0 -3
  252. package/dist/sig/ld.test.d.ts +0 -3
  253. package/dist/sig/owner.test.d.ts +0 -3
  254. package/dist/sig/owner.test.js +0 -52
  255. package/dist/sig/proof.test.d.ts +0 -3
  256. package/dist/sig-ByHXzqUi.cjs +0 -4
  257. package/dist/sig-Cj3tk-ig.js +0 -4
  258. package/dist/testing/docloader.test.d.ts +0 -3
  259. package/dist/testing/docloader.test.js +0 -24
  260. package/dist/testing/mod.js +0 -10
  261. package/dist/vocab/actor.test.d.ts +0 -3
  262. package/dist/vocab/lookup.test.d.ts +0 -3
  263. package/dist/vocab/type.test.d.ts +0 -3
  264. package/dist/vocab/type.test.js +0 -25
  265. package/dist/vocab/vocab.test.d.ts +0 -3
  266. package/dist/vocab-BFy1CS5L.cjs +0 -289
  267. package/dist/vocab-BPFiQ650.js +0 -253
  268. package/dist/webfinger/handler.test.d.ts +0 -3
  269. package/dist/webfinger/lookup.test.d.ts +0 -3
  270. package/dist/webfinger-BjOEdFPs.cjs +0 -4
  271. package/dist/webfinger-De_bU0iE.js +0 -4
  272. package/dist/x/cfworkers.test.d.ts +0 -3
  273. /package/dist/{mod-1pDWKvUL.d.ts → compat/transformers.test.d.mts} +0 -0
  274. /package/dist/{mod-g0xFzAP9.d.ts → federation/builder.test.d.mts} +0 -0
@@ -1,21 +1,12 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import "../type-COPv6pMi.js";
7
- import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import { assert } from "../assert-MZs1qjMx.js";
9
- import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-BMAWLsP2.js";
11
- import { test } from "../testing-RPOc_gVG.js";
12
- import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
13
- import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import "../assert_not_equals-f3m3epl3.js";
16
- import "../assert_throws-BOO88avQ.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { t as test } from "../testing-DS3gcq8V.mjs";
5
+ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
+ import { i as assertGreaterOrEqual, r as assertGreater } from "../std__assert-2v7gYiZp.mjs";
7
+ import { n as assertFalse } from "../assert_rejects-CJC9ThS-.mjs";
8
+ import { t as assert } from "../assert-DikXweDx.mjs";
17
9
  import { delay } from "es-toolkit";
18
-
19
10
  //#region src/federation/mq.ts
20
11
  /**
21
12
  * A message queue that processes messages in the same process.
@@ -43,12 +34,12 @@ var InProcessMessageQueue = class {
43
34
  this.#pollIntervalMs = Temporal.Duration.from(options.pollInterval ?? { seconds: 5 }).total("millisecond");
44
35
  }
45
36
  enqueue(message, options) {
46
- const delay$1 = options?.delay == null ? 0 : Math.max(options.delay.total("millisecond"), 0);
47
- if (delay$1 > 0) {
37
+ const delay = options?.delay == null ? 0 : Math.max(options.delay.total("millisecond"), 0);
38
+ if (delay > 0) {
48
39
  setTimeout(() => this.enqueue(message, {
49
40
  ...options,
50
41
  delay: void 0
51
- }), delay$1);
42
+ }), delay);
52
43
  return Promise.resolve();
53
44
  }
54
45
  this.#messages.push(message);
@@ -57,12 +48,12 @@ var InProcessMessageQueue = class {
57
48
  }
58
49
  enqueueMany(messages, options) {
59
50
  if (messages.length === 0) return Promise.resolve();
60
- const delay$1 = options?.delay == null ? 0 : Math.max(options.delay.total("millisecond"), 0);
61
- if (delay$1 > 0) {
51
+ const delay = options?.delay == null ? 0 : Math.max(options.delay.total("millisecond"), 0);
52
+ if (delay > 0) {
62
53
  setTimeout(() => this.enqueueMany(messages, {
63
54
  ...options,
64
55
  delay: void 0
65
- }), delay$1);
56
+ }), delay);
66
57
  return Promise.resolve();
67
58
  }
68
59
  this.#messages.push(...messages);
@@ -72,10 +63,7 @@ var InProcessMessageQueue = class {
72
63
  async listen(handler, options = {}) {
73
64
  const signal = options.signal;
74
65
  while (signal == null || !signal.aborted) {
75
- while (this.#messages.length > 0) {
76
- const message = this.#messages.shift();
77
- await handler(message);
78
- }
66
+ while (this.#messages.length > 0) await handler(this.#messages.shift());
79
67
  await this.#wait(this.#pollIntervalMs, signal);
80
68
  }
81
69
  }
@@ -138,8 +126,7 @@ var ParallelMessageQueue = class ParallelMessageQueue {
138
126
  }
139
127
  async enqueueMany(messages, options) {
140
128
  if (this.queue.enqueueMany == null) {
141
- const results = await Promise.allSettled(messages.map((message) => this.queue.enqueue(message, options)));
142
- const errors = results.filter((r) => r.status === "rejected").map((r) => r.reason);
129
+ const errors = (await Promise.allSettled(messages.map((message) => this.queue.enqueue(message, options)))).filter((r) => r.status === "rejected").map((r) => r.reason);
143
130
  if (errors.length > 1) throw new AggregateError(errors, "Failed to enqueue messages.");
144
131
  else if (errors.length === 1) throw errors[0];
145
132
  return;
@@ -167,7 +154,6 @@ var ParallelMessageQueue = class ParallelMessageQueue {
167
154
  return new Promise((resolve) => setTimeout(resolve, ms));
168
155
  }
169
156
  };
170
-
171
157
  //#endregion
172
158
  //#region src/federation/mq.test.ts
173
159
  test("InProcessMessageQueue", async (t) => {
@@ -227,7 +213,7 @@ test("InProcessMessageQueue", async (t) => {
227
213
  });
228
214
  test("MessageQueue.nativeRetrial", async (t) => {
229
215
  if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") await t.step("DenoKvMessageQueue", async () => {
230
- const { DenoKvMessageQueue } = await import("../denokv-Bv33Xxea.js");
216
+ const { DenoKvMessageQueue } = await import("../denokv-CoSB_Eps.mjs");
231
217
  const mq = new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
232
218
  assert(mq.nativeRetrial);
233
219
  if (Symbol.dispose in mq) {
@@ -260,13 +246,12 @@ test("MessageQueue.nativeRetrial", async (t) => {
260
246
  throw new TypeError("WorkersMessageQueue does not support listen()");
261
247
  }
262
248
  }
263
- const mq = new TestWorkersMessageQueue(new MockQueue());
264
- assert(mq.nativeRetrial);
249
+ assert(new TestWorkersMessageQueue(new MockQueue()).nativeRetrial);
265
250
  });
266
251
  });
267
252
  const queues = { InProcessMessageQueue: () => Promise.resolve(new InProcessMessageQueue()) };
268
253
  if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") {
269
- const { DenoKvMessageQueue } = await import("../denokv-Bv33Xxea.js");
254
+ const { DenoKvMessageQueue } = await import("../denokv-CoSB_Eps.mjs");
270
255
  queues.DenoKvMessageQueue = async () => new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
271
256
  }
272
257
  for (const mqName in queues) test({
@@ -304,8 +289,8 @@ for (const mqName in queues) test({
304
289
  await waitFor(() => messages.length >= 20, 15e3);
305
290
  while (messages.length > 0) messages.pop();
306
291
  await t.step("enqueueMany()", async () => {
307
- const messages$1 = Array.from({ length: 20 }, (_, i) => `Hello, ${i}!`);
308
- await workers.enqueueMany(messages$1);
292
+ const messages = Array.from({ length: 20 }, (_, i) => `Hello, ${i}!`);
293
+ await workers.enqueueMany(messages);
309
294
  });
310
295
  await t.step("listen() [multiple]", async () => {
311
296
  await delay(3e3);
@@ -329,5 +314,5 @@ async function waitFor(predicate, timeoutMs) {
329
314
  if (Date.now() - started > timeoutMs) throw new Error("Timeout");
330
315
  }
331
316
  }
332
-
333
- //#endregion
317
+ //#endregion
318
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
@@ -1,15 +1,10 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import "../type-COPv6pMi.js";
7
- import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-BMAWLsP2.js";
9
- import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
10
- import { test } from "../testing-RPOc_gVG.js";
11
- import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
12
-
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { t as test } from "../testing-DS3gcq8V.mjs";
5
+ import { l as AssertionError, t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
+ import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
7
+ import { t as createExponentialBackoffPolicy } from "../retry-Ddbq3AcK.mjs";
13
8
  //#region src/federation/retry.test.ts
14
9
  test("createExponentialBackoffPolicy()", () => {
15
10
  const policy = createExponentialBackoffPolicy({ maxAttempts: 4 });
@@ -42,5 +37,5 @@ function assertDurationRange(actual, min, max) {
42
37
  const maxDuration = Temporal.Duration.from(max);
43
38
  if (Temporal.Duration.compare(actual, minDuration) < 0 || Temporal.Duration.compare(actual, maxDuration) > 0) throw new AssertionError(`Expected ${actual} to be between ${min} and ${max}`);
44
39
  }
45
-
46
- //#endregion
40
+ //#endregion
41
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
@@ -1,20 +1,13 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import "../type-COPv6pMi.js";
7
- import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import { assert } from "../assert-MZs1qjMx.js";
9
- import "../assert_instance_of-DHz7EHNU.js";
10
- import { Router, RouterError } from "../lookup-BMAWLsP2.js";
11
- import { test } from "../testing-RPOc_gVG.js";
12
- import "../std__assert-X-_kMxKM.js";
13
- import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import "../assert_not_equals-f3m3epl3.js";
16
- import { assertThrows } from "../assert_throws-BOO88avQ.js";
17
-
1
+ import "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { i as RouterError, r as Router } from "../lookup-DmeJ8WUw.mjs";
5
+ import { t as test } from "../testing-DS3gcq8V.mjs";
6
+ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
7
+ import "../std__assert-2v7gYiZp.mjs";
8
+ import { n as assertFalse } from "../assert_rejects-CJC9ThS-.mjs";
9
+ import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
10
+ import { t as assert } from "../assert-DikXweDx.mjs";
18
11
  //#region src/federation/router.test.ts
19
12
  function setUp(options = {}) {
20
13
  const router = new Router(options);
@@ -95,5 +88,5 @@ test("Router.build()", () => {
95
88
  postId: "123"
96
89
  }), "/users/alice/posts/123");
97
90
  });
98
-
99
- //#endregion
91
+ //#endregion
92
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
@@ -1,27 +1,18 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import { Activity, Application, Endpoints, Group, Person, Service } from "../type-COPv6pMi.js";
7
- import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import { assert } from "../assert-MZs1qjMx.js";
9
- import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-BMAWLsP2.js";
11
- import "../actor-DbpZ6pzg.js";
12
- import "../key-CPJcJjp-.js";
13
- import { verifyRequest } from "../http-05HxN-lp.js";
14
- import { doesActorOwnKey } from "../owner-DDHsHYQO.js";
15
- import { extractInboxes, sendActivity } from "../send-BfMYakUE.js";
16
- import { mockDocumentLoader, test } from "../testing-RPOc_gVG.js";
17
- import "../std__assert-X-_kMxKM.js";
18
- import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
19
- import "../assert_is_error-BPGph1Jx.js";
20
- import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
21
- import "../assert_throws-BOO88avQ.js";
22
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-IZ5050fT.js";
23
- import { esm_default } from "../esm-C1EfGjSS.js";
24
-
1
+ import "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { C as Person, E as Service, d as Group, l as Endpoints, r as Application, t as Activity } from "../vocab-DuW9rL1h.mjs";
5
+ import { a as mockDocumentLoader, t as test } from "../testing-DS3gcq8V.mjs";
6
+ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
7
+ import "../std__assert-2v7gYiZp.mjs";
8
+ import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
9
+ import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
10
+ import { t as assert } from "../assert-DikXweDx.mjs";
11
+ import { l as verifyRequest } from "../http-Bu5ZNlhZ.mjs";
12
+ import { t as doesActorOwnKey } from "../owner-CKuGt_T9.mjs";
13
+ import { n as sendActivity, t as extractInboxes } from "../send-BsQbGuw4.mjs";
14
+ import { t as esm_default } from "../esm-BHJ7sdNg.mjs";
15
+ import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-B27nVeIs.mjs";
25
16
  //#region src/federation/send.test.ts
26
17
  test("extractInboxes()", () => {
27
18
  const recipients = [
@@ -214,5 +205,5 @@ test("sendActivity()", async (t) => {
214
205
  });
215
206
  esm_default.hardReset();
216
207
  });
217
-
218
- //#endregion
208
+ //#endregion
209
+ export {};
@@ -1,11 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
4
- import { CryptographicKey, Multikey } from "./vocab-CDHNj5zp.js";
3
+ import { n as DocumentLoader } from "./docloader-DSaLRXEA.js";
4
+ import { B as Multikey, m as CryptographicKey } from "./vocab-lhCS9lzq.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region src/sig/key.d.ts
8
-
9
8
  /**
10
9
  * Generates a key pair which is appropriate for Fedify.
11
10
  * @param algorithm The algorithm to use. Currently only RSASSA-PKCS1-v1_5 and
@@ -130,7 +129,8 @@ type HttpMessageSignaturesSpec =
130
129
  /**
131
130
  * The HTTP Message Signatures (RFC 9421) specification, which is the
132
131
  * finalized standard but not widely adopted yet (as of May 2025).
133
- */ | "rfc9421";
132
+ */
133
+ | "rfc9421";
134
134
  /**
135
135
  * Options for {@link signRequest}.
136
136
  * @since 1.3.0
@@ -247,9 +247,5 @@ interface HttpMessageSignaturesSpecDeterminer {
247
247
  */
248
248
  rememberSpec(origin: string, spec: HttpMessageSignaturesSpec): void | Promise<void>;
249
249
  }
250
- /**
251
- * The options for double-knock requests.
252
- * @since 1.6.0
253
- */
254
250
  //#endregion
255
- export { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest };
251
+ export { signRequest as a, FetchKeyResult as c, fetchKey as d, generateCryptoKeyPair as f, VerifyRequestOptions as i, KeyCache as l, HttpMessageSignaturesSpecDeterminer as n, verifyRequest as o, importJwk as p, SignRequestOptions as r, FetchKeyOptions as s, HttpMessageSignaturesSpec as t, exportJwk as u };
@@ -1,17 +1,14 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { FetchError, deno_default } from "./docloader-fJgJeqiX.js";
6
- import { CryptographicKey } from "./actor-CEGEmRll.js";
7
- import { fetchKey, validateCryptoKey } from "./key-ibMO03_0.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { G as FetchError, ot as name, s as CryptographicKey, st as version } from "./vocab-DuW9rL1h.mjs";
5
+ import { a as validateCryptoKey, n as fetchKey } from "./key-BNMK_IVr.mjs";
8
6
  import { getLogger } from "@logtape/logtape";
9
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
8
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
9
  import { encodeHex } from "byte-encodings/hex";
12
10
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
13
11
  import { Item, decodeDict, encodeItem } from "structured-field-values";
14
-
15
12
  //#region src/sig/http.ts
16
13
  const DEFAULT_MAX_REDIRECTION = 20;
17
14
  /**
@@ -25,9 +22,7 @@ const DEFAULT_MAX_REDIRECTION = 20;
25
22
  */
26
23
  async function signRequest(request, privateKey, keyId, options = {}) {
27
24
  validateCryptoKey(privateKey, "private");
28
- const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
29
- const tracer = tracerProvider.getTracer(deno_default.name, deno_default.version);
30
- return await tracer.startActiveSpan("http_signatures.sign", async (span) => {
25
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer(name, version).startActiveSpan("http_signatures.sign", async (span) => {
31
26
  try {
32
27
  const spec = options.spec ?? "draft-cavage-http-signatures-12";
33
28
  let signed;
@@ -122,9 +117,7 @@ function createRfc9421SignatureBase(request, components, parameters) {
122
117
  * @returns The formatted signature string.
123
118
  */
124
119
  function formatRfc9421Signature(signature, components, parameters) {
125
- const signatureInputValue = `sig1=("${components.join("\" \"")}");${parameters}`;
126
- const signatureValue = `sig1=:${encodeBase64(signature)}:`;
127
- return [signatureInputValue, signatureValue];
120
+ return [`sig1=("${components.join("\" \"")}");${parameters}`, `sig1=:${encodeBase64(signature)}:`];
128
121
  }
129
122
  /**
130
123
  * Parse RFC 9421 Signature-Input header.
@@ -254,9 +247,7 @@ const supportedHashAlgorithms = {
254
247
  * could not be verified.
255
248
  */
256
249
  async function verifyRequest(request, options = {}) {
257
- const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
258
- const tracer = tracerProvider.getTracer(deno_default.name, deno_default.version);
259
- return await tracer.startActiveSpan("http_signatures.verify", async (span) => {
250
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer(name, version).startActiveSpan("http_signatures.verify", async (span) => {
260
251
  if (span.isRecording()) {
261
252
  span.setAttribute(ATTR_HTTP_REQUEST_METHOD, request.method);
262
253
  span.setAttribute(ATTR_URL_FULL, request.url);
@@ -446,8 +437,7 @@ async function verifyRequestDraft(request, span, { documentLoader, contextLoader
446
437
  const message = headerNames.map((name) => `${name}: ` + (name === "(request-target)" ? `${request.method.toLowerCase()} ${new URL(request.url).pathname}` : name === "(created)" ? sigValues.created ?? "" : name === "(expires)" ? sigValues.expires ?? "" : name === "host" ? request.headers.get("host") ?? new URL(request.url).host : request.headers.get(name))).join("\n");
447
438
  const sig = decodeBase64(signature);
448
439
  span?.setAttribute("http_signatures.signature", encodeHex(sig));
449
- const verified = await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key.publicKey, sig, new TextEncoder().encode(message));
450
- if (!verified) {
440
+ if (!await crypto.subtle.verify("RSASSA-PKCS1-v1_5", key.publicKey, sig, new TextEncoder().encode(message))) {
451
441
  if (cached) {
452
442
  logger.debug("Failed to verify with the cached key {keyId}; signature {signature} is invalid. Retrying with the freshly fetched key...", {
453
443
  keyId,
@@ -461,7 +451,7 @@ async function verifyRequestDraft(request, span, { documentLoader, contextLoader
461
451
  currentTime,
462
452
  keyCache: {
463
453
  get: () => Promise.resolve(void 0),
464
- set: async (keyId$1, key$1) => await keyCache?.set(keyId$1, key$1)
454
+ set: async (keyId, key) => await keyCache?.set(keyId, key)
465
455
  }
466
456
  });
467
457
  }
@@ -611,9 +601,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
611
601
  logger.debug("Failed to verify; Content-Digest header required but not found.", { components: sigInput.components });
612
602
  continue;
613
603
  }
614
- const body = await request.arrayBuffer();
615
- const digestValid = await verifyRfc9421ContentDigest(contentDigestHeader, body);
616
- if (!digestValid) {
604
+ if (!await verifyRfc9421ContentDigest(contentDigestHeader, await request.arrayBuffer())) {
617
605
  logger.debug("Failed to verify; Content-Digest verification failed.", { contentDigest: contentDigestHeader });
618
606
  continue;
619
607
  }
@@ -659,8 +647,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
659
647
  const signatureBaseBytes = new TextEncoder().encode(signatureBase);
660
648
  span?.setAttribute("http_signatures.signature", encodeHex(sigBytes));
661
649
  try {
662
- const verified = await crypto.subtle.verify(algorithm, key.publicKey, sigBytes.slice(), signatureBaseBytes);
663
- if (verified) {
650
+ if (await crypto.subtle.verify(algorithm, key.publicKey, sigBytes.slice(), signatureBaseBytes)) {
664
651
  validKey = key;
665
652
  break;
666
653
  } else if (cached) {
@@ -672,7 +659,7 @@ async function verifyRequestRfc9421(request, span, { documentLoader, contextLoad
672
659
  currentTime,
673
660
  keyCache: {
674
661
  get: () => Promise.resolve(void 0),
675
- set: async (keyId, key$1) => await keyCache?.set(keyId, key$1)
662
+ set: async (keyId, key) => await keyCache?.set(keyId, key)
676
663
  },
677
664
  spec: "rfc9421"
678
665
  });
@@ -745,8 +732,7 @@ async function doubleKnockInternal(request, identity, options, redirected = 0, v
745
732
  });
746
733
  if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
747
734
  if (redirected >= DEFAULT_MAX_REDIRECTION) throw new FetchError(request.url, `Too many redirections (${redirected + 1})`);
748
- const location = response.headers.get("Location");
749
- const redirectRequest = createRedirectRequest(request, location, body);
735
+ const redirectRequest = createRedirectRequest(request, response.headers.get("Location"), body);
750
736
  if (visited.has(redirectRequest.url)) throw new FetchError(request.url, `Redirect loop detected: ${redirectRequest.url}`);
751
737
  return doubleKnockInternal(redirectRequest, identity, {
752
738
  ...options,
@@ -776,8 +762,7 @@ async function doubleKnockInternal(request, identity, options, redirected = 0, v
776
762
  });
777
763
  if (response.status >= 300 && response.status < 400 && response.headers.has("Location")) {
778
764
  if (redirected >= DEFAULT_MAX_REDIRECTION) throw new FetchError(request.url, `Too many redirections (${redirected + 1})`);
779
- const location = response.headers.get("Location");
780
- const redirectRequest = createRedirectRequest(request, location, body);
765
+ const redirectRequest = createRedirectRequest(request, response.headers.get("Location"), body);
781
766
  if (visited.has(redirectRequest.url)) throw new FetchError(request.url, `Redirect loop detected: ${redirectRequest.url}`);
782
767
  return doubleKnockInternal(redirectRequest, identity, {
783
768
  ...options,
@@ -814,6 +799,5 @@ function timingSafeEqual(a, b) {
814
799
  result |= lenA ^ lenB;
815
800
  return result === 0;
816
801
  }
817
-
818
802
  //#endregion
819
- export { doubleKnock, signRequest, verifyRequest };
803
+ export { parseRfc9421Signature as a, timingSafeEqual as c, formatRfc9421SignatureParameters as i, verifyRequest as l, doubleKnock as n, parseRfc9421SignatureInput as o, formatRfc9421Signature as r, signRequest as s, createRfc9421SignatureBase as t };
@@ -1,9 +1,8 @@
1
- import { DocumentLoader } from "./docloader-D-MrRyHl.cjs";
2
- import { CryptographicKey, Multikey } from "./vocab-Cfs0937i.cjs";
1
+ import { n as DocumentLoader } from "./docloader-DpGRDZrn.cjs";
2
+ import { B as Multikey, m as CryptographicKey } from "./vocab-BLvSEtuz.cjs";
3
3
  import { TracerProvider } from "@opentelemetry/api";
4
4
 
5
5
  //#region src/sig/key.d.ts
6
-
7
6
  /**
8
7
  * Generates a key pair which is appropriate for Fedify.
9
8
  * @param algorithm The algorithm to use. Currently only RSASSA-PKCS1-v1_5 and
@@ -128,7 +127,8 @@ type HttpMessageSignaturesSpec =
128
127
  /**
129
128
  * The HTTP Message Signatures (RFC 9421) specification, which is the
130
129
  * finalized standard but not widely adopted yet (as of May 2025).
131
- */ | "rfc9421";
130
+ */
131
+ | "rfc9421";
132
132
  /**
133
133
  * Options for {@link signRequest}.
134
134
  * @since 1.3.0
@@ -245,9 +245,5 @@ interface HttpMessageSignaturesSpecDeterminer {
245
245
  */
246
246
  rememberSpec(origin: string, spec: HttpMessageSignaturesSpec): void | Promise<void>;
247
247
  }
248
- /**
249
- * The options for double-knock requests.
250
- * @since 1.6.0
251
- */
252
248
  //#endregion
253
- export { FetchKeyOptions, FetchKeyResult, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignRequestOptions, VerifyRequestOptions, exportJwk, fetchKey, generateCryptoKeyPair, importJwk, signRequest, verifyRequest };
249
+ export { signRequest as a, FetchKeyResult as c, fetchKey as d, generateCryptoKeyPair as f, VerifyRequestOptions as i, KeyCache as l, HttpMessageSignaturesSpecDeterminer as n, verifyRequest as o, importJwk as p, SignRequestOptions as r, FetchKeyOptions as s, HttpMessageSignaturesSpec as t, exportJwk as u };