@fedify/fedify 1.10.0-dev.2 → 1.10.0-dev.56
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-Bv7llTFW.js → actor-ClRBIAnh.js} +1 -1
- package/dist/{actor-Ydzhc8dj.d.cts → actor-D190nbTD.d.cts} +2 -2
- package/dist/{actor-eIATKOh7.js → actor-LycqTlLz.js} +187 -187
- package/dist/{actor-8zynMl2a.cjs → actor-_LgMBPuy.cjs} +187 -187
- package/dist/{actor-C1Euqngb.d.ts → actor-eeONG_sv.d.ts} +2 -2
- package/dist/{authdocloader-TNeksncq.js → authdocloader-0TppC6F1.js} +3 -3
- package/dist/{authdocloader-BNIyrORx.js → authdocloader-B8WzAPrl.js} +3 -3
- package/dist/{authdocloader-BEPeTSD8.cjs → authdocloader-DT_8vC9F.cjs} +3 -3
- package/dist/{builder-C7fApQY_.js → builder-C62uybmU.js} +4 -4
- package/dist/{client-DF8anIB5.d.ts → client-B3mQJNO7.d.ts} +1 -1
- package/dist/{client-Bwnrdh_A.js → client-BmHT-Gam.js} +1 -1
- package/dist/{client-DjT_tegg.d.cts → client-n6L4GtQL.d.cts} +1 -1
- package/dist/compat/mod.d.cts +11 -11
- package/dist/compat/mod.d.ts +11 -11
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-CXUibY4L.d.ts → context-Cr5DIxq_.d.ts} +9 -9
- package/dist/{context-CwUAkopp.d.cts → context-WJoO0SQs.d.cts} +9 -9
- package/dist/{docloader-CLYexeNv.js → docloader-BsnLs_0R.js} +31 -21
- package/dist/{docloader-CxWcuWqQ.d.ts → docloader-BucCRHZI.d.ts} +1 -1
- package/dist/{docloader-D-MrRyHl.d.cts → docloader-ChxNLZAA.d.cts} +1 -1
- package/dist/{docloader-CdsuyjrU.cjs → docloader-DnMoTR3t.cjs} +31 -21
- package/dist/{esm-aj4vkb76.js → esm-CeEKUiEp.js} +1 -1
- package/dist/federation/builder.test.js +6 -6
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +18 -18
- package/dist/federation/idempotency.test.js +18 -18
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +5 -5
- package/dist/federation/kv.test.js +58 -4
- package/dist/federation/middleware.test.js +19 -19
- package/dist/federation/mod.cjs +11 -11
- package/dist/federation/mod.d.cts +11 -11
- package/dist/federation/mod.d.ts +11 -11
- package/dist/federation/mod.js +11 -11
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/{federation-H2_En3j5.cjs → federation-C15gGOh1.cjs} +22 -0
- package/dist/{federation-D1U8YY9t.js → federation-K-xsO03l.js} +22 -0
- package/dist/{http-DXmKLE1t.js → http-BjkaX3VX.js} +2 -2
- package/dist/{http-B1_DzfAU.d.cts → http-C_1RU1U_.d.cts} +2 -2
- package/dist/{http-wsGR6KkT.d.ts → http-DS9z_HzB.d.ts} +2 -2
- package/dist/{http-CK80ff9S.cjs → http-DfOK0dnH.cjs} +3 -3
- package/dist/{http-DMJrVRf0.js → http-S9xcMlXK.js} +3 -3
- package/dist/{inbox-Dt-Q2rJt.js → inbox-ueCZKRkM.js} +1 -1
- package/dist/{key-DTzAk78O.js → key-CTXTlPcN.js} +4 -4
- package/dist/{key-BL8DRhuI.js → key-CkAA3-hS.js} +3 -3
- package/dist/{key-DWDJFZzD.js → key-Day3gm8E.js} +2 -2
- package/dist/{key-Tt9B2Qkj.js → key-DvUWbmkT.js} +2 -2
- package/dist/key-a8RSa9Jr.cjs +10 -0
- package/dist/{key-BU1Vsq8S.cjs → key-h1EtBGfl.cjs} +2 -2
- package/dist/{keycache-CXF4YAON.js → keycache-SWYinQYh.js} +1 -1
- package/dist/{keys-CAUbEZtV.js → keys-BIXfFcee.js} +1 -1
- package/dist/{kv-63Cil1MD.d.cts → kv-BqEOXcZv.d.cts} +29 -1
- package/dist/{kv-C7sopW2E.d.ts → kv-DipCBaw2.d.ts} +29 -1
- package/dist/{kv-CRZrzyXm.js → kv-QzKcOQgP.js} +22 -0
- package/dist/{ld-CqoYKNwB.js → ld-DzM_gz0T.js} +2 -2
- package/dist/{lookup-BXlOCJsH.cjs → lookup-ChmoRKw1.cjs} +1 -1
- package/dist/{lookup-8Ik9lSMm.js → lookup-D0BwB5p9.js} +1 -1
- package/dist/{lookup-Co4Y1ycg.js → lookup-NIW04iej.js} +1 -1
- package/dist/middleware-BfRmgEVA.js +26 -0
- package/dist/middleware-Bp-lt8JC.cjs +17 -0
- package/dist/{middleware-nSw7nWf8.js → middleware-CAhqzGsQ.js} +13 -13
- package/dist/middleware-DOi2kW3J.js +17 -0
- package/dist/{middleware-bN29Orv5.cjs → middleware-DS4_0Iya.cjs} +10 -10
- package/dist/{middleware-DnXc8LK4.js → middleware-Vh0bU8xr.js} +10 -10
- package/dist/{mod-DgcYoyZK.d.ts → mod-BZfdiPBo.d.ts} +3 -3
- package/dist/{mod-CIbqfZW0.d.ts → mod-CD7gfdq3.d.ts} +2 -2
- package/dist/{mod-DBzN0aCM.d.ts → mod-ChbckRnC.d.ts} +1 -1
- package/dist/{mod-BcObK1Lz.d.ts → mod-CnULG6Aa.d.ts} +2 -2
- package/dist/{mod-jQ4OODsl.d.cts → mod-CxMBb_dd.d.cts} +1 -1
- package/dist/{mod-BUbqxBev.d.cts → mod-D5rfgGFE.d.cts} +2 -2
- package/dist/{mod-CDObsV1d.d.ts → mod-DS4kJskR.d.ts} +2 -2
- package/dist/{mod-fjqfsrty.d.cts → mod-Dz5Y15Uy.d.cts} +3 -3
- package/dist/{mod-Dt-G9ZOS.d.cts → mod-JUhOKMHj.d.cts} +2 -2
- package/dist/{mod-mXx9V0q5.d.cts → mod-OQfb33eH.d.cts} +2 -2
- package/dist/mod.cjs +11 -11
- package/dist/mod.d.cts +14 -14
- package/dist/mod.d.ts +14 -14
- package/dist/mod.js +11 -11
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +17 -17
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.d.cts +3 -3
- package/dist/nodeinfo/mod.d.ts +3 -3
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/otel/exporter.test.d.ts +3 -0
- package/dist/otel/exporter.test.js +926 -0
- package/dist/otel/mod.cjs +279 -0
- package/dist/otel/mod.d.cts +231 -0
- package/dist/otel/mod.d.ts +233 -0
- package/dist/otel/mod.js +278 -0
- package/dist/{owner-9jSx_21P.js → owner-0Shxdyhe.js} +2 -2
- package/dist/{owner-BbeUDvOu.d.ts → owner-8NMhXwJd.d.ts} +3 -3
- package/dist/{owner-6KSEp9eV.d.cts → owner-AcrG3Xz1.d.cts} +3 -3
- package/dist/{proof-BuLnngRI.cjs → proof-BkSIZZvQ.cjs} +3 -3
- package/dist/{proof-B5YI7sn5.js → proof-C4rAO2RO.js} +2 -2
- package/dist/{proof-BT3OPhWQ.js → proof-HQxJubhc.js} +3 -3
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +17 -6
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.d.cts +5 -5
- package/dist/runtime/mod.d.ts +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-DlPE7bKe.js → send-BP6ygWf9.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.d.cts +7 -7
- package/dist/sig/mod.d.ts +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-B17zODFD.js → testing-Bcbu7CRU.js} +2 -2
- package/dist/{type-E_91dusN.js → type-DKH5jWaT.js} +218 -208
- package/dist/{types-Ci8XKEfO.cjs → types-BuepjYNB.cjs} +1 -1
- package/dist/{types-By5LByL1.js → types-BvZw8fTu.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.d.cts +5 -5
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +4 -4
- package/dist/{vocab-CDHNj5zp.d.ts → vocab-BASuuzcJ.d.ts} +1 -1
- package/dist/{vocab-CthegyUc.js → vocab-BMEjnQH0.js} +3 -3
- package/dist/{vocab-Cfs0937i.d.cts → vocab-DPMmFPJ1.d.cts} +1 -1
- package/dist/{vocab-BjnZ49Xt.cjs → vocab-DU-ijLF1.cjs} +3 -3
- package/dist/webfinger/handler.test.js +17 -17
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.d.cts +3 -3
- package/dist/webfinger/mod.d.ts +3 -3
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.d.cts +1 -1
- package/dist/x/cfworkers.d.ts +1 -1
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.cts +10 -10
- package/dist/x/hono.d.ts +10 -10
- package/dist/x/sveltekit.d.cts +10 -10
- package/dist/x/sveltekit.d.ts +10 -10
- package/package.json +12 -2
- package/dist/key-gZEWdYwT.cjs +0 -10
- package/dist/middleware-09gZVY21.cjs +0 -17
- package/dist/middleware-B8Q9c1ys.js +0 -26
- package/dist/middleware-DHUCp8iq.js +0 -17
|
@@ -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-DKH5jWaT.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { KvKeyCache } from "../keycache-
|
|
13
|
-
import { test } from "../testing-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import "../lookup-NIW04iej.js";
|
|
12
|
+
import { KvKeyCache } from "../keycache-SWYinQYh.js";
|
|
13
|
+
import { test } from "../testing-Bcbu7CRU.js";
|
|
14
14
|
|
|
15
15
|
//#region src/federation/keycache.test.ts
|
|
16
16
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DKH5jWaT.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import "../lookup-
|
|
12
|
-
import { test } from "../testing-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import "../lookup-NIW04iej.js";
|
|
12
|
+
import { test } from "../testing-Bcbu7CRU.js";
|
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -43,6 +43,60 @@ test("MemoryKvStore", async (t) => {
|
|
|
43
43
|
assertEquals(await store.cas(["foo", "bar"], void 0, "baz"), true);
|
|
44
44
|
assertEquals(await store.get(["foo", "bar"]), "baz");
|
|
45
45
|
});
|
|
46
|
+
await t.step("list()", async () => {
|
|
47
|
+
await store.set(["prefix", "a"], "value-a");
|
|
48
|
+
await store.set(["prefix", "b"], "value-b");
|
|
49
|
+
await store.set([
|
|
50
|
+
"prefix",
|
|
51
|
+
"nested",
|
|
52
|
+
"c"
|
|
53
|
+
], "value-c");
|
|
54
|
+
await store.set(["other", "x"], "value-x");
|
|
55
|
+
await store.set(["prefix"], "exact-match");
|
|
56
|
+
const entries = await Array.fromAsync(store.list(["prefix"]));
|
|
57
|
+
assertEquals(entries.length, 4);
|
|
58
|
+
const entryA = entries.find((e) => e.key.length === 2 && e.key[1] === "a");
|
|
59
|
+
assertEquals(entryA?.value, "value-a");
|
|
60
|
+
const noMatch = await Array.fromAsync(store.list(["nonexistent"]));
|
|
61
|
+
assertEquals(noMatch.length, 0);
|
|
62
|
+
await store.delete(["prefix", "a"]);
|
|
63
|
+
await store.delete(["prefix", "b"]);
|
|
64
|
+
await store.delete([
|
|
65
|
+
"prefix",
|
|
66
|
+
"nested",
|
|
67
|
+
"c"
|
|
68
|
+
]);
|
|
69
|
+
await store.delete(["other", "x"]);
|
|
70
|
+
await store.delete(["prefix"]);
|
|
71
|
+
});
|
|
72
|
+
await t.step("list() filters expired entries", async () => {
|
|
73
|
+
await store.set(["expired", "old"], "old-value", { ttl: Temporal.Duration.from({ milliseconds: 1 }) });
|
|
74
|
+
await store.set(["expired", "valid"], "valid-value");
|
|
75
|
+
await new Promise((r) => setTimeout(r, 10));
|
|
76
|
+
const entries = await Array.fromAsync(store.list(["expired"]));
|
|
77
|
+
assertEquals(entries.length, 1);
|
|
78
|
+
assertEquals(entries[0].value, "valid-value");
|
|
79
|
+
await store.delete(["expired", "valid"]);
|
|
80
|
+
});
|
|
81
|
+
await t.step("list() with empty prefix", async () => {
|
|
82
|
+
await store.delete(["foo", "bar"]);
|
|
83
|
+
await store.set(["a"], "value-a");
|
|
84
|
+
await store.set(["b", "c"], "value-bc");
|
|
85
|
+
await store.set([
|
|
86
|
+
"d",
|
|
87
|
+
"e",
|
|
88
|
+
"f"
|
|
89
|
+
], "value-def");
|
|
90
|
+
const entries = await Array.fromAsync(store.list());
|
|
91
|
+
assertEquals(entries.length, 3);
|
|
92
|
+
await store.delete(["a"]);
|
|
93
|
+
await store.delete(["b", "c"]);
|
|
94
|
+
await store.delete([
|
|
95
|
+
"d",
|
|
96
|
+
"e",
|
|
97
|
+
"f"
|
|
98
|
+
]);
|
|
99
|
+
});
|
|
46
100
|
});
|
|
47
101
|
|
|
48
102
|
//#endregion
|
|
@@ -3,37 +3,37 @@
|
|
|
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-
|
|
6
|
+
import { Activity, Announce, Create, FetchError, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-DKH5jWaT.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
|
-
import { MemoryKvStore } from "../kv-
|
|
11
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
10
|
+
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-CAhqzGsQ.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import { RouterError, lookupObject } from "../lookup-
|
|
13
|
+
import "../client-BmHT-Gam.js";
|
|
14
|
+
import { RouterError, lookupObject } from "../lookup-NIW04iej.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest, verifyRequest } from "../http-
|
|
19
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
|
20
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
21
|
-
import { doesActorOwnKey } from "../owner-
|
|
22
|
-
import { signObject, verifyObject } from "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-ClRBIAnh.js";
|
|
17
|
+
import "../key-DvUWbmkT.js";
|
|
18
|
+
import { signRequest, verifyRequest } from "../http-BjkaX3VX.js";
|
|
19
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-0TppC6F1.js";
|
|
20
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-DzM_gz0T.js";
|
|
21
|
+
import { doesActorOwnKey } from "../owner-0Shxdyhe.js";
|
|
22
|
+
import { signObject, verifyObject } from "../proof-C4rAO2RO.js";
|
|
23
|
+
import "../inbox-ueCZKRkM.js";
|
|
24
|
+
import "../builder-C62uybmU.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-SWYinQYh.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-BP6ygWf9.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-Bcbu7CRU.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
34
34
|
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
35
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
36
|
-
import { esm_default } from "../esm-
|
|
35
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-BIXfFcee.js";
|
|
36
|
+
import { esm_default } from "../esm-CeEKUiEp.js";
|
|
37
37
|
|
|
38
38
|
//#region src/testing/fixtures/example.com/person.json
|
|
39
39
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
require('../transformers-CoBS-oFG.cjs');
|
|
6
|
-
require('../docloader-
|
|
7
|
-
require('../actor-
|
|
8
|
-
const require_middleware = require('../middleware-
|
|
9
|
-
require('../lookup-
|
|
10
|
-
require('../key-
|
|
11
|
-
require('../http-
|
|
12
|
-
require('../proof-
|
|
13
|
-
const require_federation = require('../federation-
|
|
14
|
-
require('../types-
|
|
15
|
-
require('../authdocloader-
|
|
16
|
-
require('../vocab-
|
|
6
|
+
require('../docloader-DnMoTR3t.cjs');
|
|
7
|
+
require('../actor-_LgMBPuy.cjs');
|
|
8
|
+
const require_middleware = require('../middleware-DS4_0Iya.cjs');
|
|
9
|
+
require('../lookup-ChmoRKw1.cjs');
|
|
10
|
+
require('../key-h1EtBGfl.cjs');
|
|
11
|
+
require('../http-DfOK0dnH.cjs');
|
|
12
|
+
require('../proof-BkSIZZvQ.cjs');
|
|
13
|
+
const require_federation = require('../federation-C15gGOh1.cjs');
|
|
14
|
+
require('../types-BuepjYNB.cjs');
|
|
15
|
+
require('../authdocloader-DT_8vC9F.cjs');
|
|
16
|
+
require('../vocab-DU-ijLF1.cjs');
|
|
17
17
|
|
|
18
18
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
19
19
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
2
|
-
import "../docloader-
|
|
3
|
-
import "../client-
|
|
4
|
-
import "../vocab-
|
|
5
|
-
import "../actor-
|
|
6
|
-
import "../http-
|
|
7
|
-
import "../owner-
|
|
8
|
-
import "../mod-
|
|
9
|
-
import "../mod-
|
|
10
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
1
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-BqEOXcZv.cjs";
|
|
2
|
+
import "../docloader-ChxNLZAA.cjs";
|
|
3
|
+
import "../client-n6L4GtQL.cjs";
|
|
4
|
+
import "../vocab-DPMmFPJ1.cjs";
|
|
5
|
+
import "../actor-D190nbTD.cjs";
|
|
6
|
+
import "../http-C_1RU1U_.cjs";
|
|
7
|
+
import "../owner-AcrG3Xz1.cjs";
|
|
8
|
+
import "../mod-D5rfgGFE.cjs";
|
|
9
|
+
import "../mod-CxMBb_dd.cjs";
|
|
10
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-WJoO0SQs.cjs";
|
|
11
11
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-B7R1Q-M5.cjs";
|
|
12
12
|
import "../mod-C2tOeRkN.cjs";
|
|
13
|
-
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
13
|
+
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
4
|
-
import "../docloader-
|
|
5
|
-
import "../client-
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
11
|
-
import "../mod-
|
|
12
|
-
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
3
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-DipCBaw2.js";
|
|
4
|
+
import "../docloader-BucCRHZI.js";
|
|
5
|
+
import "../client-B3mQJNO7.js";
|
|
6
|
+
import "../vocab-BASuuzcJ.js";
|
|
7
|
+
import "../actor-eeONG_sv.js";
|
|
8
|
+
import "../http-DS9z_HzB.js";
|
|
9
|
+
import "../owner-8NMhXwJd.js";
|
|
10
|
+
import "../mod-DS4kJskR.js";
|
|
11
|
+
import "../mod-ChbckRnC.js";
|
|
12
|
+
import { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-Cr5DIxq_.js";
|
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-CRGm1e_F.js";
|
|
14
14
|
import "../mod-g0xFzAP9.js";
|
|
15
|
-
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
15
|
+
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-BFT6d7J5.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-BsnLs_0R.js";
|
|
7
|
+
import "../actor-LycqTlLz.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Vh0bU8xr.js";
|
|
9
|
+
import "../lookup-D0BwB5p9.js";
|
|
10
|
+
import "../key-Day3gm8E.js";
|
|
11
|
+
import "../http-S9xcMlXK.js";
|
|
12
|
+
import "../proof-HQxJubhc.js";
|
|
13
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-K-xsO03l.js";
|
|
14
|
+
import "../types-BvZw8fTu.js";
|
|
15
|
+
import "../authdocloader-B8WzAPrl.js";
|
|
16
|
+
import "../vocab-BMEjnQH0.js";
|
|
17
17
|
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DKH5jWaT.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import "../lookup-NIW04iej.js";
|
|
11
|
+
import { test } from "../testing-Bcbu7CRU.js";
|
|
12
12
|
import { assertGreater, assertGreaterOrEqual } from "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DKH5jWaT.js";
|
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../lookup-
|
|
8
|
+
import "../lookup-NIW04iej.js";
|
|
9
9
|
import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
|
|
10
|
-
import { test } from "../testing-
|
|
10
|
+
import { test } from "../testing-Bcbu7CRU.js";
|
|
11
11
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
12
12
|
|
|
13
13
|
//#region src/federation/retry.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../type-
|
|
6
|
+
import "../type-DKH5jWaT.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { Router, RouterError } from "../lookup-
|
|
11
|
-
import { test } from "../testing-
|
|
10
|
+
import { Router, RouterError } from "../lookup-NIW04iej.js";
|
|
11
|
+
import { test } from "../testing-Bcbu7CRU.js";
|
|
12
12
|
import "../std__assert-X-_kMxKM.js";
|
|
13
13
|
import { assertFalse } from "../assert_rejects-DiIiJbZn.js";
|
|
14
14
|
import "../assert_is_error-BPGph1Jx.js";
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-
|
|
6
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../type-DKH5jWaT.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../lookup-
|
|
11
|
-
import "../actor-
|
|
12
|
-
import "../key-
|
|
13
|
-
import { verifyRequest } from "../http-
|
|
14
|
-
import { doesActorOwnKey } from "../owner-
|
|
15
|
-
import { extractInboxes, sendActivity } from "../send-
|
|
16
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
10
|
+
import "../lookup-NIW04iej.js";
|
|
11
|
+
import "../actor-ClRBIAnh.js";
|
|
12
|
+
import "../key-DvUWbmkT.js";
|
|
13
|
+
import { verifyRequest } from "../http-BjkaX3VX.js";
|
|
14
|
+
import { doesActorOwnKey } from "../owner-0Shxdyhe.js";
|
|
15
|
+
import { extractInboxes, sendActivity } from "../send-BP6ygWf9.js";
|
|
16
|
+
import { mockDocumentLoader, test } from "../testing-Bcbu7CRU.js";
|
|
17
17
|
import "../std__assert-X-_kMxKM.js";
|
|
18
18
|
import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
|
|
19
19
|
import "../assert_is_error-BPGph1Jx.js";
|
|
20
20
|
import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
|
|
21
21
|
import "../assert_throws-BOO88avQ.js";
|
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BIXfFcee.js";
|
|
23
23
|
import { createTestTracerProvider } from "../otel-Chy5T2Xh.js";
|
|
24
|
-
import { esm_default } from "../esm-
|
|
24
|
+
import { esm_default } from "../esm-CeEKUiEp.js";
|
|
25
25
|
|
|
26
26
|
//#region src/federation/send.test.ts
|
|
27
27
|
test("extractInboxes()", () => {
|
|
@@ -68,6 +68,28 @@ var MemoryKvStore = class {
|
|
|
68
68
|
this.#values[encodedKey] = [newValue, expiration];
|
|
69
69
|
return Promise.resolve(true);
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* {@inheritDoc KvStore.list}
|
|
73
|
+
*/
|
|
74
|
+
async *list(prefix) {
|
|
75
|
+
const now = Temporal.Now.instant();
|
|
76
|
+
for (const [encodedKey, entry] of Object.entries(this.#values)) {
|
|
77
|
+
const key = JSON.parse(encodedKey);
|
|
78
|
+
if (prefix != null) {
|
|
79
|
+
if (key.length < prefix.length) continue;
|
|
80
|
+
if (!prefix.every((p, i) => key[i] === p)) continue;
|
|
81
|
+
}
|
|
82
|
+
const [value, expiration] = entry;
|
|
83
|
+
if (expiration != null && now.until(expiration).sign < 0) {
|
|
84
|
+
delete this.#values[encodedKey];
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
yield {
|
|
88
|
+
key,
|
|
89
|
+
value
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
71
93
|
};
|
|
72
94
|
|
|
73
95
|
//#endregion
|
|
@@ -67,6 +67,28 @@ var MemoryKvStore = class {
|
|
|
67
67
|
this.#values[encodedKey] = [newValue, expiration];
|
|
68
68
|
return Promise.resolve(true);
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* {@inheritDoc KvStore.list}
|
|
72
|
+
*/
|
|
73
|
+
async *list(prefix) {
|
|
74
|
+
const now = Temporal.Now.instant();
|
|
75
|
+
for (const [encodedKey, entry] of Object.entries(this.#values)) {
|
|
76
|
+
const key = JSON.parse(encodedKey);
|
|
77
|
+
if (prefix != null) {
|
|
78
|
+
if (key.length < prefix.length) continue;
|
|
79
|
+
if (!prefix.every((p, i) => key[i] === p)) continue;
|
|
80
|
+
}
|
|
81
|
+
const [value, expiration] = entry;
|
|
82
|
+
if (expiration != null && now.until(expiration).sign < 0) {
|
|
83
|
+
delete this.#values[encodedKey];
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
yield {
|
|
87
|
+
key,
|
|
88
|
+
value
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
70
92
|
};
|
|
71
93
|
|
|
72
94
|
//#endregion
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, deno_default } from "./type-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
6
|
+
import { CryptographicKey, deno_default } from "./type-DKH5jWaT.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-DvUWbmkT.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentLoader } from "./docloader-
|
|
2
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
|
1
|
+
import { DocumentLoader } from "./docloader-ChxNLZAA.cjs";
|
|
2
|
+
import { CryptographicKey, Multikey } from "./vocab-DPMmFPJ1.cjs";
|
|
3
3
|
import { TracerProvider } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/sig/key.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { DocumentLoader } from "./docloader-
|
|
4
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
|
3
|
+
import { DocumentLoader } from "./docloader-BucCRHZI.js";
|
|
4
|
+
import { CryptographicKey, Multikey } from "./vocab-BASuuzcJ.js";
|
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
|
6
6
|
|
|
7
7
|
//#region src/sig/key.d.ts
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_docloader = require('./docloader-
|
|
7
|
-
const require_actor = require('./actor-
|
|
8
|
-
const require_key = require('./key-
|
|
6
|
+
const require_docloader = require('./docloader-DnMoTR3t.cjs');
|
|
7
|
+
const require_actor = require('./actor-_LgMBPuy.cjs');
|
|
8
|
+
const require_key = require('./key-h1EtBGfl.cjs');
|
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
10
10
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
11
11
|
const byte_encodings_base64 = require_chunk.__toESM(require("byte-encodings/base64"));
|
|
@@ -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-
|
|
6
|
-
import { CryptographicKey } from "./actor-
|
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
|
5
|
+
import { deno_default } from "./docloader-BsnLs_0R.js";
|
|
6
|
+
import { CryptographicKey } from "./actor-LycqTlLz.js";
|
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-Day3gm8E.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,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, deno_default, getTypeId } from "./type-
|
|
6
|
+
import { Activity, deno_default, getTypeId } from "./type-DKH5jWaT.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "./docloader-
|
|
6
|
-
import "./actor-
|
|
7
|
-
import "./lookup-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
5
|
+
import "./docloader-BsnLs_0R.js";
|
|
6
|
+
import "./actor-LycqTlLz.js";
|
|
7
|
+
import "./lookup-D0BwB5p9.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Day3gm8E.js";
|
|
9
9
|
|
|
10
10
|
export { validateCryptoKey };
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "./type-
|
|
7
|
-
import "./actor-
|
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
|
6
|
+
import "./type-DKH5jWaT.js";
|
|
7
|
+
import "./actor-ClRBIAnh.js";
|
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-DvUWbmkT.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-
|
|
6
|
-
import { CryptographicKey, Object as Object$1, isActor } from "./actor-
|
|
5
|
+
import { deno_default, getDocumentLoader } from "./docloader-BsnLs_0R.js";
|
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-LycqTlLz.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
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-
|
|
7
|
-
import { isActor } from "./actor-
|
|
6
|
+
import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-DKH5jWaT.js";
|
|
7
|
+
import { isActor } from "./actor-ClRBIAnh.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
+
|
|
5
|
+
require('./docloader-DnMoTR3t.cjs');
|
|
6
|
+
require('./actor-_LgMBPuy.cjs');
|
|
7
|
+
require('./lookup-ChmoRKw1.cjs');
|
|
8
|
+
const require_key = require('./key-h1EtBGfl.cjs');
|
|
9
|
+
|
|
10
|
+
exports.validateCryptoKey = require_key.validateCryptoKey;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_docloader = require('./docloader-
|
|
7
|
-
const require_actor = require('./actor-
|
|
6
|
+
const require_docloader = require('./docloader-DnMoTR3t.cjs');
|
|
7
|
+
const require_actor = require('./actor-_LgMBPuy.cjs');
|
|
8
8
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
9
9
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
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-DKH5jWaT.js";
|
|
7
7
|
|
|
8
8
|
//#region src/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-
|
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./type-DKH5jWaT.js";
|
|
7
7
|
|
|
8
8
|
//#region src/testing/keys.ts
|
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|