@fedify/fedify 2.4.6-dev.2628 → 2.4.6

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 (133) hide show
  1. package/dist/attachment-arrays-5yDbmjEb.mjs +16 -0
  2. package/dist/{builder-kj5boG2l.mjs → builder-CadJYxhX.mjs} +2 -2
  3. package/dist/callback-DPDs_dxC.d.mts +5280 -0
  4. package/dist/{client-3InDZbba.d.cts → client-DLHsPY7X.d.cts} +16 -0
  5. package/dist/{client-3InDZbba.d.ts → client-DLHsPY7X.d.ts} +16 -0
  6. package/dist/{client-5SIFzW3q.mjs → client-DU3owZBD.mjs} +86 -11
  7. package/dist/compat/attachment-arrays.test.d.mts +2 -0
  8. package/dist/compat/attachment-arrays.test.mjs +255 -0
  9. package/dist/compat/mod.cjs +1 -1
  10. package/dist/compat/mod.d.cts +1 -1
  11. package/dist/compat/mod.d.ts +1 -1
  12. package/dist/compat/mod.js +1 -1
  13. package/dist/compat/outgoing-jsonld.test.mjs +1 -1
  14. package/dist/compat/transformers.test.mjs +1 -1
  15. package/dist/{compound-proof-BoNAYSHt.mjs → compound-proof-CbWKyg2H.mjs} +2 -2
  16. package/dist/{context-D0gFIgev.d.cts → context-DUwicVx-.d.cts} +31 -14
  17. package/dist/{context-CVOOd9pD.d.ts → context-iGMHITvS.d.ts} +31 -14
  18. package/dist/{deno-ksnVeCA7.mjs → deno-BKSRi6w3.mjs} +1 -1
  19. package/dist/{docloader-BhVNi06k.mjs → docloader-BcDiJfFl.mjs} +2 -2
  20. package/dist/federation/attachment-responses.test.d.mts +2 -0
  21. package/dist/federation/attachment-responses.test.mjs +182 -0
  22. package/dist/federation/builder.test.mjs +1 -1
  23. package/dist/federation/compound-fanout.test.mjs +4 -4
  24. package/dist/federation/delivery-attachments.test.d.mts +2 -0
  25. package/dist/federation/delivery-attachments.test.mjs +288 -0
  26. package/dist/federation/handler-compound-proof.test.mjs +3 -3
  27. package/dist/federation/handler.test.mjs +206 -14
  28. package/dist/federation/hashlink-media.test.mjs +2 -2
  29. package/dist/federation/idempotency.test.mjs +2 -2
  30. package/dist/federation/inbox-report.test.mjs +5 -5
  31. package/dist/federation/inbox.test.mjs +1 -1
  32. package/dist/federation/metrics.test.mjs +1 -1
  33. package/dist/federation/middleware.test.mjs +1188 -13
  34. package/dist/federation/mod.cjs +1 -1
  35. package/dist/federation/mod.d.cts +3 -3
  36. package/dist/federation/mod.d.ts +3 -3
  37. package/dist/federation/mod.js +1 -1
  38. package/dist/federation/outgoing-proof.test.mjs +4 -4
  39. package/dist/federation/portable-actor.test.mjs +3 -3
  40. package/dist/federation/portable-chain.test.mjs +3 -3
  41. package/dist/federation/portable-collection.test.mjs +4 -4
  42. package/dist/federation/portable-delivery.test.mjs +2 -2
  43. package/dist/federation/portable-gateway-keys.test.mjs +5 -5
  44. package/dist/federation/portable-inbox.test.mjs +4 -4
  45. package/dist/federation/portable-parse-uri.test.mjs +1 -1
  46. package/dist/federation/portable-route-activity.test.mjs +2 -2
  47. package/dist/federation/portable.test.mjs +3 -3
  48. package/dist/federation/send.test.mjs +293 -3
  49. package/dist/federation/tasks/enqueue.test.mjs +1 -1
  50. package/dist/federation/tasks/tasks.test.mjs +2 -2
  51. package/dist/federation/temporal.test.mjs +25 -1
  52. package/dist/federation/webfinger.test.mjs +1 -1
  53. package/dist/{federation-BtPz9sr3.cjs → federation-CM4nzbhO.cjs} +501 -145
  54. package/dist/{http-BSARoDPh.mjs → http-B6sfb5xN.mjs} +8 -6
  55. package/dist/{http-rH230xCD.js → http-BwgldAIk.js} +2803 -2633
  56. package/dist/{http-CeVcKQMZ.cjs → http-Tj9eQ_rd.cjs} +2640 -2458
  57. package/dist/{inbox-BdZenpZQ.mjs → inbox-B7NVkb8j.mjs} +2 -2
  58. package/dist/{key-VEL1QqHF.d.cts → key-CIdQA7Pc.d.cts} +5 -5
  59. package/dist/{key-CyCcut3h.d.ts → key-CjtBFzaE.d.ts} +5 -5
  60. package/dist/{kv-cache-CNfNI_95.js → kv-cache-C-5yfTw-.js} +1 -1
  61. package/dist/{kv-cache-Cxn7pNMx.mjs → kv-cache-CvWuigft.mjs} +1 -1
  62. package/dist/{kv-cache-BpGIONmd.cjs → kv-cache-Vbq0yM7W.cjs} +1 -1
  63. package/dist/{ld-DJZrjNuN.mjs → ld-BGnZDnia.mjs} +176 -24
  64. package/dist/ld-signature-D1tFSFK8.mjs +23 -0
  65. package/dist/{metrics-DtxsYIkN.mjs → metrics-DHUP4F1-.mjs} +1 -1
  66. package/dist/{middleware-DyEjt33n.mjs → middleware-CUb31OGG.mjs} +1 -1
  67. package/dist/{middleware-DDvck2q9.js → middleware-DX8wADUa.js} +452 -98
  68. package/dist/{middleware-DblGj642.mjs → middleware-mRXKHq68.mjs} +445 -176
  69. package/dist/{mod-B1Qt5cQQ.d.ts → mod-B6s6hA4y.d.ts} +3 -3
  70. package/dist/{mod-ss0wBUH1.d.cts → mod-CJf5GcVD.d.cts} +3 -3
  71. package/dist/{mod-makPMVMg.d.cts → mod-CSlxqNto.d.cts} +1 -1
  72. package/dist/{mod-CpyjFA9s.d.ts → mod-D2DiA8u5.d.cts} +29 -7
  73. package/dist/{mod-BTxJG7ZH.d.cts → mod-DKRf1FLm.d.ts} +29 -7
  74. package/dist/{mod-B5COx5Wd.d.ts → mod-Dqu6Dl1k.d.ts} +1 -1
  75. package/dist/mod.cjs +6 -6
  76. package/dist/mod.d.cts +8 -8
  77. package/dist/mod.d.ts +8 -8
  78. package/dist/mod.js +6 -6
  79. package/dist/nodeinfo/client.test.mjs +432 -4
  80. package/dist/nodeinfo/handler.test.mjs +1 -1
  81. package/dist/nodeinfo/mod.cjs +1 -1
  82. package/dist/nodeinfo/mod.d.cts +1 -1
  83. package/dist/nodeinfo/mod.d.ts +1 -1
  84. package/dist/nodeinfo/mod.js +1 -1
  85. package/dist/{outgoing-jsonld-4IJqPYos.mjs → outgoing-jsonld-Dsca6G_Y.mjs} +35 -4
  86. package/dist/{owner-2vfqhUJw.mjs → owner-DEiBiiqR.mjs} +4 -4
  87. package/dist/{portable-collection-Cs--KD5A.cjs → portable-collection--h11WDIi.cjs} +3 -2
  88. package/dist/{portable-collection-DKJwGO8S.mjs → portable-collection-D0-tInp2.mjs} +2 -2
  89. package/dist/{portable-collection-B7AQ_dW7.js → portable-collection-M6d5I5JQ.js} +3 -2
  90. package/dist/{portable-key-DXGepvtD.mjs → portable-key-CyVJpWWJ.mjs} +1 -1
  91. package/dist/portable-verifier-CPA86vIP.js +22 -0
  92. package/dist/portable-verifier-DiLU8c9T.cjs +26 -0
  93. package/dist/{proof-DW0FK6Cp.mjs → proof-C4pwAF2k.mjs} +31 -11
  94. package/dist/{send-CqsocpvF.mjs → send-ivzJCtb-.mjs} +100 -22
  95. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  96. package/dist/sig/compound-proof-producer.test.mjs +1 -1
  97. package/dist/sig/compound-proof-verification.test.mjs +2 -2
  98. package/dist/sig/compound-proof.test.mjs +3 -3
  99. package/dist/sig/http.test.mjs +2 -2
  100. package/dist/sig/key-types.test.d.mts +162 -0
  101. package/dist/sig/key-types.test.mjs +8 -0
  102. package/dist/sig/key.test.mjs +1 -1
  103. package/dist/sig/ld.test.mjs +572 -7
  104. package/dist/sig/mitra-receive-interop.test.mjs +4 -4
  105. package/dist/sig/mitra-send-interop.test.mjs +3 -3
  106. package/dist/sig/mod.cjs +2 -2
  107. package/dist/sig/mod.d.cts +3 -3
  108. package/dist/sig/mod.d.ts +3 -3
  109. package/dist/sig/mod.js +2 -2
  110. package/dist/sig/owner.test.mjs +1 -1
  111. package/dist/sig/portable-collection.test.mjs +1 -1
  112. package/dist/sig/portable-interop.test.mjs +3 -3
  113. package/dist/sig/portable-key.test.mjs +5 -5
  114. package/dist/sig/proof.test.mjs +100 -6
  115. package/dist/sig/tootik-request-interop.test.mjs +4 -4
  116. package/dist/sig/tootik-send-interop.test.mjs +3 -3
  117. package/dist/sig/verification.test.mjs +3 -3
  118. package/dist/{temporal-Dm2E1-vs.mjs → temporal-B6OlxwK_.mjs} +3 -5
  119. package/dist/testing/kv.test.mjs +1 -1
  120. package/dist/testing/mod.d.mts +3 -5045
  121. package/dist/{transformers-DAtXl_Kc.js → transformers-BlJ53iKs.js} +3 -2
  122. package/dist/{transformers-BalCrSsr.cjs → transformers-aIK89ibB.cjs} +3 -2
  123. package/dist/{types-DUjZb4i6.js → types-BbCbtwZp.js} +86 -11
  124. package/dist/{types-hKCCjii0.cjs → types-C8gac_AD.cjs} +85 -10
  125. package/dist/utils/docloader.test.mjs +2 -2
  126. package/dist/utils/kv-cache.test.mjs +1 -1
  127. package/dist/utils/mod.cjs +1 -1
  128. package/dist/utils/mod.d.cts +1 -1
  129. package/dist/utils/mod.d.ts +1 -1
  130. package/dist/utils/mod.js +1 -1
  131. package/dist/utils/portable-verifier.test.d.mts +2 -0
  132. package/dist/utils/portable-verifier.test.mjs +126 -0
  133. package/package.json +6 -6
