@fedify/fedify 2.0.0-pr.435.1667 → 2.0.0-pr.445.1694
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-C3gJhZJj.cjs → actor-CwZ2m5rG.cjs} +7263 -2440
- package/dist/{actor-DMgu-ZjT.d.cts → actor-D6K058Tb.d.cts} +1 -1
- package/dist/{actor-Cpal85xW.js → actor-D8gCwLzv.js} +1 -1
- package/dist/{actor-CnVfp1Hp.js → actor-DoMcqXsW.js} +7263 -2440
- package/dist/{actor-C22bXuuC.d.ts → actor-T6RyhRgk.d.ts} +1 -1
- package/dist/{assert_rejects-7UF4R_Qs.js → assert_rejects-DiIiJbZn.js} +1 -1
- package/dist/{assert_throws-53_pKeP3.js → assert_throws-BOO88avQ.js} +1 -1
- package/dist/{authdocloader-DWnwkjvZ.js → authdocloader-Cv_qEn1G.js} +3 -3
- package/dist/{authdocloader-Df2BFefL.js → authdocloader-DYTNpaMA.js} +3 -3
- package/dist/{authdocloader-DPCGwidE.cjs → authdocloader-bsmVF6eO.cjs} +3 -3
- package/dist/{builder-CMxichO9.js → builder-1_skw-d2.js} +10 -4
- package/dist/{client-BqyuOGiQ.js → client-D5CBsPrc.js} +1 -1
- package/dist/compat/mod.d.cts +7 -7
- package/dist/compat/mod.d.ts +7 -7
- package/dist/compat/transformers.test.js +18 -17
- package/dist/{context-CDSZdQHD.d.ts → context-DBKpNBnc.d.ts} +66 -12
- package/dist/{context-Dq8aCtMH.d.cts → context-DiqjMRef.d.cts} +66 -12
- package/dist/{docloader-B1O1Z5OK.cjs → docloader-CYnQRIXv.cjs} +2 -2
- package/dist/{docloader-xJVzq9O0.js → docloader-Czl3xV10.js} +2 -2
- package/dist/{esm-BBznxjVc.js → esm-Dl5T1RNE.js} +1 -1
- package/dist/federation/builder.test.js +10 -10
- package/dist/federation/collection.test.js +8 -8
- package/dist/federation/handler.test.js +26 -145
- package/dist/federation/idempotency.test.d.ts +3 -0
- package/dist/federation/idempotency.test.js +202 -0
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +8 -8
- package/dist/federation/middleware.test.js +238 -44
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.d.cts +7 -7
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +10 -10
- package/dist/federation/negotiation.test.d.ts +3 -0
- package/dist/federation/negotiation.test.js +28 -0
- package/dist/federation/retry.test.js +5 -5
- package/dist/federation/router.test.js +8 -8
- package/dist/federation/send.test.js +15 -15
- package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
- package/dist/{http-Hw9HJp9i.cjs → http-CAusBl_3.cjs} +3 -3
- package/dist/{http-CovAm6we.js → http-C_Qc2neP.js} +3 -3
- package/dist/{http-y7khnX5Q.js → http-CuS-d4U0.js} +2 -2
- package/dist/{http-BS6766zs.d.cts → http-D-e6AFwR.d.cts} +1 -1
- package/dist/{http-DqSNLFNY.d.ts → http-D6Uj2x2y.d.ts} +1 -1
- package/dist/{inbox-DpcYOzs8.js → inbox-IETv_Qez.js} +24 -7
- package/dist/{key-BRmlopJL.js → key-BNJQQm3h.js} +2 -2
- package/dist/{key-lapZwBwG.js → key-C_ruQbbl.js} +4 -4
- package/dist/key-DIMJMxf4.cjs +10 -0
- package/dist/{key-DORX19Bl.js → key-DnqhSgAv.js} +2 -2
- package/dist/{key-jf6dIIF-.js → key-DpFjiItf.js} +3 -3
- package/dist/{key-CzF9SAEI.cjs → key-DuXv64tg.cjs} +2 -2
- package/dist/{keycache-AH1uj1j-.js → keycache-CSBkusP8.js} +1 -1
- package/dist/{keys-B3fzLXBG.js → keys-D3_MDK7n.js} +1 -1
- package/dist/{ld-D3cq9xO1.js → ld-Isot0tiW.js} +2 -2
- package/dist/{lookup-BrhURkmj.js → lookup-CbtuFbtg.js} +21 -12
- package/dist/{lookup-7u217Q3H.cjs → lookup-D6dro5Au.cjs} +1 -1
- package/dist/{lookup-CfU0DgLr.js → lookup-Dhm78GlK.js} +1 -1
- package/dist/middleware-BpR6186a.js +26 -0
- package/dist/{middleware-DXWUGrBQ.js → middleware-BuHr2fzh.js} +73 -81
- package/dist/middleware-DDMxdtWM.cjs +17 -0
- package/dist/{middleware-BDN7YoYJ.js → middleware-DQYscW90.js} +47 -142
- package/dist/{middleware-Gsxukxs5.cjs → middleware-Dgmdgrvb.cjs} +73 -81
- package/dist/middleware-T-knSMwl.js +17 -0
- package/dist/{mod-Drmz72EK.d.ts → mod-BhUKmBJD.d.ts} +2 -2
- package/dist/{mod-BhMnAkFX.d.cts → mod-Bpb5QLaZ.d.cts} +2 -2
- package/dist/{mod-TFoH2Ql8.d.ts → mod-CerN_Sza.d.ts} +1 -1
- package/dist/{mod-Dc_-mf8s.d.cts → mod-Cj1tHXBR.d.cts} +1 -1
- package/dist/{mod-evzlRVZq.d.cts → mod-CxkWO3Mg.d.cts} +19 -1
- package/dist/{mod-RI3-KvUI.d.ts → mod-D_y2y32N.d.ts} +2 -2
- package/dist/{mod-BClfg3ej.d.cts → mod-Djzcw2ry.d.cts} +2 -2
- package/dist/{mod-Cxt4Kpf6.d.ts → mod-DlU8ISoa.d.ts} +19 -1
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +10 -10
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +10 -10
- package/dist/negotiation-5NPJL6zp.js +71 -0
- package/dist/nodeinfo/client.test.js +10 -10
- package/dist/nodeinfo/handler.test.js +23 -22
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/types.test.js +8 -8
- package/dist/{owner-B-7Ptt_m.d.cts → owner-BN_tO3cY.d.cts} +2 -2
- package/dist/{owner-NFlQJyvM.js → owner-ChSL4aJ7.js} +2 -2
- package/dist/{owner-CQPnQVtf.d.ts → owner-hd9lvQcP.d.ts} +2 -2
- package/dist/{proof-Be1oOYEh.js → proof-BiSCuwyA.js} +3 -3
- package/dist/{proof-Gip91fK7.cjs → proof-ONNmhInb.cjs} +3 -3
- package/dist/{proof-ar9xgPWi.js → proof-x3IBewan.js} +2 -2
- package/dist/runtime/authdocloader.test.js +14 -14
- package/dist/runtime/docloader.test.js +9 -9
- package/dist/runtime/key.test.js +10 -10
- package/dist/runtime/langstr.test.js +8 -8
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.d.cts +3 -3
- package/dist/runtime/mod.d.ts +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +5 -5
- package/dist/{send-DkwkMFjJ.js → send-D5fjmUEj.js} +2 -2
- package/dist/sig/http.test.js +13 -13
- package/dist/sig/key.test.js +11 -11
- package/dist/sig/ld.test.js +10 -10
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.d.cts +5 -5
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +12 -12
- package/dist/sig/proof.test.js +12 -12
- package/dist/testing/docloader.test.js +8 -8
- package/dist/testing/mod.d.ts +272 -0
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-BMBhkcz9.js → testing-tWr1VQxx.js} +2 -2
- package/dist/{type-FCer_9yh.js → type-DaUr3Il7.js} +6944 -2121
- package/dist/{types-CZ_qo9KW.cjs → types-D2Nyz0tR.cjs} +1 -1
- package/dist/{types-CNWeAz8v.js → types-DQuSDtDg.js} +1 -1
- package/dist/vocab/actor.test.js +10 -10
- package/dist/vocab/lookup.test.js +259 -9
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.d.cts +3 -3
- package/dist/vocab/mod.d.ts +3 -3
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +402 -13
- package/dist/{vocab-SOE1ifCr.d.ts → vocab-BI0Ak5lL.d.ts} +290 -0
- package/dist/{vocab-9MjZjuZb.cjs → vocab-Dd4VMrr0.cjs} +23 -14
- package/dist/{vocab-DJTYMqyU.d.cts → vocab-Dw1-yVGg.d.cts} +290 -0
- package/dist/{vocab-gpwUU9fc.js → vocab-w--qk7HF.js} +23 -14
- package/dist/webfinger/handler.test.js +23 -22
- package/dist/webfinger/lookup.test.js +9 -9
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +8 -8
- package/dist/x/hono.d.cts +6 -6
- package/dist/x/hono.d.ts +6 -6
- package/dist/x/sveltekit.d.cts +6 -6
- package/dist/x/sveltekit.d.ts +6 -6
- package/package.json +1 -1
- package/dist/key-CV3FT32G.cjs +0 -10
- package/dist/middleware-CV-OPMlZ.js +0 -17
- package/dist/middleware-DGqnaAbp.cjs +0 -17
- package/dist/middleware-cCdfTTMv.js +0 -25
- /package/dist/{assert_is_error-B035L3om.js → assert_is_error-BPGph1Jx.js} +0 -0
- /package/dist/{assert_not_equals-C80BG-_5.js → assert_not_equals-f3m3epl3.js} +0 -0
- /package/dist/{denokv-jZ0Z2h0M.js → denokv-Bv33Xxea.js} +0 -0
- /package/dist/{retry-CfF8Gn4d.js → retry-D4GJ670a.js} +0 -0
- /package/dist/{std__assert-DWivtrGR.js → std__assert-X-_kMxKM.js} +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import { Create, Follow, Person } from "../type-DaUr3Il7.js";
|
7
|
+
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
+
import "../assert-MZs1qjMx.js";
|
9
|
+
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
+
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
+
import { createFederation } from "../middleware-DQYscW90.js";
|
12
|
+
import "../client-D5CBsPrc.js";
|
13
|
+
import "../lookup-CbtuFbtg.js";
|
14
|
+
import "../types-BSuWJsOm.js";
|
15
|
+
import "../actor-D8gCwLzv.js";
|
16
|
+
import "../key-DnqhSgAv.js";
|
17
|
+
import "../http-CuS-d4U0.js";
|
18
|
+
import "../authdocloader-DYTNpaMA.js";
|
19
|
+
import "../ld-Isot0tiW.js";
|
20
|
+
import "../owner-ChSL4aJ7.js";
|
21
|
+
import { signObject } from "../proof-x3IBewan.js";
|
22
|
+
import "../inbox-IETv_Qez.js";
|
23
|
+
import "../builder-1_skw-d2.js";
|
24
|
+
import "../collection-CcnIw1qY.js";
|
25
|
+
import "../keycache-CSBkusP8.js";
|
26
|
+
import "../negotiation-5NPJL6zp.js";
|
27
|
+
import "../retry-D4GJ670a.js";
|
28
|
+
import "../send-D5fjmUEj.js";
|
29
|
+
import { mockDocumentLoader, test } from "../testing-tWr1VQxx.js";
|
30
|
+
import "../std__assert-X-_kMxKM.js";
|
31
|
+
import "../assert_rejects-DiIiJbZn.js";
|
32
|
+
import "../assert_is_error-BPGph1Jx.js";
|
33
|
+
import "../assert_not_equals-f3m3epl3.js";
|
34
|
+
import "../assert_throws-BOO88avQ.js";
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-D3_MDK7n.js";
|
36
|
+
|
37
|
+
//#region src/federation/idempotency.test.ts
|
38
|
+
const kv = new MemoryKvStore();
|
39
|
+
const federationOptions = {
|
40
|
+
kv,
|
41
|
+
documentLoaderFactory: () => mockDocumentLoader,
|
42
|
+
authenticatedDocumentLoaderFactory: () => mockDocumentLoader
|
43
|
+
};
|
44
|
+
function createTestFederation() {
|
45
|
+
const federation = createFederation(federationOptions);
|
46
|
+
federation.setActorDispatcher("/users/{identifier}", (_, identifier) => identifier === "john" ? new Person({}) : null).setKeyPairsDispatcher(() => [{
|
47
|
+
privateKey: ed25519PrivateKey,
|
48
|
+
publicKey: ed25519PublicKey.publicKey
|
49
|
+
}]);
|
50
|
+
return federation;
|
51
|
+
}
|
52
|
+
test("Federation.setInboxListeners().withIdempotency() - per-origin strategy", async () => {
|
53
|
+
const federation = createTestFederation();
|
54
|
+
const processedActivities = [];
|
55
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").withIdempotency("per-origin").on(Create, (ctx, activity$1) => {
|
56
|
+
processedActivities.push([ctx.recipient, activity$1]);
|
57
|
+
});
|
58
|
+
const activity = new Create({
|
59
|
+
id: new URL("https://example.com/activities/1"),
|
60
|
+
actor: new URL("https://example.com/person2")
|
61
|
+
});
|
62
|
+
const signedActivity = await signObject(activity, ed25519PrivateKey, ed25519Multikey.id);
|
63
|
+
const body = JSON.stringify(await signedActivity.toJsonLd({ contextLoader: mockDocumentLoader }));
|
64
|
+
let response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
65
|
+
method: "POST",
|
66
|
+
headers: { "Content-Type": "application/activity+json" },
|
67
|
+
body
|
68
|
+
}), { contextData: void 0 });
|
69
|
+
assertEquals(response.status, 202);
|
70
|
+
assertEquals(processedActivities.length, 1);
|
71
|
+
assertEquals(processedActivities[0][0], "john");
|
72
|
+
response = await federation.fetch(new Request("https://example.com/inbox", {
|
73
|
+
method: "POST",
|
74
|
+
headers: { "Content-Type": "application/activity+json" },
|
75
|
+
body
|
76
|
+
}), { contextData: void 0 });
|
77
|
+
assertEquals(response.status, 202);
|
78
|
+
assertEquals(processedActivities.length, 1);
|
79
|
+
await kv.delete([
|
80
|
+
"_fedify",
|
81
|
+
"activityIdempotence",
|
82
|
+
"https://example.com:https://example.com/activities/1"
|
83
|
+
]);
|
84
|
+
});
|
85
|
+
test("Federation.setInboxListeners().withIdempotency() - per-inbox strategy", async () => {
|
86
|
+
const federation = createTestFederation();
|
87
|
+
const processedActivities = [];
|
88
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").withIdempotency("per-inbox").on(Create, (ctx, activity$1) => {
|
89
|
+
processedActivities.push([ctx.recipient, activity$1]);
|
90
|
+
});
|
91
|
+
const activity = new Create({
|
92
|
+
id: new URL("https://example.com/activities/2"),
|
93
|
+
actor: new URL("https://example.com/person2")
|
94
|
+
});
|
95
|
+
const signedActivity = await signObject(activity, ed25519PrivateKey, ed25519Multikey.id);
|
96
|
+
const body = JSON.stringify(await signedActivity.toJsonLd({ contextLoader: mockDocumentLoader }));
|
97
|
+
let response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
98
|
+
method: "POST",
|
99
|
+
headers: { "Content-Type": "application/activity+json" },
|
100
|
+
body
|
101
|
+
}), { contextData: void 0 });
|
102
|
+
assertEquals(response.status, 202);
|
103
|
+
assertEquals(processedActivities.length, 1);
|
104
|
+
assertEquals(processedActivities[0][0], "john");
|
105
|
+
response = await federation.fetch(new Request("https://example.com/inbox", {
|
106
|
+
method: "POST",
|
107
|
+
headers: { "Content-Type": "application/activity+json" },
|
108
|
+
body
|
109
|
+
}), { contextData: void 0 });
|
110
|
+
assertEquals(response.status, 202);
|
111
|
+
assertEquals(processedActivities.length, 2);
|
112
|
+
assertEquals(processedActivities[1][0], null);
|
113
|
+
response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
114
|
+
method: "POST",
|
115
|
+
headers: { "Content-Type": "application/activity+json" },
|
116
|
+
body
|
117
|
+
}), { contextData: void 0 });
|
118
|
+
assertEquals(response.status, 202);
|
119
|
+
assertEquals(processedActivities.length, 2);
|
120
|
+
});
|
121
|
+
test("Federation.setInboxListeners().withIdempotency() - global strategy", async () => {
|
122
|
+
const federation = createTestFederation();
|
123
|
+
const processedActivities = [];
|
124
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").withIdempotency("global").on(Create, (ctx, activity$1) => {
|
125
|
+
processedActivities.push([ctx.recipient, activity$1]);
|
126
|
+
});
|
127
|
+
const activity = new Create({
|
128
|
+
id: new URL("https://example.com/activities/3"),
|
129
|
+
actor: new URL("https://example.com/person2")
|
130
|
+
});
|
131
|
+
const signedActivity = await signObject(activity, ed25519PrivateKey, ed25519Multikey.id);
|
132
|
+
const body = JSON.stringify(await signedActivity.toJsonLd({ contextLoader: mockDocumentLoader }));
|
133
|
+
let response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
134
|
+
method: "POST",
|
135
|
+
headers: { "Content-Type": "application/activity+json" },
|
136
|
+
body
|
137
|
+
}), { contextData: void 0 });
|
138
|
+
assertEquals(response.status, 202);
|
139
|
+
assertEquals(processedActivities.length, 1);
|
140
|
+
response = await federation.fetch(new Request("https://example.com/inbox", {
|
141
|
+
method: "POST",
|
142
|
+
headers: { "Content-Type": "application/activity+json" },
|
143
|
+
body
|
144
|
+
}), { contextData: void 0 });
|
145
|
+
assertEquals(response.status, 202);
|
146
|
+
assertEquals(processedActivities.length, 1);
|
147
|
+
});
|
148
|
+
test("Federation.setInboxListeners().withIdempotency() - custom callback", async () => {
|
149
|
+
const federation = createTestFederation();
|
150
|
+
const processedActivities = [];
|
151
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").withIdempotency((ctx, activity) => {
|
152
|
+
if (activity instanceof Follow) return null;
|
153
|
+
const inboxId = ctx.recipient ?? "shared";
|
154
|
+
return `${ctx.origin}:${activity.id?.href}:${inboxId}`;
|
155
|
+
}).on(Create, (ctx, activity) => {
|
156
|
+
processedActivities.push([ctx.recipient, activity]);
|
157
|
+
}).on(Follow, (ctx, activity) => {
|
158
|
+
processedActivities.push([ctx.recipient, activity]);
|
159
|
+
});
|
160
|
+
const createActivity = new Create({
|
161
|
+
id: new URL("https://example.com/activities/4"),
|
162
|
+
actor: new URL("https://example.com/person2")
|
163
|
+
});
|
164
|
+
const signedCreate = await signObject(createActivity, ed25519PrivateKey, ed25519Multikey.id);
|
165
|
+
const createBody = JSON.stringify(await signedCreate.toJsonLd({ contextLoader: mockDocumentLoader }));
|
166
|
+
let response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
167
|
+
method: "POST",
|
168
|
+
headers: { "Content-Type": "application/activity+json" },
|
169
|
+
body: createBody
|
170
|
+
}), { contextData: void 0 });
|
171
|
+
assertEquals(response.status, 202);
|
172
|
+
assertEquals(processedActivities.length, 1);
|
173
|
+
response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
174
|
+
method: "POST",
|
175
|
+
headers: { "Content-Type": "application/activity+json" },
|
176
|
+
body: createBody
|
177
|
+
}), { contextData: void 0 });
|
178
|
+
assertEquals(response.status, 202);
|
179
|
+
assertEquals(processedActivities.length, 1);
|
180
|
+
const followActivity = new Follow({
|
181
|
+
id: new URL("https://example.com/activities/5"),
|
182
|
+
actor: new URL("https://example.com/person2")
|
183
|
+
});
|
184
|
+
const signedFollow = await signObject(followActivity, ed25519PrivateKey, ed25519Multikey.id);
|
185
|
+
const followBody = JSON.stringify(await signedFollow.toJsonLd({ contextLoader: mockDocumentLoader }));
|
186
|
+
response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
187
|
+
method: "POST",
|
188
|
+
headers: { "Content-Type": "application/activity+json" },
|
189
|
+
body: followBody
|
190
|
+
}), { contextData: void 0 });
|
191
|
+
assertEquals(response.status, 202);
|
192
|
+
assertEquals(processedActivities.length, 2);
|
193
|
+
response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
194
|
+
method: "POST",
|
195
|
+
headers: { "Content-Type": "application/activity+json" },
|
196
|
+
body: followBody
|
197
|
+
}), { contextData: void 0 });
|
198
|
+
assertEquals(response.status, 202);
|
199
|
+
assertEquals(processedActivities.length, 3);
|
200
|
+
});
|
201
|
+
|
202
|
+
//#endregion
|
@@ -3,13 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../type-
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import "../lookup-
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
10
|
-
import { test } from "../testing-
|
11
|
-
import "../assert_is_error-
|
12
|
-
import { assertThrows } from "../assert_throws-
|
8
|
+
import "../lookup-CbtuFbtg.js";
|
9
|
+
import { InboxListenerSet } from "../inbox-IETv_Qez.js";
|
10
|
+
import { test } from "../testing-tWr1VQxx.js";
|
11
|
+
import "../assert_is_error-BPGph1Jx.js";
|
12
|
+
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
13
13
|
|
14
14
|
//#region src/federation/inbox.test.ts
|
15
15
|
test("InboxListenerSet", () => {
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "../type-
|
6
|
+
import { CryptographicKey, Multikey } from "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import "../lookup-
|
12
|
-
import { KvKeyCache } from "../keycache-
|
13
|
-
import { test } from "../testing-
|
11
|
+
import "../lookup-CbtuFbtg.js";
|
12
|
+
import { KvKeyCache } from "../keycache-CSBkusP8.js";
|
13
|
+
import { test } from "../testing-tWr1VQxx.js";
|
14
14
|
|
15
15
|
//#region src/federation/keycache.test.ts
|
16
16
|
test("KvKeyCache.set()", async () => {
|
@@ -3,18 +3,18 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import "../lookup-
|
12
|
-
import { test } from "../testing-
|
13
|
-
import "../std__assert-
|
14
|
-
import "../assert_rejects-
|
15
|
-
import "../assert_is_error-
|
16
|
-
import "../assert_not_equals-
|
17
|
-
import "../assert_throws-
|
11
|
+
import "../lookup-CbtuFbtg.js";
|
12
|
+
import { test } from "../testing-tWr1VQxx.js";
|
13
|
+
import "../std__assert-X-_kMxKM.js";
|
14
|
+
import "../assert_rejects-DiIiJbZn.js";
|
15
|
+
import "../assert_is_error-BPGph1Jx.js";
|
16
|
+
import "../assert_not_equals-f3m3epl3.js";
|
17
|
+
import "../assert_throws-BOO88avQ.js";
|
18
18
|
|
19
19
|
//#region src/federation/kv.test.ts
|
20
20
|
test("MemoryKvStore", async (t) => {
|