@fedify/fedify 1.6.7 → 1.6.9

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 (114) hide show
  1. package/dist/{actor-fvEQljsh.js → actor-DY_ediuQ.js} +179 -225
  2. package/dist/{actor-CJUOVkus.js → actor-qNVQigMJ.js} +3 -3
  3. package/dist/{authdocloader-UN6bFYqE.js → authdocloader-ColUu5fh.js} +3 -3
  4. package/dist/{authdocloader-sLr3_CKo.js → authdocloader-DTpSS6vq.js} +3 -3
  5. package/dist/{builder-Dwwf9LZs.js → builder-CTAic_n3.js} +3 -3
  6. package/dist/{client-BOQZYjsA.js → client-Bp-TqQI6.js} +1 -1
  7. package/dist/compat/transformers.test.d.ts +2 -1
  8. package/dist/compat/transformers.test.js +19 -18
  9. package/dist/{context-B9H6ypbl.js → context-BAx407GT.js} +2 -2
  10. package/dist/{docloader-D27WkV2-.js → docloader-NmruKwBX.js} +2 -2
  11. package/dist/{docloader-BpcD_SLO.js → docloader-UqcHJRjL.js} +2 -2
  12. package/dist/{esm-CASHO3OR.js → esm-Db4De7AS.js} +5 -7
  13. package/dist/federation/builder.test.d.ts +2 -1
  14. package/dist/federation/builder.test.js +6 -5
  15. package/dist/federation/collection.test.d.ts +2 -1
  16. package/dist/federation/collection.test.js +2 -1
  17. package/dist/federation/handler.test.d.ts +2 -1
  18. package/dist/federation/handler.test.js +79 -20
  19. package/dist/federation/inbox.test.d.ts +2 -1
  20. package/dist/federation/inbox.test.js +5 -4
  21. package/dist/federation/keycache.test.d.ts +2 -1
  22. package/dist/federation/keycache.test.js +5 -4
  23. package/dist/federation/kv.test.d.ts +2 -1
  24. package/dist/federation/kv.test.js +2 -1
  25. package/dist/federation/middleware.test.d.ts +2 -1
  26. package/dist/federation/middleware.test.js +21 -20
  27. package/dist/federation/mod.js +10 -10
  28. package/dist/federation/mq.test.d.ts +2 -1
  29. package/dist/federation/mq.test.js +2 -1
  30. package/dist/federation/retry.test.d.ts +2 -1
  31. package/dist/federation/retry.test.js +2 -1
  32. package/dist/federation/router.test.d.ts +2 -1
  33. package/dist/federation/router.test.js +2 -1
  34. package/dist/federation/send.test.d.ts +2 -1
  35. package/dist/federation/send.test.js +12 -11
  36. package/dist/{http-DEMqisx6.js → http-DjFoawa6.js} +3 -3
  37. package/dist/{http-hhXcurBA.js → http-XWz7prGl.js} +3 -3
  38. package/dist/{inbox-Dn9cGz72.js → inbox-eAHML3xw.js} +2 -2
  39. package/dist/{key-BS8tcPCt.js → key-B4UFmNvL.js} +2 -2
  40. package/dist/{key-heR1cMpe.js → key-ByAyOg3m.js} +5 -5
  41. package/dist/{key-Djjl3-NI.js → key-C1UhN1LT.js} +4 -4
  42. package/dist/{key-HZNzd-FS.js → key-CUEyp_yz.js} +3 -3
  43. package/dist/{keycache-DxrNxDV9.js → keycache-YqFJn7EL.js} +1 -1
  44. package/dist/{keys-cVHkVfkB.js → keys-Dd_v3HDs.js} +1 -1
  45. package/dist/{ld-BHlSwz3F.js → ld-D8WCx-VU.js} +3 -3
  46. package/dist/{lookup-d9KQSGH3.js → lookup-DEN8lvde.js} +1 -1
  47. package/dist/{lookup-D1UwpzKL.js → lookup-DHlMvC3Q.js} +1 -1
  48. package/dist/{lookup-DZ5JT-dZ.js → lookup-DggOHyrB.js} +3 -3
  49. package/dist/middleware-B-ysz1Gc.js +17 -0
  50. package/dist/middleware-Bmr-V4-W.js +33 -0
  51. package/dist/{middleware-DbABwSSq.js → middleware-D_j7IO2V.js} +29 -29
  52. package/dist/{middleware-jYmGxpPU.js → middleware-mmR5eUDI.js} +24 -24
  53. package/dist/mod.js +10 -10
  54. package/dist/nodeinfo/client.test.d.ts +2 -1
  55. package/dist/nodeinfo/client.test.js +5 -4
  56. package/dist/nodeinfo/handler.test.d.ts +2 -1
  57. package/dist/nodeinfo/handler.test.js +20 -19
  58. package/dist/nodeinfo/mod.js +2 -2
  59. package/dist/nodeinfo/semver.test.d.ts +2 -1
  60. package/dist/nodeinfo/semver.test.js +2 -1
  61. package/dist/nodeinfo/types.test.d.ts +2 -1
  62. package/dist/nodeinfo/types.test.js +2 -1
  63. package/dist/{owner-CY_4qryA.js → owner-lYBh2f5Z.js} +3 -3
  64. package/dist/{proof-NEDLECyh.js → proof-BAoGg0DQ.js} +3 -3
  65. package/dist/{proof-ZOvHKN5-.js → proof-CPamyAcG.js} +3 -3
  66. package/dist/runtime/authdocloader.test.d.ts +2 -1
  67. package/dist/runtime/authdocloader.test.js +11 -10
  68. package/dist/runtime/docloader.test.d.ts +2 -1
  69. package/dist/runtime/docloader.test.js +28 -3
  70. package/dist/runtime/key.test.d.ts +2 -1
  71. package/dist/runtime/key.test.js +7 -6
  72. package/dist/runtime/langstr.test.d.ts +2 -1
  73. package/dist/runtime/langstr.test.js +2 -1
  74. package/dist/runtime/mod.js +6 -6
  75. package/dist/runtime/multibase/multibase.test.d.ts +2 -1
  76. package/dist/runtime/multibase/multibase.test.js +2 -1
  77. package/dist/runtime/url.test.d.ts +2 -1
  78. package/dist/runtime/url.test.js +2 -1
  79. package/dist/{send-BrO7rgzl.js → send-CrbpYrfD.js} +2 -2
  80. package/dist/sig/http.test.d.ts +2 -1
  81. package/dist/sig/http.test.js +10 -9
  82. package/dist/sig/key.test.d.ts +2 -1
  83. package/dist/sig/key.test.js +8 -7
  84. package/dist/sig/ld.test.d.ts +2 -1
  85. package/dist/sig/ld.test.js +9 -8
  86. package/dist/sig/mod.js +6 -6
  87. package/dist/sig/owner.test.d.ts +2 -1
  88. package/dist/sig/owner.test.js +10 -9
  89. package/dist/sig/proof.test.d.ts +2 -1
  90. package/dist/sig/proof.test.js +9 -8
  91. package/dist/testing/docloader.test.d.ts +2 -1
  92. package/dist/testing/docloader.test.js +2 -1
  93. package/dist/{types-45TSQHsw.js → types-Bl1hBU1t.js} +1 -1
  94. package/dist/vocab/actor.test.d.ts +2 -1
  95. package/dist/vocab/actor.test.js +8 -10
  96. package/dist/vocab/lookup.test.d.ts +2 -1
  97. package/dist/vocab/lookup.test.js +7 -6
  98. package/dist/vocab/mod.js +4 -4
  99. package/dist/vocab/type.test.d.ts +2 -1
  100. package/dist/vocab/type.test.js +4 -3
  101. package/dist/vocab/vocab.test.d.ts +2 -1
  102. package/dist/vocab/vocab.test.js +19 -18
  103. package/dist/{vocab-DzvTuYjm.js → vocab-Cs9KbJAx.js} +178 -224
  104. package/dist/{vocab-B42jXGwc.js → vocab-DSVoOj6P.js} +3 -3
  105. package/dist/webfinger/handler.test.d.ts +2 -1
  106. package/dist/webfinger/handler.test.js +20 -19
  107. package/dist/webfinger/lookup.test.d.ts +2 -1
  108. package/dist/webfinger/lookup.test.js +5 -4
  109. package/dist/webfinger/mod.js +2 -2
  110. package/dist/x/cfworkers.test.d.ts +2 -1
  111. package/dist/x/cfworkers.test.js +2 -1
  112. package/package.json +1 -1
  113. package/dist/middleware-YRLKRl1N.js +0 -17
  114. package/dist/middleware-lqxhBcoT.js +0 -33
