@fedify/fedify 2.0.0-dev.1593 → 2.0.0-dev.1641
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-CP03csrm.cjs +37786 -0
- package/dist/actor-DMgu-ZjT.d.cts +128 -0
- package/dist/{actor-DNwcqwPT.js → actor-DU511yTk.js} +200 -200
- package/dist/{actor-Bj1Vq2XG.js → actor-DVpsNXhn.js} +1 -1
- package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-7UF4R_Qs.js} +1 -1
- package/dist/{assert_throws-BOO88avQ.js → assert_throws-53_pKeP3.js} +1 -1
- package/dist/{authdocloader-DJtdyVPc.js → authdocloader-BkIZCKQv.js} +3 -3
- package/dist/authdocloader-BnsFSERg.cjs +58 -0
- package/dist/{authdocloader-qkvj_KZY.js → authdocloader-DCgMyo82.js} +6 -6
- package/dist/{builder-BgzJcrpt.js → builder-E2Icrl_a.js} +4 -4
- package/dist/chunk-DqRYRqnO.cjs +34 -0
- package/dist/{client-CpxFv8ft.js → client-BW4V0OJx.js} +3 -22
- package/dist/client-CegPX0Rn.d.cts +222 -0
- package/dist/{client-DF8anIB5.d.ts → client-bgSdkFa2.d.ts} +2 -74
- package/dist/compat/mod.cjs +10 -0
- package/dist/compat/mod.d.cts +13 -0
- package/dist/compat/mod.d.ts +3 -3
- package/dist/compat/mod.js +5 -5
- package/dist/compat/transformers.test.js +19 -20
- package/dist/compat-DmDDELst.cjs +4 -0
- package/dist/compat-nxUqe4Z-.js +4 -0
- package/dist/{context-9gCpIkiz.d.ts → context-CDSZdQHD.d.ts} +1 -1
- package/dist/context-Dq8aCtMH.d.cts +2255 -0
- package/dist/{docloader-9_osWaaH.js → docloader-BtqIh1OE.js} +188 -8
- package/dist/docloader-D-MrRyHl.d.cts +219 -0
- package/dist/docloader-kae6M-GI.cjs +4861 -0
- package/dist/{esm-5nsZYnVB.js → esm-mtx3XJAD.js} +1 -1
- package/dist/federation/builder.test.js +11 -12
- package/dist/federation/collection.test.js +9 -9
- package/dist/federation/handler.test.js +25 -26
- package/dist/federation/inbox.test.js +6 -6
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +9 -8
- package/dist/federation/middleware.test.js +29 -44
- package/dist/federation/mod.cjs +29 -0
- package/dist/federation/mod.d.cts +13 -0
- package/dist/federation/mod.d.ts +2 -2
- package/dist/federation/mod.js +15 -15
- package/dist/federation/mq.test.js +10 -10
- 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/{federation-CMX7WzeL.js → federation-D1U8YY9t.js} +3 -3
- package/dist/federation-H2_En3j5.cjs +244 -0
- package/dist/http-BS6766zs.d.cts +253 -0
- package/dist/{http-BqklewFY.js → http-C7uYFcBo.js} +6 -6
- package/dist/{http-CQulyTuw.js → http-Cox5GsED.js} +2 -2
- package/dist/http-ZhcoaYEa.cjs +826 -0
- package/dist/{inbox-B97Wrppe.js → inbox-BDdRbWNI.js} +1 -1
- package/dist/key-B9Z5ZuX9.js +10 -0
- package/dist/{key-CNCeen0u.js → key-Cc0JlcKe.js} +5 -5
- package/dist/{key-D-s3dQbK.js → key-CfiBDu3o.js} +2 -2
- package/dist/{key-C3CEOTh7.js → key-CgwCzDC4.js} +3 -3
- package/dist/key-D-7DPHNl.cjs +10 -0
- package/dist/key-HqzOCwDc.cjs +290 -0
- package/dist/{keycache-Br0-hsD5.js → keycache-CVBjz3xi.js} +1 -1
- package/dist/{keys-DSk2aqlj.js → keys-CBKbYaJA.js} +1 -1
- package/dist/kv-63Cil1MD.d.cts +81 -0
- package/dist/{ld-CYUQO1l4.js → ld-CxgmnSO3.js} +2 -2
- package/dist/{lookup-CnJK1NUl.js → lookup-CiU3QxQz.js} +1 -1
- package/dist/{lookup-BNFlahf3.js → lookup-NuT9cCSl.js} +4 -4
- package/dist/lookup-QHjmy4Og.cjs +137 -0
- package/dist/middleware-BHboQ4BE.js +25 -0
- package/dist/middleware-Bp3I9z8r.js +17 -0
- package/dist/{middleware-CovCqg8w.js → middleware-ByPnvMMS.js} +30 -30
- package/dist/{middleware-tfSiCl9w.js → middleware-DXidHY4N.js} +28 -28
- package/dist/middleware-LyCG_YVM.cjs +4235 -0
- package/dist/middleware-oYqSU5ky.cjs +17 -0
- package/dist/mod-BClfg3ej.d.cts +266 -0
- package/dist/mod-BhMnAkFX.d.cts +80 -0
- package/dist/mod-C2tOeRkN.d.cts +1 -0
- package/dist/mod-Dc_-mf8s.d.cts +102 -0
- package/dist/mod-FZd39qVq.d.cts +1 -0
- package/dist/{mod-Bqxcp7eN.d.ts → mod-RI3-KvUI.d.ts} +1 -1
- package/dist/mod-evzlRVZq.d.cts +289 -0
- package/dist/mod-jQ4OODsl.d.cts +113 -0
- package/dist/mod.cjs +150 -0
- package/dist/mod.d.cts +17 -0
- package/dist/mod.d.ts +4 -4
- package/dist/mod.js +21 -21
- package/dist/mq-B7R1Q-M5.d.cts +140 -0
- package/dist/nodeinfo/client.test.js +32 -111
- package/dist/nodeinfo/handler.test.js +25 -26
- package/dist/nodeinfo/mod.cjs +11 -0
- package/dist/nodeinfo/mod.d.cts +5 -0
- package/dist/nodeinfo/mod.d.ts +2 -2
- package/dist/nodeinfo/mod.js +7 -7
- package/dist/nodeinfo/types.test.js +10 -15
- package/dist/nodeinfo-Co9lJrWl.cjs +4 -0
- package/dist/nodeinfo-DfycQ8Wf.js +4 -0
- package/dist/owner-B-7Ptt_m.d.cts +67 -0
- package/dist/{owner-CBeUJR68.js → owner-Cxob5_PK.js} +2 -2
- package/dist/proof-2Gcor0_N.cjs +673 -0
- package/dist/{proof-CHQnDg0z.js → proof-BiSQNUmQ.js} +2 -2
- package/dist/{proof-D436ezTT.js → proof-DkxwMaWE.js} +6 -6
- 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 +61 -0
- package/dist/runtime/mod.cjs +25 -0
- package/dist/runtime/mod.d.cts +6 -0
- package/dist/runtime/mod.js +10 -10
- package/dist/runtime/multibase/multibase.test.js +8 -8
- package/dist/runtime/url.test.js +5 -5
- package/dist/runtime-C58AJWSv.cjs +4 -0
- package/dist/runtime-DPYEDf-o.js +4 -0
- package/dist/{send-Bc0QdRlp.js → send-DSEhWIYD.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 +30 -0
- package/dist/sig/mod.d.cts +8 -0
- package/dist/sig/mod.js +10 -10
- package/dist/sig/owner.test.js +12 -12
- package/dist/sig/proof.test.js +12 -12
- package/dist/sig-ByHXzqUi.cjs +4 -0
- package/dist/sig-Cj3tk-ig.js +4 -0
- package/dist/testing/docloader.test.js +8 -8
- package/dist/testing/mod.d.ts +1 -28
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-D4xRiVJV.js → testing-ByQmUvf-.js} +2 -2
- package/dist/{transformers-Dna8Fg7k.js → transformers-BFT6d7J5.js} +3 -3
- package/dist/transformers-CoBS-oFG.cjs +116 -0
- package/dist/{type-qs0mWLTm.js → type-B4NJkfVg.js} +381 -201
- package/dist/{types-BIgY6c-l.js → types-BSuWJsOm.js} +1 -3
- package/dist/types-Bqt2EgP0.cjs +315 -0
- package/dist/{types-RbpvCErq.js → types-l2uh_ZhP.js} +8 -169
- package/dist/vocab/actor.test.js +10 -10
- package/dist/vocab/lookup.test.js +9 -9
- package/dist/vocab/mod.cjs +87 -0
- package/dist/vocab/mod.d.cts +6 -0
- package/dist/vocab/mod.js +7 -7
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +45 -10
- package/dist/vocab-B0-5a8pw.cjs +282 -0
- package/dist/vocab-DJTYMqyU.d.cts +14632 -0
- package/dist/{vocab-r-I1_ZmK.js → vocab-lBFcVxVF.js} +6 -6
- package/dist/webfinger/handler.test.js +24 -25
- package/dist/webfinger/lookup.test.js +9 -9
- package/dist/webfinger/mod.cjs +9 -0
- package/dist/webfinger/mod.d.cts +4 -0
- package/dist/webfinger/mod.js +6 -6
- package/dist/webfinger-BjOEdFPs.cjs +4 -0
- package/dist/webfinger-De_bU0iE.js +4 -0
- package/dist/x/cfworkers.cjs +100 -0
- package/dist/x/cfworkers.d.cts +59 -0
- package/dist/x/cfworkers.js +3 -3
- package/dist/x/cfworkers.test.js +8 -8
- package/dist/x/hono.cjs +61 -0
- package/dist/x/hono.d.cts +54 -0
- package/dist/x/hono.d.ts +2 -2
- package/dist/x/hono.js +3 -3
- package/dist/x/sveltekit.cjs +69 -0
- package/dist/x/sveltekit.d.cts +46 -0
- package/dist/x/sveltekit.d.ts +2 -2
- package/dist/x/sveltekit.js +3 -3
- package/package.json +68 -13
- package/dist/compat-Bb5myD13.js +0 -4
- package/dist/key-3jGPh5To.js +0 -10
- package/dist/middleware-CJbNYdw9.js +0 -17
- package/dist/middleware-zDdNBo-m.js +0 -26
- package/dist/nodeinfo/semver.test.js +0 -143
- package/dist/nodeinfo-CyEbLjHs.js +0 -4
- package/dist/runtime-BSkOVUWM.js +0 -4
- package/dist/semver-dArNLkR9.js +0 -149
- package/dist/sig-BXJO--F9.js +0 -4
- package/dist/webfinger-C3GIyXIg.js +0 -4
- /package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-B035L3om.js} +0 -0
- /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
- /package/dist/{collection-CSzG2j1P.js → collection-CcnIw1qY.js} +0 -0
- /package/dist/{denokv-Bv33Xxea.js → denokv-jZ0Z2h0M.js} +0 -0
- /package/dist/{retry-D4GJ670a.js → retry-CfF8Gn4d.js} +0 -0
- /package/dist/{nodeinfo/semver.test.d.ts → runtime/link.test.d.ts} +0 -0
- /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { __commonJS, __toESM } from "./type-
|
6
|
+
import { __commonJS, __toESM } from "./type-B4NJkfVg.js";
|
7
7
|
|
8
8
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
9
9
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
@@ -3,21 +3,20 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Note, Person } from "../type-
|
6
|
+
import { Activity, Note, Person } from "../type-B4NJkfVg.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
|
12
|
-
import "../
|
13
|
-
import "../
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import
|
17
|
-
import "../
|
18
|
-
import "../
|
19
|
-
import "../
|
20
|
-
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
11
|
+
import "../lookup-CiU3QxQz.js";
|
12
|
+
import "../inbox-BDdRbWNI.js";
|
13
|
+
import { createFederationBuilder } from "../builder-E2Icrl_a.js";
|
14
|
+
import { test } from "../testing-ByQmUvf-.js";
|
15
|
+
import { assertExists } from "../std__assert-DWivtrGR.js";
|
16
|
+
import "../assert_rejects-7UF4R_Qs.js";
|
17
|
+
import "../assert_is_error-B035L3om.js";
|
18
|
+
import "../assert_not_equals-C80BG-_5.js";
|
19
|
+
import { assertThrows } from "../assert_throws-53_pKeP3.js";
|
21
20
|
|
22
21
|
//#region src/federation/builder.test.ts
|
23
22
|
test("FederationBuilder", async (t) => {
|
@@ -39,7 +38,7 @@ test("FederationBuilder", async (t) => {
|
|
39
38
|
version: "2.1",
|
40
39
|
software: {
|
41
40
|
name: "test",
|
42
|
-
version:
|
41
|
+
version: "1.0.0"
|
43
42
|
},
|
44
43
|
protocols: ["activitypub"],
|
45
44
|
services: {
|
@@ -3,18 +3,18 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B4NJkfVg.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 "../lookup-
|
11
|
-
import { buildCollectionSynchronizationHeader, digest } from "../collection-
|
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-
|
10
|
+
import "../lookup-CiU3QxQz.js";
|
11
|
+
import { buildCollectionSynchronizationHeader, digest } from "../collection-CcnIw1qY.js";
|
12
|
+
import { test } from "../testing-ByQmUvf-.js";
|
13
|
+
import "../std__assert-DWivtrGR.js";
|
14
|
+
import "../assert_rejects-7UF4R_Qs.js";
|
15
|
+
import "../assert_is_error-B035L3om.js";
|
16
|
+
import "../assert_not_equals-C80BG-_5.js";
|
17
|
+
import "../assert_throws-53_pKeP3.js";
|
18
18
|
import { decodeHex } from "byte-encodings/hex";
|
19
19
|
|
20
20
|
//#region src/federation/collection.test.ts
|
@@ -3,36 +3,35 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, Note, Person } from "../type-
|
6
|
+
import { Create, Note, Person } from "../type-B4NJkfVg.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
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
12
|
-
import "../
|
13
|
-
import "../
|
14
|
-
import "../
|
15
|
-
import "../
|
16
|
-
import "../
|
17
|
-
import "../
|
18
|
-
import
|
19
|
-
import "../
|
20
|
-
import "../
|
21
|
-
import "../
|
22
|
-
import "../
|
23
|
-
import
|
24
|
-
import "../
|
25
|
-
import "../
|
26
|
-
import "../
|
27
|
-
import "../
|
28
|
-
import "../
|
29
|
-
import
|
30
|
-
import "../
|
31
|
-
import
|
32
|
-
import "../
|
33
|
-
import "../
|
34
|
-
import "../
|
35
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DSk2aqlj.js";
|
11
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-ByPnvMMS.js";
|
12
|
+
import "../client-BW4V0OJx.js";
|
13
|
+
import "../lookup-CiU3QxQz.js";
|
14
|
+
import "../types-BSuWJsOm.js";
|
15
|
+
import "../actor-DVpsNXhn.js";
|
16
|
+
import "../key-CfiBDu3o.js";
|
17
|
+
import { signRequest } from "../http-Cox5GsED.js";
|
18
|
+
import "../authdocloader-BkIZCKQv.js";
|
19
|
+
import "../ld-CxgmnSO3.js";
|
20
|
+
import "../owner-Cxob5_PK.js";
|
21
|
+
import "../proof-BiSQNUmQ.js";
|
22
|
+
import { InboxListenerSet } from "../inbox-BDdRbWNI.js";
|
23
|
+
import "../builder-E2Icrl_a.js";
|
24
|
+
import "../collection-CcnIw1qY.js";
|
25
|
+
import "../keycache-CVBjz3xi.js";
|
26
|
+
import "../retry-CfF8Gn4d.js";
|
27
|
+
import "../send-DSEhWIYD.js";
|
28
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-ByQmUvf-.js";
|
29
|
+
import "../std__assert-DWivtrGR.js";
|
30
|
+
import { assertFalse } from "../assert_rejects-7UF4R_Qs.js";
|
31
|
+
import "../assert_is_error-B035L3om.js";
|
32
|
+
import "../assert_not_equals-C80BG-_5.js";
|
33
|
+
import "../assert_throws-53_pKeP3.js";
|
34
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CBKbYaJA.js";
|
36
35
|
|
37
36
|
//#region src/federation/handler.test.ts
|
38
37
|
test("acceptsJsonLd()", () => {
|
@@ -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-B4NJkfVg.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-CiU3QxQz.js";
|
9
|
+
import { InboxListenerSet } from "../inbox-BDdRbWNI.js";
|
10
|
+
import { test } from "../testing-ByQmUvf-.js";
|
11
|
+
import "../assert_is_error-B035L3om.js";
|
12
|
+
import { assertThrows } from "../assert_throws-53_pKeP3.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-B4NJkfVg.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-CiU3QxQz.js";
|
12
|
+
import { KvKeyCache } from "../keycache-CVBjz3xi.js";
|
13
|
+
import { test } from "../testing-ByQmUvf-.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-B4NJkfVg.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-CiU3QxQz.js";
|
12
|
+
import { test } from "../testing-ByQmUvf-.js";
|
13
|
+
import "../std__assert-DWivtrGR.js";
|
14
|
+
import "../assert_rejects-7UF4R_Qs.js";
|
15
|
+
import "../assert_is_error-B035L3om.js";
|
16
|
+
import "../assert_not_equals-C80BG-_5.js";
|
17
|
+
import "../assert_throws-53_pKeP3.js";
|
18
18
|
|
19
19
|
//#region src/federation/kv.test.ts
|
20
20
|
test("MemoryKvStore", async (t) => {
|
@@ -24,6 +24,7 @@ test("MemoryKvStore", async (t) => {
|
|
24
24
|
assertEquals(await store.get(["foo", "bar"]), "foobar");
|
25
25
|
assertEquals(await store.get(["foo"]), void 0);
|
26
26
|
await store.set(["foo", "baz"], "baz", { ttl: Temporal.Duration.from({ seconds: 0 }) });
|
27
|
+
await new Promise((resolve) => setTimeout(resolve, 10));
|
27
28
|
assertEquals(await store.get(["foo", "baz"]), void 0);
|
28
29
|
});
|
29
30
|
await t.step("delete()", async () => {
|
@@ -3,37 +3,36 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-
|
6
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, fetchDocumentLoader, getTypeId } from "../type-B4NJkfVg.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 { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
12
|
-
import "../
|
13
|
-
import "../
|
14
|
-
import
|
15
|
-
import "../
|
16
|
-
import "../
|
17
|
-
import "../
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import
|
23
|
-
import "../
|
24
|
-
import "../
|
25
|
-
import "../
|
26
|
-
import "../
|
27
|
-
import "../
|
28
|
-
import "../
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import
|
32
|
-
import "../
|
33
|
-
import {
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import { esm_default } from "../esm-5nsZYnVB.js";
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-ByPnvMMS.js";
|
12
|
+
import "../client-BW4V0OJx.js";
|
13
|
+
import { RouterError, lookupObject } from "../lookup-CiU3QxQz.js";
|
14
|
+
import "../types-BSuWJsOm.js";
|
15
|
+
import "../actor-DVpsNXhn.js";
|
16
|
+
import "../key-CfiBDu3o.js";
|
17
|
+
import { signRequest, verifyRequest } from "../http-Cox5GsED.js";
|
18
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-BkIZCKQv.js";
|
19
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-CxgmnSO3.js";
|
20
|
+
import { doesActorOwnKey } from "../owner-Cxob5_PK.js";
|
21
|
+
import { signObject, verifyObject } from "../proof-BiSQNUmQ.js";
|
22
|
+
import "../inbox-BDdRbWNI.js";
|
23
|
+
import "../builder-E2Icrl_a.js";
|
24
|
+
import "../collection-CcnIw1qY.js";
|
25
|
+
import "../keycache-CVBjz3xi.js";
|
26
|
+
import "../retry-CfF8Gn4d.js";
|
27
|
+
import "../send-DSEhWIYD.js";
|
28
|
+
import { mockDocumentLoader, test } from "../testing-ByQmUvf-.js";
|
29
|
+
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
30
|
+
import { assertFalse, assertRejects } from "../assert_rejects-7UF4R_Qs.js";
|
31
|
+
import "../assert_is_error-B035L3om.js";
|
32
|
+
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
33
|
+
import { assertThrows } from "../assert_throws-53_pKeP3.js";
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-CBKbYaJA.js";
|
35
|
+
import { esm_default } from "../esm-mtx3XJAD.js";
|
37
36
|
|
38
37
|
//#region src/testing/fixtures/example.com/person.json
|
39
38
|
var __context$1 = ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"];
|
@@ -266,11 +265,7 @@ test({
|
|
266
265
|
federation.setNodeInfoDispatcher("/nodeinfo/2.1", () => ({
|
267
266
|
software: {
|
268
267
|
name: "Example",
|
269
|
-
version:
|
270
|
-
major: 1,
|
271
|
-
minor: 2,
|
272
|
-
patch: 3
|
273
|
-
}
|
268
|
+
version: "1.2.3"
|
274
269
|
},
|
275
270
|
protocols: ["activitypub"],
|
276
271
|
usage: {
|
@@ -467,11 +462,7 @@ test({
|
|
467
462
|
federation.setNodeInfoDispatcher("/nodeinfo/2.1", () => ({
|
468
463
|
software: {
|
469
464
|
name: "Example",
|
470
|
-
version:
|
471
|
-
major: 1,
|
472
|
-
minor: 2,
|
473
|
-
patch: 3
|
474
|
-
}
|
465
|
+
version: "1.2.3"
|
475
466
|
},
|
476
467
|
protocols: ["activitypub"],
|
477
468
|
usage: {
|
@@ -661,13 +652,7 @@ test({
|
|
661
652
|
assertEquals(nodeInfo, {
|
662
653
|
software: {
|
663
654
|
name: "foo",
|
664
|
-
version:
|
665
|
-
major: 1,
|
666
|
-
minor: 2,
|
667
|
-
patch: 3,
|
668
|
-
build: [],
|
669
|
-
prerelease: []
|
670
|
-
}
|
655
|
+
version: "1.2.3"
|
671
656
|
},
|
672
657
|
protocols: ["activitypub", "diaspora"],
|
673
658
|
usage: {
|
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
3
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
4
|
+
|
5
|
+
require('../transformers-CoBS-oFG.cjs');
|
6
|
+
require('../docloader-kae6M-GI.cjs');
|
7
|
+
require('../actor-CP03csrm.cjs');
|
8
|
+
const require_middleware = require('../middleware-LyCG_YVM.cjs');
|
9
|
+
require('../lookup-QHjmy4Og.cjs');
|
10
|
+
require('../key-HqzOCwDc.cjs');
|
11
|
+
require('../http-ZhcoaYEa.cjs');
|
12
|
+
require('../proof-2Gcor0_N.cjs');
|
13
|
+
const require_federation = require('../federation-H2_En3j5.cjs');
|
14
|
+
require('../types-Bqt2EgP0.cjs');
|
15
|
+
require('../authdocloader-BnsFSERg.cjs');
|
16
|
+
require('../vocab-B0-5a8pw.cjs');
|
17
|
+
|
18
|
+
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
19
|
+
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
20
|
+
exports.ParallelMessageQueue = require_federation.ParallelMessageQueue;
|
21
|
+
exports.Router = require_middleware.Router;
|
22
|
+
exports.RouterError = require_middleware.RouterError;
|
23
|
+
exports.buildCollectionSynchronizationHeader = require_middleware.buildCollectionSynchronizationHeader;
|
24
|
+
exports.createExponentialBackoffPolicy = require_middleware.createExponentialBackoffPolicy;
|
25
|
+
exports.createFederation = require_middleware.createFederation;
|
26
|
+
exports.createFederationBuilder = require_middleware.createFederationBuilder;
|
27
|
+
exports.digest = require_middleware.digest;
|
28
|
+
exports.respondWithObject = require_middleware.respondWithObject;
|
29
|
+
exports.respondWithObjectIfAcceptable = require_middleware.respondWithObjectIfAcceptable;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-63Cil1MD.cjs";
|
2
|
+
import "../docloader-D-MrRyHl.cjs";
|
3
|
+
import "../client-CegPX0Rn.cjs";
|
4
|
+
import "../vocab-DJTYMqyU.cjs";
|
5
|
+
import "../actor-DMgu-ZjT.cjs";
|
6
|
+
import "../http-BS6766zs.cjs";
|
7
|
+
import "../owner-B-7Ptt_m.cjs";
|
8
|
+
import "../mod-evzlRVZq.cjs";
|
9
|
+
import "../mod-jQ4OODsl.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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-Dq8aCtMH.cjs";
|
11
|
+
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-B7R1Q-M5.cjs";
|
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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
@@ -2,14 +2,14 @@ import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore } from "../kv-C7sopW2E.js";
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
5
|
-
import "../client-
|
5
|
+
import "../client-bgSdkFa2.js";
|
6
6
|
import "../vocab-SOE1ifCr.js";
|
7
7
|
import "../actor-C22bXuuC.js";
|
8
8
|
import "../http-DqSNLFNY.js";
|
9
9
|
import "../owner-CQPnQVtf.js";
|
10
10
|
import "../mod-Cxt4Kpf6.js";
|
11
11
|
import "../mod-DBzN0aCM.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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
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, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-CDSZdQHD.js";
|
13
13
|
import { InProcessMessageQueue, InProcessMessageQueueOptions, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, ParallelMessageQueue } from "../mq-CRGm1e_F.js";
|
14
14
|
import "../mod-g0xFzAP9.js";
|
15
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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
import "../transformers-
|
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-
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
import "../transformers-BFT6d7J5.js";
|
6
|
+
import "../docloader-BtqIh1OE.js";
|
7
|
+
import "../actor-DU511yTk.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DXidHY4N.js";
|
9
|
+
import "../lookup-NuT9cCSl.js";
|
10
|
+
import "../key-Cc0JlcKe.js";
|
11
|
+
import "../http-C7uYFcBo.js";
|
12
|
+
import "../proof-DkxwMaWE.js";
|
13
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-D1U8YY9t.js";
|
14
|
+
import "../types-l2uh_ZhP.js";
|
15
|
+
import "../authdocloader-DCgMyo82.js";
|
16
|
+
import "../vocab-lBFcVxVF.js";
|
17
17
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -3,17 +3,17 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B4NJkfVg.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-
|
12
|
-
import { assertGreater, assertGreaterOrEqual } from "../std__assert-
|
13
|
-
import { assertFalse } from "../assert_rejects-
|
14
|
-
import "../assert_is_error-
|
15
|
-
import "../assert_not_equals-
|
16
|
-
import "../assert_throws-
|
10
|
+
import "../lookup-CiU3QxQz.js";
|
11
|
+
import { test } from "../testing-ByQmUvf-.js";
|
12
|
+
import { assertGreater, assertGreaterOrEqual } from "../std__assert-DWivtrGR.js";
|
13
|
+
import { assertFalse } from "../assert_rejects-7UF4R_Qs.js";
|
14
|
+
import "../assert_is_error-B035L3om.js";
|
15
|
+
import "../assert_not_equals-C80BG-_5.js";
|
16
|
+
import "../assert_throws-53_pKeP3.js";
|
17
17
|
import { delay } from "es-toolkit";
|
18
18
|
|
19
19
|
//#region src/federation/mq.ts
|
@@ -227,7 +227,7 @@ test("InProcessMessageQueue", async (t) => {
|
|
227
227
|
});
|
228
228
|
test("MessageQueue.nativeRetrial", async (t) => {
|
229
229
|
if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") await t.step("DenoKvMessageQueue", async () => {
|
230
|
-
const { DenoKvMessageQueue } = await import("../denokv-
|
230
|
+
const { DenoKvMessageQueue } = await import("../denokv-jZ0Z2h0M.js");
|
231
231
|
const mq = new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
|
232
232
|
assert(mq.nativeRetrial);
|
233
233
|
if (Symbol.dispose in mq) {
|
@@ -266,7 +266,7 @@ test("MessageQueue.nativeRetrial", async (t) => {
|
|
266
266
|
});
|
267
267
|
const queues = { InProcessMessageQueue: () => Promise.resolve(new InProcessMessageQueue()) };
|
268
268
|
if ("Deno" in globalThis && "openKv" in globalThis.Deno && typeof globalThis.Deno.openKv === "function") {
|
269
|
-
const { DenoKvMessageQueue } = await import("../denokv-
|
269
|
+
const { DenoKvMessageQueue } = await import("../denokv-jZ0Z2h0M.js");
|
270
270
|
queues.DenoKvMessageQueue = async () => new DenoKvMessageQueue(await globalThis.Deno.openKv(":memory:"));
|
271
271
|
}
|
272
272
|
for (const mqName in queues) test({
|
@@ -3,12 +3,12 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B4NJkfVg.js";
|
7
7
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
|
-
import "../lookup-
|
9
|
-
import { createExponentialBackoffPolicy } from "../retry-
|
10
|
-
import { test } from "../testing-
|
11
|
-
import { assertNotEquals } from "../assert_not_equals-
|
8
|
+
import "../lookup-CiU3QxQz.js";
|
9
|
+
import { createExponentialBackoffPolicy } from "../retry-CfF8Gn4d.js";
|
10
|
+
import { test } from "../testing-ByQmUvf-.js";
|
11
|
+
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
12
12
|
|
13
13
|
//#region src/federation/retry.test.ts
|
14
14
|
test("createExponentialBackoffPolicy()", () => {
|
@@ -3,17 +3,17 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-B4NJkfVg.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-
|
12
|
-
import "../std__assert-
|
13
|
-
import { assertFalse } from "../assert_rejects-
|
14
|
-
import "../assert_is_error-
|
15
|
-
import "../assert_not_equals-
|
16
|
-
import { assertThrows } from "../assert_throws-
|
10
|
+
import { Router, RouterError } from "../lookup-CiU3QxQz.js";
|
11
|
+
import { test } from "../testing-ByQmUvf-.js";
|
12
|
+
import "../std__assert-DWivtrGR.js";
|
13
|
+
import { assertFalse } from "../assert_rejects-7UF4R_Qs.js";
|
14
|
+
import "../assert_is_error-B035L3om.js";
|
15
|
+
import "../assert_not_equals-C80BG-_5.js";
|
16
|
+
import { assertThrows } from "../assert_throws-53_pKeP3.js";
|
17
17
|
|
18
18
|
//#region src/federation/router.test.ts
|
19
19
|
function setUp(options = {}) {
|
@@ -3,24 +3,24 @@
|
|
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-B4NJkfVg.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-
|
17
|
-
import "../std__assert-
|
18
|
-
import { assertFalse, assertRejects } from "../assert_rejects-
|
19
|
-
import "../assert_is_error-
|
20
|
-
import { assertNotEquals } from "../assert_not_equals-
|
21
|
-
import "../assert_throws-
|
22
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
23
|
-
import { esm_default } from "../esm-
|
10
|
+
import "../lookup-CiU3QxQz.js";
|
11
|
+
import "../actor-DVpsNXhn.js";
|
12
|
+
import "../key-CfiBDu3o.js";
|
13
|
+
import { verifyRequest } from "../http-Cox5GsED.js";
|
14
|
+
import { doesActorOwnKey } from "../owner-Cxob5_PK.js";
|
15
|
+
import { extractInboxes, sendActivity } from "../send-DSEhWIYD.js";
|
16
|
+
import { mockDocumentLoader, test } from "../testing-ByQmUvf-.js";
|
17
|
+
import "../std__assert-DWivtrGR.js";
|
18
|
+
import { assertFalse, assertRejects } from "../assert_rejects-7UF4R_Qs.js";
|
19
|
+
import "../assert_is_error-B035L3om.js";
|
20
|
+
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
21
|
+
import "../assert_throws-53_pKeP3.js";
|
22
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CBKbYaJA.js";
|
23
|
+
import { esm_default } from "../esm-mtx3XJAD.js";
|
24
24
|
|
25
25
|
//#region src/federation/send.test.ts
|
26
26
|
test("extractInboxes()", () => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
5
|
import { isEqual } from "es-toolkit";
|
6
6
|
|
7
7
|
//#region src/federation/kv.ts
|