@fedify/fedify 1.6.1-pr.242.870 → 1.6.1-pr.246.875
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-BZ9B-RoF.js → actor-BvwvoCy1.js} +3 -3
- package/dist/{actor-BZSxF3np.js → actor-DkABCJ6r.js} +179 -179
- package/dist/{authdocloader-D0DivxEu.js → authdocloader-B1okbxks.js} +3 -3
- package/dist/{authdocloader-rWSY8oOW.js → authdocloader-Baw98GD1.js} +3 -3
- package/dist/{builder-BkIAn75B.js → builder-B7PIr29E.js} +3 -3
- package/dist/{client-BiqVblC1.js → client-DXKuoQ7D.js} +1 -1
- package/dist/compat/transformers.test.js +17 -17
- package/dist/{context-32iZISdA.js → context-DThK60lo.js} +2 -2
- package/dist/{docloader-BnNphEMr.js → docloader-BdShRAiH.js} +1 -1
- package/dist/{docloader-B8h_rZsO.js → docloader-CBMZVq2J.js} +1 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/handler.test.js +19 -19
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/middleware.test.js +18 -18
- package/dist/federation/mod.js +10 -10
- package/dist/federation/send.test.js +9 -9
- package/dist/{http-DNpod1Ge.js → http-BhPVlKNN.js} +3 -3
- package/dist/{http-zn1ZCiC4.js → http-DqGsw2nv.js} +3 -3
- package/dist/{inbox-CeJ_mvRP.js → inbox-BaF7EYQE.js} +2 -2
- package/dist/{key-ColohqTL.js → key-B_zZLNvq.js} +5 -5
- package/dist/{key-shd1YA1v.js → key-BpkiIkU3.js} +2 -2
- package/dist/{key-BNiziAax.js → key-Br0e9jTl.js} +3 -3
- package/dist/{key-C8Pn30oc.js → key-y0RE_eqE.js} +4 -4
- package/dist/{keycache-CsaCu72m.js → keycache-DGUKjXMd.js} +1 -1
- package/dist/{keys-Blj3q2iI.js → keys-DbtVmDfk.js} +1 -1
- package/dist/{ld-CgeTT2_c.js → ld-Dt1-z8M0.js} +3 -3
- package/dist/{lookup-eKf7p7Ac.js → lookup-B1dQygav.js} +1 -1
- package/dist/{lookup-BhC7f-4T.js → lookup-Bqga9yxv.js} +3 -3
- package/dist/{lookup-C1iODRax.js → lookup-CzniDGqG.js} +1 -1
- package/dist/{middleware-2mnj-GVU.js → middleware-48xNkDbx.js} +10 -10
- package/dist/middleware-BdvcKLrd.js +33 -0
- package/dist/{middleware-DorxmHEo.js → middleware-CtH9KUdY.js} +15 -15
- package/dist/middleware-wC-nGPe2.js +17 -0
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +2 -2
- package/dist/nodeinfo/handler.test.js +18 -18
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/{owner-BE4bLxh6.js → owner-C075Tw8S.js} +3 -3
- package/dist/{proof-CZ5J2Im2.js → proof-CrvjF731.js} +3 -3
- package/dist/{proof-DrMu1lZ-.js → proof-HSgu4dlr.js} +3 -3
- package/dist/runtime/authdocloader.test.js +8 -8
- package/dist/runtime/docloader.test.js +1 -1
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/mod.js +6 -6
- package/dist/{send-ChVugp_l.js → send-Dorf2G6L.js} +2 -2
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +8 -8
- package/dist/sig/proof.test.js +7 -7
- package/dist/{types-DiZi5k5s.js → types-CpCupgQa.js} +1 -1
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +4 -4
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +3 -3
- package/dist/{vocab-7-nYuxr4.js → vocab-BXGUvPzL.js} +3 -3
- package/dist/{vocab-kxUmjK1n.js → vocab-PsgM9wH1.js} +178 -178
- package/dist/webfinger/handler.test.js +18 -18
- package/dist/webfinger/lookup.test.js +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/package.json +1 -1
- package/dist/middleware-DWeRWtqS.js +0 -17
- package/dist/middleware-vEJM7OL8.js +0 -33
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-
|
6
|
-
import { validateCryptoKey } from "./key-
|
7
|
-
import { doubleKnock } from "./http-
|
5
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-BdShRAiH.js";
|
6
|
+
import { validateCryptoKey } from "./key-BpkiIkU3.js";
|
7
|
+
import { doubleKnock } from "./http-DqGsw2nv.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
10
10
|
//#region runtime/authdocloader.ts
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { createRequest, getRemoteDocument, logRequest } from "./docloader-
|
6
|
+
import { createRequest, getRemoteDocument, logRequest } from "./docloader-CBMZVq2J.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
|
-
import { validateCryptoKey } from "./key-
|
9
|
-
import { doubleKnock } from "./http-
|
8
|
+
import { validateCryptoKey } from "./key-Br0e9jTl.js";
|
9
|
+
import { doubleKnock } from "./http-BhPVlKNN.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
|
12
12
|
//#region runtime/authdocloader.ts
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
6
|
+
import { deno_default } from "./docloader-CBMZVq2J.js";
|
7
7
|
import { Router, RouterError } from "./router-D_aVZZUc.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { InboxListenerSet } from "./inbox-
|
9
|
+
import { InboxListenerSet } from "./inbox-BaF7EYQE.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
|
@@ -34,7 +34,7 @@ var FederationBuilderImpl = class {
|
|
34
34
|
this.objectTypeIds = {};
|
35
35
|
}
|
36
36
|
async build(options) {
|
37
|
-
const { FederationImpl } = await import("./middleware-
|
37
|
+
const { FederationImpl } = await import("./middleware-BdvcKLrd.js");
|
38
38
|
const f = new FederationImpl(options);
|
39
39
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
40
40
|
f.router = this.router.clone();
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getUserAgent } from "./docloader-
|
6
|
+
import { getUserAgent } from "./docloader-CBMZVq2J.js";
|
7
7
|
import { parseSemVer } from "./semver-CbbIgUsa.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
@@ -7,32 +7,32 @@ import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
|
7
7
|
import { assert } from "../assert-Dv75vaGI.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of--9UCVKsi.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-CtH9KUdY.js";
|
11
|
+
import "../docloader-CBMZVq2J.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import "../semver-CbbIgUsa.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-DXKuoQ7D.js";
|
15
15
|
import "../router-D_aVZZUc.js";
|
16
16
|
import "../types-CqoqWDkp.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Follow, Person } from "../vocab-
|
18
|
+
import { Follow, Person } from "../vocab-PsgM9wH1.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-B1dQygav.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-BvwvoCy1.js";
|
23
|
+
import "../key-Br0e9jTl.js";
|
24
|
+
import "../http-BhPVlKNN.js";
|
25
|
+
import "../authdocloader-Baw98GD1.js";
|
26
|
+
import "../ld-Dt1-z8M0.js";
|
27
|
+
import "../owner-C075Tw8S.js";
|
28
|
+
import "../proof-CrvjF731.js";
|
29
|
+
import "../lookup-Bqga9yxv.js";
|
30
|
+
import "../inbox-BaF7EYQE.js";
|
31
|
+
import "../builder-B7PIr29E.js";
|
32
32
|
import "../collection-QaGK9TVn.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-DGUKjXMd.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-Dorf2G6L.js";
|
36
36
|
import { test } from "../testing-jcGLO9Lp.js";
|
37
37
|
|
38
38
|
//#region compat/transformers.test.ts
|
@@ -4,8 +4,8 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { RouterError } from "./router-D_aVZZUc.js";
|
7
|
-
import { lookupWebFinger } from "./lookup-
|
8
|
-
import { lookupObject, traverseCollection } from "./lookup-
|
7
|
+
import { lookupWebFinger } from "./lookup-B1dQygav.js";
|
8
|
+
import { lookupObject, traverseCollection } from "./lookup-Bqga9yxv.js";
|
9
9
|
import { mockDocumentLoader } from "./docloader-09nVWLAZ.js";
|
10
10
|
import { trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -7,16 +7,16 @@ import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
|
7
7
|
import "../assert-Dv75vaGI.js";
|
8
8
|
import "../assert_instance_of--9UCVKsi.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import "../docloader-
|
10
|
+
import "../docloader-CBMZVq2J.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
12
|
import { parseSemVer } from "../semver-CbbIgUsa.js";
|
13
13
|
import "../router-D_aVZZUc.js";
|
14
14
|
import "../multibase-DeCHcK8L.js";
|
15
|
-
import { Activity, Note, Person } from "../vocab-
|
15
|
+
import { Activity, Note, Person } from "../vocab-PsgM9wH1.js";
|
16
16
|
import "../langstr-DbWheeIS.js";
|
17
17
|
import "../type-D2s5lmbZ.js";
|
18
|
-
import "../inbox-
|
19
|
-
import { createFederationBuilder } from "../builder-
|
18
|
+
import "../inbox-BaF7EYQE.js";
|
19
|
+
import { createFederationBuilder } from "../builder-B7PIr29E.js";
|
20
20
|
import { test } from "../testing-jcGLO9Lp.js";
|
21
21
|
import { assertExists } from "../std__assert-CaBUULmX.js";
|
22
22
|
import "../assert_rejects-FOHCtlD2.js";
|
@@ -7,32 +7,32 @@ import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
|
7
7
|
import { assert } from "../assert-Dv75vaGI.js";
|
8
8
|
import "../assert_instance_of--9UCVKsi.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
11
|
-
import "../docloader-
|
10
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CtH9KUdY.js";
|
11
|
+
import "../docloader-CBMZVq2J.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import "../semver-CbbIgUsa.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-DXKuoQ7D.js";
|
15
15
|
import "../router-D_aVZZUc.js";
|
16
16
|
import "../types-CqoqWDkp.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Create, Note, Person } from "../vocab-
|
18
|
+
import { Create, Note, Person } from "../vocab-PsgM9wH1.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-B1dQygav.js";
|
21
21
|
import "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import { signRequest } from "../http-
|
25
|
-
import "../authdocloader-
|
26
|
-
import "../ld-
|
27
|
-
import "../owner-
|
28
|
-
import "../proof-
|
29
|
-
import "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-BvwvoCy1.js";
|
23
|
+
import "../key-Br0e9jTl.js";
|
24
|
+
import { signRequest } from "../http-BhPVlKNN.js";
|
25
|
+
import "../authdocloader-Baw98GD1.js";
|
26
|
+
import "../ld-Dt1-z8M0.js";
|
27
|
+
import "../owner-C075Tw8S.js";
|
28
|
+
import "../proof-CrvjF731.js";
|
29
|
+
import "../lookup-Bqga9yxv.js";
|
30
|
+
import "../inbox-BaF7EYQE.js";
|
31
|
+
import "../builder-B7PIr29E.js";
|
32
32
|
import "../collection-QaGK9TVn.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-DGUKjXMd.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-Dorf2G6L.js";
|
36
36
|
import { test } from "../testing-jcGLO9Lp.js";
|
37
37
|
import "../std__assert-CaBUULmX.js";
|
38
38
|
import { assertFalse } from "../assert_rejects-FOHCtlD2.js";
|
@@ -40,8 +40,8 @@ import "../assert_is_error-D162gXcM.js";
|
|
40
40
|
import "../assert_not_equals-Cyf5m9Ke.js";
|
41
41
|
import "../assert_throws-CRfQJvVx.js";
|
42
42
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
43
|
-
import { createInboxContext, createRequestContext } from "../context-
|
44
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
43
|
+
import { createInboxContext, createRequestContext } from "../context-DThK60lo.js";
|
44
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DbtVmDfk.js";
|
45
45
|
|
46
46
|
//#region federation/handler.test.ts
|
47
47
|
test("acceptsJsonLd()", () => {
|
@@ -4,13 +4,13 @@
|
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
6
|
import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
7
|
-
import "../docloader-
|
7
|
+
import "../docloader-CBMZVq2J.js";
|
8
8
|
import "../url-kTAI6_KP.js";
|
9
9
|
import "../multibase-DeCHcK8L.js";
|
10
|
-
import { Activity, Create, Invite, Offer, Update } from "../vocab-
|
10
|
+
import { Activity, Create, Invite, Offer, Update } from "../vocab-PsgM9wH1.js";
|
11
11
|
import "../langstr-DbWheeIS.js";
|
12
12
|
import "../type-D2s5lmbZ.js";
|
13
|
-
import { InboxListenerSet } from "../inbox-
|
13
|
+
import { InboxListenerSet } from "../inbox-BaF7EYQE.js";
|
14
14
|
import { test } from "../testing-jcGLO9Lp.js";
|
15
15
|
import "../assert_is_error-D162gXcM.js";
|
16
16
|
import { assertThrows } from "../assert_throws-CRfQJvVx.js";
|
@@ -7,12 +7,12 @@ import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
|
7
7
|
import { assert } from "../assert-Dv75vaGI.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of--9UCVKsi.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import "../docloader-
|
10
|
+
import "../docloader-CBMZVq2J.js";
|
11
11
|
import "../url-kTAI6_KP.js";
|
12
12
|
import "../multibase-DeCHcK8L.js";
|
13
|
-
import { CryptographicKey, Multikey } from "../vocab-
|
13
|
+
import { CryptographicKey, Multikey } from "../vocab-PsgM9wH1.js";
|
14
14
|
import "../langstr-DbWheeIS.js";
|
15
|
-
import { KvKeyCache } from "../keycache-
|
15
|
+
import { KvKeyCache } from "../keycache-DGUKjXMd.js";
|
16
16
|
import { test } from "../testing-jcGLO9Lp.js";
|
17
17
|
|
18
18
|
//#region federation/keycache.test.ts
|
@@ -7,32 +7,32 @@ import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
|
7
7
|
import { assert } from "../assert-Dv75vaGI.js";
|
8
8
|
import { assertInstanceOf } from "../assert_instance_of--9UCVKsi.js";
|
9
9
|
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, createFederation } from "../middleware-
|
11
|
-
import { FetchError, fetchDocumentLoader } from "../docloader-
|
10
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, createFederation } from "../middleware-CtH9KUdY.js";
|
11
|
+
import { FetchError, fetchDocumentLoader } from "../docloader-CBMZVq2J.js";
|
12
12
|
import "../url-kTAI6_KP.js";
|
13
13
|
import "../semver-CbbIgUsa.js";
|
14
|
-
import "../client-
|
14
|
+
import "../client-DXKuoQ7D.js";
|
15
15
|
import { RouterError } from "../router-D_aVZZUc.js";
|
16
16
|
import "../types-CqoqWDkp.js";
|
17
17
|
import "../multibase-DeCHcK8L.js";
|
18
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-
|
18
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person } from "../vocab-PsgM9wH1.js";
|
19
19
|
import "../langstr-DbWheeIS.js";
|
20
|
-
import "../lookup-
|
20
|
+
import "../lookup-B1dQygav.js";
|
21
21
|
import { getTypeId } from "../type-D2s5lmbZ.js";
|
22
|
-
import "../actor-
|
23
|
-
import "../key-
|
24
|
-
import { signRequest, verifyRequest } from "../http-
|
25
|
-
import { getAuthenticatedDocumentLoader } from "../authdocloader-
|
26
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
27
|
-
import { doesActorOwnKey } from "../owner-
|
28
|
-
import { signObject, verifyObject } from "../proof-
|
29
|
-
import { lookupObject } from "../lookup-
|
30
|
-
import "../inbox-
|
31
|
-
import "../builder-
|
22
|
+
import "../actor-BvwvoCy1.js";
|
23
|
+
import "../key-Br0e9jTl.js";
|
24
|
+
import { signRequest, verifyRequest } from "../http-BhPVlKNN.js";
|
25
|
+
import { getAuthenticatedDocumentLoader } from "../authdocloader-Baw98GD1.js";
|
26
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-Dt1-z8M0.js";
|
27
|
+
import { doesActorOwnKey } from "../owner-C075Tw8S.js";
|
28
|
+
import { signObject, verifyObject } from "../proof-CrvjF731.js";
|
29
|
+
import { lookupObject } from "../lookup-Bqga9yxv.js";
|
30
|
+
import "../inbox-BaF7EYQE.js";
|
31
|
+
import "../builder-B7PIr29E.js";
|
32
32
|
import "../collection-QaGK9TVn.js";
|
33
|
-
import "../keycache-
|
33
|
+
import "../keycache-DGUKjXMd.js";
|
34
34
|
import "../retry-BiIhZWgD.js";
|
35
|
-
import "../send-
|
35
|
+
import "../send-Dorf2G6L.js";
|
36
36
|
import { test } from "../testing-jcGLO9Lp.js";
|
37
37
|
import { assertStrictEquals } from "../std__assert-CaBUULmX.js";
|
38
38
|
import { assertFalse, assertRejects } from "../assert_rejects-FOHCtlD2.js";
|
@@ -40,7 +40,7 @@ import "../assert_is_error-D162gXcM.js";
|
|
40
40
|
import { assertNotEquals } from "../assert_not_equals-Cyf5m9Ke.js";
|
41
41
|
import { assertThrows } from "../assert_throws-CRfQJvVx.js";
|
42
42
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
43
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
43
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DbtVmDfk.js";
|
44
44
|
import { esm_default } from "../esm-BxIKwi-M.js";
|
45
45
|
|
46
46
|
//#region testing/fixtures/example.com/person.json
|
package/dist/federation/mod.js
CHANGED
@@ -3,16 +3,16 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import "../transformers-jxj-4o2K.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-
|
6
|
+
import "../docloader-BdShRAiH.js";
|
7
|
+
import "../actor-DkABCJ6r.js";
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-48xNkDbx.js";
|
9
|
+
import "../lookup-CzniDGqG.js";
|
10
|
+
import "../key-BpkiIkU3.js";
|
11
|
+
import "../http-DqGsw2nv.js";
|
12
|
+
import "../proof-HSgu4dlr.js";
|
13
13
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-Bmj7soSg.js";
|
14
|
-
import "../types-
|
15
|
-
import "../authdocloader-
|
16
|
-
import "../vocab-
|
14
|
+
import "../types-CpCupgQa.js";
|
15
|
+
import "../authdocloader-B1okbxks.js";
|
16
|
+
import "../vocab-BXGUvPzL.js";
|
17
17
|
|
18
18
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -6,18 +6,18 @@
|
|
6
6
|
import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
7
7
|
import { assert } from "../assert-Dv75vaGI.js";
|
8
8
|
import "../assert_instance_of--9UCVKsi.js";
|
9
|
-
import "../docloader-
|
9
|
+
import "../docloader-CBMZVq2J.js";
|
10
10
|
import "../url-kTAI6_KP.js";
|
11
11
|
import "../multibase-DeCHcK8L.js";
|
12
|
-
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-
|
12
|
+
import { Activity, Application, Endpoints, Group, Person, Service } from "../vocab-PsgM9wH1.js";
|
13
13
|
import "../langstr-DbWheeIS.js";
|
14
|
-
import "../lookup-
|
14
|
+
import "../lookup-B1dQygav.js";
|
15
15
|
import "../type-D2s5lmbZ.js";
|
16
|
-
import "../actor-
|
17
|
-
import "../key-
|
18
|
-
import { verifyRequest } from "../http-
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
20
|
-
import { extractInboxes, sendActivity } from "../send-
|
16
|
+
import "../actor-BvwvoCy1.js";
|
17
|
+
import "../key-Br0e9jTl.js";
|
18
|
+
import { verifyRequest } from "../http-BhPVlKNN.js";
|
19
|
+
import { doesActorOwnKey } from "../owner-C075Tw8S.js";
|
20
|
+
import { extractInboxes, sendActivity } from "../send-Dorf2G6L.js";
|
21
21
|
import { test } from "../testing-jcGLO9Lp.js";
|
22
22
|
import "../std__assert-CaBUULmX.js";
|
23
23
|
import { assertFalse, assertRejects } from "../assert_rejects-FOHCtlD2.js";
|
@@ -25,7 +25,7 @@ import "../assert_is_error-D162gXcM.js";
|
|
25
25
|
import { assertNotEquals } from "../assert_not_equals-Cyf5m9Ke.js";
|
26
26
|
import "../assert_throws-CRfQJvVx.js";
|
27
27
|
import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
|
28
|
-
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-
|
28
|
+
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DbtVmDfk.js";
|
29
29
|
import { esm_default } from "../esm-BxIKwi-M.js";
|
30
30
|
|
31
31
|
//#region federation/send.test.ts
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { CryptographicKey } from "./vocab-
|
8
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
6
|
+
import { deno_default } from "./docloader-CBMZVq2J.js";
|
7
|
+
import { CryptographicKey } from "./vocab-PsgM9wH1.js";
|
8
|
+
import { fetchKey, validateCryptoKey } from "./key-Br0e9jTl.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { deno_default } from "./docloader-
|
6
|
-
import { CryptographicKey } from "./actor-
|
7
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
5
|
+
import { deno_default } from "./docloader-BdShRAiH.js";
|
6
|
+
import { CryptographicKey } from "./actor-DkABCJ6r.js";
|
7
|
+
import { fetchKey, validateCryptoKey } from "./key-BpkiIkU3.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,8 +3,8 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default } from "./docloader-
|
7
|
-
import { Activity } from "./vocab-
|
6
|
+
import { deno_default } from "./docloader-CBMZVq2J.js";
|
7
|
+
import { Activity } from "./vocab-PsgM9wH1.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
@@ -3,14 +3,14 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "./docloader-
|
6
|
+
import "./docloader-CBMZVq2J.js";
|
7
7
|
import "./url-kTAI6_KP.js";
|
8
8
|
import "./multibase-DeCHcK8L.js";
|
9
|
-
import "./vocab-
|
9
|
+
import "./vocab-PsgM9wH1.js";
|
10
10
|
import "./langstr-DbWheeIS.js";
|
11
|
-
import "./lookup-
|
11
|
+
import "./lookup-B1dQygav.js";
|
12
12
|
import "./type-D2s5lmbZ.js";
|
13
|
-
import "./actor-
|
14
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
13
|
+
import "./actor-BvwvoCy1.js";
|
14
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Br0e9jTl.js";
|
15
15
|
|
16
16
|
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-BdShRAiH.js";
|
6
|
+
import { CryptographicKey, Object as Object$1, isActor } from "./actor-DkABCJ6r.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
9
9
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { CryptographicKey, Object as Object$1 } from "./vocab-
|
8
|
-
import { isActor } from "./actor-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-CBMZVq2J.js";
|
7
|
+
import { CryptographicKey, Object as Object$1 } from "./vocab-PsgM9wH1.js";
|
8
|
+
import { isActor } from "./actor-BvwvoCy1.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import "./docloader-
|
6
|
-
import "./actor-
|
7
|
-
import "./lookup-
|
8
|
-
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-
|
5
|
+
import "./docloader-BdShRAiH.js";
|
6
|
+
import "./actor-DkABCJ6r.js";
|
7
|
+
import "./lookup-CzniDGqG.js";
|
8
|
+
import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BpkiIkU3.js";
|
9
9
|
|
10
10
|
export { validateCryptoKey };
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey } from "./vocab-PsgM9wH1.js";
|
7
7
|
|
8
8
|
//#region federation/keycache.ts
|
9
9
|
var KvKeyCache = class {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { CryptographicKey, Multikey, importSpki } from "./vocab-
|
6
|
+
import { CryptographicKey, Multikey, importSpki } from "./vocab-PsgM9wH1.js";
|
7
7
|
|
8
8
|
//#region testing/keys.ts
|
9
9
|
const rsaPublicKey1 = new CryptographicKey({
|
@@ -3,10 +3,10 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-CBMZVq2J.js";
|
7
|
+
import { Activity, CryptographicKey, Object as Object$1 } from "./vocab-PsgM9wH1.js";
|
8
8
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
9
|
-
import { fetchKey, validateCryptoKey } from "./key-
|
9
|
+
import { fetchKey, validateCryptoKey } from "./key-Br0e9jTl.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
12
12
|
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 { deno_default, getUserAgent } from "./docloader-
|
6
|
+
import { deno_default, getUserAgent } from "./docloader-CBMZVq2J.js";
|
7
7
|
import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getDocumentLoader } from "./docloader-
|
7
|
-
import { Object as Object$1 } from "./vocab-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
6
|
+
import { deno_default, getDocumentLoader } from "./docloader-CBMZVq2J.js";
|
7
|
+
import { Object as Object$1 } from "./vocab-PsgM9wH1.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-B1dQygav.js";
|
9
9
|
import { getTypeId } from "./type-D2s5lmbZ.js";
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
11
11
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
@@ -2,7 +2,7 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-
|
5
|
+
import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-BdShRAiH.js";
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
7
7
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
8
8
|
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
5
|
import { getDefaultActivityTransformers$1 as getDefaultActivityTransformers } from "./transformers-jxj-4o2K.js";
|
6
|
-
import { deno_default, getDocumentLoader, kvCache } from "./docloader-
|
7
|
-
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId$1 as getTypeId } from "./actor-
|
8
|
-
import { lookupWebFinger } from "./lookup-
|
9
|
-
import { exportJwk, importJwk, validateCryptoKey } from "./key-
|
10
|
-
import { doubleKnock, verifyRequest } from "./http-
|
11
|
-
import { detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject } from "./proof-
|
12
|
-
import { getNodeInfo, nodeInfoToJson } from "./types-
|
13
|
-
import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-
|
14
|
-
import { lookupObject, traverseCollection } from "./vocab-
|
6
|
+
import { deno_default, getDocumentLoader, kvCache } from "./docloader-BdShRAiH.js";
|
7
|
+
import { Activity, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId$1 as getTypeId } from "./actor-DkABCJ6r.js";
|
8
|
+
import { lookupWebFinger } from "./lookup-CzniDGqG.js";
|
9
|
+
import { exportJwk, importJwk, validateCryptoKey } from "./key-BpkiIkU3.js";
|
10
|
+
import { doubleKnock, verifyRequest } from "./http-DqGsw2nv.js";
|
11
|
+
import { detachSignature$1 as detachSignature, doesActorOwnKey, getKeyOwner, hasSignature, signJsonLd$1 as signJsonLd, signObject$1 as signObject, verifyJsonLd$1 as verifyJsonLd, verifyObject$1 as verifyObject } from "./proof-HSgu4dlr.js";
|
12
|
+
import { getNodeInfo, nodeInfoToJson } from "./types-CpCupgQa.js";
|
13
|
+
import { getAuthenticatedDocumentLoader$1 as getAuthenticatedDocumentLoader } from "./authdocloader-B1okbxks.js";
|
14
|
+
import { lookupObject, traverseCollection } from "./vocab-BXGUvPzL.js";
|
15
15
|
import { getLogger, withContext } from "@logtape/logtape";
|
16
16
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
17
17
|
import { encodeHex } from "byte-encodings/hex";
|
@@ -312,7 +312,7 @@ var FederationBuilderImpl = class {
|
|
312
312
|
this.objectTypeIds = {};
|
313
313
|
}
|
314
314
|
async build(options) {
|
315
|
-
const { FederationImpl: FederationImpl$1 } = await import("./middleware-
|
315
|
+
const { FederationImpl: FederationImpl$1 } = await import("./middleware-wC-nGPe2.js");
|
316
316
|
const f = new FederationImpl$1(options);
|
317
317
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
318
318
|
f.router = this.router.clone();
|