@fedify/fedify 2.5.0-dev.2420 → 2.5.0-dev.2432
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/{builder-Cwc3Eu59.mjs → builder-nME5sBeL.mjs} +2 -2
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-Dtwrhs1I.mjs → compound-proof-C-tPcb-r.mjs} +2 -2
- package/dist/{deno-D4J5fszd.mjs → deno-Cqkt-KD5.mjs} +1 -1
- package/dist/{docloader-ChK1DQkj.mjs → docloader-CGBUQXUP.mjs} +5 -3
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +3 -3
- package/dist/federation/handler-compound-proof.test.mjs +3 -3
- package/dist/federation/handler.test.mjs +4 -4
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-report.test.mjs +5 -5
- package/dist/federation/inbox.test.mjs +1 -1
- package/dist/federation/keycache.test.mjs +20 -9
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +90 -9
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.js +1 -1
- package/dist/federation/outgoing-proof.test.mjs +4 -4
- package/dist/federation/portable-actor.test.mjs +3 -3
- package/dist/federation/portable-chain.test.mjs +3 -3
- package/dist/federation/portable-collection.test.mjs +4 -4
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +5 -5
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +3 -3
- package/dist/federation/tasks/enqueue.test.mjs +1 -1
- package/dist/federation/tasks/tasks.test.mjs +2 -2
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +1 -1
- package/dist/{federation-DxQI9dSY.cjs → federation-CM-zrOdz.cjs} +12 -5
- package/dist/{http-SBTDzPkh.cjs → http-C88K-3A8.cjs} +17 -3
- package/dist/{http-C8rIQ1pK.js → http-KKViNOVp.js} +17 -3
- package/dist/{http--kHQomKT.mjs → http-VRVl77qN.mjs} +4 -4
- package/dist/{inbox-BGD7K-Ra.mjs → inbox-Blrwn114.mjs} +2 -2
- package/dist/{keycache-D-MNltOk.mjs → keycache-N2opu4-3.mjs} +1 -1
- package/dist/{kv-cache-DSUypZWS.js → kv-cache-DBnYVLSn.js} +4 -2
- package/dist/{kv-cache-B8LMKVe8.mjs → kv-cache-Dt0qeX6M.mjs} +1 -1
- package/dist/{kv-cache-Dp_dDR1f.cjs → kv-cache-trql9zWb.cjs} +4 -2
- package/dist/{ld-BeBdBDAY.mjs → ld-C13upTHv.mjs} +18 -4
- package/dist/{metrics-Dtb81JxK.mjs → metrics-Ci3oTjhF.mjs} +1 -1
- package/dist/{middleware-DNjv5rBL.js → middleware-Ckc0daKd.js} +12 -5
- package/dist/{middleware-DhI-75xh.mjs → middleware-CzicgguP.mjs} +1 -1
- package/dist/{middleware-rQqAHzIo.mjs → middleware-Defzf-30.mjs} +23 -16
- package/dist/mod.cjs +4 -4
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-u_-HQrgE.mjs → owner-BBB-PayE.mjs} +3 -3
- package/dist/{portable-collection-B-x4XwxP.cjs → portable-collection-Byajf90m.cjs} +1 -1
- package/dist/{portable-collection-BKkTJQTd.mjs → portable-collection-DKs8iX1J.mjs} +2 -2
- package/dist/{portable-collection-DReoGwZQ.js → portable-collection-sJBoBful.js} +1 -1
- package/dist/{portable-key-Bkm6sXJB.mjs → portable-key-zbE5iDhv.mjs} +1 -1
- package/dist/{proof-DOV4ZiAo.mjs → proof-DdI4I2Jg.mjs} +3 -3
- package/dist/{send-C_Fffu0I.mjs → send-DDSpf_ym.mjs} +3 -3
- package/dist/sig/compound-proof-discovery.test.mjs +1 -1
- package/dist/sig/compound-proof-producer.test.mjs +1 -1
- package/dist/sig/compound-proof-verification.test.mjs +2 -2
- package/dist/sig/compound-proof.test.mjs +2 -2
- package/dist/sig/http.test.mjs +3 -3
- package/dist/sig/key.test.mjs +196 -1
- package/dist/sig/ld.test.mjs +46 -1
- package/dist/sig/mitra-receive-interop.test.mjs +4 -4
- package/dist/sig/mitra-send-interop.test.mjs +3 -3
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +46 -1
- package/dist/sig/portable-collection.test.mjs +1 -1
- package/dist/sig/portable-interop.test.mjs +3 -3
- package/dist/sig/portable-key.test.mjs +6 -6
- package/dist/sig/proof.test.mjs +54 -3
- package/dist/sig/tootik-request-interop.test.mjs +4 -4
- package/dist/sig/tootik-send-interop.test.mjs +3 -3
- package/dist/sig/verification.test.mjs +3 -3
- package/dist/{temporal-BRgOZRRr.mjs → temporal-CGJWetE6.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/utils/docloader.test.mjs +66 -2
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { i as getPortableDid, l as isPortableId, n as getCanonicalPortableId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
|
-
import { n as version, t as name } from "./deno-
|
|
5
|
+
import { n as version, t as name } from "./deno-Cqkt-KD5.mjs";
|
|
6
6
|
import { t as ActivityListenerSet } from "./activity-listener-C-BSbKI7.mjs";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { Router, RouterError, assertPath } from "@fedify/uri-template";
|
|
@@ -91,7 +91,7 @@ var FederationBuilderImpl = class {
|
|
|
91
91
|
* specified.
|
|
92
92
|
*/
|
|
93
93
|
async build(options) {
|
|
94
|
-
const { FederationImpl } = await import("./middleware-
|
|
94
|
+
const { FederationImpl } = await import("./middleware-CzicgguP.mjs");
|
|
95
95
|
const f = new FederationImpl(options);
|
|
96
96
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
97
97
|
f.router = this.router.clone();
|
|
@@ -5,7 +5,7 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
6
6
|
import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
|
|
7
7
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
8
|
-
import { O as actorDehydrator, k as autoIdAssigner, n as FederationImpl } from "../middleware-
|
|
8
|
+
import { O as actorDehydrator, k as autoIdAssigner, n as FederationImpl } from "../middleware-Defzf-30.mjs";
|
|
9
9
|
import { Follow, Person } from "@fedify/vocab";
|
|
10
10
|
import { test } from "@fedify/fixture";
|
|
11
11
|
//#region src/compat/transformers.test.ts
|
|
@@ -3,9 +3,9 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { a as getRawCanonicalPortableId, l as isPortableId, n as getCanonicalPortableId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { a as verificationObservation, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
6
|
-
import { c as getNormalizationContextLoader } from "./ld-
|
|
6
|
+
import { c as getNormalizationContextLoader } from "./ld-C13upTHv.mjs";
|
|
7
7
|
import { n as preloadedOnlyDocumentLoader } from "./public-audience--klBIOk1.mjs";
|
|
8
|
-
import { a as preparePortableObjectProofPolicy, f as verifyPreparedPortableObjectProofPolicy, n as classifyFep2277CoreType, s as verifyMapLocalProof, u as verifyPortableObjectProofPolicy } from "./proof-
|
|
8
|
+
import { a as preparePortableObjectProofPolicy, f as verifyPreparedPortableObjectProofPolicy, n as classifyFep2277CoreType, s as verifyMapLocalProof, u as verifyPortableObjectProofPolicy } from "./proof-DdI4I2Jg.mjs";
|
|
9
9
|
import { parseIri, preloadedContexts } from "@fedify/vocab-runtime";
|
|
10
10
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
11
11
|
//#region src/sig/compound-proof.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { T as validateCryptoKey } from "./ld-
|
|
5
|
-
import { n as doubleKnock } from "./http
|
|
4
|
+
import { T as validateCryptoKey } from "./ld-C13upTHv.mjs";
|
|
5
|
+
import { n as doubleKnock } from "./http-VRVl77qN.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest, resolveDocumentLoaderTimeout, validatePublicUrl, withDocumentLoaderTimeout } from "@fedify/vocab-runtime";
|
|
8
8
|
import { curry } from "es-toolkit";
|
|
@@ -64,8 +64,10 @@ function getAuthenticatedDocumentLoader(identity, { allowPrivateAddress, maxRedi
|
|
|
64
64
|
}, options);
|
|
65
65
|
}
|
|
66
66
|
async function validateUrl(url, options) {
|
|
67
|
-
const
|
|
67
|
+
const parsedUrl = new URL(url);
|
|
68
|
+
const protocol = parsedUrl.protocol;
|
|
68
69
|
if (protocol !== "http:" && protocol !== "https:") throw new UrlError(`Unsupported protocol: ${protocol}`);
|
|
70
|
+
if (parsedUrl.username !== "" || parsedUrl.password !== "") throw new UrlError("URLs with credentials are not allowed");
|
|
69
71
|
if (!allowPrivateAddress) {
|
|
70
72
|
try {
|
|
71
73
|
await validatePublicUrl(url);
|
|
@@ -7,7 +7,7 @@ import { t as assertExists } from "../assert_exists-cffSpJ7X.mjs";
|
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
10
|
-
import { r as createFederationBuilder } from "../builder-
|
|
10
|
+
import { r as createFederationBuilder } from "../builder-nME5sBeL.mjs";
|
|
11
11
|
import { DisallowedOperatorError, DisallowedVarSpecModifierError, DuplicateRouteVariableError, RouteTemplateOptionsNotMatchedError, RouterError } from "@fedify/uri-template";
|
|
12
12
|
import { Activity, Note, Person } from "@fedify/vocab";
|
|
13
13
|
import { test } from "@fedify/fixture";
|
|
@@ -6,11 +6,11 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
|
-
import { y as exportJwk } from "../ld-
|
|
9
|
+
import { y as exportJwk } from "../ld-C13upTHv.mjs";
|
|
10
10
|
import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
|
|
11
|
-
import { o as signObject, p as verifyProof } from "../proof-
|
|
11
|
+
import { o as signObject, p as verifyProof } from "../proof-DdI4I2Jg.mjs";
|
|
12
12
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
13
|
-
import { n as FederationImpl } from "../middleware-
|
|
13
|
+
import { n as FederationImpl } from "../middleware-Defzf-30.mjs";
|
|
14
14
|
import { Create, DataIntegrityProof, Note } from "@fedify/vocab";
|
|
15
15
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
16
16
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -5,10 +5,10 @@ import { r as createRequestContext, t as createInboxContext } from "../context-8
|
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
|
-
import { a as compactJsonLd, m as verifyCompactJsonLd, p as signJsonLd } from "../ld-
|
|
9
|
-
import { l as signRequest } from "../http
|
|
8
|
+
import { a as compactJsonLd, m as verifyCompactJsonLd, p as signJsonLd } from "../ld-C13upTHv.mjs";
|
|
9
|
+
import { l as signRequest } from "../http-VRVl77qN.mjs";
|
|
10
10
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
11
|
-
import { f as handleInbox, o as createFederation } from "../middleware-
|
|
11
|
+
import { f as handleInbox, o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
12
12
|
import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
|
|
13
13
|
import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
|
|
14
14
|
import { Create, CryptographicKey, Multikey, Person, Update } from "@fedify/vocab";
|
|
@@ -11,11 +11,11 @@ import "../std__assert-DvMDRPes.mjs";
|
|
|
11
11
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
12
12
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
13
13
|
import { r as parseAcceptSignature } from "../accept-CPVqki78.mjs";
|
|
14
|
-
import { C as generateCryptoKeyPair, a as compactJsonLd, p as signJsonLd } from "../ld-
|
|
15
|
-
import { o as signObject } from "../proof-
|
|
16
|
-
import { l as signRequest } from "../http
|
|
14
|
+
import { C as generateCryptoKeyPair, a as compactJsonLd, p as signJsonLd } from "../ld-C13upTHv.mjs";
|
|
15
|
+
import { o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
16
|
+
import { l as signRequest } from "../http-VRVl77qN.mjs";
|
|
17
17
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
18
|
-
import { d as handleCustomCollection, f as handleInbox, g as respondWithObjectIfAcceptable, h as respondWithObject, l as handleActor, m as handleOutbox, o as createFederation, p as handleObject, u as handleCollection } from "../middleware-
|
|
18
|
+
import { d as handleCustomCollection, f as handleInbox, g as respondWithObjectIfAcceptable, h as respondWithObject, l as handleActor, m as handleOutbox, o as createFederation, p as handleObject, u as handleCollection } from "../middleware-Defzf-30.mjs";
|
|
19
19
|
import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
|
|
20
20
|
import { t as FedifySpanExporter } from "../exporter-DThFfe7P.mjs";
|
|
21
21
|
import { configure, getLogger, reset, withContext } from "@logtape/logtape";
|
|
@@ -10,8 +10,8 @@ import "../std__assert-DvMDRPes.mjs";
|
|
|
10
10
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
11
11
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
12
12
|
import { r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
13
|
-
import { o as createFederation, x as parseHashlinkGatewayRequest } from "../middleware-
|
|
14
|
-
import { r as createFederationBuilder } from "../builder-
|
|
13
|
+
import { o as createFederation, x as parseHashlinkGatewayRequest } from "../middleware-Defzf-30.mjs";
|
|
14
|
+
import { r as createFederationBuilder } from "../builder-nME5sBeL.mjs";
|
|
15
15
|
import { n as RouterError } from "../router-u5O5KCQr.mjs";
|
|
16
16
|
import { Note } from "@fedify/vocab";
|
|
17
17
|
import { computeDigestMultibase, encodeMultibase, exportDidKey } from "@fedify/vocab-runtime";
|
|
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
6
6
|
import "../std__assert-DvMDRPes.mjs";
|
|
7
|
-
import { o as signObject } from "../proof-
|
|
7
|
+
import { o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
8
8
|
import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
9
|
-
import { o as createFederation } from "../middleware-
|
|
9
|
+
import { o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
10
10
|
import { Create, Follow, Person } from "@fedify/vocab";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
//#region src/federation/idempotency.test.ts
|
|
@@ -2,12 +2,12 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
5
|
-
import { p as signJsonLd } from "../ld-
|
|
6
|
-
import { o as signObject } from "../proof-
|
|
7
|
-
import { l as signRequest } from "../http
|
|
5
|
+
import { p as signJsonLd } from "../ld-C13upTHv.mjs";
|
|
6
|
+
import { o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
7
|
+
import { l as signRequest } from "../http-VRVl77qN.mjs";
|
|
8
8
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
9
|
-
import { o as createFederation } from "../middleware-
|
|
10
|
-
import { r as createFederationBuilder } from "../builder-
|
|
9
|
+
import { o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
10
|
+
import { r as createFederationBuilder } from "../builder-nME5sBeL.mjs";
|
|
11
11
|
import { Create, Person } from "@fedify/vocab";
|
|
12
12
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
13
13
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
5
5
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
6
6
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
7
7
|
import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
|
|
8
|
-
import { t as actorsHaveSameOrigin } from "../inbox-
|
|
8
|
+
import { t as actorsHaveSameOrigin } from "../inbox-Blrwn114.mjs";
|
|
9
9
|
import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
|
|
10
10
|
import { parseIri } from "@fedify/vocab-runtime";
|
|
11
11
|
import { test } from "@fedify/fixture";
|
|
@@ -6,7 +6,7 @@ import { t as ManualClockKvStore } from "../kv-DBRWVx3Q.mjs";
|
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
|
-
import { t as KvKeyCache } from "../keycache-
|
|
9
|
+
import { t as KvKeyCache } from "../keycache-N2opu4-3.mjs";
|
|
10
10
|
import { CryptographicKey, Multikey } from "@fedify/vocab";
|
|
11
11
|
import { test } from "@fedify/fixture";
|
|
12
12
|
//#region src/federation/keycache.test.ts
|
|
@@ -16,7 +16,7 @@ test("KvKeyCache.set()", async () => {
|
|
|
16
16
|
await cache.set(new URL("https://example.com/key"), new CryptographicKey({ id: new URL("https://example.com/key") }));
|
|
17
17
|
assertEquals(await kv.get([
|
|
18
18
|
"pk",
|
|
19
|
-
"
|
|
19
|
+
"3",
|
|
20
20
|
"https://example.com/key"
|
|
21
21
|
]), {
|
|
22
22
|
"@context": "https://w3id.org/security/v1",
|
|
@@ -26,7 +26,7 @@ test("KvKeyCache.set()", async () => {
|
|
|
26
26
|
await cache.set(new URL("https://example.com/key2"), new Multikey({ id: new URL("https://example.com/key2") }));
|
|
27
27
|
assertEquals(await kv.get([
|
|
28
28
|
"pk",
|
|
29
|
-
"
|
|
29
|
+
"3",
|
|
30
30
|
"https://example.com/key2"
|
|
31
31
|
]), {
|
|
32
32
|
"@context": "https://w3id.org/security/multikey/v1",
|
|
@@ -37,7 +37,7 @@ test("KvKeyCache.set()", async () => {
|
|
|
37
37
|
assert(cache.nullKeys.has("https://example.com/null"));
|
|
38
38
|
assertEquals(await kv.get([
|
|
39
39
|
"pk",
|
|
40
|
-
"
|
|
40
|
+
"3",
|
|
41
41
|
"https://example.com/null"
|
|
42
42
|
]), null);
|
|
43
43
|
});
|
|
@@ -46,7 +46,7 @@ test("KvKeyCache.get()", async () => {
|
|
|
46
46
|
const cache = new KvKeyCache(kv, ["pk"]);
|
|
47
47
|
await kv.set([
|
|
48
48
|
"pk",
|
|
49
|
-
"
|
|
49
|
+
"3",
|
|
50
50
|
"https://example.com/key"
|
|
51
51
|
], {
|
|
52
52
|
"@context": "https://w3id.org/security/v1",
|
|
@@ -58,7 +58,7 @@ test("KvKeyCache.get()", async () => {
|
|
|
58
58
|
assertEquals(cryptoKey?.id?.href, "https://example.com/key");
|
|
59
59
|
await kv.set([
|
|
60
60
|
"pk",
|
|
61
|
-
"
|
|
61
|
+
"3",
|
|
62
62
|
"https://example.com/key2"
|
|
63
63
|
], {
|
|
64
64
|
"@context": "https://w3id.org/security/multikey/v1",
|
|
@@ -72,7 +72,7 @@ test("KvKeyCache.get()", async () => {
|
|
|
72
72
|
assertEquals(await cache.get(new URL("https://example.com/null")), null);
|
|
73
73
|
await kv.set([
|
|
74
74
|
"pk",
|
|
75
|
-
"
|
|
75
|
+
"3",
|
|
76
76
|
"https://example.com/null2"
|
|
77
77
|
], null);
|
|
78
78
|
assertEquals(await new KvKeyCache(kv, ["pk"]).get(new URL("https://example.com/null2")), null);
|
|
@@ -162,14 +162,14 @@ test("KvKeyCache cached keys expire after keyTtl", async () => {
|
|
|
162
162
|
await cache.set(keyId, new CryptographicKey({ id: keyId }));
|
|
163
163
|
assert(await kv.get([
|
|
164
164
|
"pk",
|
|
165
|
-
"
|
|
165
|
+
"3",
|
|
166
166
|
keyId.href
|
|
167
167
|
]) != null);
|
|
168
168
|
assertInstanceOf(await cache.get(keyId), CryptographicKey);
|
|
169
169
|
kv.advance({ days: 31 });
|
|
170
170
|
assertEquals(await kv.get([
|
|
171
171
|
"pk",
|
|
172
|
-
"
|
|
172
|
+
"3",
|
|
173
173
|
keyId.href
|
|
174
174
|
]), void 0);
|
|
175
175
|
assertEquals(await cache.get(keyId), void 0);
|
|
@@ -189,6 +189,17 @@ test("KvKeyCache.get() ignores entries from an earlier generation", async () =>
|
|
|
189
189
|
type: "CryptographicKey"
|
|
190
190
|
});
|
|
191
191
|
assertEquals(await cache.get(new URL("https://example.com/key")), void 0);
|
|
192
|
+
await kv.set([
|
|
193
|
+
"pk",
|
|
194
|
+
"2",
|
|
195
|
+
"https://example.com/key2"
|
|
196
|
+
], {
|
|
197
|
+
"@context": "https://w3id.org/security/v1",
|
|
198
|
+
id: "https://example.com/key2",
|
|
199
|
+
owner: "https://example.com/impersonated",
|
|
200
|
+
type: "CryptographicKey"
|
|
201
|
+
});
|
|
202
|
+
assertEquals(await cache.get(new URL("https://example.com/key2")), void 0);
|
|
192
203
|
});
|
|
193
204
|
test("KvKeyCache.compatibleKeyScope() keeps each purpose apart", async () => {
|
|
194
205
|
const cache = new KvKeyCache(new MemoryKvStore(), ["pk"]);
|
|
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
6
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
7
|
-
import { _ as recordKeyLookup, a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-
|
|
7
|
+
import { _ as recordKeyLookup, a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-Ci3oTjhF.mjs";
|
|
8
8
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
9
9
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|
|
10
10
|
import { DataPointType, MeterProvider, MetricReader } from "@opentelemetry/sdk-metrics";
|
|
@@ -16,21 +16,21 @@ import "../std__assert-DvMDRPes.mjs";
|
|
|
16
16
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
17
17
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
18
18
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
19
|
-
import { g as recordInboxActivity } from "../metrics-
|
|
20
|
-
import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-
|
|
21
|
-
import { c as verifyObject, o as signObject } from "../proof-
|
|
22
|
-
import { f as verifyRequest, l as signRequest } from "../http
|
|
19
|
+
import { g as recordInboxActivity } from "../metrics-Ci3oTjhF.mjs";
|
|
20
|
+
import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-C13upTHv.mjs";
|
|
21
|
+
import { c as verifyObject, o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
22
|
+
import { f as verifyRequest, l as signRequest } from "../http-VRVl77qN.mjs";
|
|
23
23
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
24
|
-
import { t as getAuthenticatedDocumentLoader } from "../docloader-
|
|
25
|
-
import { T as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-
|
|
26
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
24
|
+
import { t as getAuthenticatedDocumentLoader } from "../docloader-CGBUQXUP.mjs";
|
|
25
|
+
import { T as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-Defzf-30.mjs";
|
|
26
|
+
import { t as doesActorOwnKey } from "../owner-BBB-PayE.mjs";
|
|
27
27
|
import { t as CircuitBreaker } from "../circuit-breaker-XJ53md4S.mjs";
|
|
28
28
|
import { t as TaskCodec } from "../codec-C6rTrpIp.mjs";
|
|
29
29
|
import { t as markCircuitBreakerLegacySweepDone } from "../circuit-breaker-test-utils-DW6YC_Pe.mjs";
|
|
30
30
|
import { configure, reset, withContext } from "@logtape/logtape";
|
|
31
31
|
import { RouterError } from "@fedify/uri-template";
|
|
32
32
|
import * as vocab from "@fedify/vocab";
|
|
33
|
-
import { Create, Note, Offer, Person, getTypeId, lookupObject } from "@fedify/vocab";
|
|
33
|
+
import { Create, CryptographicKey, Note, Offer, Person, getTypeId, lookupObject } from "@fedify/vocab";
|
|
34
34
|
import { SpanStatusCode, metrics } from "@opentelemetry/api";
|
|
35
35
|
import { FetchError, UrlError, getDocumentLoader } from "@fedify/vocab-runtime";
|
|
36
36
|
import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -1174,6 +1174,87 @@ test({
|
|
|
1174
1174
|
assertStrictEquals(clone.contextLoader, ctx.contextLoader);
|
|
1175
1175
|
assertStrictEquals(clone.federation, ctx.federation);
|
|
1176
1176
|
});
|
|
1177
|
+
await t.step("getSignedKey() uses the key cache", async () => {
|
|
1178
|
+
const kv = new MemoryKvStore();
|
|
1179
|
+
const keyId = rsaPublicKey2.id;
|
|
1180
|
+
let keyFetches = 0;
|
|
1181
|
+
const documentLoader = async (url) => {
|
|
1182
|
+
if (url === keyId.href) keyFetches++;
|
|
1183
|
+
return await mockDocumentLoader(url);
|
|
1184
|
+
};
|
|
1185
|
+
const federation = createFederation({
|
|
1186
|
+
kv,
|
|
1187
|
+
documentLoaderFactory: () => documentLoader,
|
|
1188
|
+
contextLoaderFactory: () => mockDocumentLoader,
|
|
1189
|
+
publicKeyTtl: { days: 7 }
|
|
1190
|
+
});
|
|
1191
|
+
const request1 = await signRequest(new Request("https://example.com/"), rsaPrivateKey2, keyId);
|
|
1192
|
+
const request2 = await signRequest(new Request("https://example.com/"), rsaPrivateKey2, keyId);
|
|
1193
|
+
const ctx1 = federation.createContext(request1, 1);
|
|
1194
|
+
const ctx2 = federation.createContext(request2, 2);
|
|
1195
|
+
assertEquals(await ctx1.getSignedKey(), rsaPublicKey2);
|
|
1196
|
+
assertEquals(keyFetches, 1);
|
|
1197
|
+
assertEquals(await ctx2.getSignedKey(), rsaPublicKey2);
|
|
1198
|
+
assertEquals(keyFetches, 1);
|
|
1199
|
+
});
|
|
1200
|
+
await t.step("getSignedKey() caches unavailable keys", async () => {
|
|
1201
|
+
const kv = new MemoryKvStore();
|
|
1202
|
+
const keyId = new URL("https://example.com/keys/missing");
|
|
1203
|
+
let keyFetches = 0;
|
|
1204
|
+
const documentLoader = async (url) => {
|
|
1205
|
+
if (url === keyId.href) keyFetches++;
|
|
1206
|
+
return await mockDocumentLoader(url);
|
|
1207
|
+
};
|
|
1208
|
+
const federation = createFederation({
|
|
1209
|
+
kv,
|
|
1210
|
+
documentLoaderFactory: () => documentLoader,
|
|
1211
|
+
contextLoaderFactory: () => mockDocumentLoader
|
|
1212
|
+
});
|
|
1213
|
+
const request1 = await signRequest(new Request("https://example.com/"), rsaPrivateKey2, keyId);
|
|
1214
|
+
const request2 = await signRequest(new Request("https://example.com/"), rsaPrivateKey2, keyId);
|
|
1215
|
+
const ctx1 = federation.createContext(request1, 1);
|
|
1216
|
+
const ctx2 = federation.createContext(request2, 2);
|
|
1217
|
+
assertEquals(await ctx1.getSignedKey(), null);
|
|
1218
|
+
assertEquals(keyFetches, 1);
|
|
1219
|
+
assertEquals(await ctx2.getSignedKey(), null);
|
|
1220
|
+
assertEquals(keyFetches, 1);
|
|
1221
|
+
});
|
|
1222
|
+
await t.step("getSignedKey() refetches a key that no longer verifies", async () => {
|
|
1223
|
+
const kv = new MemoryKvStore();
|
|
1224
|
+
const keyId = rsaPublicKey2.id;
|
|
1225
|
+
let keyFetches = 0;
|
|
1226
|
+
const rotatedPublicKey = new CryptographicKey({
|
|
1227
|
+
id: keyId,
|
|
1228
|
+
publicKey: rsaPublicKey3.publicKey
|
|
1229
|
+
});
|
|
1230
|
+
const documentLoader = async (url) => {
|
|
1231
|
+
if (url !== keyId.href) return await mockDocumentLoader(url);
|
|
1232
|
+
keyFetches++;
|
|
1233
|
+
if (keyFetches === 1) return await mockDocumentLoader(url);
|
|
1234
|
+
return {
|
|
1235
|
+
contextUrl: null,
|
|
1236
|
+
documentUrl: url,
|
|
1237
|
+
document: await rotatedPublicKey.toJsonLd({ contextLoader: mockDocumentLoader })
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
const federation = createFederation({
|
|
1241
|
+
kv,
|
|
1242
|
+
documentLoaderFactory: () => documentLoader,
|
|
1243
|
+
contextLoaderFactory: () => mockDocumentLoader
|
|
1244
|
+
});
|
|
1245
|
+
const request1 = await signRequest(new Request("https://example.com/"), rsaPrivateKey2, keyId);
|
|
1246
|
+
const request2 = await signRequest(new Request("https://example.com/"), rsaPrivateKey3, keyId);
|
|
1247
|
+
const request3 = await signRequest(new Request("https://example.com/"), rsaPrivateKey3, keyId);
|
|
1248
|
+
const ctx1 = federation.createContext(request1, 1);
|
|
1249
|
+
const ctx2 = federation.createContext(request2, 2);
|
|
1250
|
+
const ctx3 = federation.createContext(request3, 3);
|
|
1251
|
+
assertEquals(await ctx1.getSignedKey(), rsaPublicKey2);
|
|
1252
|
+
assertEquals(keyFetches, 1);
|
|
1253
|
+
assertEquals(await ctx2.getSignedKey(), rotatedPublicKey);
|
|
1254
|
+
assertEquals(keyFetches, 2);
|
|
1255
|
+
assertEquals(await ctx3.getSignedKey(), rotatedPublicKey);
|
|
1256
|
+
assertEquals(keyFetches, 2);
|
|
1257
|
+
});
|
|
1177
1258
|
esm_default.hardReset();
|
|
1178
1259
|
}
|
|
1179
1260
|
});
|
|
@@ -8182,7 +8263,7 @@ test("createFederation() applies publicKeyTtl to cached public keys", async () =
|
|
|
8182
8263
|
const publicKeyKey = [
|
|
8183
8264
|
"_fedify",
|
|
8184
8265
|
"publicKey",
|
|
8185
|
-
"
|
|
8266
|
+
"3",
|
|
8186
8267
|
keyId
|
|
8187
8268
|
];
|
|
8188
8269
|
assertEquals((await deliver()).status, 202);
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_federation = require("../federation-
|
|
3
|
+
const require_federation = require("../federation-CM-zrOdz.cjs");
|
|
4
4
|
exports.CircuitBreaker = require_federation.CircuitBreaker;
|
|
5
5
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
6
6
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
package/dist/federation/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { a as respondWithObjectIfAcceptable, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as respondWithObject, l as CircuitBreaker, n as handleWebFinger, o as SendActivityError, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "../middleware-
|
|
3
|
+
import { a as respondWithObjectIfAcceptable, c as digest, d as parseCircuitBreakerKvState, f as createFederationBuilder, i as respondWithObject, l as CircuitBreaker, n as handleWebFinger, o as SendActivityError, r as createExponentialBackoffPolicy, s as buildCollectionSynchronizationHeader, t as createFederation, u as normalizeCircuitBreakerOptions } from "../middleware-Ckc0daKd.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { Router as Router$1, RouterError as RouterError$1, assertPath, isPath } from "@fedify/uri-template";
|
|
6
6
|
import { isEqual } from "es-toolkit";
|
|
@@ -7,11 +7,11 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
9
9
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
10
|
-
import { s as detachSignature, y as exportJwk } from "../ld-
|
|
11
|
-
import { o as signObject } from "../proof-
|
|
10
|
+
import { s as detachSignature, y as exportJwk } from "../ld-C13upTHv.mjs";
|
|
11
|
+
import { o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
12
12
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
13
|
-
import { C as getEmbeddedFirstGateway, S as getCompactRootId, c as assertPortableActorActivity, n as FederationImpl, o as createFederation, w as warnCompatibleIdsInJson } from "../middleware-
|
|
14
|
-
import { o as verifyCompoundPortableObjectProofs } from "../compound-proof-
|
|
13
|
+
import { C as getEmbeddedFirstGateway, S as getCompactRootId, c as assertPortableActorActivity, n as FederationImpl, o as createFederation, w as warnCompatibleIdsInJson } from "../middleware-Defzf-30.mjs";
|
|
14
|
+
import { o as verifyCompoundPortableObjectProofs } from "../compound-proof-C-tPcb-r.mjs";
|
|
15
15
|
import { configure, reset } from "@logtape/logtape";
|
|
16
16
|
import { Accept, Announce, Create, Follow, Note, Person } from "@fedify/vocab";
|
|
17
17
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
@@ -8,10 +8,10 @@ import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
|
|
|
8
8
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
9
9
|
import "../std__assert-DvMDRPes.mjs";
|
|
10
10
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
11
|
-
import { l as verifyPortableObjectProof, o as signObject } from "../proof-
|
|
12
|
-
import { f as verifyRequest, l as signRequest } from "../http
|
|
11
|
+
import { l as verifyPortableObjectProof, o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
12
|
+
import { f as verifyRequest, l as signRequest } from "../http-VRVl77qN.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-
|
|
14
|
+
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
15
15
|
import { n as RouterError } from "../router-u5O5KCQr.mjs";
|
|
16
16
|
import { configure, reset } from "@logtape/logtape";
|
|
17
17
|
import { Note, Person, Tombstone, lookupObject } from "@fedify/vocab";
|
|
@@ -7,10 +7,10 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
7
7
|
import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
10
|
-
import { y as exportJwk } from "../ld-
|
|
11
|
-
import { c as verifyObject, l as verifyPortableObjectProof } from "../proof-
|
|
10
|
+
import { y as exportJwk } from "../ld-C13upTHv.mjs";
|
|
11
|
+
import { c as verifyObject, l as verifyPortableObjectProof } from "../proof-DdI4I2Jg.mjs";
|
|
12
12
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
13
|
-
import { n as FederationImpl } from "../middleware-
|
|
13
|
+
import { n as FederationImpl } from "../middleware-Defzf-30.mjs";
|
|
14
14
|
import { Create, DataIntegrityProof, Note, OrderedCollection, Person, traverseCollection } from "@fedify/vocab";
|
|
15
15
|
import { FetchError, encodeMultibase, exportDidKey } from "@fedify/vocab-runtime";
|
|
16
16
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -7,11 +7,11 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
10
|
-
import { l as verifyPortableObjectProof, o as signObject } from "../proof-
|
|
10
|
+
import { l as verifyPortableObjectProof, o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
11
11
|
import { n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
12
|
-
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-
|
|
13
|
-
import { t as verifyPortableObject } from "../portable-collection-
|
|
14
|
-
import { c as verifyServedPortableObjects } from "../compound-proof-
|
|
12
|
+
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
13
|
+
import { t as verifyPortableObject } from "../portable-collection-DKs8iX1J.mjs";
|
|
14
|
+
import { c as verifyServedPortableObjects } from "../compound-proof-C-tPcb-r.mjs";
|
|
15
15
|
import { n as RouterError } from "../router-u5O5KCQr.mjs";
|
|
16
16
|
import { configure, reset } from "@logtape/logtape";
|
|
17
17
|
import { Create, Note, Object as Object$1, OrderedCollection, PUBLIC_COLLECTION, Person, Tombstone, lookupObject, traverseCollection } from "@fedify/vocab";
|
|
@@ -4,8 +4,8 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as esm_default } from "../esm-BHXXx4Wx.mjs";
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { i as rsaPrivateKey2, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
7
|
-
import { n as FederationImpl, r as InboxContextImpl } from "../middleware-
|
|
8
|
-
import { n as extractInboxes, t as SendActivityError } from "../send-
|
|
7
|
+
import { n as FederationImpl, r as InboxContextImpl } from "../middleware-Defzf-30.mjs";
|
|
8
|
+
import { n as extractInboxes, t as SendActivityError } from "../send-DDSpf_ym.mjs";
|
|
9
9
|
import { Create, Endpoints, Note, Person } from "@fedify/vocab";
|
|
10
10
|
import { parseIri } from "@fedify/vocab-runtime";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -8,13 +8,13 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
10
10
|
import { r as getVerifiedKeyOwnerEvidence } from "../key-owner-evidence-APB6NpSk.mjs";
|
|
11
|
-
import { p as signJsonLd } from "../ld-
|
|
12
|
-
import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http
|
|
11
|
+
import { p as signJsonLd } from "../ld-C13upTHv.mjs";
|
|
12
|
+
import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http-VRVl77qN.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { f as handleInbox, n as FederationImpl, o as createFederation } from "../middleware-
|
|
15
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
14
|
+
import { f as handleInbox, n as FederationImpl, o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
15
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-BBB-PayE.mjs";
|
|
16
16
|
import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
|
|
17
|
-
import { t as KvKeyCache } from "../keycache-
|
|
17
|
+
import { t as KvKeyCache } from "../keycache-N2opu4-3.mjs";
|
|
18
18
|
import { Create, CryptographicKey, Person } from "@fedify/vocab";
|
|
19
19
|
import { FetchError, encodeMultibase, exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
20
20
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -8,11 +8,11 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
8
8
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
9
9
|
import "../std__assert-DvMDRPes.mjs";
|
|
10
10
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
11
|
-
import { p as signJsonLd } from "../ld-
|
|
12
|
-
import { o as signObject } from "../proof-
|
|
13
|
-
import { l as signRequest, p as verifyRequestDetailed } from "../http
|
|
11
|
+
import { p as signJsonLd } from "../ld-C13upTHv.mjs";
|
|
12
|
+
import { o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
13
|
+
import { l as signRequest, p as verifyRequestDetailed } from "../http-VRVl77qN.mjs";
|
|
14
14
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
15
|
-
import { _ as coversDelivery, o as createFederation, v as forwardPortableInboxActivity, y as resolvePortableInboxForwardingOptions } from "../middleware-
|
|
15
|
+
import { _ as coversDelivery, o as createFederation, v as forwardPortableInboxActivity, y as resolvePortableInboxForwardingOptions } from "../middleware-Defzf-30.mjs";
|
|
16
16
|
import { Create, CryptographicKey, Follow, Note, Person, Tombstone } from "@fedify/vocab";
|
|
17
17
|
import { exportDidKey, formatIri, parseIri } from "@fedify/vocab-runtime";
|
|
18
18
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -7,7 +7,7 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
9
|
import { r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
10
|
-
import { o as createFederation } from "../middleware-
|
|
10
|
+
import { o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
11
11
|
import { Note, Object as Object$1, Person } from "@fedify/vocab";
|
|
12
12
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
13
13
|
import { test } from "@fedify/fixture";
|
|
@@ -6,9 +6,9 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
6
6
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
|
-
import { o as signObject } from "../proof-
|
|
9
|
+
import { o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
10
10
|
import { n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
11
|
-
import { o as createFederation } from "../middleware-
|
|
11
|
+
import { o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
12
12
|
import { Create, Note } from "@fedify/vocab";
|
|
13
13
|
import { exportDidKey, formatIri, parseIri, toCompatibleEf61Id } from "@fedify/vocab-runtime";
|
|
14
14
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -8,10 +8,10 @@ import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
10
10
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
11
|
-
import { l as verifyPortableObjectProof, o as signObject } from "../proof-
|
|
12
|
-
import { l as signRequest } from "../http
|
|
11
|
+
import { l as verifyPortableObjectProof, o as signObject } from "../proof-DdI4I2Jg.mjs";
|
|
12
|
+
import { l as signRequest } from "../http-VRVl77qN.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-
|
|
14
|
+
import { b as PORTABLE_OBJECT_CONTENT_TYPE, o as createFederation } from "../middleware-Defzf-30.mjs";
|
|
15
15
|
import { configure, reset } from "@logtape/logtape";
|
|
16
16
|
import { Collection, Create, Note, Object as Object$1, PUBLIC_COLLECTION, Person, Tombstone, lookupObject } from "@fedify/vocab";
|
|
17
17
|
import { exportDidKey, formatIri, parseIri, toCompatibleEf61Id } from "@fedify/vocab-runtime";
|