@@ -272,4 +272,5 @@ async function waitFor(predicate, timeoutMs) {
272
272
  }
273
273
  }
274
274
 
275
- //#endregion
275
+ //#endregion
276
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -41,4 +41,5 @@ function assertDurationRange(actual, min, max) {
41
41
  if (Temporal.Duration.compare(actual, minDuration) < 0 || Temporal.Duration.compare(actual, maxDuration) > 0) throw new AssertionError(`Expected ${actual} to be between ${min} and ${max}`);
42
42
  }
43
43
 
44
- //#endregion
44
+ //#endregion
45
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -95,4 +95,5 @@ test("Router.build()", () => {
95
95
  }), "/users/alice/posts/123");
96
96
  });
97
97
 
98
- //#endregion
98
+ //#endregion
99
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,18 +6,18 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import { assert } from "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-BpcD_SLO.js";
9
+ import "../docloader-UqcHJRjL.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../multibase-DeCHcK8L.js";
12
- import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-DzvTuYjm.js";
12
+ import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-Cs9KbJAx.js";
13
13
  import "../langstr-DbWheeIS.js";
14
- import "../lookup-d9KQSGH3.js";
14
+ import "../lookup-DEN8lvde.js";
15
15
  import "../type-D2s5lmbZ.js";
16
- import "../actor-CJUOVkus.js";
17
- import "../key-HZNzd-FS.js";
18
- import { verifyRequest } from "../http-DEMqisx6.js";
19
- import { doesActorOwnKey } from "../owner-CY_4qryA.js";
20
- import { extractInboxes, sendActivity } from "../send-BrO7rgzl.js";
16
+ import "../actor-qNVQigMJ.js";
17
+ import "../key-CUEyp_yz.js";
18
+ import { verifyRequest } from "../http-DjFoawa6.js";
19
+ import { doesActorOwnKey } from "../owner-lYBh2f5Z.js";
20
+ import { extractInboxes, sendActivity } from "../send-CrbpYrfD.js";
21
21
  import { test } from "../testing-BZ0dJ4qn.js";
