@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,136 +1,12 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
5
3
  import { getLogger } from "@logtape/logtape";
6
4
  import process from "node:process";
7
5
  import { lookup } from "node:dns/promises";
8
6
  import { isIP } from "node:net";
9
-
10
7
  //#region deno.json
11
8
  var name = "@fedify/fedify";
12
- var version = "1.9.6";
13
- var license = "MIT";
14
- var exports = {
15
- ".": "./src/mod.ts",
16
- "./compat": "./src/compat/mod.ts",
17
- "./federation": "./src/federation/mod.ts",
18
- "./nodeinfo": "./src/nodeinfo/mod.ts",
19
- "./runtime": "./src/runtime/mod.ts",
20
- "./sig": "./src/sig/mod.ts",
21
- "./testing": "./src/testing/mod.ts",
22
- "./vocab": "./src/vocab/mod.ts",
23
- "./webfinger": "./src/webfinger/mod.ts",
24
- "./x/cfworkers": "./src/x/cfworkers.ts",
25
- "./x/denokv": "./src/x/denokv.ts",
26
- "./x/fresh": "./src/x/fresh.ts",
27
- "./x/hono": "./src/x/hono.ts",
28
- "./x/sveltekit": "./src/x/sveltekit.ts"
29
- };
30
- var imports = {
31
- "@cfworker/json-schema": "npm:@cfworker/json-schema@^4.1.1",
32
- "@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
33
- "@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
34
- "@opentelemetry/semantic-conventions": "npm:@opentelemetry/semantic-conventions@^1.27.0",
35
- "@phensley/language-tag": "npm:@phensley/language-tag@^1.9.0",
36
- "@std/assert": "jsr:@std/assert@^0.226.0",
37
- "@std/testing": "jsr:@std/testing@^0.224.0",
38
- "@std/url": "jsr:@std/url@^0.225.1",
39
- "asn1js": "npm:asn1js@^3.0.5",
40
- "byte-encodings": "npm:byte-encodings@^1.0.11",
41
- "es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.39.5",
42
- "fast-check": "npm:fast-check@^3.22.0",
43
- "fetch-mock": "npm:fetch-mock@^12.5.2",
44
- "json-canon": "npm:json-canon@^1.0.1",
45
- "jsonld": "npm:jsonld@^8.3.2",
46
- "multicodec": "npm:multicodec@^3.2.1",
47
- "pkijs": "npm:pkijs@^3.2.4",
48
- "structured-field-values": "npm:structured-field-values@^2.0.4",
49
- "uri-template-router": "npm:uri-template-router@^1.0.0",
50
- "url-template": "npm:url-template@^3.1.1"
51
- };
52
- var include = ["src/vocab/vocab.ts"];
53
- var exclude = [
54
- ".test-report.xml",
55
- "apidoc/",
56
- "dist/",
57
- "node_modules/",
58
- "npm/",
59
- "pnpm-lock.yaml",
60
- "src/cfworkers/dist/",
61
- "src/cfworkers/fixtures/",
62
- "src/cfworkers/imports.ts",
63
- "src/cfworkers/README.md",
64
- "src/cfworkers/server.ts",
65
- "src/cfworkers/server.js",
66
- "src/cfworkers/server.js.map",
67
- "src/codegen/schema.yaml",
68
- "src/vocab/*.yaml",
69
- "!src/vocab/vocab.ts"
70
- ];
71
- var tasks = {
72
- "codegen": "GENPATH=vocab-$(deno eval \"console.log(crypto.randomUUID());\").ts && deno run --allow-read --allow-write --check src/codegen/main.ts src/vocab/ ../runtime/ src/vocab/$GENPATH && deno fmt src/vocab/$GENPATH && mv src/vocab/$GENPATH src/vocab/vocab.ts && deno cache src/vocab/vocab.ts && deno check src/vocab/vocab.ts",
73
- "cache": {
74
- "command": "deno cache src/mod.ts",
75
- "dependencies": ["codegen"]
76
- },
77
- "check": {
78
- "command": "deno fmt --check && deno lint && deno check src/**/*.ts",
79
- "dependencies": ["codegen"]
80
- },
81
- "test": {
82
- "command": "deno test --check --doc --allow-read --allow-write --allow-env --unstable-kv --trace-leaks --parallel",
83
- "dependencies": ["codegen"]
84
- },
85
- "coverage": "deno task test --clean --coverage && deno coverage --html coverage",
86
- "bench": {
87
- "command": "deno bench --allow-read --allow-write --allow-net --allow-env --allow-run --unstable-kv",
88
- "dependencies": ["codegen"]
89
- },
90
- "apidoc": {
91
- "command": "deno doc --html --name=Fedify --output=apidoc/ src/mod.ts",
92
- "dependencies": ["codegen"]
93
- },
94
- "publish": {
95
- "command": "deno publish",
96
- "dependencies": ["codegen"]
97
- },
98
- "pnpm:install": "pnpm install",
99
- "pnpm:build": {
100
- "command": "pnpm exec tsdown",
101
- "dependencies": ["codegen", "pnpm:install"]
102
- },
103
- "test:node": {
104
- "command": "cd dist/ && node --test",
105
- "dependencies": ["pnpm:build"]
106
- },
107
- "test:bun": {
108
- "command": "cd dist/ && bun test --timeout 60000",
109
- "dependencies": ["pnpm:build"]
110
- },
111
- "test:cfworkers": {
112
- "command": "pnpm exec wrangler deploy --dry-run --outdir src/cfworkers && node --import=tsx src/cfworkers/client.ts",
113
- "dependencies": ["pnpm:build"]
114
- },
115
- "test-all": { "dependencies": [
116
- "check",
117
- "test",
118
- "test:node",
119
- "test:bun",
120
- "test:cfworkers"
121
- ] }
122
- };
123
- var deno_default = {
124
- name,
125
- version,
126
- license,
127
- exports,
128
- imports,
129
- include,
130
- exclude,
131
- tasks
132
- };
133
-
9
+ var version = "1.9.8";
134
10
  //#endregion