@@ -0,0 +1,16 @@
1
+ import "temporal-polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { n as normalizeAttachmentArrays$1 } from "./outgoing-jsonld-Dsca6G_Y.mjs";
5
+ //#region src/compat/attachment-arrays.ts
6
+ /**
7
+ * Applies the shared attachment workaround to served documents without
8
+ * rewriting any document that contains a semantic proof or LD signature.
9
+ * RDF equivalence alone cannot preserve JCS signatures.
10
+ * @internal
11
+ */
12
+ function normalizeAttachmentArrays(document, contextLoader) {
13
+ return normalizeAttachmentArrays$1(document, contextLoader, { preserveSecuredDocuments: true });
14
+ }
15
+ //#endregion
16
+ export { normalizeAttachmentArrays as t };
@@ -2,7 +2,7 @@ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { i as getPortableDid, l as isPortableId, n as getCanonicalPortableId } from "./portable-key-id-Ca30-hOa.mjs";
5
- import { n as version, t as name } from "./deno-ksnVeCA7.mjs";
5
+ import { n as version, t as name } from "./deno-BKSRi6w3.mjs";
6
6
  import { t as ActivityListenerSet } from "./activity-listener-C-BSbKI7.mjs";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { Router, RouterError, assertPath } from "@fedify/uri-template";
@@ -91,7 +91,7 @@ var FederationBuilderImpl = class {
91
91
  * specified.
92
92
  */
93
93
  async build(options) {
94
- const { FederationImpl } = await import("./middleware-DyEjt33n.mjs");
94
+ const { FederationImpl } = await import("./middleware-CUb31OGG.mjs");
95
95
  const f = new FederationImpl(options);
96
96
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
97
97
  f.router = this.router.clone();