@fedify/fedify 1.8.1-pr.328.1165 → 1.8.1-pr.329.1209

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 (102) hide show
  1. package/README.md +1 -4
  2. package/dist/{actor-6WfgEEM7.js → actor-CiCVXwx3.js} +4 -1
  3. package/dist/{actor-BvUN9QgD.js → actor-DOUbHIhg.js} +179 -179
  4. package/dist/{assert_rejects-AjlKk-Vo.js → assert_rejects-DceVjUlD.js} +1 -1
  5. package/dist/{assert_throws-CqMKbTh_.js → assert_throws-DTDC_gwN.js} +1 -1
  6. package/dist/{authdocloader-BxpW2l0x.js → authdocloader-CMmTK9S5.js} +3 -3
  7. package/dist/{authdocloader-DlQKiAuj.js → authdocloader-CrpSsLr1.js} +4 -3
  8. package/dist/{builder-Bql0U6IX.js → builder-DFk9FOJ6.js} +5 -4
  9. package/dist/chunk-HsBuZ-b2.js +41 -0
  10. package/dist/{client-CI4TcEtW.js → client-CYFhpq6p.js} +2 -2
  11. package/dist/compat/transformers.test.js +27 -20
  12. package/dist/context-B4-Ypxls.js +108 -0
  13. package/dist/docloader-09nVWLAZ.js +68 -0
  14. package/dist/{docloader-B6dtEu0e.js → docloader-B8jv3Z2V.js} +1 -2
  15. package/dist/docloader-xLomwjk3.js +4526 -0
  16. package/dist/{esm-80CEOYyg.js → esm-d-9EVGaP.js} +1 -1
  17. package/dist/federation/builder.test.js +16 -11
  18. package/dist/federation/collection.test.js +7 -9
  19. package/dist/federation/handler.test.js +35 -26
  20. package/dist/federation/inbox.test.js +10 -6
  21. package/dist/federation/keycache.test.js +7 -4
  22. package/dist/federation/kv.test.js +6 -8
  23. package/dist/federation/middleware.test.js +35 -27
  24. package/dist/federation/mod.js +10 -10
  25. package/dist/federation/mq.test.js +8 -10
  26. package/dist/federation/retry.test.js +3 -5
  27. package/dist/federation/router.test.js +7 -8
  28. package/dist/federation/send.test.js +21 -15
  29. package/dist/{http-Cdm4poZb.js → http-6MXyLsoh.js} +3 -2
  30. package/dist/{http-epXQkoos.js → http-DLoFeou5.js} +3 -3
  31. package/dist/{inbox-ClBcgVPg.js → inbox-K6Jqy_1j.js} +3 -1
  32. package/dist/{key-B2Vg4tVB.js → key-B56jBz9U.js} +4 -4
  33. package/dist/{key-Cl_Xlkrv.js → key-BAIJJ5gY.js} +2 -2
  34. package/dist/key-Be2GEH6h.js +16 -0
  35. package/dist/{key-D2T-GDYd.js → key-DbuLgndY.js} +3 -2
  36. package/dist/{keycache-M-zWLLCU.js → keycache-D2ce3zUW.js} +1 -1
  37. package/dist/{keys-qx88le-G.js → keys-Cl8uuXBD.js} +1 -1
  38. package/dist/langstr-DbWheeIS.js +33 -0
  39. package/dist/{ld-ZkyR7ab4.js → ld-WpKwgDtk.js} +4 -2
  40. package/dist/lookup-BhK5FmDe.js +132 -0
  41. package/dist/{lookup-BlMMBOS2.js → lookup-ByMEYudm.js} +1 -1
  42. package/dist/{lookup-BH2SgpoS.js → lookup-DMKWAbKW.js} +6 -113
  43. package/dist/middleware-B-tW_fwo.js +17 -0
  44. package/dist/middleware-Ba5IuZoK.js +33 -0
  45. package/dist/{middleware-0TQ_tx1T.js → middleware-Dbj6Ns6x.js} +21 -17
  46. package/dist/{middleware-Cye6GERQ.js → middleware-vpRI19Dq.js} +11 -11
  47. package/dist/mod.js +10 -10
  48. package/dist/multibase-DeCHcK8L.js +316 -0
  49. package/dist/nodeinfo/client.test.js +11 -11
  50. package/dist/nodeinfo/handler.test.js +34 -25
  51. package/dist/nodeinfo/mod.js +2 -2
  52. package/dist/nodeinfo/semver.test.js +7 -9
  53. package/dist/nodeinfo/types.test.js +8 -10
  54. package/dist/{owner-C_vL0hRG.js → owner-jodbuyfr.js} +3 -2
  55. package/dist/{proof-CiYpiavN.js → proof-BSG6S-sj.js} +3 -3
  56. package/dist/{proof-Dz3Yq7kI.js → proof-DZrqpsSm.js} +4 -2
  57. package/dist/router-D3UybECj.js +118 -0
  58. package/dist/runtime/authdocloader.test.js +20 -14
  59. package/dist/runtime/docloader.test.js +10 -9
  60. package/dist/runtime/key.test.js +15 -10
  61. package/dist/runtime/langstr.test.js +7 -8
  62. package/dist/runtime/mod.js +6 -6
  63. package/dist/runtime/multibase/multibase.test.js +7 -8
  64. package/dist/runtime/url.test.js +4 -5
  65. package/dist/{send-CDQXxlmm.js → send-CNN4e6xr.js} +2 -2
  66. package/dist/sig/http.test.js +19 -13
  67. package/dist/sig/key.test.js +17 -11
  68. package/dist/sig/ld.test.js +16 -10
  69. package/dist/sig/mod.js +6 -6
  70. package/dist/sig/owner.test.js +19 -12
  71. package/dist/sig/proof.test.js +18 -12
  72. package/dist/testing/docloader.test.js +7 -8
  73. package/dist/testing/mod.d.ts +1 -8387
  74. package/dist/testing/mod.js +2 -4
  75. package/dist/testing-BZ0dJ4qn.js +143 -0
  76. package/dist/type-D2s5lmbZ.js +14 -0
  77. package/dist/{types-E0EOd3en.js → types-9rwT068o.js} +1 -1
  78. package/dist/{types-n7HI7VFr.js → types-C7C_l-jz.js} +1 -1
  79. package/dist/url-kTAI6_KP.js +68 -0
  80. package/dist/vocab/actor.test.js +16 -10
  81. package/dist/vocab/lookup.test.js +16 -9
  82. package/dist/vocab/mod.js +4 -4
  83. package/dist/vocab/type.test.js +7 -3
  84. package/dist/vocab/vocab.test.js +13 -9
  85. package/dist/{type-BvQGw6hv.js → vocab-Db0G5VQ2.js} +183 -5255
  86. package/dist/{vocab-fVvi4e5m.js → vocab-iY_A93sn.js} +3 -3
  87. package/dist/webfinger/handler.test.js +34 -25
  88. package/dist/webfinger/lookup.test.js +10 -9
  89. package/dist/webfinger/mod.js +2 -2
  90. package/dist/x/cfworkers.test.js +6 -8
  91. package/package.json +1 -1
  92. package/dist/key-CE5RdobB.js +0 -10
  93. package/dist/middleware-DPQqiqLu.js +0 -26
  94. package/dist/middleware-Dh8xaPyd.js +0 -17
  95. package/dist/testing-COl4JbdC.js +0 -301
  96. /package/dist/{assert_is_error-CeVBLPsZ.js → assert_is_error-DQdKoRgb.js} +0 -0
  97. /package/dist/{assert_not_equals-D2R2nl5h.js → assert_not_equals-7pyUM3Ib.js} +0 -0
  98. /package/dist/{collection-D5V3UzU3.js → collection-Dfb0TPno.js} +0 -0
  99. /package/dist/{denokv-DK9P5Jq7.js → denokv-QWKsIqML.js} +0 -0
  100. /package/dist/{retry-BnpVRGFC.js → retry-BiIhZWgD.js} +0 -0
  101. /package/dist/{semver-DCqorrj5.js → semver-DWClQt_5.js} +0 -0
  102. /package/dist/{std__assert-BQdmxyzF.js → std__assert-B3iAixc-.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { __commonJS, __toESM } from "./type-BvQGw6hv.js";
6
+ import { __commonJS, __toESM } from "./chunk-HsBuZ-b2.js";
7
7
 
8
8
  //#region ../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
9
9
  var require_glob_to_regexp = __commonJS({ "../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
@@ -3,21 +3,26 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Note, Person } from "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
9
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
11
- import { parseSemVer } from "../semver-DCqorrj5.js";
12
- import "../lookup-BH2SgpoS.js";
13
- import "../inbox-ClBcgVPg.js";
14
- import { createFederationBuilder } from "../builder-Bql0U6IX.js";
15
- import { test } from "../testing-COl4JbdC.js";
16
- import { assertExists } from "../std__assert-BQdmxyzF.js";
17
- import "../assert_rejects-AjlKk-Vo.js";
18
- import "../assert_is_error-CeVBLPsZ.js";
19
- import "../assert_not_equals-D2R2nl5h.js";
20
- import "../assert_throws-CqMKbTh_.js";
10
+ import "../docloader-xLomwjk3.js";
11
+ import "../url-kTAI6_KP.js";
12
+ import { parseSemVer } from "../semver-DWClQt_5.js";
13
+ import "../router-D3UybECj.js";
14
+ import "../multibase-DeCHcK8L.js";
15
+ import { Activity, Note, Person } from "../vocab-Db0G5VQ2.js";
16
+ import "../langstr-DbWheeIS.js";
17
+ import "../type-D2s5lmbZ.js";
18
+ import "../inbox-K6Jqy_1j.js";
19
+ import { createFederationBuilder } from "../builder-DFk9FOJ6.js";
20
+ import { test } from "../testing-BZ0dJ4qn.js";
21
+ import { assertExists } from "../std__assert-B3iAixc-.js";
22
+ import "../assert_rejects-DceVjUlD.js";
23
+ import "../assert_is_error-DQdKoRgb.js";
24
+ import "../assert_not_equals-7pyUM3Ib.js";
25
+ import "../assert_throws-DTDC_gwN.js";
21
26
 
22
27
  //#region federation/builder.test.ts
23
28
  test("FederationBuilder", async (t) => {
@@ -3,18 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
- import "../lookup-BH2SgpoS.js";
11
- import { buildCollectionSynchronizationHeader, digest } from "../collection-D5V3UzU3.js";
12
- import { test } from "../testing-COl4JbdC.js";
13
- import "../std__assert-BQdmxyzF.js";
14
- import "../assert_rejects-AjlKk-Vo.js";
15
- import "../assert_is_error-CeVBLPsZ.js";
16
- import "../assert_not_equals-D2R2nl5h.js";
17
- import "../assert_throws-CqMKbTh_.js";
9
+ import { buildCollectionSynchronizationHeader, digest } from "../collection-Dfb0TPno.js";
10
+ import { test } from "../testing-BZ0dJ4qn.js";
11
+ import "../std__assert-B3iAixc-.js";
12
+ import "../assert_rejects-DceVjUlD.js";
13
+ import "../assert_is_error-DQdKoRgb.js";
14
+ import "../assert_not_equals-7pyUM3Ib.js";
15
+ import "../assert_throws-DTDC_gwN.js";
18
16
  import { decodeHex } from "byte-encodings/hex";
19
17
 
20
18
  //#region federation/collection.test.ts
@@ -3,36 +3,45 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Create, Note, Person } from "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import { assert } from "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
9
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
11
- import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-0TQ_tx1T.js";
12
- import "../semver-DCqorrj5.js";
13
- import "../client-CI4TcEtW.js";
14
- import "../lookup-BH2SgpoS.js";
15
- import "../types-n7HI7VFr.js";
16
- import "../actor-6WfgEEM7.js";
17
- import "../key-D2T-GDYd.js";
18
- import { signRequest } from "../http-Cdm4poZb.js";
19
- import "../authdocloader-DlQKiAuj.js";
20
- import "../ld-ZkyR7ab4.js";
21
- import "../owner-C_vL0hRG.js";
22
- import "../proof-Dz3Yq7kI.js";
23
- import "../inbox-ClBcgVPg.js";
24
- import "../builder-Bql0U6IX.js";
25
- import "../collection-D5V3UzU3.js";
26
- import "../keycache-M-zWLLCU.js";
27
- import "../retry-BnpVRGFC.js";
28
- import "../send-CDQXxlmm.js";
29
- import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-COl4JbdC.js";
30
- import "../std__assert-BQdmxyzF.js";
31
- import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
32
- import "../assert_is_error-CeVBLPsZ.js";
33
- import "../assert_not_equals-D2R2nl5h.js";
34
- import "../assert_throws-CqMKbTh_.js";
35
- import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-qx88le-G.js";
10
+ import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Dbj6Ns6x.js";
11
+ import "../docloader-xLomwjk3.js";
12
+ import "../url-kTAI6_KP.js";
13
+ import "../semver-DWClQt_5.js";
14
+ import "../client-CYFhpq6p.js";
15
+ import "../router-D3UybECj.js";
16
+ import "../types-C7C_l-jz.js";
17
+ import "../multibase-DeCHcK8L.js";
18
+ import { Create, Note, Person } from "../vocab-Db0G5VQ2.js";
19
+ import "../langstr-DbWheeIS.js";
20
+ import "../lookup-BhK5FmDe.js";
21
+ import "../type-D2s5lmbZ.js";
22
+ import "../actor-CiCVXwx3.js";
23
+ import "../key-DbuLgndY.js";
24
+ import { signRequest } from "../http-6MXyLsoh.js";
25
+ import "../authdocloader-CrpSsLr1.js";
26
+ import "../ld-WpKwgDtk.js";
27
+ import "../owner-jodbuyfr.js";
28
+ import "../proof-DZrqpsSm.js";
29
+ import "../lookup-DMKWAbKW.js";
30
+ import "../inbox-K6Jqy_1j.js";
31
+ import "../builder-DFk9FOJ6.js";
32
+ import "../collection-Dfb0TPno.js";
33
+ import "../keycache-D2ce3zUW.js";
34
+ import "../retry-BiIhZWgD.js";
35
+ import "../send-CNN4e6xr.js";
36
+ import { test } from "../testing-BZ0dJ4qn.js";
37
+ import "../std__assert-B3iAixc-.js";
38
+ import { assertFalse } from "../assert_rejects-DceVjUlD.js";
39
+ import "../assert_is_error-DQdKoRgb.js";
40
+ import "../assert_not_equals-7pyUM3Ib.js";
41
+ import "../assert_throws-DTDC_gwN.js";
42
+ import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
43
+ import { createInboxContext, createRequestContext } from "../context-B4-Ypxls.js";
44
+ import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-Cl8uuXBD.js";
36
45
 
37
46
  //#region federation/handler.test.ts
38
47
  test("acceptsJsonLd()", () => {
@@ -3,13 +3,17 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Create, Invite, Offer, Update } from "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
- import "../lookup-BH2SgpoS.js";
9
- import { InboxListenerSet } from "../inbox-ClBcgVPg.js";
10
- import { test } from "../testing-COl4JbdC.js";
11
- import "../assert_is_error-CeVBLPsZ.js";
12
- import { assertThrows } from "../assert_throws-CqMKbTh_.js";
7
+ import "../docloader-xLomwjk3.js";
8
+ import "../url-kTAI6_KP.js";
9
+ import "../multibase-DeCHcK8L.js";
10
+ import { Activity, Create, Invite, Offer, Update } from "../vocab-Db0G5VQ2.js";
11
+ import "../langstr-DbWheeIS.js";
12
+ import "../type-D2s5lmbZ.js";
13
+ import { InboxListenerSet } from "../inbox-K6Jqy_1j.js";
14
+ import { test } from "../testing-BZ0dJ4qn.js";
15
+ import "../assert_is_error-DQdKoRgb.js";
16
+ import { assertThrows } from "../assert_throws-DTDC_gwN.js";
13
17
 
14
18
  //#region federation/inbox.test.ts
15
19
  test("InboxListenerSet", () => {
@@ -3,14 +3,17 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import { assert } from "../assert-DwEa6glZ.js";
9
8
  import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
10
9
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
11
- import "../lookup-BH2SgpoS.js";
12
- import { KvKeyCache } from "../keycache-M-zWLLCU.js";
13
- import { test } from "../testing-COl4JbdC.js";
10
+ import "../docloader-xLomwjk3.js";
11
+ import "../url-kTAI6_KP.js";
12
+ import "../multibase-DeCHcK8L.js";
13
+ import { CryptographicKey, Multikey } from "../vocab-Db0G5VQ2.js";
14
+ import "../langstr-DbWheeIS.js";
15
+ import { KvKeyCache } from "../keycache-D2ce3zUW.js";
16
+ import { test } from "../testing-BZ0dJ4qn.js";
14
17
 
15
18
  //#region federation/keycache.test.ts
16
19
  test("KvKeyCache.set()", async () => {
@@ -3,18 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
9
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
11
- import "../lookup-BH2SgpoS.js";
12
- import { test } from "../testing-COl4JbdC.js";
13
- import "../std__assert-BQdmxyzF.js";
14
- import "../assert_rejects-AjlKk-Vo.js";
15
- import "../assert_is_error-CeVBLPsZ.js";
16
- import "../assert_not_equals-D2R2nl5h.js";
17
- import "../assert_throws-CqMKbTh_.js";
10
+ import { test } from "../testing-BZ0dJ4qn.js";
11
+ import "../std__assert-B3iAixc-.js";
12
+ import "../assert_rejects-DceVjUlD.js";
13
+ import "../assert_is_error-DQdKoRgb.js";
14
+ import "../assert_not_equals-7pyUM3Ib.js";
15
+ import "../assert_throws-DTDC_gwN.js";
18
16
 
19
17
  //#region federation/kv.test.ts
20
18
  test("MemoryKvStore", async (t) => {
@@ -3,37 +3,45 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import { assert } from "../assert-DwEa6glZ.js";
9
8
  import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
10
9
  import { MemoryKvStore } from "../kv-D7Yt6pnB.js";
11
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-0TQ_tx1T.js";
12
- import "../semver-DCqorrj5.js";
13
- import "../client-CI4TcEtW.js";
14
- import { RouterError, lookupObject } from "../lookup-BH2SgpoS.js";
15
- import "../types-n7HI7VFr.js";
16
- import "../actor-6WfgEEM7.js";
17
- import "../key-D2T-GDYd.js";
18
- import { signRequest, verifyRequest } from "../http-Cdm4poZb.js";
19
- import { getAuthenticatedDocumentLoader } from "../authdocloader-DlQKiAuj.js";
20
- import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-ZkyR7ab4.js";
21
- import { doesActorOwnKey } from "../owner-C_vL0hRG.js";
22
- import { signObject, verifyObject } from "../proof-Dz3Yq7kI.js";
23
- import "../inbox-ClBcgVPg.js";
24
- import "../builder-Bql0U6IX.js";
25
- import "../collection-D5V3UzU3.js";
26
- import "../keycache-M-zWLLCU.js";
27
- import "../retry-BnpVRGFC.js";
28
- import "../send-CDQXxlmm.js";
29
- import { mockDocumentLoader, test } from "../testing-COl4JbdC.js";
30
- import { assertStrictEquals } from "../std__assert-BQdmxyzF.js";
31
- import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
32
- import "../assert_is_error-CeVBLPsZ.js";
33
- import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
34
- import { assertThrows } from "../assert_throws-CqMKbTh_.js";
35
- import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-qx88le-G.js";
36
- import { esm_default } from "../esm-80CEOYyg.js";
10
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-Dbj6Ns6x.js";
11
+ import { FetchError, fetchDocumentLoader } from "../docloader-xLomwjk3.js";
12
+ import "../url-kTAI6_KP.js";
13
+ import "../semver-DWClQt_5.js";
14
+ import "../client-CYFhpq6p.js";
15
+ import { RouterError } from "../router-D3UybECj.js";
16
+ import "../types-C7C_l-jz.js";
17
+ import "../multibase-DeCHcK8L.js";
18
+ import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-Db0G5VQ2.js";
19
+ import "../langstr-DbWheeIS.js";
20
+ import "../lookup-BhK5FmDe.js";
21
+ import { getTypeId } from "../type-D2s5lmbZ.js";
22
+ import "../actor-CiCVXwx3.js";
23
+ import "../key-DbuLgndY.js";
24
+ import { signRequest, verifyRequest } from "../http-6MXyLsoh.js";
25
+ import { getAuthenticatedDocumentLoader } from "../authdocloader-CrpSsLr1.js";
26
+ import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-WpKwgDtk.js";
27
+ import { doesActorOwnKey } from "../owner-jodbuyfr.js";
28
+ import { signObject, verifyObject } from "../proof-DZrqpsSm.js";
29
+ import { lookupObject } from "../lookup-DMKWAbKW.js";
30
+ import "../inbox-K6Jqy_1j.js";
31
+ import "../builder-DFk9FOJ6.js";
32
+ import "../collection-Dfb0TPno.js";
33
+ import "../keycache-D2ce3zUW.js";
34
+ import "../retry-BiIhZWgD.js";
35
+ import "../send-CNN4e6xr.js";
36
+ import { test } from "../testing-BZ0dJ4qn.js";
37
+ import { assertStrictEquals } from "../std__assert-B3iAixc-.js";
38
+ import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
39
+ import "../assert_is_error-DQdKoRgb.js";
40
+ import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
41
+ import { assertThrows } from "../assert_throws-DTDC_gwN.js";
42
+ import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
43
+ import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-Cl8uuXBD.js";
44
+ import { esm_default } from "../esm-d-9EVGaP.js";
37
45
 
38
46
  //#region testing/fixtures/example.com/person.json
39
47
  var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
@@ -3,16 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import "../transformers-ghwJuzGY.js";
6
- import "../docloader-B6dtEu0e.js";
7
- import "../actor-BvUN9QgD.js";
8
- import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Cye6GERQ.js";
9
- import "../lookup-BlMMBOS2.js";
10
- import "../key-Cl_Xlkrv.js";
11
- import "../http-epXQkoos.js";
12
- import "../proof-CiYpiavN.js";
6
+ import "../docloader-B8jv3Z2V.js";
7
+ import "../actor-DOUbHIhg.js";
8
+ import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-vpRI19Dq.js";
9
+ import "../lookup-ByMEYudm.js";
10
+ import "../key-BAIJJ5gY.js";
11
+ import "../http-DLoFeou5.js";
12
+ import "../proof-BSG6S-sj.js";
13
13
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-C44ekWNP.js";
14
- import "../types-E0EOd3en.js";
15
- import "../authdocloader-BxpW2l0x.js";
16
- import "../vocab-fVvi4e5m.js";
14
+ import "../types-9rwT068o.js";
15
+ import "../authdocloader-CMmTK9S5.js";
16
+ import "../vocab-iY_A93sn.js";
17
17
 
18
18
  export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
@@ -3,17 +3,15 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import { assert } from "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
- import "../lookup-BH2SgpoS.js";
11
- import { test } from "../testing-COl4JbdC.js";
12
- import { assertGreater, assertGreaterOrEqual } from "../std__assert-BQdmxyzF.js";
13
- import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
14
- import "../assert_is_error-CeVBLPsZ.js";
15
- import "../assert_not_equals-D2R2nl5h.js";
16
- import "../assert_throws-CqMKbTh_.js";
9
+ import { test } from "../testing-BZ0dJ4qn.js";
10
+ import { assertGreater, assertGreaterOrEqual } from "../std__assert-B3iAixc-.js";
11
+ import { assertFalse } from "../assert_rejects-DceVjUlD.js";
12
+ import "../assert_is_error-DQdKoRgb.js";
13
+ import "../assert_not_equals-7pyUM3Ib.js";
14
+ import "../assert_throws-DTDC_gwN.js";
17
15
  import { delay } from "es-toolkit";
18
16
 
19
17
  //#region federation/mq.ts
@@ -227,7 +225,7 @@ test("InProcessMessageQueue", async (t) => {
227
225
  });
228
226
  test("MessageQueue.nativeRetrial", async (t) => {
229
227
  if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") await t.step("DenoKvMessageQueue", async () => {
230
- const { DenoKvMessageQueue } = await import("../denokv-DK9P5Jq7.js");
228
+ const { DenoKvMessageQueue } = await import("../denokv-QWKsIqML.js");
231
229
  const mq = new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
232
230
  assert(mq.nativeRetrial);
233
231
  if (Symbol.dispose in mq) {
@@ -266,7 +264,7 @@ test("MessageQueue.nativeRetrial", async (t) => {
266
264
  });
267
265
  const queues = { InProcessMessageQueue: () => Promise.resolve(new InProcessMessageQueue()) };
268
266
  if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") {
269
- const { DenoKvMessageQueue } = await import("../denokv-DK9P5Jq7.js");
267
+ const { DenoKvMessageQueue } = await import("../denokv-QWKsIqML.js");
270
268
  queues.DenoKvMessageQueue = async () => new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
271
269
  }
272
270
  for (const mqName in queues) test({
@@ -3,12 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-BvQGw6hv.js";
7
6
  import { AssertionError, assertEquals } from "../assert_equals-C5gKCm6A.js";
8
- import "../lookup-BH2SgpoS.js";
9
- import { createExponentialBackoffPolicy } from "../retry-BnpVRGFC.js";
10
- import { test } from "../testing-COl4JbdC.js";
11
- import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
7
+ import { createExponentialBackoffPolicy } from "../retry-BiIhZWgD.js";
8
+ import { test } from "../testing-BZ0dJ4qn.js";
9
+ import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
12
10
 
13
11
  //#region federation/retry.test.ts
14
12
  test("createExponentialBackoffPolicy()", () => {
@@ -3,17 +3,16 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import { assert } from "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
- import { Router, RouterError } from "../lookup-BH2SgpoS.js";
11
- import { test } from "../testing-COl4JbdC.js";
12
- import "../std__assert-BQdmxyzF.js";
13
- import { assertFalse } from "../assert_rejects-AjlKk-Vo.js";
14
- import "../assert_is_error-CeVBLPsZ.js";
15
- import "../assert_not_equals-D2R2nl5h.js";
16
- import { assertThrows } from "../assert_throws-CqMKbTh_.js";
9
+ import { Router, RouterError } from "../router-D3UybECj.js";
10
+ import { test } from "../testing-BZ0dJ4qn.js";
11
+ import "../std__assert-B3iAixc-.js";
12
+ import { assertFalse } from "../assert_rejects-DceVjUlD.js";
13
+ import "../assert_is_error-DQdKoRgb.js";
14
+ import "../assert_not_equals-7pyUM3Ib.js";
15
+ import { assertThrows } from "../assert_throws-DTDC_gwN.js";
17
16
 
18
17
  //#region federation/router.test.ts
19
18
  function setUp(options = {}) {
@@ -3,24 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Application, Endpoints, Group, Person, Service } from "../type-BvQGw6hv.js";
7
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
7
  import { assert } from "../assert-DwEa6glZ.js";
9
8
  import "../assert_instance_of-C9QtN-X9.js";
10
- import "../lookup-BH2SgpoS.js";
11
- import "../actor-6WfgEEM7.js";
12
- import "../key-D2T-GDYd.js";
13
- import { verifyRequest } from "../http-Cdm4poZb.js";
14
- import { doesActorOwnKey } from "../owner-C_vL0hRG.js";
15
- import { extractInboxes, sendActivity } from "../send-CDQXxlmm.js";
16
- import { mockDocumentLoader, test } from "../testing-COl4JbdC.js";
17
- import "../std__assert-BQdmxyzF.js";
18
- import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
19
- import "../assert_is_error-CeVBLPsZ.js";
20
- import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
21
- import "../assert_throws-CqMKbTh_.js";
22
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-qx88le-G.js";
23
- import { esm_default } from "../esm-80CEOYyg.js";
9
+ import "../docloader-xLomwjk3.js";
10
+ import "../url-kTAI6_KP.js";
11
+ import "../multibase-DeCHcK8L.js";
12
+ import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-Db0G5VQ2.js";
13
+ import "../langstr-DbWheeIS.js";
14
+ import "../lookup-BhK5FmDe.js";
15
+ import "../type-D2s5lmbZ.js";
16
+ import "../actor-CiCVXwx3.js";
17
+ import "../key-DbuLgndY.js";
18
+ import { verifyRequest } from "../http-6MXyLsoh.js";
19
+ import { doesActorOwnKey } from "../owner-jodbuyfr.js";
20
+ import { extractInboxes, sendActivity } from "../send-CNN4e6xr.js";
21
+ import { test } from "../testing-BZ0dJ4qn.js";
22
+ import "../std__assert-B3iAixc-.js";
23
+ import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
24
+ import "../assert_is_error-DQdKoRgb.js";
25
+ import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
26
+ import "../assert_throws-DTDC_gwN.js";
27
+ import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
28
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-Cl8uuXBD.js";
29
+ import { esm_default } from "../esm-d-9EVGaP.js";
24
30
 
25
31
  //#region federation/send.test.ts
26
32
  test("extractInboxes()", () => {
@@ -3,8 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, deno_default } from "./type-BvQGw6hv.js";
7
- import { fetchKey, validateCryptoKey } from "./key-D2T-GDYd.js";
6
+ import { deno_default } from "./docloader-xLomwjk3.js";
7
+ import { CryptographicKey } from "./vocab-Db0G5VQ2.js";
8
+ import { fetchKey, validateCryptoKey } from "./key-DbuLgndY.js";
8
9
  import { getLogger } from "@logtape/logtape";
9
10
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
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-B6dtEu0e.js";
6
- import { CryptographicKey } from "./actor-BvUN9QgD.js";
7
- import { fetchKey, validateCryptoKey } from "./key-Cl_Xlkrv.js";
5
+ import { deno_default } from "./docloader-B8jv3Z2V.js";
6
+ import { CryptographicKey } from "./actor-DOUbHIhg.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-BAIJJ5gY.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,7 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, deno_default, getTypeId } from "./type-BvQGw6hv.js";
6
+ import { deno_default } from "./docloader-xLomwjk3.js";
7
+ import { Activity } from "./vocab-Db0G5VQ2.js";
8
+ import { getTypeId } from "./type-D2s5lmbZ.js";
7
9
  import { getLogger } from "@logtape/logtape";
8
10
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
9
11
 
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "./docloader-B6dtEu0e.js";
6
- import "./actor-BvUN9QgD.js";
7
- import "./lookup-BlMMBOS2.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Cl_Xlkrv.js";
5
+ import "./docloader-B8jv3Z2V.js";
6
+ import "./actor-DOUbHIhg.js";
7
+ import "./lookup-ByMEYudm.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BAIJJ5gY.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -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-B6dtEu0e.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-BvUN9QgD.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-B8jv3Z2V.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-DOUbHIhg.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -0,0 +1,16 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import "./docloader-xLomwjk3.js";
7
+ import "./url-kTAI6_KP.js";
8
+ import "./multibase-DeCHcK8L.js";
9
+ import "./vocab-Db0G5VQ2.js";
10
+ import "./langstr-DbWheeIS.js";
11
+ import "./lookup-BhK5FmDe.js";
12
+ import "./type-D2s5lmbZ.js";
13
+ import "./actor-CiCVXwx3.js";
14
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DbuLgndY.js";
15
+
16
+ export { validateCryptoKey };
@@ -3,8 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-BvQGw6hv.js";
7
- import { isActor } from "./actor-6WfgEEM7.js";
6
+ import { deno_default, getDocumentLoader } from "./docloader-xLomwjk3.js";
7
+ import { CryptographicKey, Object as Object$1 } from "./vocab-Db0G5VQ2.js";
8
+ import { isActor } from "./actor-CiCVXwx3.js";
8
9
  import { getLogger } from "@logtape/logtape";
9
10
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
11
 
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./type-BvQGw6hv.js";
6
+ import { CryptographicKey, Multikey } from "./vocab-Db0G5VQ2.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 "./type-BvQGw6hv.js";
6
+ import { CryptographicKey, Multikey, importSpki } from "./vocab-Db0G5VQ2.js";
7
7
 
8
8
  //#region testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -0,0 +1,33 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import { parseLanguageTag } from "@phensley/language-tag";
7
+
8
+ //#region runtime/langstr.ts
9
+ /**
10
+ * A language-tagged string which corresponds to the `rdf:langString` type.
11
+ */
12
+ var LanguageString = class extends String {
13
+ language;
14
+ /**
15
+ * Constructs a new `LanguageString`.
16
+ * @param value A string value written in the given language.
17
+ * @param language The language of the string. If a string is given, it will
18
+ * be parsed as a `LanguageTag`.
19
+ */
20
+ constructor(value, language) {
21
+ super(value);
22
+ this.language = typeof language === "string" ? parseLanguageTag(language) : language;
23
+ }
24
+ [Symbol.for("Deno.customInspect")](inspect, options) {
25
+ return `<${this.language.compact()}> ${inspect(this.toString(), options)}`;
26
+ }
27
+ [Symbol.for("nodejs.util.inspect.custom")](_depth, options, inspect) {
28
+ return `<${this.language.compact()}> ${inspect(this.toString(), options)}`;
29
+ }
30
+ };
31
+
32
+ //#endregion
33
+ export { LanguageString };