135
11
  //#region src/runtime/contexts.ts
136
12
  const preloadedContexts = {
@@ -4274,8 +4150,6 @@ const preloadedContexts = {
4274
4150
  }
4275
4151
  } }
4276
4152
  };
4277
- var contexts_default = preloadedContexts;
4278
-
4279
4153
  //#endregion
4280
4154
  //#region src/runtime/link.ts
4281
4155
  const parametersNeedLowerCase = ["rel", "type"];
@@ -4457,7 +4331,6 @@ var HttpHeaderLink = class HttpHeaderLink {
4457
4331
  return new this(...inputs).toString();
4458
4332
  }
4459
4333
  };
4460
-
4461
4334
  //#endregion
4462
4335
  //#region src/runtime/url.ts
4463
4336
  var UrlError = class extends Error {
@@ -4476,8 +4349,7 @@ async function validatePublicUrl(url) {
4476
4349
  if (hostname.startsWith("[") && hostname.endsWith("]")) hostname = hostname.substring(1, hostname.length - 2);
4477
4350
  if (hostname === "localhost") throw new UrlError("Localhost is not allowed");
4478
4351
  if ("Deno" in globalThis && !isIP(hostname)) {
4479
- const netPermission = await Deno.permissions.query({ name: "net" });
4480
- if (netPermission.state !== "granted") return;
4352
+ if ((await Deno.permissions.query({ name: "net" })).state !== "granted") return;
4481
4353
  }
4482
4354
  if ("Bun" in globalThis) {
4483
4355
  if (hostname === "example.com" || hostname.endsWith(".example.com")) return;
@@ -4513,10 +4385,8 @@ function expandIPv6Address(address) {
4513
4385
  if (address.startsWith("::")) address = "0000" + address;
4514
4386
  if (address.endsWith("::")) address = address + "0000";
4515
4387
  address = address.replace("::", ":0000".repeat(8 - (address.match(/:/g) || []).length) + ":");
4516
- const parts = address.split(":");
4517
- return parts.map((part) => part.padStart(4, "0")).join(":");
4388
+ return address.split(":").map((part) => part.padStart(4, "0")).join(":");
4518
4389
  }
4519
-
4520
4390
  //#endregion
4521
4391
  //#region src/runtime/docloader.ts
4522
4392
  const logger = getLogger([
@@ -4582,7 +4452,7 @@ function logRequest(request) {
4582
4452
  * @throws {FetchError} If the response is not OK.
4583
4453
  * @internal
4584
4454
  */
4585
- async function getRemoteDocument(url, response, fetch$1) {
4455
+ async function getRemoteDocument(url, response, fetch) {
4586
4456
  const documentUrl = response.url === "" ? url : response.url;
4587
4457
  const docUrl = new URL(documentUrl);
4588
4458
  if (!response.ok) {
@@ -4620,7 +4490,7 @@ async function getRemoteDocument(url, response, fetch$1) {
4620
4490
  alternateUrl: altUri.href,
4621
4491
  url: documentUrl
4622
4492
  });
4623
- return await fetch$1(altUri.href);
4493
+ return await fetch(altUri.href);
4624
4494
  }
4625
4495
  }
4626
4496
  }
@@ -4646,15 +4516,14 @@ async function getRemoteDocument(url, response, fetch$1) {
4646
4516
  attrPattern.lastIndex = 0;
4647
4517
  while ((attrMatch = attrPattern.exec(tagContent)) !== null) {
4648
4518
  const key = attrMatch[1].toLowerCase();
4649
- const value = attrMatch[2] ?? attrMatch[3] ?? attrMatch[4] ?? "";
4650
- attribs[key] = value;
4519
+ attribs[key] = attrMatch[2] ?? attrMatch[3] ?? attrMatch[4] ?? "";
4651
4520
  }
4652
4521
  if (attribs.rel === "alternate" && "type" in attribs && (attribs.type === "application/activity+json" || attribs.type === "application/ld+json" || attribs.type.startsWith("application/ld+json;")) && "href" in attribs && new URL(attribs.href, docUrl).href !== docUrl.href) {
4653
4522
  logger.debug("Found alternate document: {alternateUrl} from {url}", {
4654
4523
  alternateUrl: attribs.href,
4655
4524
  url: documentUrl
4656
4525
  });
4657
- return await fetch$1(new URL(attribs.href, docUrl).href);
4526
+ return await fetch(new URL(attribs.href, docUrl).href);
4658
4527
  }
4659
4528
  }
4660
4529
  document = JSON.parse(html);
@@ -4692,11 +4561,11 @@ function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAge
4692
4561
  async function load(url, options, redirected = 0, visited = /* @__PURE__ */ new Set()) {
4693
4562
  options?.signal?.throwIfAborted();
4694
4563
  const currentUrl = new URL(url).href;
4695
- if (!skipPreloadedContexts && currentUrl in contexts_default) {
4564
+ if (!skipPreloadedContexts && currentUrl in preloadedContexts) {
4696
4565
  logger.debug("Using preloaded context: {url}.", { url: currentUrl });
4697
4566
  return {
4698
4567
  contextUrl: null,
4699
- document: contexts_default[currentUrl],
4568
+ document: preloadedContexts[currentUrl],
4700
4569
  documentUrl: currentUrl
4701
4570
  };
4702
4571
  }
@@ -4743,8 +4612,7 @@ const _fetchDocumentLoader_allowPrivateAddress = getDocumentLoader({ allowPrivat
4743
4612
  function fetchDocumentLoader(url, arg = false) {
4744
4613
  const allowPrivateAddress = typeof arg === "boolean" ? arg : false;
4745
4614
  logger.warn("fetchDocumentLoader() function is deprecated. Use getDocumentLoader() function instead.");
4746
- const loader = allowPrivateAddress ? _fetchDocumentLoader_allowPrivateAddress : _fetchDocumentLoader;
4747
- return loader(url);
4615
+ return (allowPrivateAddress ? _fetchDocumentLoader_allowPrivateAddress : _fetchDocumentLoader)(url);
4748
4616
  }
4749
4617
  /**
4750
4618
  * Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
@@ -4770,11 +4638,11 @@ function kvCache({ loader, kv, prefix, rules }) {
4770
4638
  return null;
4771
4639
  }
4772
4640
  return async (url, options) => {
4773
- if (url in contexts_default) {
4641
+ if (url in preloadedContexts) {
4774
4642
  logger.debug("Using preloaded context: {url}.", { url });
4775
4643
  return {
4776
4644
  contextUrl: null,
4777
- document: contexts_default[url],
4645
+ document: preloadedContexts[url],
4778
4646
  documentUrl: url
4779
4647
  };
4780
4648
  }
@@ -4812,14 +4680,12 @@ function kvCache({ loader, kv, prefix, rules }) {
4812
4680
  * @since 1.3.0
4813
4681
  */
4814
4682
  function getUserAgent({ software, url } = {}) {
4815
- const fedify = `Fedify/${deno_default.version}`;
4683
+ const fedify = `Fedify/${version}`;
4816
4684
  const runtime = globalThis.Deno?.version?.deno != null ? `Deno/${Deno.version.deno}` : globalThis.process?.versions?.bun != null ? `Bun/${process.versions.bun}` : "navigator" in globalThis && navigator.userAgent === "Cloudflare-Workers" ? navigator.userAgent : globalThis.process?.versions?.node != null ? `Node.js/${process.versions.node}` : null;
4817
4685
  const userAgent = software == null ? [fedify] : [software, fedify];
4818
4686
  if (runtime != null) userAgent.push(runtime);
4819
4687
  if (url != null) userAgent.push(`+${url.toString()}`);
4820
- const first = userAgent.shift();
4821
- return `${first} (${userAgent.join("; ")})`;
4688
+ return `${userAgent.shift()} (${userAgent.join("; ")})`;
4822
4689
  }
4823
-
4824
4690
  //#endregion
4825
- export { FetchError, UrlError, createRequest, deno_default, fetchDocumentLoader, getDocumentLoader, getRemoteDocument, getUserAgent, kvCache, logRequest, validatePublicUrl };
4691
+ export { getRemoteDocument as a, logRequest as c, name as d, version as f, getDocumentLoader as i, UrlError as l, createRequest as n, getUserAgent as o, fetchDocumentLoader as r, kvCache as s, FetchError as t, validatePublicUrl as u };
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { KvKey, KvStore } from "./kv-C7sopW2E.js";
3
+ import { n as KvStore, t as KvKey } from "./kv-Bq9QLKm5.js";
4
4
 
5
5
  //#region src/runtime/docloader.d.ts
6
6
  /**
@@ -96,11 +96,6 @@ declare class FetchError extends Error {
96
96
  */
97
97
  constructor(url: URL | string, message?: string);
98
98
  }
99
- /**
100
- * Options for creating a request.
101
- * @internal
102
- */
103
-
104
99
  /**
105
100
  * Options for {@link getDocumentLoader}.
106
101
  * @since 1.3.0
@@ -218,4 +213,4 @@ declare function getUserAgent({
218
213
  url
219
214
  }?: GetUserAgentOptions): string;
220
215
  //#endregion
221
- export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache };
216
+ export { FetchError as a, KvCacheParameters as c, getDocumentLoader as d, getUserAgent as f, DocumentLoaderFactoryOptions as i, RemoteDocument as l, DocumentLoader as n, GetDocumentLoaderOptions as o, kvCache as p, DocumentLoaderFactory as r, GetUserAgentOptions as s, AuthenticatedDocumentLoaderFactory as t, fetchDocumentLoader as u };
@@ -1,4 +1,4 @@
1
- import { KvKey, KvStore } from "./kv-63Cil1MD.cjs";
1
+ import { n as KvStore, t as KvKey } from "./kv-GIrOktyG.cjs";
2
2
 
3
3
  //#region src/runtime/docloader.d.ts
4
4
  /**
@@ -94,11 +94,6 @@ declare class FetchError extends Error {
94
94
  */
95
95
  constructor(url: URL | string, message?: string);
96
96
  }
97
- /**
98
- * Options for creating a request.
99
- * @internal
100
- */
101
-
102
97
  /**
103
98
  * Options for {@link getDocumentLoader}.
104
99
  * @since 1.3.0
@@ -216,4 +211,4 @@ declare function getUserAgent({
216
211
  url
217
212
  }?: GetUserAgentOptions): string;
218
213
  //#endregion
219
- export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache };
214
+ export { FetchError as a, KvCacheParameters as c, getDocumentLoader as d, getUserAgent as f, DocumentLoaderFactoryOptions as i, RemoteDocument as l, DocumentLoader as n, GetDocumentLoaderOptions as o, kvCache as p, DocumentLoaderFactory as r, GetUserAgentOptions as s, AuthenticatedDocumentLoaderFactory as t, fetchDocumentLoader as u };