@fedify/fedify 2.5.0-dev.2619 → 2.5.0-dev.2687
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/README.md +1 -1
- package/dist/{builder-Dlad1NzZ.mjs → builder-D1FP_5nQ.mjs} +2 -2
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/transformers.test.mjs +1 -1
- package/dist/{compound-proof-BPor5rpc.mjs → compound-proof-DSHhnOEW.mjs} +4 -4
- package/dist/{context-xrqq4Hrq.d.ts → context-CuLvR1Os.d.ts} +2 -2
- package/dist/{context-A-Nde3u-.mjs → context-LgGFFSz7.mjs} +1 -1
- package/dist/{context-C1NqcIct.d.cts → context-apq0IBg2.d.cts} +2 -2
- package/dist/{deno-DhOes0kL.mjs → deno-C50ikGBU.mjs} +1 -1
- package/dist/{dist-DJQM4u7i.mjs → dist-_geWsuaI.mjs} +1 -1
- package/dist/{docloader-BLKe4L-U.mjs → docloader-BY-SEID0.mjs} +2 -2
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +5 -5
- package/dist/federation/handler-compound-proof.test.mjs +4 -4
- package/dist/federation/handler.test.mjs +5 -5
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-actorless.test.mjs +5 -5
- package/dist/federation/inbox-report.test.mjs +5 -5
- package/dist/federation/inbox-view.test.mjs +1 -1
- package/dist/federation/inbox.test.mjs +1 -1
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +16 -13
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.d.cts +3 -3
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +1 -1
- package/dist/federation/mq.test.mjs +1 -1
- package/dist/federation/negotiation.test.mjs +1 -1
- package/dist/federation/outbound-capture.test.mjs +1 -1
- package/dist/federation/outbound-dispatch.test.mjs +1 -1
- package/dist/federation/outbound-document.test.mjs +1 -1
- package/dist/federation/outbound-provenance.test.mjs +2 -2
- package/dist/federation/outbound-report.test.mjs +5 -5
- package/dist/federation/outbound-workflow.test.mjs +1 -1
- package/dist/federation/outgoing-proof.test.mjs +7 -7
- 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 +5 -5
- package/dist/federation/portable-delivery.test.mjs +2 -2
- package/dist/federation/portable-gateway-keys.test.mjs +6 -6
- 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 +4 -4
- package/dist/federation/tasks/enqueue.test.mjs +3 -3
- package/dist/federation/tasks/tasks.test.mjs +4 -4
- package/dist/federation/temporal.test.mjs +1 -1
- package/dist/federation/webfinger.test.mjs +2 -2
- package/dist/{federation-C7hr1d70.cjs → federation-pFFwPyoZ.cjs} +15 -11
- package/dist/{http-Dl2oG-DY.mjs → http-BXbQQZDM.mjs} +4 -4
- package/dist/{http-DJ0rqMZp.cjs → http-CXX-QPzs.cjs} +2 -2
- package/dist/{http-DdL5DIEg.js → http-T7h9GBAN.js} +2 -2
- package/dist/{inbox-CnD0d-M3.mjs → inbox-cS97XzOD.mjs} +2 -2
- package/dist/{inbox-view-DE-qXPd4.mjs → inbox-view-D-d0Ar6o.mjs} +1 -1
- package/dist/{key-dwwAg5bA.d.ts → key-BZw-YiK5.d.ts} +2 -2
- package/dist/{key-DlHT4R6k.d.cts → key-D5fbQkKM.d.cts} +2 -2
- package/dist/{kv-cache-DY6N3JNe.cjs → kv-cache-C6XX_fwz.cjs} +1 -1
- package/dist/{kv-cache-C35JVxTl.js → kv-cache-EFcb1kkU.js} +1 -1
- package/dist/{kv-cache-2qRQ6ul-.mjs → kv-cache-fgbLHGVL.mjs} +1 -1
- package/dist/{ld-rNrQkbOP.mjs → ld-BpkhkDGj.mjs} +3 -3
- package/dist/{ld-CWVpo_NM.d.cts → ld-DEi9ERHf.d.cts} +1 -1
- package/dist/{ld-o4LnhCYY.d.ts → ld-DlC78ioJ.d.ts} +1 -1
- package/dist/{metrics-M-q8sKlg.mjs → metrics-Uqf8GomB.mjs} +1 -1
- package/dist/{middleware-DwSDtJqA.js → middleware-Bj91r7r2.js} +15 -11
- package/dist/{middleware-DTtxkZcU.mjs → middleware-DcXzz-YK.mjs} +25 -21
- package/dist/{middleware-B6SGVMRh.mjs → middleware-DgwZkvJR.mjs} +1 -1
- package/dist/{mod-D22ZsiKi.d.ts → mod-BJRtsw7l.d.ts} +1 -1
- package/dist/{mod-C1nT74IG.d.cts → mod-BamwZjJx.d.cts} +1 -1
- package/dist/{mod-DO0epJGH.d.ts → mod-BkTi19dI.d.ts} +1 -1
- package/dist/{mod-CQC9xlLZ.d.ts → mod-CMtF0VVy.d.ts} +1 -1
- package/dist/{mod-YvA4Rk8J.d.cts → mod-D2Z9MiCm.d.cts} +1 -1
- package/dist/{mod-TwiQgEf3.d.cts → mod-DB2NOzQF.d.cts} +1 -1
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +6 -6
- package/dist/mod.d.ts +6 -6
- package/dist/mod.js +4 -4
- package/dist/{negotiation-CCocWT_N.mjs → negotiation-BAKO9nih.mjs} +1 -1
- package/dist/nodeinfo/handler.test.mjs +2 -2
- package/dist/{owner-DXBLhiOp.mjs → owner-BVenIFg1.mjs} +3 -3
- package/dist/{portable-collection-uvJgxij0.cjs → portable-collection-BOl9oKrt.cjs} +1 -1
- package/dist/{portable-collection-Bdm4GVrg.mjs → portable-collection-DIk9gpjL.mjs} +2 -2
- package/dist/{portable-collection-BIU6ofW8.js → portable-collection-Do5QA2oy.js} +1 -1
- package/dist/{portable-key-BWWlhf-H.mjs → portable-key-C7pVaHNR.mjs} +1 -1
- package/dist/{proof-D0_8PUaM.mjs → proof-BlfZ95--.mjs} +3 -3
- package/dist/{send-B5Q2gFPx.mjs → send-DEGHPGFk.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 +1 -1
- package/dist/sig/ld.test.mjs +1 -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.d.cts +3 -3
- package/dist/sig/mod.d.ts +3 -3
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.mjs +1 -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 +5 -5
- package/dist/sig/proof.test.mjs +3 -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/{tasks-IG3pHfvZ.mjs → tasks-BCUmQbbz.mjs} +1 -1
- package/dist/{temporal-T_o6VW2J.mjs → temporal-B4oQ8HpW.mjs} +1 -1
- package/dist/testing/context.test.mjs +1 -1
- package/dist/testing/kv.test.mjs +3 -3
- package/dist/testing/mod.mjs +4 -4
- package/dist/{testing-_9kJHvqh.mjs → testing-vrnD5Uaa.mjs} +3 -3
- package/dist/utils/docloader.test.mjs +3 -3
- package/dist/utils/kv-cache.test.mjs +1 -1
- package/dist/utils/mod.cjs +1 -1
- package/dist/utils/mod.d.cts +1 -1
- package/dist/utils/mod.d.ts +1 -1
- package/dist/utils/mod.js +1 -1
- package/package.json +7 -7
|
@@ -3,7 +3,7 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { i as rsaPrivateKey2, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
6
|
-
import { o as createFederation } from "../middleware-
|
|
6
|
+
import { o as createFederation } from "../middleware-DcXzz-YK.mjs";
|
|
7
7
|
import { Create, Person } from "@fedify/vocab";
|
|
8
8
|
import { test } from "@fedify/fixture";
|
|
9
9
|
import { deepStrictEqual, ok, strictEqual } from "node:assert/strict";
|
|
@@ -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, x as exportJwk } from "../ld-
|
|
11
|
-
import { s as signObject } from "../proof-
|
|
10
|
+
import { s as detachSignature, x as exportJwk } from "../ld-BpkhkDGj.mjs";
|
|
11
|
+
import { s as signObject } from "../proof-BlfZ95--.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-DcXzz-YK.mjs";
|
|
14
|
+
import { o as verifyCompoundPortableObjectProofs } from "../compound-proof-DSHhnOEW.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";
|
|
@@ -352,7 +352,7 @@ test("forced fanout selects the DID-matching key before enqueueing", async () =>
|
|
|
352
352
|
assertEquals(message.type, "fanout");
|
|
353
353
|
assertEquals(message.keys.length, 3);
|
|
354
354
|
assertEquals(message.keys[0].keyId, rsaKey.keyId.href);
|
|
355
|
-
for (
|
|
355
|
+
for (const message of queued) await federation.processQueuedTask(void 0, message);
|
|
356
356
|
});
|
|
357
357
|
assertEquals(bodies.length, 1);
|
|
358
358
|
assertEquals(proofOf(bodies[0]).verificationMethod, owner.keyId.href);
|
|
@@ -609,7 +609,7 @@ test("forced fanout selects the DID-matching key for a compatible-ID activity",
|
|
|
609
609
|
sender(owner)
|
|
610
610
|
], recipient, compatibleCreate(owner, await signedChild(await didKey())), { fanout: "force" });
|
|
611
611
|
assertEquals(queued.length, 1);
|
|
612
|
-
for (
|
|
612
|
+
for (const message of queued) await federation.processQueuedTask(void 0, message);
|
|
613
613
|
});
|
|
614
614
|
assertEquals(bodies.length, 1);
|
|
615
615
|
assertEquals(proofOf(bodies[0]).verificationMethod, owner.keyId.href);
|
|
@@ -735,7 +735,7 @@ test("fanout warns once before enqueueing a compatible activity", async () => {
|
|
|
735
735
|
actor: ownerId
|
|
736
736
|
}), { fanout: "force" });
|
|
737
737
|
assertEquals(queued.length, 1);
|
|
738
|
-
for (
|
|
738
|
+
for (const message of queued) await federation.processQueuedTask(void 0, message);
|
|
739
739
|
}))).filter((r) => r.properties.kind === "activity").length, 1);
|
|
740
740
|
});
|
|
741
741
|
test("an embedded actor supplies gateways to a plain send context", async () => {
|
|
@@ -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 { d as verifyPortableObjectProof, s as signObject } from "../proof-
|
|
12
|
-
import { p as verifyRequest, u as signRequest } from "../http-
|
|
11
|
+
import { d as verifyPortableObjectProof, s as signObject } from "../proof-BlfZ95--.mjs";
|
|
12
|
+
import { p as verifyRequest, u as signRequest } from "../http-BXbQQZDM.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-DcXzz-YK.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 { x as exportJwk } from "../ld-
|
|
11
|
-
import { d as verifyPortableObjectProof, l as verifyObject } from "../proof-
|
|
10
|
+
import { x as exportJwk } from "../ld-BpkhkDGj.mjs";
|
|
11
|
+
import { d as verifyPortableObjectProof, l as verifyObject } from "../proof-BlfZ95--.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-DcXzz-YK.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 { d as verifyPortableObjectProof, s as signObject } from "../proof-
|
|
10
|
+
import { d as verifyPortableObjectProof, s as signObject } from "../proof-BlfZ95--.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-DcXzz-YK.mjs";
|
|
13
|
+
import { t as verifyPortableObject } from "../portable-collection-DIk9gpjL.mjs";
|
|
14
|
+
import { c as verifyServedPortableObjects } from "../compound-proof-DSHhnOEW.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";
|
|
@@ -378,7 +378,7 @@ test("Federation.fetch() serves portable custom collections", async (t) => {
|
|
|
378
378
|
assertEquals(json?.id, portableId("/users/alice/bookmarks?tag=fedify&cursor=0"));
|
|
379
379
|
assertEquals(json?.partOf, portableId("/users/alice/bookmarks?tag=fedify"));
|
|
380
380
|
assertEquals(json?.next, portableId("/users/alice/bookmarks?tag=fedify&cursor=1"));
|
|
381
|
-
assertEquals((json?.orderedItems)[0]
|
|
381
|
+
assertEquals((json?.orderedItems)?.[0]?.id, portableId("/notes/fedify-0"));
|
|
382
382
|
});
|
|
383
383
|
await t.step("compatible identifiers", async () => {
|
|
384
384
|
const [response, json] = await fetchJson(federation, gatewayUrl("/users/compatible/bookmarks"));
|
|
@@ -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, t as ContextImpl } from "../middleware-
|
|
8
|
-
import { n as extractInboxes, t as SendActivityError } from "../send-
|
|
7
|
+
import { n as FederationImpl, r as InboxContextImpl, t as ContextImpl } from "../middleware-DcXzz-YK.mjs";
|
|
8
|
+
import { n as extractInboxes, t as SendActivityError } from "../send-DEGHPGFk.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";
|
|
@@ -2,18 +2,18 @@ import { Temporal } from "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as esm_default } from "../esm-BHXXx4Wx.mjs";
|
|
5
|
-
import { r as createRequestContext, t as createInboxContext } from "../context-
|
|
5
|
+
import { r as createRequestContext, t as createInboxContext } from "../context-LgGFFSz7.mjs";
|
|
6
6
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
7
7
|
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 { m as signJsonLd } from "../ld-
|
|
12
|
-
import { m as verifyRequestDetailed, p as verifyRequest, u as signRequest } from "../http-
|
|
11
|
+
import { m as signJsonLd } from "../ld-BpkhkDGj.mjs";
|
|
12
|
+
import { m as verifyRequestDetailed, p as verifyRequest, u as signRequest } from "../http-BXbQQZDM.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 { n as getAuthenticatedDocumentLoader } from "../docloader-
|
|
15
|
-
import { f as handleInbox, n as FederationImpl, o as createFederation } from "../middleware-
|
|
16
|
-
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-
|
|
14
|
+
import { n as getAuthenticatedDocumentLoader } from "../docloader-BY-SEID0.mjs";
|
|
15
|
+
import { f as handleInbox, n as FederationImpl, o as createFederation } from "../middleware-DcXzz-YK.mjs";
|
|
16
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-BVenIFg1.mjs";
|
|
17
17
|
import { t as ActivityListenerSet } from "../activity-listener-CELFAodc.mjs";
|
|
18
18
|
import { t as KvKeyCache } from "../keycache-N2opu4-3.mjs";
|
|
19
19
|
import { Create, CryptographicKey, Person } from "@fedify/vocab";
|
|
@@ -9,11 +9,11 @@ import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
|
9
9
|
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
|
-
import { m as signJsonLd } from "../ld-
|
|
13
|
-
import { s as signObject } from "../proof-
|
|
14
|
-
import { m as verifyRequestDetailed, u as signRequest } from "../http-
|
|
12
|
+
import { m as signJsonLd } from "../ld-BpkhkDGj.mjs";
|
|
13
|
+
import { s as signObject } from "../proof-BlfZ95--.mjs";
|
|
14
|
+
import { m as verifyRequestDetailed, u as signRequest } from "../http-BXbQQZDM.mjs";
|
|
15
15
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
16
|
-
import { M as observeOutboundBroadcast, _ as coversDelivery, o as createFederation, v as forwardPortableInboxActivity, y as resolvePortableInboxForwardingOptions } from "../middleware-
|
|
16
|
+
import { M as observeOutboundBroadcast, _ as coversDelivery, o as createFederation, v as forwardPortableInboxActivity, y as resolvePortableInboxForwardingOptions } from "../middleware-DcXzz-YK.mjs";
|
|
17
17
|
import { Create, CryptographicKey, Follow, Note, Person, Tombstone } from "@fedify/vocab";
|
|
18
18
|
import { exportDidKey, formatIri, parseIri } from "@fedify/vocab-runtime";
|
|
19
19
|
import { createTestTracerProvider, 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-DcXzz-YK.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 { s as signObject } from "../proof-
|
|
9
|
+
import { s as signObject } from "../proof-BlfZ95--.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-DcXzz-YK.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 { d as verifyPortableObjectProof, s as signObject } from "../proof-
|
|
12
|
-
import { u as signRequest } from "../http-
|
|
11
|
+
import { d as verifyPortableObjectProof, s as signObject } from "../proof-BlfZ95--.mjs";
|
|
12
|
+
import { u as signRequest } from "../http-BXbQQZDM.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-DcXzz-YK.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";
|
|
@@ -11,10 +11,10 @@ import { t as assertNotEquals } from "../assert_not_equals-CpPK2t89.mjs";
|
|
|
11
11
|
import "../std__assert-DvMDRPes.mjs";
|
|
12
12
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
13
13
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
14
|
-
import { p as verifyRequest } from "../http-
|
|
14
|
+
import { p as verifyRequest } from "../http-BXbQQZDM.mjs";
|
|
15
15
|
import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
16
|
-
import { t as doesActorOwnKey } from "../owner-
|
|
17
|
-
import { i as sendActivity, n as extractInboxes, r as fetchWithValidatedRedirects, t as SendActivityError } from "../send-
|
|
16
|
+
import { t as doesActorOwnKey } from "../owner-BVenIFg1.mjs";
|
|
17
|
+
import { i as sendActivity, n as extractInboxes, r as fetchWithValidatedRedirects, t as SendActivityError } from "../send-DEGHPGFk.mjs";
|
|
18
18
|
import { t as FedifySpanExporter } from "../exporter-DVG68ozH.mjs";
|
|
19
19
|
import { configure, getLogger, reset, withContext } from "@logtape/logtape";
|
|
20
20
|
import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
|
|
@@ -1113,7 +1113,7 @@ async function captureLogs(fn) {
|
|
|
1113
1113
|
return records;
|
|
1114
1114
|
}
|
|
1115
1115
|
function getCancelFailureUrls(records) {
|
|
1116
|
-
return records.
|
|
1116
|
+
return records.flatMap((r) => r.rawMessage === "Failed to cancel the response body from {url}: {error}" ? [r.properties.url] : []);
|
|
1117
1117
|
}
|
|
1118
1118
|
test("fetchWithValidatedRedirects() logs a redirect body failing to cancel and follows the redirect", async (t) => {
|
|
1119
1119
|
const url = "https://example.com/lifecycle/cancel-failure";
|
|
@@ -2,9 +2,9 @@ import { Temporal } from "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as MemoryKvStore } from "../../kv-DCHkaJ9-.mjs";
|
|
5
|
-
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-
|
|
6
|
-
import "../../testing-
|
|
7
|
-
import { o as createFederation } from "../../middleware-
|
|
5
|
+
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-BCUmQbbz.mjs";
|
|
6
|
+
import "../../testing-vrnD5Uaa.mjs";
|
|
7
|
+
import { o as createFederation } from "../../middleware-DcXzz-YK.mjs";
|
|
8
8
|
import { n as ParallelMessageQueue } from "../../mq-eF96QxUT.mjs";
|
|
9
9
|
import { configure, reset } from "@logtape/logtape";
|
|
10
10
|
import { delay } from "es-toolkit";
|
|
@@ -2,10 +2,10 @@ import { Temporal } from "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as MemoryKvStore } from "../../kv-DCHkaJ9-.mjs";
|
|
5
|
-
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-
|
|
6
|
-
import "../../testing-
|
|
7
|
-
import { r as createFederationBuilder } from "../../builder-
|
|
8
|
-
import { o as createFederation } from "../../middleware-
|
|
5
|
+
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-BCUmQbbz.mjs";
|
|
6
|
+
import "../../testing-vrnD5Uaa.mjs";
|
|
7
|
+
import { r as createFederationBuilder } from "../../builder-D1FP_5nQ.mjs";
|
|
8
|
+
import { o as createFederation } from "../../middleware-DcXzz-YK.mjs";
|
|
9
9
|
import { t as TaskCodec } from "../../codec-C6rTrpIp.mjs";
|
|
10
10
|
import { t as InProcessMessageQueue } from "../../mq-eF96QxUT.mjs";
|
|
11
11
|
import { W3CTraceContextPropagator } from "@opentelemetry/core";
|
|
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
6
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
7
|
-
import { t as hasMalformedKnownTemporalLiteral } from "../temporal-
|
|
7
|
+
import { t as hasMalformedKnownTemporalLiteral } from "../temporal-B4oQ8HpW.mjs";
|
|
8
8
|
import { test } from "@fedify/fixture";
|
|
9
9
|
//#region src/federation/temporal.test.ts
|
|
10
10
|
test("hasMalformedKnownTemporalLiteral() detects expanded proof timestamps", async () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { r as createRequestContext } from "../context-
|
|
4
|
+
import { r as createRequestContext } from "../context-LgGFFSz7.mjs";
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import { t as assertNotEquals } from "../assert_not_equals-CpPK2t89.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
|
-
import { o as createFederation, s as handleWebFinger } from "../middleware-
|
|
9
|
+
import { o as createFederation, s as handleWebFinger } from "../middleware-DcXzz-YK.mjs";
|
|
10
10
|
import { Image, Link, Person, Tombstone } from "@fedify/vocab";
|
|
11
11
|
import { parseIri } from "@fedify/vocab-runtime";
|
|
12
12
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
2
|
const require_rolldown_runtime = require("./rolldown-runtime-Dmm3t92W.cjs");
|
|
3
3
|
const require_transformers = require("./transformers-BalCrSsr.cjs");
|
|
4
|
-
const require_http = require("./http-
|
|
4
|
+
const require_http = require("./http-CXX-QPzs.cjs");
|
|
5
5
|
const require_types = require("./types-hKCCjii0.cjs");
|
|
6
|
-
const require_portable_collection = require("./portable-collection-
|
|
7
|
-
const require_kv_cache = require("./kv-cache-
|
|
6
|
+
const require_portable_collection = require("./portable-collection-BOl9oKrt.cjs");
|
|
7
|
+
const require_kv_cache = require("./kv-cache-C6XX_fwz.cjs");
|
|
8
8
|
let _logtape_logtape = require("@logtape/logtape");
|
|
9
9
|
let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
|
|
10
10
|
let _fedify_uri_template = require("@fedify/uri-template");
|
|
@@ -2427,7 +2427,7 @@ function inspectCompoundPortableObjectApplicability(json, limits) {
|
|
|
2427
2427
|
if (mapCount > limits.maxMaps) return "indeterminate";
|
|
2428
2428
|
if ([value.id, value["@id"]].some(isPortableIdValue)) return "present";
|
|
2429
2429
|
if (!addByteLength(2)) return "indeterminate";
|
|
2430
|
-
const children = function* () {
|
|
2430
|
+
const children = (function* () {
|
|
2431
2431
|
let first = true;
|
|
2432
2432
|
for (const key in value) {
|
|
2433
2433
|
if (!Object.hasOwn(value, key)) continue;
|
|
@@ -2437,7 +2437,7 @@ function inspectCompoundPortableObjectApplicability(json, limits) {
|
|
|
2437
2437
|
if (!addByteLength(encodedLength(JSON.stringify(key)) + 1)) return;
|
|
2438
2438
|
yield value[key];
|
|
2439
2439
|
}
|
|
2440
|
-
}();
|
|
2440
|
+
})();
|
|
2441
2441
|
pending.push({
|
|
2442
2442
|
iterator: children,
|
|
2443
2443
|
depth: frame.depth + 1
|
|
@@ -4545,7 +4545,7 @@ function compareSpecs(a, b) {
|
|
|
4545
4545
|
function isQuality(spec) {
|
|
4546
4546
|
return spec.q > 0;
|
|
4547
4547
|
}
|
|
4548
|
-
const simpleMediaTypeRegExp = /^\s*([^\s
|
|
4548
|
+
const simpleMediaTypeRegExp = /^\s*([^\s/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;
|
|
4549
4549
|
function splitKeyValuePair(str) {
|
|
4550
4550
|
const [key, value] = str.split("=");
|
|
4551
4551
|
return [key.toLowerCase(), value];
|
|
@@ -10880,7 +10880,10 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
10880
10880
|
"fedify",
|
|
10881
10881
|
"federation",
|
|
10882
10882
|
"benchmark"
|
|
10883
|
-
]).warn(
|
|
10883
|
+
]).warn("Fedify benchmarkMode is enabled; {relaxationSummary}. Benchmark endpoints are active and must not be used in production.", {
|
|
10884
|
+
relaxations,
|
|
10885
|
+
relaxationSummary
|
|
10886
|
+
});
|
|
10884
10887
|
}
|
|
10885
10888
|
this.benchmarkMode = benchmarkMode;
|
|
10886
10889
|
this.benchmarkTriggerOptions = benchmarkMode ? getBenchmarkTriggerOptions(benchmarkOptions) : {};
|
|
@@ -12687,7 +12690,7 @@ var FederationImpl = class extends FederationBuilderImpl {
|
|
|
12687
12690
|
queueMessageId: m.message.id
|
|
12688
12691
|
}], "outbox", enqueue));
|
|
12689
12692
|
require_http.recordOutboxEnqueue(this.meterProvider, outboxQueue, m.message);
|
|
12690
|
-
}))).
|
|
12693
|
+
}))).flatMap((r) => r.status === "rejected" ? [r.reason] : []);
|
|
12691
12694
|
if (errors.length > 0) {
|
|
12692
12695
|
logger.error("Failed to enqueue activity {activityId} to send later: {errors}", {
|
|
12693
12696
|
activityId: activity.id.href,
|
|
@@ -14106,9 +14109,10 @@ var ContextImpl = class ContextImpl {
|
|
|
14106
14109
|
identifierPromise = identifier instanceof Promise ? identifier : Promise.resolve(identifier);
|
|
14107
14110
|
}
|
|
14108
14111
|
} else identifierPromise = Promise.resolve(identity.identifier);
|
|
14109
|
-
return identifierPromise.then((identifier) => {
|
|
14112
|
+
return identifierPromise.then(async (identifier) => {
|
|
14110
14113
|
if (identifier == null) return this.documentLoader;
|
|
14111
|
-
|
|
14114
|
+
const pair = await this.getRsaKeyPairFromIdentifier(identifier);
|
|
14115
|
+
return pair == null ? this.documentLoader : this.federation.authenticatedDocumentLoaderFactory(pair);
|
|
14112
14116
|
});
|
|
14113
14117
|
}
|
|
14114
14118
|
return this.federation.authenticatedDocumentLoaderFactory(identity);
|
|
@@ -15008,7 +15012,7 @@ async function forwardActivityInternal(ctx, loggerCategory, forwarder, recipient
|
|
|
15008
15012
|
queueMessageId: m.message.id
|
|
15009
15013
|
}], "outbox", () => outboxQueue.enqueue(m.message, { orderingKey: m.orderingKey })));
|
|
15010
15014
|
require_http.recordOutboxEnqueue(ctx.federation.meterProvider, outboxQueue, m.message);
|
|
15011
|
-
}))).
|
|
15015
|
+
}))).flatMap((r) => r.status === "rejected" ? [r.reason] : []);
|
|
15012
15016
|
if (errors.length > 0) {
|
|
15013
15017
|
logger.error("Failed to enqueue activity {activityId} to forward later:\n{errors}", {
|
|
15014
15018
|
activityId: ctx.activityId,
|
|
@@ -3,12 +3,12 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { m as parseKeyIdString } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { a as verificationObservation, i as triedKey, n as observeCheck, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
6
|
-
import { n as version, t as name } from "./deno-
|
|
7
|
-
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-
|
|
6
|
+
import { n as version, t as name } from "./deno-C50ikGBU.mjs";
|
|
7
|
+
import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-Uqf8GomB.mjs";
|
|
8
8
|
import { i as validateAcceptSignature, n as fulfillAcceptSignature, r as parseAcceptSignature } from "./accept-CPVqki78.mjs";
|
|
9
9
|
import { a as promoteKeyOwnerEvidence } from "./key-owner-evidence-APB6NpSk.mjs";
|
|
10
|
-
import { D as validateCryptoKey, b as bypassKeyCacheReads, w as fetchKeyDetailed } from "./ld-
|
|
11
|
-
import { n as resolvePortableActorKey, r as verifyPortableGatewayKeyDocument } from "./portable-key-
|
|
10
|
+
import { D as validateCryptoKey, b as bypassKeyCacheReads, w as fetchKeyDetailed } from "./ld-BpkhkDGj.mjs";
|
|
11
|
+
import { n as resolvePortableActorKey, r as verifyPortableGatewayKeyDocument } from "./portable-key-C7pVaHNR.mjs";
|
|
12
12
|
import { getLogger } from "@logtape/logtape";
|
|
13
13
|
import { CryptographicKey } from "@fedify/vocab";
|
|
14
14
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -17,7 +17,7 @@ json_canon = require_rolldown_runtime.__toESM(json_canon, 1);
|
|
|
17
17
|
let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conventions");
|
|
18
18
|
//#region deno.json
|
|
19
19
|
var name = "@fedify/fedify";
|
|
20
|
-
var version = "2.5.0-dev.
|
|
20
|
+
var version = "2.5.0-dev.2687+924da5ce";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/sig/portable-key-id.ts
|
|
23
23
|
const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
|
|
@@ -6023,7 +6023,7 @@ async function fetchKeyInternal(keyId, cls, options = {}) {
|
|
|
6023
6023
|
response: error.response.clone()
|
|
6024
6024
|
} : { error: error instanceof Error ? error : new Error(String(error)) };
|
|
6025
6025
|
} catch {
|
|
6026
|
-
result = { error: error instanceof Error ? error : /* @__PURE__ */ new Error() };
|
|
6026
|
+
result = { error: error instanceof Error ? error : /* @__PURE__ */ new Error("Unknown verification error") };
|
|
6027
6027
|
}
|
|
6028
6028
|
check.reason = {
|
|
6029
6029
|
type: "keyFetchError",
|
|
@@ -15,7 +15,7 @@ import serialize from "json-canon";
|
|
|
15
15
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
|
|
16
16
|
//#region deno.json
|
|
17
17
|
var name = "@fedify/fedify";
|
|
18
|
-
var version = "2.5.0-dev.
|
|
18
|
+
var version = "2.5.0-dev.2687+924da5ce";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/sig/portable-key-id.ts
|
|
21
21
|
const COMPATIBLE_KEY_ID_PATH_PATTERN = /^\/\.well-known\/apgateway\/did(?::|%3A)/i;
|
|
@@ -2455,7 +2455,7 @@ async function fetchKeyInternal(keyId, cls, options = {}) {
|
|
|
2455
2455
|
response: error.response.clone()
|
|
2456
2456
|
} : { error: error instanceof Error ? error : new Error(String(error)) };
|
|
2457
2457
|
} catch {
|
|
2458
|
-
result = { error: error instanceof Error ? error : /* @__PURE__ */ new Error() };
|
|
2458
|
+
result = { error: error instanceof Error ? error : /* @__PURE__ */ new Error("Unknown verification error") };
|
|
2459
2459
|
}
|
|
2460
2460
|
check.reason = {
|
|
2461
2461
|
type: "keyFetchError",
|
|
@@ -3,8 +3,8 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as getAuthenticationOrigin } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { o as serializeAuthentication, r as getEffectivePrincipals } from "./inbox-authentication-CgonVRkg.mjs";
|
|
6
|
-
import { n as version, t as name } from "./deno-
|
|
7
|
-
import { g as recordInboxActivity, n as getDurationMs, r as getFederationMetrics } from "./metrics-
|
|
6
|
+
import { n as version, t as name } from "./deno-C50ikGBU.mjs";
|
|
7
|
+
import { g as recordInboxActivity, n as getDurationMs, r as getFederationMetrics } from "./metrics-Uqf8GomB.mjs";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { getTypeId } from "@fedify/vocab";
|
|
10
10
|
import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { c as getNormalizationContextLoader, p as markEffectiveContextLoader, s as detachSignature, y as wrapContextLoaderForJsonLd } from "./ld-
|
|
4
|
+
import { c as getNormalizationContextLoader, p as markEffectiveContextLoader, s as detachSignature, y as wrapContextLoaderForJsonLd } from "./ld-BpkhkDGj.mjs";
|
|
5
5
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
6
6
|
import { encodeHex } from "byte-encodings/hex";
|
|
7
7
|
import jsonld from "@fedify/vocab-runtime/jsonld";
|
|
@@ -1015,9 +1015,9 @@ interface FetchKeyResult<T extends CryptographicKey | Multikey> {
|
|
|
1015
1015
|
/**
|
|
1016
1016
|
* The fetched (or cached) key.
|
|
1017
1017
|
*/
|
|
1018
|
-
readonly key: T & {
|
|
1018
|
+
readonly key: (T & {
|
|
1019
1019
|
publicKey: CryptoKey;
|
|
1020
|
-
} | null;
|
|
1020
|
+
}) | null;
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Whether the key is fetched from the cache.
|
|
1023
1023
|
*/
|
|
@@ -1015,9 +1015,9 @@ interface FetchKeyResult<T extends CryptographicKey | Multikey> {
|
|
|
1015
1015
|
/**
|
|
1016
1016
|
* The fetched (or cached) key.
|
|
1017
1017
|
*/
|
|
1018
|
-
readonly key: T & {
|
|
1018
|
+
readonly key: (T & {
|
|
1019
1019
|
publicKey: CryptoKey;
|
|
1020
|
-
} | null;
|
|
1020
|
+
}) | null;
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Whether the key is fetched from the cache.
|
|
1023
1023
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
2
|
-
const require_http = require("./http-
|
|
2
|
+
const require_http = require("./http-CXX-QPzs.cjs");
|
|
3
3
|
let _logtape_logtape = require("@logtape/logtape");
|
|
4
4
|
let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
|
|
5
5
|
let es_toolkit = require("es-toolkit");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { X as validateCryptoKey, dt as recordDocumentCache, t as doubleKnockScoped } from "./http-
|
|
3
|
+
import { X as validateCryptoKey, dt as recordDocumentCache, t as doubleKnockScoped } from "./http-T7h9GBAN.js";
|
|
4
4
|
import { getLogger } from "@logtape/logtape";
|
|
5
5
|
import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts, resolveDocumentLoaderTimeout, withDocumentLoaderTimeout } from "@fedify/vocab-runtime";
|
|
6
6
|
import { curry } from "es-toolkit";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { p as recordDocumentCache } from "./metrics-
|
|
4
|
+
import { p as recordDocumentCache } from "./metrics-Uqf8GomB.mjs";
|
|
5
5
|
import { getLogger } from "@logtape/logtape";
|
|
6
6
|
import { preloadedContexts } from "@fedify/vocab-runtime";
|
|
7
7
|
//#region src/utils/kv-cache.ts
|
|
@@ -3,8 +3,8 @@ import "urlpattern-polyfill";
|
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { c as isPortableActorDocument, d as isPortableUri, l as isPortableId, m as parseKeyIdString, s as isCompatibleKeyId } from "./portable-key-id-Ca30-hOa.mjs";
|
|
5
5
|
import { a as verificationObservation, i as triedKey, n as observeCheck, t as observeAttempt } from "./verification-Dpfcw8ml.mjs";
|
|
6
|
-
import { n as version, t as name } from "./deno-
|
|
7
|
-
import { _ as recordKeyLookup, n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch, t as classifyFetchError } from "./metrics-
|
|
6
|
+
import { n as version, t as name } from "./deno-C50ikGBU.mjs";
|
|
7
|
+
import { _ as recordKeyLookup, n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch, t as classifyFetchError } from "./metrics-Uqf8GomB.mjs";
|
|
8
8
|
import { n as attachKeyOwnerEvidence, t as MAX_PORTABLE_KEY_TTL } from "./key-owner-evidence-APB6NpSk.mjs";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { Activity, CryptographicKey, Multikey, Object as Object$1, getTypeId, isActor } from "@fedify/vocab";
|
|
@@ -1039,7 +1039,7 @@ async function fetchKeyInternal(keyId, cls, options = {}) {
|
|
|
1039
1039
|
response: error.response.clone()
|
|
1040
1040
|
} : { error: error instanceof Error ? error : new Error(String(error)) };
|
|
1041
1041
|
} catch {
|
|
1042
|
-
result = { error: error instanceof Error ? error : /* @__PURE__ */ new Error() };
|
|
1042
|
+
result = { error: error instanceof Error ? error : /* @__PURE__ */ new Error("Unknown verification error") };
|
|
1043
1043
|
}
|
|
1044
1044
|
check.reason = {
|
|
1045
1045
|
type: "keyFetchError",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { a as KeyCache, v as VerificationObservationOptions } from "./key-
|
|
2
|
+
import { a as KeyCache, v as VerificationObservationOptions } from "./key-D5fbQkKM.cjs";
|
|
3
3
|
import { Activity, Actor, CryptographicKey } from "@fedify/vocab";
|
|
4
4
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
|
5
5
|
import { MeterProvider, TracerProvider } from "@opentelemetry/api";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { a as KeyCache, v as VerificationObservationOptions } from "./key-
|
|
2
|
+
import { a as KeyCache, v as VerificationObservationOptions } from "./key-BZw-YiK5.js";
|
|
3
3
|
import { DocumentLoader } from "@fedify/vocab-runtime";
|
|
4
4
|
import { Activity, Actor, CryptographicKey } from "@fedify/vocab";
|
|
5
5
|
import { MeterProvider, TracerProvider } from "@opentelemetry/api";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as version, t as name } from "./deno-
|
|
4
|
+
import { n as version, t as name } from "./deno-C50ikGBU.mjs";
|
|
5
5
|
import { metrics } from "@opentelemetry/api";
|
|
6
6
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
7
7
|
//#region src/federation/metrics.ts
|