22
22
  import "../std__assert-vp0TKMS1.js";
23
23
  import { assertFalse, assertRejects } from "../assert_rejects-C-sxEMM5.js";
@@ -25,8 +25,8 @@ import "../assert_is_error-nrwA1GeT.js";
25
25
  import { assertNotEquals } from "../assert_not_equals-Dc7y-V5Q.js";
26
26
  import "../assert_throws-Cn9C6Jur.js";
27
27
  import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
28
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-cVHkVfkB.js";
29
- import { esm_default } from "../esm-CASHO3OR.js";
28
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-Dd_v3HDs.js";
29
+ import { esm_default } from "../esm-Db4De7AS.js";
30
30
 
31
31
  //#region federation/send.test.ts
32
32
  test("extractInboxes()", () => {
@@ -221,4 +221,5 @@ test("sendActivity()", async (t) => {
221
221
  esm_default.hardReset();
222
222
  });
223
223
 
224
- //#endregion
224
+ //#endregion
225
+ export { };
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-BpcD_SLO.js";
7
- import { CryptographicKey } from "./vocab-DzvTuYjm.js";
8
- import { fetchKey, validateCryptoKey } from "./key-HZNzd-FS.js";
6
+ import { deno_default } from "./docloader-UqcHJRjL.js";
7
+ import { CryptographicKey } from "./vocab-Cs9KbJAx.js";
8
+ import { fetchKey, validateCryptoKey } from "./key-CUEyp_yz.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanStatusCode, trace } from "@opentelemetry/api";
11
11
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default } from "./docloader-D27WkV2-.js";
6
- import { CryptographicKey } from "./actor-fvEQljsh.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BS8tcPCt.js";
5
+ import { deno_default } from "./docloader-NmruKwBX.js";
6
+ import { CryptographicKey } from "./actor-DY_ediuQ.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-B4UFmNvL.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-BpcD_SLO.js";
7
- import { Activity } from "./vocab-DzvTuYjm.js";
6
+ import { deno_default } from "./docloader-UqcHJRjL.js";
7
+ import { Activity } from "./vocab-Cs9KbJAx.js";
8
8
  import { getTypeId } from "./type-D2s5lmbZ.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-D27WkV2-.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-fvEQljsh.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-NmruKwBX.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-DY_ediuQ.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -3,14 +3,14 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "./docloader-BpcD_SLO.js";
6
+ import "./docloader-UqcHJRjL.js";
7
7
  import "./url-kTAI6_KP.js";
8
8
  import "./multibase-DeCHcK8L.js";
9
- import "./vocab-DzvTuYjm.js";
9
+ import "./vocab-Cs9KbJAx.js";
10
10
  import "./langstr-DbWheeIS.js";
11
- import "./lookup-d9KQSGH3.js";
11
+ import "./lookup-DEN8lvde.js";
12
12
  import "./type-D2s5lmbZ.js";
13
- import "./actor-CJUOVkus.js";
14
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-HZNzd-FS.js";
13
+ import "./actor-qNVQigMJ.js";
14
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CUEyp_yz.js";
15
15
 
16
16
  export { validateCryptoKey };
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "./docloader-D27WkV2-.js";
6
- import "./actor-fvEQljsh.js";
7
- import "./lookup-D1UwpzKL.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BS8tcPCt.js";
5
+ import "./docloader-NmruKwBX.js";
6
+ import "./actor-DY_ediuQ.js";
7
+ import "./lookup-DHlMvC3Q.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-B4UFmNvL.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader } from "./docloader-BpcD_SLO.js";
7
- import { CryptographicKey, Object as Object$1 } from "./vocab-DzvTuYjm.js";
8
- import { isActor } from "./actor-CJUOVkus.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-UqcHJRjL.js";
7
+ import { CryptographicKey, Object as Object$1 } from "./vocab-Cs9KbJAx.js";
8
+ import { isActor } from "./actor-qNVQigMJ.js";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
11
11
 
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./vocab-DzvTuYjm.js";
6
+ import { CryptographicKey, Multikey } from "./vocab-Cs9KbJAx.js";
7
7
 
8
8
  //#region federation/keycache.ts
9
9
  var KvKeyCache = class {
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey, importSpki } from "./vocab-DzvTuYjm.js";
6
+ import { CryptographicKey, Multikey, importSpki } from "./vocab-Cs9KbJAx.js";
7
7
 
8
8
  //#region testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader } from "./docloader-BpcD_SLO.js";
7
- import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-DzvTuYjm.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-UqcHJRjL.js";
7
+ import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-Cs9KbJAx.js";
8
8
  import { getTypeId } from "./type-D2s5lmbZ.js";
9
- import { fetchKey, validateCryptoKey } from "./key-HZNzd-FS.js";
9
+ import { fetchKey, validateCryptoKey } from "./key-CUEyp_yz.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanStatusCode, trace } from "@opentelemetry/api";
12
12
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getUserAgent } from "./docloader-BpcD_SLO.js";
6
+ import { deno_default, getUserAgent } from "./docloader-UqcHJRjL.js";
7
7
  import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-D27WkV2-.js";
