@fedify/fedify 1.6.10 → 1.6.12
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.
- package/dist/{actor-zJITiLGT.js → actor-7vCpWIGd.js} +1059 -2276
- package/dist/{actor-DIUXw3Jf.js → actor-BxaCJsn8.js} +6 -9
- package/dist/{assert-DmFG7ppO.js → assert-LOEeCUK5.js} +1 -1
- package/dist/{assert_equals-CTYbeopb.js → assert_equals-B44MxcIj.js} +2 -4
- package/dist/{assert_instance_of-CF09JHYM.js → assert_instance_of-XtuFevV_.js} +1 -1
- package/dist/{assert_is_error-nrwA1GeT.js → assert_is_error-BTlryvT0.js} +1 -1
- package/dist/{assert_not_equals-Dc7y-V5Q.js → assert_not_equals-C685gKx6.js} +1 -1
- package/dist/{assert_rejects-C-sxEMM5.js → assert_rejects-DWQ4jaf9.js} +2 -2
- package/dist/{assert_throws-Cn9C6Jur.js → assert_throws-YetpVSc-.js} +2 -2
- package/dist/{authdocloader-r__VtsYF.js → authdocloader-CVhMTbv4.js} +4 -4
- package/dist/{authdocloader-BcwoX8r4.js → authdocloader-niAJMnCQ.js} +3 -3
- package/dist/{builder-ec-rmcfn.js → builder-DboGa9iv.js} +7 -10
- package/dist/{chunk-HsBuZ-b2.js → chunk-Cx8LTkjm.js} +3 -1
- package/dist/{client-Ct6EJXY4.js → client-De_5-2EG.js} +6 -6
- package/dist/compat/transformers.test.js +27 -28
- package/dist/{context-B51aFJ33.js → context-KOy1fHBn.js} +2 -2
- package/dist/{docloader-Bk8yyKtx.js → docloader-CPBLJsVK.js} +4 -6
- package/dist/{docloader-D4xNpZfb.js → docloader-RFcxdgI8.js} +5 -9
- package/dist/{esm-Db4De7AS.js → esm-DO9PrujO.js} +23 -34
- package/dist/federation/builder.test.js +20 -23
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +33 -33
- package/dist/federation/inbox.test.js +10 -10
- package/dist/federation/keycache.test.js +9 -9
- package/dist/federation/kv.test.js +10 -9
- package/dist/federation/middleware.test.js +53 -68
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +10 -11
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +9 -9
- package/dist/federation/send.test.js +22 -22
- package/dist/{federation-3B6BDKCK.js → federation-DyRlaC4X.js} +1 -2
- package/dist/{http-BqI8l_zq.js → http-B__WhFrv.js} +8 -15
- package/dist/{http-BjXvFars.js → http-CnSGudcE.js} +8 -15
- package/dist/{inbox-BVf3oh4Y.js → inbox-L4MTtAQ4.js} +5 -7
- package/dist/{key-C_PfBuZC.js → key-BG_CTepE.js} +4 -4
- package/dist/{key-avTzmEfO.js → key-BQg3A7eo.js} +5 -8
- package/dist/key-CeY-eted.js +16 -0
- package/dist/{key-D_WrdfTP.js → key-Dlbuqhbr.js} +6 -9
- package/dist/{keycache-GLblHhov.js → keycache-BEb0DSk7.js} +2 -2
- package/dist/{keys-DDHFsLa-.js → keys-CqpeF-EG.js} +1 -1
- package/dist/{ld-yhnqjt2k.js → ld-45SsuOmB.js} +9 -16
- package/dist/{lookup-CIYoashs.js → lookup-CWdbkwKD.js} +7 -11
- package/dist/{lookup-Czw5r0oM.js → lookup-CdHTw-tQ.js} +2 -4
- package/dist/{lookup-CCdJ24ZP.js → lookup-HY083HcK.js} +3 -5
- package/dist/middleware-BP-XbRGC.js +17 -0
- package/dist/{middleware-C69vl3qG.js → middleware-Cg-eSyqX.js} +34 -58
- package/dist/{middleware-C9Y127V3.js → middleware-D2HU0DhQ.js} +34 -52
- package/dist/middleware-JoLpCiMC.js +33 -0
- package/dist/mod.js +11 -11
- package/dist/{multibase-DeCHcK8L.js → multibase-CnLHszip.js} +1 -2
- package/dist/nodeinfo/client.test.js +20 -23
- package/dist/nodeinfo/handler.test.js +32 -32
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +23 -30
- package/dist/nodeinfo/types.test.js +11 -11
- package/dist/{owner-CqOZVri-.js → owner-BYxqeMiw.js} +3 -3
- package/dist/{proof-BYiV2_yo.js → proof-BjHA4H_1.js} +8 -14
- package/dist/{proof-BpBPpfw4.js → proof-DVYup76O.js} +12 -25
- package/dist/runtime/authdocloader.test.js +21 -21
- package/dist/runtime/docloader.test.js +16 -18
- package/dist/runtime/key.test.js +17 -17
- package/dist/runtime/langstr.test.js +9 -9
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +11 -12
- package/dist/runtime/url.test.js +6 -6
- package/dist/{semver-DWClQt_5.js → semver-BNrOOAs9.js} +1 -3
- package/dist/{send-B7cv9i7f.js → send-BQA1p7vs.js} +3 -4
- package/dist/sig/http.test.js +39 -53
- package/dist/sig/key.test.js +18 -18
- package/dist/sig/ld.test.js +20 -22
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +20 -20
- package/dist/sig/proof.test.js +19 -19
- package/dist/{std__assert-vp0TKMS1.js → std__assert-o_r9vqm1.js} +1 -1
- package/dist/testing/docloader.test.js +9 -9
- package/dist/testing/mod.js +1 -1
- package/dist/{testing-BZ0dJ4qn.js → testing-DLyvtiiW.js} +3 -5
- package/dist/{type-D2s5lmbZ.js → type-CFuiGLz9.js} +1 -2
- package/dist/{types-C7C_l-jz.js → types-CJHS5pXl.js} +1 -1
- package/dist/{types-sw4Fdy78.js → types-D7_MRRa4.js} +6 -8
- package/dist/{url-kTAI6_KP.js → url-C2xuoQD1.js} +2 -4
- package/dist/vocab/actor.test.js +104 -156
- package/dist/vocab/lookup.test.js +17 -17
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +11 -15
- package/dist/vocab/vocab.test.js +68 -49
- package/dist/{vocab-CcGSU3Wf.js → vocab-DVEzP_bQ.js} +1057 -2270
- package/dist/{vocab-BT10fLiU.js → vocab-aaGb1Tji.js} +6 -10
- package/dist/webfinger/handler.test.js +33 -34
- package/dist/webfinger/lookup.test.js +13 -13
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +9 -9
- package/package.json +1 -1
- package/dist/key-C0_lA6sj.js +0 -16
- package/dist/middleware-BZY7OuAu.js +0 -17
- package/dist/middleware-CcsOhLqv.js +0 -33
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
|
10
|
-
import "../docloader-
|
|
11
|
-
import "../url-
|
|
12
|
-
import { parseSemVer } from "../semver-
|
|
10
|
+
import "../docloader-CPBLJsVK.js";
|
|
11
|
+
import "../url-C2xuoQD1.js";
|
|
12
|
+
import { parseSemVer } from "../semver-BNrOOAs9.js";
|
|
13
13
|
import "../router-D_aVZZUc.js";
|
|
14
|
-
import "../multibase-
|
|
15
|
-
import { Activity, Note, Person } from "../vocab-
|
|
14
|
+
import "../multibase-CnLHszip.js";
|
|
15
|
+
import { Activity, Note, Person } from "../vocab-DVEzP_bQ.js";
|
|
16
16
|
import "../langstr-DbWheeIS.js";
|
|
17
|
-
import "../type-
|
|
18
|
-
import "../inbox-
|
|
19
|
-
import { createFederationBuilder } from "../builder-
|
|
20
|
-
import { test } from "../testing-
|
|
21
|
-
import { assertExists } from "../std__assert-
|
|
22
|
-
import "../assert_rejects-
|
|
23
|
-
import "../assert_is_error-
|
|
24
|
-
import "../assert_not_equals-
|
|
25
|
-
import "../assert_throws-
|
|
17
|
+
import "../type-CFuiGLz9.js";
|
|
18
|
+
import "../inbox-L4MTtAQ4.js";
|
|
19
|
+
import { createFederationBuilder } from "../builder-DboGa9iv.js";
|
|
20
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
21
|
+
import { assertExists } from "../std__assert-o_r9vqm1.js";
|
|
22
|
+
import "../assert_rejects-DWQ4jaf9.js";
|
|
23
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
24
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
25
|
+
import "../assert_throws-YetpVSc-.js";
|
|
26
26
|
|
|
27
27
|
//#region federation/builder.test.ts
|
|
28
28
|
test("FederationBuilder", async (t) => {
|
|
@@ -34,8 +34,7 @@ test("FederationBuilder", async (t) => {
|
|
|
34
34
|
};
|
|
35
35
|
builder.setActorDispatcher("/users/{identifier}", actorDispatcher);
|
|
36
36
|
const inboxListener = (_ctx, _activity) => {};
|
|
37
|
-
|
|
38
|
-
listeners.on(Activity, inboxListener);
|
|
37
|
+
builder.setInboxListeners("/users/{identifier}/inbox").on(Activity, inboxListener);
|
|
39
38
|
const objectDispatcher = (_ctx, _values) => {
|
|
40
39
|
return null;
|
|
41
40
|
};
|
|
@@ -86,8 +85,7 @@ test("FederationBuilder", async (t) => {
|
|
|
86
85
|
const kv = new MemoryKvStore();
|
|
87
86
|
const federation = await builder.build({ kv });
|
|
88
87
|
assertExists(federation);
|
|
89
|
-
|
|
90
|
-
assertEquals(impl.kv, kv);
|
|
88
|
+
assertEquals(federation.kv, kv);
|
|
91
89
|
});
|
|
92
90
|
await t.step("should pass build options correctly", async () => {
|
|
93
91
|
const builder = createFederationBuilder();
|
|
@@ -118,8 +116,7 @@ test("FederationBuilder", async (t) => {
|
|
|
118
116
|
};
|
|
119
117
|
builder.setObjectDispatcher(Note, "/notes/{id}", noteDispatcher);
|
|
120
118
|
builder.setObjectDispatcher(Person, "/people/{id}", personDispatcher);
|
|
121
|
-
const
|
|
122
|
-
const impl = federation;
|
|
119
|
+
const impl = await builder.build({ kv });
|
|
123
120
|
assertExists(impl.objectCallbacks[Note.typeId.href]);
|
|
124
121
|
assertExists(impl.objectCallbacks[Person.typeId.href]);
|
|
125
122
|
const notePath = impl.router.build(`object:${Note.typeId.href}`, { id: "123" });
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-Dfb0TPno.js";
|
|
10
|
-
import { test } from "../testing-
|
|
11
|
-
import "../std__assert-
|
|
12
|
-
import "../assert_rejects-
|
|
13
|
-
import "../assert_is_error-
|
|
14
|
-
import "../assert_not_equals-
|
|
15
|
-
import "../assert_throws-
|
|
10
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
11
|
+
import "../std__assert-o_r9vqm1.js";
|
|
12
|
+
import "../assert_rejects-DWQ4jaf9.js";
|
|
13
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
14
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
15
|
+
import "../assert_throws-YetpVSc-.js";
|
|
16
16
|
import { decodeHex } from "byte-encodings/hex";
|
|
17
17
|
|
|
18
18
|
//#region federation/collection.test.ts
|
|
@@ -3,45 +3,45 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
|
10
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
-
import "../docloader-
|
|
12
|
-
import "../url-
|
|
13
|
-
import "../semver-
|
|
14
|
-
import "../client-
|
|
10
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-D2HU0DhQ.js";
|
|
11
|
+
import "../docloader-CPBLJsVK.js";
|
|
12
|
+
import "../url-C2xuoQD1.js";
|
|
13
|
+
import "../semver-BNrOOAs9.js";
|
|
14
|
+
import "../client-De_5-2EG.js";
|
|
15
15
|
import "../router-D_aVZZUc.js";
|
|
16
|
-
import "../types-
|
|
17
|
-
import "../multibase-
|
|
18
|
-
import { Create, Note, Person } from "../vocab-
|
|
16
|
+
import "../types-CJHS5pXl.js";
|
|
17
|
+
import "../multibase-CnLHszip.js";
|
|
18
|
+
import { Create, Note, Person } from "../vocab-DVEzP_bQ.js";
|
|
19
19
|
import "../langstr-DbWheeIS.js";
|
|
20
|
-
import "../lookup-
|
|
21
|
-
import "../type-
|
|
22
|
-
import "../actor-
|
|
23
|
-
import "../key-
|
|
24
|
-
import { signRequest } from "../http-
|
|
25
|
-
import "../authdocloader-
|
|
26
|
-
import "../ld-
|
|
27
|
-
import "../owner-
|
|
28
|
-
import "../proof-
|
|
29
|
-
import "../lookup-
|
|
30
|
-
import { InboxListenerSet } from "../inbox-
|
|
31
|
-
import "../builder-
|
|
20
|
+
import "../lookup-HY083HcK.js";
|
|
21
|
+
import "../type-CFuiGLz9.js";
|
|
22
|
+
import "../actor-BxaCJsn8.js";
|
|
23
|
+
import "../key-Dlbuqhbr.js";
|
|
24
|
+
import { signRequest } from "../http-CnSGudcE.js";
|
|
25
|
+
import "../authdocloader-CVhMTbv4.js";
|
|
26
|
+
import "../ld-45SsuOmB.js";
|
|
27
|
+
import "../owner-BYxqeMiw.js";
|
|
28
|
+
import "../proof-BjHA4H_1.js";
|
|
29
|
+
import "../lookup-CWdbkwKD.js";
|
|
30
|
+
import { InboxListenerSet } from "../inbox-L4MTtAQ4.js";
|
|
31
|
+
import "../builder-DboGa9iv.js";
|
|
32
32
|
import "../collection-Dfb0TPno.js";
|
|
33
|
-
import "../keycache-
|
|
33
|
+
import "../keycache-BEb0DSk7.js";
|
|
34
34
|
import "../retry-BiIhZWgD.js";
|
|
35
|
-
import "../send-
|
|
36
|
-
import { test } from "../testing-
|
|
37
|
-
import "../std__assert-
|
|
38
|
-
import { assertFalse } from "../assert_rejects-
|
|
39
|
-
import "../assert_is_error-
|
|
40
|
-
import "../assert_not_equals-
|
|
41
|
-
import "../assert_throws-
|
|
35
|
+
import "../send-BQA1p7vs.js";
|
|
36
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
37
|
+
import "../std__assert-o_r9vqm1.js";
|
|
38
|
+
import { assertFalse } from "../assert_rejects-DWQ4jaf9.js";
|
|
39
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
40
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
41
|
+
import "../assert_throws-YetpVSc-.js";
|
|
42
42
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
43
|
-
import { createInboxContext, createRequestContext } from "../context-
|
|
44
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
43
|
+
import { createInboxContext, createRequestContext } from "../context-KOy1fHBn.js";
|
|
44
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CqpeF-EG.js";
|
|
45
45
|
|
|
46
46
|
//#region federation/handler.test.ts
|
|
47
47
|
test("acceptsJsonLd()", () => {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../docloader-
|
|
8
|
-
import "../url-
|
|
9
|
-
import "../multibase-
|
|
10
|
-
import { Activity, Create, Invite, Offer, Update } from "../vocab-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../docloader-CPBLJsVK.js";
|
|
8
|
+
import "../url-C2xuoQD1.js";
|
|
9
|
+
import "../multibase-CnLHszip.js";
|
|
10
|
+
import { Activity, Create, Invite, Offer, Update } from "../vocab-DVEzP_bQ.js";
|
|
11
11
|
import "../langstr-DbWheeIS.js";
|
|
12
|
-
import "../type-
|
|
13
|
-
import { InboxListenerSet } from "../inbox-
|
|
14
|
-
import { test } from "../testing-
|
|
15
|
-
import "../assert_is_error-
|
|
16
|
-
import { assertThrows } from "../assert_throws-
|
|
12
|
+
import "../type-CFuiGLz9.js";
|
|
13
|
+
import { InboxListenerSet } from "../inbox-L4MTtAQ4.js";
|
|
14
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
15
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
16
|
+
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
17
17
|
|
|
18
18
|
//#region federation/inbox.test.ts
|
|
19
19
|
test("InboxListenerSet", () => {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
|
10
|
-
import "../docloader-
|
|
11
|
-
import "../url-
|
|
12
|
-
import "../multibase-
|
|
13
|
-
import { CryptographicKey, Multikey } from "../vocab-
|
|
10
|
+
import "../docloader-CPBLJsVK.js";
|
|
11
|
+
import "../url-C2xuoQD1.js";
|
|
12
|
+
import "../multibase-CnLHszip.js";
|
|
13
|
+
import { CryptographicKey, Multikey } from "../vocab-DVEzP_bQ.js";
|
|
14
14
|
import "../langstr-DbWheeIS.js";
|
|
15
|
-
import { KvKeyCache } from "../keycache-
|
|
16
|
-
import { test } from "../testing-
|
|
15
|
+
import { KvKeyCache } from "../keycache-BEb0DSk7.js";
|
|
16
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
17
17
|
|
|
18
18
|
//#region federation/keycache.test.ts
|
|
19
19
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
|
10
|
-
import { test } from "../testing-
|
|
11
|
-
import "../std__assert-
|
|
12
|
-
import "../assert_rejects-
|
|
13
|
-
import "../assert_is_error-
|
|
14
|
-
import "../assert_not_equals-
|
|
15
|
-
import "../assert_throws-
|
|
10
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
11
|
+
import "../std__assert-o_r9vqm1.js";
|
|
12
|
+
import "../assert_rejects-DWQ4jaf9.js";
|
|
13
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
14
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
15
|
+
import "../assert_throws-YetpVSc-.js";
|
|
16
16
|
|
|
17
17
|
//#region federation/kv.test.ts
|
|
18
18
|
test("MemoryKvStore", async (t) => {
|
|
@@ -22,6 +22,7 @@ test("MemoryKvStore", async (t) => {
|
|
|
22
22
|
assertEquals(await store.get(["foo", "bar"]), "foobar");
|
|
23
23
|
assertEquals(await store.get(["foo"]), void 0);
|
|
24
24
|
await store.set(["foo", "baz"], "baz", { ttl: Temporal.Duration.from({ seconds: 0 }) });
|
|
25
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
25
26
|
assertEquals(await store.get(["foo", "baz"]), void 0);
|
|
26
27
|
});
|
|
27
28
|
await t.step("delete()", async () => {
|
|
@@ -3,45 +3,45 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import { assertInstanceOf } from "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import { assertInstanceOf } from "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
|
10
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, createFederation } from "../middleware-
|
|
11
|
-
import { FetchError, fetchDocumentLoader } from "../docloader-
|
|
12
|
-
import "../url-
|
|
13
|
-
import "../semver-
|
|
14
|
-
import "../client-
|
|
10
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, createFederation } from "../middleware-D2HU0DhQ.js";
|
|
11
|
+
import { FetchError, fetchDocumentLoader } from "../docloader-CPBLJsVK.js";
|
|
12
|
+
import "../url-C2xuoQD1.js";
|
|
13
|
+
import "../semver-BNrOOAs9.js";
|
|
14
|
+
import "../client-De_5-2EG.js";
|
|
15
15
|
import { RouterError } from "../router-D_aVZZUc.js";
|
|
16
|
-
import "../types-
|
|
17
|
-
import "../multibase-
|
|
18
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-
|
|
16
|
+
import "../types-CJHS5pXl.js";
|
|
17
|
+
import "../multibase-CnLHszip.js";
|
|
18
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-DVEzP_bQ.js";
|
|
19
19
|
import "../langstr-DbWheeIS.js";
|
|
20
|
-
import "../lookup-
|
|
21
|
-
import { getTypeId } from "../type-
|
|
22
|
-
import "../actor-
|
|
23
|
-
import "../key-
|
|
24
|
-
import { signRequest, verifyRequest } from "../http-
|
|
25
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
26
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
27
|
-
import { doesActorOwnKey } from "../owner-
|
|
28
|
-
import { signObject, verifyObject } from "../proof-
|
|
29
|
-
import { lookupObject } from "../lookup-
|
|
30
|
-
import "../inbox-
|
|
31
|
-
import "../builder-
|
|
20
|
+
import "../lookup-HY083HcK.js";
|
|
21
|
+
import { getTypeId } from "../type-CFuiGLz9.js";
|
|
22
|
+
import "../actor-BxaCJsn8.js";
|
|
23
|
+
import "../key-Dlbuqhbr.js";
|
|
24
|
+
import { signRequest, verifyRequest } from "../http-CnSGudcE.js";
|
|
25
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-CVhMTbv4.js";
|
|
26
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-45SsuOmB.js";
|
|
27
|
+
import { doesActorOwnKey } from "../owner-BYxqeMiw.js";
|
|
28
|
+
import { signObject, verifyObject } from "../proof-BjHA4H_1.js";
|
|
29
|
+
import { lookupObject } from "../lookup-CWdbkwKD.js";
|
|
30
|
+
import "../inbox-L4MTtAQ4.js";
|
|
31
|
+
import "../builder-DboGa9iv.js";
|
|
32
32
|
import "../collection-Dfb0TPno.js";
|
|
33
|
-
import "../keycache-
|
|
33
|
+
import "../keycache-BEb0DSk7.js";
|
|
34
34
|
import "../retry-BiIhZWgD.js";
|
|
35
|
-
import "../send-
|
|
36
|
-
import { test } from "../testing-
|
|
37
|
-
import { assertStrictEquals } from "../std__assert-
|
|
38
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
|
39
|
-
import "../assert_is_error-
|
|
40
|
-
import { assertNotEquals } from "../assert_not_equals-
|
|
41
|
-
import { assertThrows } from "../assert_throws-
|
|
35
|
+
import "../send-BQA1p7vs.js";
|
|
36
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
37
|
+
import { assertStrictEquals } from "../std__assert-o_r9vqm1.js";
|
|
38
|
+
import { assertFalse, assertRejects } from "../assert_rejects-DWQ4jaf9.js";
|
|
39
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
40
|
+
import { assertNotEquals } from "../assert_not_equals-C685gKx6.js";
|
|
41
|
+
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
42
42
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
|
43
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
44
|
-
import { esm_default } from "../esm-
|
|
43
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CqpeF-EG.js";
|
|
44
|
+
import { esm_default } from "../esm-DO9PrujO.js";
|
|
45
45
|
|
|
46
46
|
//#region testing/fixtures/example.com/person.json
|
|
47
47
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
|
@@ -356,12 +356,11 @@ test("Federation.createContext()", async (t) => {
|
|
|
356
356
|
assertEquals(await ctx.lookupObject("https://example.com/object"), null);
|
|
357
357
|
await assertRejects(() => ctx.sendActivity({ identifier: "handle" }, [], new Create({})), TypeError, "The activity to send must have at least one actor property.");
|
|
358
358
|
await ctx.sendActivity({ identifier: "handle" }, [], new Create({ actor: new URL("https://example.com/users/handle") }));
|
|
359
|
-
const
|
|
359
|
+
const ctx2 = createFederation({
|
|
360
360
|
kv,
|
|
361
361
|
documentLoader: mockDocumentLoader,
|
|
362
362
|
contextLoader: mockDocumentLoader
|
|
363
|
-
});
|
|
364
|
-
const ctx2 = federation2.createContext(new URL("https://example.com/"), 123);
|
|
363
|
+
}).createContext(new URL("https://example.com/"), 123);
|
|
365
364
|
assertEquals(await ctx2.lookupObject("https://example.com/object"), new Object$1({
|
|
366
365
|
id: new URL("https://example.com/object"),
|
|
367
366
|
name: "Fetched object"
|
|
@@ -617,8 +616,7 @@ test("Federation.createContext()", async (t) => {
|
|
|
617
616
|
});
|
|
618
617
|
});
|
|
619
618
|
await t.step("Context.clone()", () => {
|
|
620
|
-
const
|
|
621
|
-
const ctx = federation.createContext(new URL("https://example.com/"), 123);
|
|
619
|
+
const ctx = createFederation({ kv }).createContext(new URL("https://example.com/"), 123);
|
|
622
620
|
const clone = ctx.clone(456);
|
|
623
621
|
assertStrictEquals(clone.canonicalOrigin, ctx.canonicalOrigin);
|
|
624
622
|
assertStrictEquals(clone.origin, ctx.origin);
|
|
@@ -654,11 +652,10 @@ test("Federation.createContext()", async (t) => {
|
|
|
654
652
|
}));
|
|
655
653
|
});
|
|
656
654
|
await t.step("Context.lookupNodeInfo()", async () => {
|
|
657
|
-
const
|
|
655
|
+
const ctx = createFederation({
|
|
658
656
|
kv,
|
|
659
657
|
userAgent: "CustomUserAgent/1.2.3"
|
|
660
|
-
});
|
|
661
|
-
const ctx = federation.createContext(new URL("https://example.com/"), 123);
|
|
658
|
+
}).createContext(new URL("https://example.com/"), 123);
|
|
662
659
|
const nodeInfo = await ctx.lookupNodeInfo("https://example.com/");
|
|
663
660
|
assertEquals(nodeInfo, {
|
|
664
661
|
software: {
|
|
@@ -923,8 +920,7 @@ test("Federation.setInboxListeners()", async (t) => {
|
|
|
923
920
|
authenticatedDocumentLoaderFactory(identity) {
|
|
924
921
|
const docLoader = getAuthenticatedDocumentLoader(identity);
|
|
925
922
|
return (url) => {
|
|
926
|
-
|
|
927
|
-
if (urlObj.host === "example.com") return docLoader(url);
|
|
923
|
+
if (new URL(url).host === "example.com") return docLoader(url);
|
|
928
924
|
return mockDocumentLoader(url);
|
|
929
925
|
};
|
|
930
926
|
}
|
|
@@ -1091,23 +1087,19 @@ test("ContextImpl.lookupObject()", async (t) => {
|
|
|
1091
1087
|
}
|
|
1092
1088
|
});
|
|
1093
1089
|
await t.step("allowPrivateAddress: true", async () => {
|
|
1094
|
-
const
|
|
1090
|
+
const result = await createFederation({
|
|
1095
1091
|
kv: new MemoryKvStore(),
|
|
1096
1092
|
allowPrivateAddress: true
|
|
1097
|
-
});
|
|
1098
|
-
const ctx = federation.createContext(new URL("https://example.com/"));
|
|
1099
|
-
const result = await ctx.lookupObject("@test@localhost");
|
|
1093
|
+
}).createContext(new URL("https://example.com/")).lookupObject("@test@localhost");
|
|
1100
1094
|
assertInstanceOf(result, Person);
|
|
1101
1095
|
assertEquals(result.id, new URL("https://localhost/actor"));
|
|
1102
1096
|
assertEquals(result.preferredUsername, "test");
|
|
1103
1097
|
});
|
|
1104
1098
|
await t.step("allowPrivateAddress: false", async () => {
|
|
1105
|
-
const
|
|
1099
|
+
const result = await createFederation({
|
|
1106
1100
|
kv: new MemoryKvStore(),
|
|
1107
1101
|
allowPrivateAddress: false
|
|
1108
|
-
});
|
|
1109
|
-
const ctx = federation.createContext(new URL("https://example.com/"));
|
|
1110
|
-
const result = await ctx.lookupObject("@test@localhost");
|
|
1102
|
+
}).createContext(new URL("https://example.com/")).lookupObject("@test@localhost");
|
|
1111
1103
|
assertEquals(result, null);
|
|
1112
1104
|
});
|
|
1113
1105
|
esm_default.hardReset();
|
|
@@ -1134,11 +1126,9 @@ test("ContextImpl.sendActivity()", async (t) => {
|
|
|
1134
1126
|
contextLoader: mockDocumentLoader,
|
|
1135
1127
|
keyCache: {
|
|
1136
1128
|
async get(keyId) {
|
|
1137
|
-
const
|
|
1138
|
-
const keys = await ctx.getActorKeyPairs("1");
|
|
1129
|
+
const keys = await federation.createContext(new URL("https://example.com/"), void 0).getActorKeyPairs("1");
|
|
1139
1130
|
for (const key$1 of keys) if (key$1.keyId.href === keyId.href) if (key$1.publicKey.algorithm.name === "Ed25519") return key$1.multikey;
|
|
1140
1131
|
else return key$1.cryptographicKey;
|
|
1141
|
-
return void 0;
|
|
1142
1132
|
},
|
|
1143
1133
|
async set(_keyId, _key) {}
|
|
1144
1134
|
}
|
|
@@ -1512,20 +1502,18 @@ test("InboxContextImpl.forwardActivity()", async (t) => {
|
|
|
1512
1502
|
contextLoader: mockDocumentLoader
|
|
1513
1503
|
});
|
|
1514
1504
|
await t.step("skip", async () => {
|
|
1515
|
-
|
|
1505
|
+
await new InboxContextImpl(null, {
|
|
1516
1506
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
1517
1507
|
"type": "Create",
|
|
1518
1508
|
"id": "https://example.com/activity",
|
|
1519
1509
|
"actor": "https://example.com/person2"
|
|
1520
|
-
}
|
|
1521
|
-
const ctx = new InboxContextImpl(null, activity, "https://example.com/activity", "https://www.w3.org/ns/activitystreams#Create", {
|
|
1510
|
+
}, "https://example.com/activity", "https://www.w3.org/ns/activitystreams#Create", {
|
|
1522
1511
|
data: void 0,
|
|
1523
1512
|
federation,
|
|
1524
1513
|
url: new URL("https://example.com/"),
|
|
1525
1514
|
documentLoader: fetchDocumentLoader,
|
|
1526
1515
|
contextLoader: fetchDocumentLoader
|
|
1527
|
-
})
|
|
1528
|
-
await ctx.forwardActivity([{
|
|
1516
|
+
}).forwardActivity([{
|
|
1529
1517
|
privateKey: rsaPrivateKey2,
|
|
1530
1518
|
keyId: rsaPublicKey2.id
|
|
1531
1519
|
}], {
|
|
@@ -1535,13 +1523,12 @@ test("InboxContextImpl.forwardActivity()", async (t) => {
|
|
|
1535
1523
|
assertEquals(verified, null);
|
|
1536
1524
|
});
|
|
1537
1525
|
await t.step("unsigned", async () => {
|
|
1538
|
-
const
|
|
1526
|
+
const ctx = new InboxContextImpl(null, {
|
|
1539
1527
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
1540
1528
|
"type": "Create",
|
|
1541
1529
|
"id": "https://example.com/activity",
|
|
1542
1530
|
"actor": "https://example.com/person2"
|
|
1543
|
-
}
|
|
1544
|
-
const ctx = new InboxContextImpl(null, activity, "https://example.com/activity", "https://www.w3.org/ns/activitystreams#Create", {
|
|
1531
|
+
}, "https://example.com/activity", "https://www.w3.org/ns/activitystreams#Create", {
|
|
1545
1532
|
data: void 0,
|
|
1546
1533
|
federation,
|
|
1547
1534
|
url: new URL("https://example.com/"),
|
|
@@ -1565,14 +1552,13 @@ test("InboxContextImpl.forwardActivity()", async (t) => {
|
|
|
1565
1552
|
contextLoader: mockDocumentLoader,
|
|
1566
1553
|
documentLoader: mockDocumentLoader
|
|
1567
1554
|
});
|
|
1568
|
-
|
|
1555
|
+
await new InboxContextImpl(null, await activity.toJsonLd({ contextLoader: mockDocumentLoader }), activity.id?.href, getTypeId(activity).href, {
|
|
1569
1556
|
data: void 0,
|
|
1570
1557
|
federation,
|
|
1571
1558
|
url: new URL("https://example.com/"),
|
|
1572
1559
|
documentLoader: fetchDocumentLoader,
|
|
1573
1560
|
contextLoader: fetchDocumentLoader
|
|
1574
|
-
})
|
|
1575
|
-
await ctx.forwardActivity([{
|
|
1561
|
+
}).forwardActivity([{
|
|
1576
1562
|
privateKey: rsaPrivateKey2,
|
|
1577
1563
|
keyId: rsaPublicKey2.id
|
|
1578
1564
|
}], {
|
|
@@ -1588,14 +1574,13 @@ test("InboxContextImpl.forwardActivity()", async (t) => {
|
|
|
1588
1574
|
"id": "https://example.com/activity",
|
|
1589
1575
|
"actor": "https://example.com/person2"
|
|
1590
1576
|
}, rsaPrivateKey3, rsaPublicKey3.id, { contextLoader: mockDocumentLoader });
|
|
1591
|
-
|
|
1577
|
+
await new InboxContextImpl(null, activity, "https://example.com/activity", "https://www.w3.org/ns/activitystreams#Create", {
|
|
1592
1578
|
data: void 0,
|
|
1593
1579
|
federation,
|
|
1594
1580
|
url: new URL("https://example.com/"),
|
|
1595
1581
|
documentLoader: fetchDocumentLoader,
|
|
1596
1582
|
contextLoader: fetchDocumentLoader
|
|
1597
|
-
})
|
|
1598
|
-
await ctx.forwardActivity([{
|
|
1583
|
+
}).forwardActivity([{
|
|
1599
1584
|
privateKey: rsaPrivateKey2,
|
|
1600
1585
|
keyId: rsaPublicKey2.id
|
|
1601
1586
|
}], {
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-ghwJuzGY.js";
|
|
6
|
-
import "../docloader-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
9
|
-
import "../lookup-
|
|
10
|
-
import "../key-
|
|
11
|
-
import "../http-
|
|
12
|
-
import "../proof-
|
|
13
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-
|
|
14
|
-
import "../types-
|
|
15
|
-
import "../authdocloader-
|
|
16
|
-
import "../vocab-
|
|
6
|
+
import "../docloader-RFcxdgI8.js";
|
|
7
|
+
import "../actor-7vCpWIGd.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Cg-eSyqX.js";
|
|
9
|
+
import "../lookup-CdHTw-tQ.js";
|
|
10
|
+
import "../key-BQg3A7eo.js";
|
|
11
|
+
import "../http-B__WhFrv.js";
|
|
12
|
+
import "../proof-DVYup76O.js";
|
|
13
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-DyRlaC4X.js";
|
|
14
|
+
import "../types-D7_MRRa4.js";
|
|
15
|
+
import "../authdocloader-niAJMnCQ.js";
|
|
16
|
+
import "../vocab-aaGb1Tji.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
9
|
-
import { test } from "../testing-
|
|
10
|
-
import { assertGreater, assertGreaterOrEqual } from "../std__assert-
|
|
11
|
-
import "../assert_rejects-
|
|
12
|
-
import "../assert_is_error-
|
|
13
|
-
import "../assert_not_equals-
|
|
14
|
-
import "../assert_throws-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
10
|
+
import { assertGreater, assertGreaterOrEqual } from "../std__assert-o_r9vqm1.js";
|
|
11
|
+
import "../assert_rejects-DWQ4jaf9.js";
|
|
12
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
13
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
14
|
+
import "../assert_throws-YetpVSc-.js";
|
|
15
15
|
import { delay } from "@es-toolkit/es-toolkit";
|
|
16
16
|
|
|
17
17
|
//#region federation/mq.ts
|
|
@@ -125,8 +125,7 @@ var ParallelMessageQueue = class ParallelMessageQueue {
|
|
|
125
125
|
}
|
|
126
126
|
async enqueueMany(messages, options) {
|
|
127
127
|
if (this.queue.enqueueMany == null) {
|
|
128
|
-
const
|
|
129
|
-
const errors = results.filter((r) => r.status === "rejected").map((r) => r.reason);
|
|
128
|
+
const errors = (await Promise.allSettled(messages.map((message) => this.queue.enqueue(message, options)))).filter((r) => r.status === "rejected").map((r) => r.reason);
|
|
130
129
|
if (errors.length > 1) throw new AggregateError(errors, "Failed to enqueue messages.");
|
|
131
130
|
else if (errors.length === 1) throw errors[0];
|
|
132
131
|
return;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { AssertionError, assertEquals } from "../assert_equals-
|
|
6
|
+
import { AssertionError, assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
7
|
import { createExponentialBackoffPolicy } from "../retry-BiIhZWgD.js";
|
|
8
|
-
import { test } from "../testing-
|
|
9
|
-
import { assertNotEquals } from "../assert_not_equals-
|
|
8
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
9
|
+
import { assertNotEquals } from "../assert_not_equals-C685gKx6.js";
|
|
10
10
|
|
|
11
11
|
//#region federation/retry.test.ts
|
|
12
12
|
test("createExponentialBackoffPolicy()", () => {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { assertEquals } from "../assert_equals-
|
|
7
|
-
import { assert } from "../assert-
|
|
8
|
-
import "../assert_instance_of-
|
|
6
|
+
import { assertEquals } from "../assert_equals-B44MxcIj.js";
|
|
7
|
+
import { assert } from "../assert-LOEeCUK5.js";
|
|
8
|
+
import "../assert_instance_of-XtuFevV_.js";
|
|
9
9
|
import { Router, RouterError } from "../router-D_aVZZUc.js";
|
|
10
|
-
import { test } from "../testing-
|
|
11
|
-
import "../std__assert-
|
|
12
|
-
import { assertFalse } from "../assert_rejects-
|
|
13
|
-
import "../assert_is_error-
|
|
14
|
-
import "../assert_not_equals-
|
|
15
|
-
import { assertThrows } from "../assert_throws-
|
|
10
|
+
import { test } from "../testing-DLyvtiiW.js";
|
|
11
|
+
import "../std__assert-o_r9vqm1.js";
|
|
12
|
+
import { assertFalse } from "../assert_rejects-DWQ4jaf9.js";
|
|
13
|
+
import "../assert_is_error-BTlryvT0.js";
|
|
14
|
+
import "../assert_not_equals-C685gKx6.js";
|
|
15
|
+
import { assertThrows } from "../assert_throws-YetpVSc-.js";
|
|
16
16
|
|
|
17
17
|
//#region federation/router.test.ts
|
|
18
18
|
function setUp(options = {}) {
|