5
+ import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-NmruKwBX.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
 
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader } from "./docloader-BpcD_SLO.js";
7
- import { Object as Object$1 } from "./vocab-DzvTuYjm.js";
8
- import { lookupWebFinger } from "./lookup-d9KQSGH3.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-UqcHJRjL.js";
7
+ import { Object as Object$1 } from "./vocab-Cs9KbJAx.js";
8
+ import { lookupWebFinger } from "./lookup-DEN8lvde.js";
9
9
  import { getTypeId } from "./type-D2s5lmbZ.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -0,0 +1,17 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "./transformers-ghwJuzGY.js";
6
+ import "./docloader-NmruKwBX.js";
7
+ import "./actor-DY_ediuQ.js";
8
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-mmR5eUDI.js";
9
+ import "./lookup-DHlMvC3Q.js";
10
+ import "./key-B4UFmNvL.js";
11
+ import "./http-XWz7prGl.js";
12
+ import "./proof-CPamyAcG.js";
13
+ import "./types-Bl1hBU1t.js";
14
+ import "./authdocloader-ColUu5fh.js";
15
+ import "./vocab-DSVoOj6P.js";
16
+
17
+ export { FederationImpl };
@@ -0,0 +1,33 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-D_j7IO2V.js";
7
+ import "./docloader-UqcHJRjL.js";
8
+ import "./url-kTAI6_KP.js";
9
+ import "./semver-DWClQt_5.js";
10
+ import "./client-Bp-TqQI6.js";
11
+ import "./router-D_aVZZUc.js";
12
+ import "./types-C7C_l-jz.js";
13
+ import "./multibase-DeCHcK8L.js";
14
+ import "./vocab-Cs9KbJAx.js";
15
+ import "./langstr-DbWheeIS.js";
16
+ import "./lookup-DEN8lvde.js";
17
+ import "./type-D2s5lmbZ.js";
18
+ import "./actor-qNVQigMJ.js";
19
+ import "./key-CUEyp_yz.js";
20
+ import "./http-DjFoawa6.js";
21
+ import "./authdocloader-DTpSS6vq.js";
22
+ import "./ld-D8WCx-VU.js";
23
+ import "./owner-lYBh2f5Z.js";
24
+ import "./proof-BAoGg0DQ.js";
25
+ import "./lookup-DggOHyrB.js";
26
+ import "./inbox-eAHML3xw.js";
27
+ import "./builder-CTAic_n3.js";
28
+ import "./collection-Dfb0TPno.js";
29
+ import "./keycache-YqFJn7EL.js";
30
+ import "./retry-BiIhZWgD.js";
31
+ import "./send-CrbpYrfD.js";
32
+
33
+ export { FederationImpl };
@@ -3,26 +3,26 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-BpcD_SLO.js";
7
- import { getNodeInfo } from "./client-BOQZYjsA.js";
6
+ import { deno_default, getDocumentLoader, kvCache } from "./docloader-UqcHJRjL.js";
7
+ import { getNodeInfo } from "./client-Bp-TqQI6.js";
8
8
  import { RouterError } from "./router-D_aVZZUc.js";
9
9
  import { nodeInfoToJson } from "./types-C7C_l-jz.js";
10
- import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-DzvTuYjm.js";
11
- import { lookupWebFinger } from "./lookup-d9KQSGH3.js";
10
+ import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage } from "./vocab-Cs9KbJAx.js";
11
+ import { lookupWebFinger } from "./lookup-DEN8lvde.js";
12
12
  import { getTypeId } from "./type-D2s5lmbZ.js";
13
- import { exportJwk, importJwk, validateCryptoKey } from "./key-HZNzd-FS.js";
14
- import { verifyRequest } from "./http-DEMqisx6.js";
15
- import { getAuthenticatedDocumentLoader } from "./authdocloader-sLr3_CKo.js";
16
- import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-BHlSwz3F.js";
17
- import { doesActorOwnKey, getKeyOwner } from "./owner-CY_4qryA.js";
18
- import { signObject, verifyObject } from "./proof-NEDLECyh.js";
19
- import { lookupObject, traverseCollection } from "./lookup-DZ5JT-dZ.js";
20
- import { routeActivity } from "./inbox-Dn9cGz72.js";
21
- import { FederationBuilderImpl } from "./builder-Dwwf9LZs.js";
13
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-CUEyp_yz.js";
14
+ import { verifyRequest } from "./http-DjFoawa6.js";
15
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-DTpSS6vq.js";
16
+ import { detachSignature, hasSignature, signJsonLd, verifyJsonLd } from "./ld-D8WCx-VU.js";
17
+ import { doesActorOwnKey, getKeyOwner } from "./owner-lYBh2f5Z.js";
18
+ import { signObject, verifyObject } from "./proof-BAoGg0DQ.js";
19
+ import { lookupObject, traverseCollection } from "./lookup-DggOHyrB.js";
20
+ import { routeActivity } from "./inbox-eAHML3xw.js";
21
+ import { FederationBuilderImpl } from "./builder-CTAic_n3.js";
22
22
  import { buildCollectionSynchronizationHeader } from "./collection-Dfb0TPno.js";
23
- import { KvKeyCache } from "./keycache-DxrNxDV9.js";
23
+ import { KvKeyCache } from "./keycache-YqFJn7EL.js";
24
24
  import { createExponentialBackoffPolicy } from "./retry-BiIhZWgD.js";
25
- import { extractInboxes, sendActivity } from "./send-BrO7rgzl.js";
25
+ import { extractInboxes, sendActivity } from "./send-CrbpYrfD.js";
26
26
  import { getLogger, withContext } from "@logtape/logtape";
27
27
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
28
28
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
@@ -799,20 +799,6 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
799
799
  }
800
800
  if (activity.id != null) span.setAttribute("activitypub.activity.id", activity.id.href);
801
801
  span.setAttribute("activitypub.activity.type", getTypeId(activity).href);
802
- const routeResult = await routeActivity({
803
- context: ctx,
804
- json,
805
- activity,
806
- recipient,
807
- inboxListeners,
808
- inboxContextFactory,
809
- inboxErrorHandler,
810
- kv,
811
- kvPrefixes,
812
- queue,
813
- span,
814
- tracerProvider
815
- });
816
802
  if (httpSigKey != null && !await doesActorOwnKey(activity, httpSigKey, ctx)) {
817
803
  logger$2.error("The signer ({keyId}) and the actor ({actorId}) do not match.", {
818
804
  activity: json,
@@ -829,6 +815,20 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
829
815
  headers: { "Content-Type": "text/plain; charset=utf-8" }
830
816
  });
831
817
  }
818
+ const routeResult = await routeActivity({
819
+ context: ctx,
820
+ json,
821
+ activity,
822
+ recipient,
823
+ inboxListeners,
824
+ inboxContextFactory,
825
+ inboxErrorHandler,
826
+ kv,
827
+ kvPrefixes,
828
+ queue,
829
+ span,
830
+ tracerProvider
831
+ });
832
832
  if (routeResult === "alreadyProcessed") return new Response(`Activity <${activity.id}> has already been processed.`, {
833
833
  status: 202,
834
834
  headers: { "Content-Type": "text/plain; charset=utf-8" }
@@ -3,15 +3,15 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import { getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
6
- import { deno_default, getDocumentLoader, kvCache } from "./docloader-D27WkV2-.js";
7
- import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-fvEQljsh.js";
8
- import { lookupWebFinger } from "./lookup-D1UwpzKL.js";
9
- import { exportJwk, importJwk, validateCryptoKey } from "./key-BS8tcPCt.js";
10
- import { doubleKnock, verifyRequest } from "./http-hhXcurBA.js";
11
- import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-ZOvHKN5-.js";
12
- import { getNodeInfo, nodeInfoToJson } from "./types-45TSQHsw.js";
13
- import { getAuthenticatedDocumentLoader } from "./authdocloader-UN6bFYqE.js";
14
- import { lookupObject, traverseCollection } from "./vocab-B42jXGwc.js";
6
+ import { deno_default, getDocumentLoader, kvCache } from "./docloader-NmruKwBX.js";
7
+ import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId } from "./actor-DY_ediuQ.js";
8
+ import { lookupWebFinger } from "./lookup-DHlMvC3Q.js";
9
+ import { exportJwk, importJwk, validateCryptoKey } from "./key-B4UFmNvL.js";
10
+ import { doubleKnock, verifyRequest } from "./http-XWz7prGl.js";
11
+ import { detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd, signObject, verifyJsonLd, verifyObject } from "./proof-CPamyAcG.js";
12
+ import { getNodeInfo, nodeInfoToJson } from "./types-Bl1hBU1t.js";
13
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-ColUu5fh.js";
14
+ import { lookupObject, traverseCollection } from "./vocab-DSVoOj6P.js";
15
15
  import { getLogger, withContext } from "@logtape/logtape";
16
16
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
17
17
  import { encodeHex } from "byte-encodings/hex";
@@ -312,7 +312,7 @@ var FederationBuilderImpl = class {
312
312
  this.objectTypeIds = {};
313
313
  }
314
314
  async build(options) {
315
- const { FederationImpl: FederationImpl$1 } = await import("./middleware-YRLKRl1N.js");
315
+ const { FederationImpl: FederationImpl$1 } = await import("./middleware-B-ysz1Gc.js");
316
316
  const f = new FederationImpl$1(options);
317
317
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
318
318
  f.router = this.router.clone();
@@ -1348,20 +1348,6 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
1348
1348
  }
1349
1349
  if (activity.id != null) span.setAttribute("activitypub.activity.id", activity.id.href);
1350
1350
  span.setAttribute("activitypub.activity.type", getTypeId(activity).href);
1351
- const routeResult = await routeActivity({
1352
- context: ctx,
1353
- json,
1354
- activity,
1355
- recipient,
1356
- inboxListeners,
1357
- inboxContextFactory,
1358
- inboxErrorHandler,
1359
- kv,
1360
- kvPrefixes,
1361
- queue,
1362
- span,
1363
- tracerProvider
1364
- });
1365
1351
  if (httpSigKey != null && !await doesActorOwnKey(activity, httpSigKey, ctx)) {
1366
1352
  logger$1.error("The signer ({keyId}) and the actor ({actorId}) do not match.", {
1367
1353
  activity: json,
@@ -1378,6 +1364,20 @@ async function handleInboxInternal(request, { recipient, context: ctx, inboxCont
1378
1364
  headers: { "Content-Type": "text/plain; charset=utf-8" }
1379
1365
  });
1380
1366
  }
1367
+ const routeResult = await routeActivity({
1368
+ context: ctx,
1369
+ json,
1370
+ activity,
1371
+ recipient,
1372
+ inboxListeners,
1373
+ inboxContextFactory,
1374
+ inboxErrorHandler,
1375
+ kv,
1376
+ kvPrefixes,
1377
+ queue,
1378
+ span,
1379
+ tracerProvider
1380
+ });
1381
1381
  if (routeResult === "alreadyProcessed") return new Response(`Activity <${activity.id}> has already been processed.`, {
1382
1382
  status: 202,
1383
1383
  headers: { "Content-Type": "text/plain; charset=utf-8" }
package/dist/mod.js CHANGED
@@ -4,17 +4,17 @@
4
4
 
5
5
  import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "./transformers-ghwJuzGY.js";
6
6
  import "./compat-Bb5myD13.js";
7
- import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-D27WkV2-.js";
8
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-fvEQljsh.js";
9
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-jYmGxpPU.js";
10
- import { lookupWebFinger } from "./lookup-D1UwpzKL.js";
11
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-BS8tcPCt.js";
12
- import { signRequest, verifyRequest } from "./http-hhXcurBA.js";
13
- import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-ZOvHKN5-.js";
7
+ import { FetchError, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache } from "./docloader-NmruKwBX.js";
8
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, LanguageString, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, exportMultibaseKey, exportSpki, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, importMultibaseKey, importPem, importPkcs1, importSpki, isActor, normalizeActorHandle } from "./actor-DY_ediuQ.js";
9
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "./middleware-mmR5eUDI.js";
10
+ import { lookupWebFinger } from "./lookup-DHlMvC3Q.js";
11
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk } from "./key-B4UFmNvL.js";
12
+ import { signRequest, verifyRequest } from "./http-XWz7prGl.js";
13
+ import { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, getKeyOwner, signJsonLd, signObject, verifyJsonLd, verifyObject, verifyProof, verifySignature } from "./proof-CPamyAcG.js";
14
14
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation-3B6BDKCK.js";
15
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-45TSQHsw.js";
16
- import { getAuthenticatedDocumentLoader } from "./authdocloader-UN6bFYqE.js";
17
- import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-B42jXGwc.js";
15
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "./types-Bl1hBU1t.js";
16
+ import { getAuthenticatedDocumentLoader } from "./authdocloader-ColUu5fh.js";
17
+ import { PUBLIC_COLLECTION, lookupObject, traverseCollection } from "./vocab-DSVoOj6P.js";
18
18
  import "./nodeinfo-CyEbLjHs.js";
19
19
  import "./runtime-BSkOVUWM.js";
20
20
  import "./sig-BXJO--F9.js";
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -6,17 +6,17 @@
6
6
  import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
- import "../docloader-BpcD_SLO.js";
9
+ import "../docloader-UqcHJRjL.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import "../semver-DWClQt_5.js";
12
- import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-BOQZYjsA.js";
12
+ import { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage } from "../client-Bp-TqQI6.js";
13
13
  import { test } from "../testing-BZ0dJ4qn.js";
14
14
  import "../std__assert-vp0TKMS1.js";
15
15
  import "../assert_rejects-C-sxEMM5.js";
16
16
  import "../assert_is_error-nrwA1GeT.js";
17
17
  import "../assert_not_equals-Dc7y-V5Q.js";
18
18
  import "../assert_throws-Cn9C6Jur.js";
19
- import { esm_default } from "../esm-CASHO3OR.js";
19
+ import { esm_default } from "../esm-Db4De7AS.js";
20
20
 
21
21
  //#region nodeinfo/client.test.ts
22
22
  test("getNodeInfo()", async (t) => {
@@ -963,4 +963,5 @@ test("parseUsage()", () => {
963
963
  });
964
964
  });
965
965
 
966
- //#endregion
966
+ //#endregion
967
+ export { };
@@ -1,3 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};
3
+ globalThis.addEventListener = () => {};
4
+ export {};
@@ -7,32 +7,32 @@ import { assertEquals } from "../assert_equals-CTYbeopb.js";
7
7
  import "../assert-DmFG7ppO.js";
8
8
  import "../assert_instance_of-CF09JHYM.js";
9
9
  import { MemoryKvStore } from "../kv-DohFOP2C.js";
10
- import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-DbABwSSq.js";
11
- import "../docloader-BpcD_SLO.js";
10
+ import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-D_j7IO2V.js";
11
+ import "../docloader-UqcHJRjL.js";
12
12
  import "../url-kTAI6_KP.js";
13
13
  import { parseSemVer } from "../semver-DWClQt_5.js";
14
- import "../client-BOQZYjsA.js";
14
+ import "../client-Bp-TqQI6.js";
15
15
  import "../router-D_aVZZUc.js";
16
16
  import "../types-C7C_l-jz.js";
17
17
  import "../multibase-DeCHcK8L.js";
18
- import "../vocab-DzvTuYjm.js";
18
+ import "../vocab-Cs9KbJAx.js";
19
19
  import "../langstr-DbWheeIS.js";
20
- import "../lookup-d9KQSGH3.js";
20
+ import "../lookup-DEN8lvde.js";
21
21
  import "../type-D2s5lmbZ.js";
22
- import "../actor-CJUOVkus.js";
23
- import "../key-HZNzd-FS.js";
24
- import "../http-DEMqisx6.js";
25
- import "../authdocloader-sLr3_CKo.js";
26
- import "../ld-BHlSwz3F.js";
27
- import "../owner-CY_4qryA.js";
28
- import "../proof-NEDLECyh.js";
29
- import "../lookup-DZ5JT-dZ.js";
30
- import "../inbox-Dn9cGz72.js";
31
- import "../builder-Dwwf9LZs.js";
22
+ import "../actor-qNVQigMJ.js";
23
+ import "../key-CUEyp_yz.js";
24
+ import "../http-DjFoawa6.js";
25
+ import "../authdocloader-DTpSS6vq.js";
26
+ import "../ld-D8WCx-VU.js";
27
+ import "../owner-lYBh2f5Z.js";
28
+ import "../proof-BAoGg0DQ.js";
29
+ import "../lookup-DggOHyrB.js";
30
+ import "../inbox-eAHML3xw.js";
31
+ import "../builder-CTAic_n3.js";
32
32
  import "../collection-Dfb0TPno.js";
33
- import "../keycache-DxrNxDV9.js";
33
+ import "../keycache-YqFJn7EL.js";
34
34
  import "../retry-BiIhZWgD.js";
35
- import "../send-BrO7rgzl.js";
35
+ import "../send-CrbpYrfD.js";
36
36
  import { test } from "../testing-BZ0dJ4qn.js";
37
37
  import "../std__assert-vp0TKMS1.js";
38
38
  import "../assert_rejects-C-sxEMM5.js";
@@ -40,7 +40,7 @@ import "../assert_is_error-nrwA1GeT.js";
40
40
  import "../assert_not_equals-Dc7y-V5Q.js";
41
41
  import "../assert_throws-Cn9C6Jur.js";
42
42
  import "../docloader-09nVWLAZ.js";
43
- import { createRequestContext } from "../context-B9H6ypbl.js";
43
+ import { createRequestContext } from "../context-BAx407GT.js";
44
44
 
45
45
  //#region nodeinfo/handler.test.ts
46
46
  test("handleNodeInfo()", async () => {
@@ -129,4 +129,5 @@ test("handleNodeInfoJrd()", async () => {
129
129
  }] });
130
130
  });
131
131
 
132
- //#endregion
132
+ //#endregion
133
+ export { };
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-D27WkV2-.js";
6
- import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-45TSQHsw.js";
5
+ import "../docloader-NmruKwBX.js";
6
+ import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-Bl1hBU1t.js";
7
7
  import "../nodeinfo-CyEbLjHs.js";
8
8
 
9
9
  export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };