@fedify/fedify 2.5.0-dev.2378 → 2.5.0-dev.2424
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-J1K0IJj6.mjs → builder-crKu0U3j.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-DtmVrMV7.mjs → compound-proof-D5pMfQau.mjs} +2 -2
- package/dist/{context-C2-UDo2c.d.ts → context-2wLkQrjb.d.ts} +11 -0
- package/dist/{context-BjD_CTxh.d.cts → context-DPocjp1l.d.cts} +11 -0
- package/dist/{deno-Ci6tSK9-.mjs → deno-Dgtb5dvg.mjs} +1 -1
- package/dist/{docloader-DZ9h6KJS.mjs → docloader-C8QI5jg2.mjs} +4 -2
- 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 +5 -5
- package/dist/federation/handler.test.mjs +258 -5
- package/dist/federation/hashlink-media.test.mjs +2 -2
- package/dist/federation/idempotency.test.mjs +2 -2
- package/dist/federation/inbox-report.test.mjs +30 -5
- package/dist/federation/inbox.test.mjs +43 -0
- package/dist/federation/metrics.test.mjs +1 -1
- package/dist/federation/middleware.test.mjs +254 -11
- package/dist/federation/mod.cjs +1 -1
- package/dist/federation/mod.d.cts +2 -2
- package/dist/federation/mod.d.ts +2 -2
- 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 +4 -4
- 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-lzy7M3hT.cjs → federation-XZF9Yna_.cjs} +133 -21
- package/dist/{http-CFyizTHa.mjs → http-CO8l72H1.mjs} +4 -4
- package/dist/{http-Cmz7x6Iw.js → http-CRRQ6LBq.js} +1 -1
- package/dist/{http-D1RPHoq3.cjs → http-DZpLusNJ.cjs} +1 -1
- package/dist/inbox-q6uJubdj.mjs +188 -0
- package/dist/{kv-cache-rOQX3I3c.mjs → kv-cache-C-20uhXH.mjs} +1 -1
- package/dist/{kv-cache-C0-HuvwP.js → kv-cache-D5EHCk1_.js} +3 -1
- package/dist/{kv-cache-Jym5nP3J.cjs → kv-cache-DB0oTO06.cjs} +3 -1
- package/dist/{ld-DJ--ZUpr.mjs → ld-DqV2dhgT.mjs} +2 -2
- package/dist/{metrics-Dwgav7s_.mjs → metrics--5oGNIHa.mjs} +1 -1
- package/dist/{middleware-BbBsa5iR.mjs → middleware-BahtLJeT.mjs} +115 -180
- package/dist/{middleware-CJWxuUy5.mjs → middleware-Cna-mkwy.mjs} +1 -1
- package/dist/{middleware-CqgRIsWM.js → middleware-Mn7MeLDZ.js} +133 -21
- package/dist/{mod-BBPd4M_0.d.cts → mod-DKGoPoQC.d.cts} +1 -1
- package/dist/{mod-CUYBGKof.d.ts → mod-Dm-7RdhR.d.ts} +1 -1
- package/dist/mod.cjs +4 -4
- package/dist/mod.d.cts +2 -2
- package/dist/mod.d.ts +2 -2
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/{owner-Btd7SwMj.mjs → owner-Cb6Kalag.mjs} +3 -3
- package/dist/{portable-collection-DwQT28O2.js → portable-collection-BweSVeOo.js} +1 -1
- package/dist/{portable-collection-BvWxS1sL.cjs → portable-collection-C3FBNHhB.cjs} +1 -1
- package/dist/{portable-collection-gb9V8XEO.mjs → portable-collection-DatZLGgt.mjs} +2 -2
- package/dist/{portable-key-Cwti99nP.mjs → portable-key-C2jzDc2S.mjs} +1 -1
- package/dist/{proof-Bwzv6mXZ.mjs → proof-BpQd-cat.mjs} +3 -3
- package/dist/{send-BrQYUSb4.mjs → send-CrgC-GYC.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 +2 -2
- 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.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/{temporal-BRaCTxVe.mjs → temporal-BjBxALiF.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/testing/mod.d.mts +11 -0
- package/dist/utils/docloader.test.mjs +112 -37
- 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
|
@@ -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--5oGNIHa.mjs";
|
|
20
|
+
import { a as compactJsonLd, h as verifyJsonLd, p as signJsonLd, s as detachSignature } from "../ld-DqV2dhgT.mjs";
|
|
21
|
+
import { c as verifyObject, o as signObject } from "../proof-BpQd-cat.mjs";
|
|
22
|
+
import { f as verifyRequest, l as signRequest } from "../http-CO8l72H1.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-C8QI5jg2.mjs";
|
|
25
|
+
import { T as handleBenchmarkTrigger, i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-BahtLJeT.mjs";
|
|
26
|
+
import { t as doesActorOwnKey } from "../owner-Cb6Kalag.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
|
});
|
|
@@ -3433,7 +3514,7 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3433
3514
|
activity: {
|
|
3434
3515
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3435
3516
|
type: "Create",
|
|
3436
|
-
id: "https://example
|
|
3517
|
+
id: "https://remote.example/activities/queued-processed",
|
|
3437
3518
|
actor: "https://remote.example/users/alice",
|
|
3438
3519
|
object: {
|
|
3439
3520
|
type: "Note",
|
|
@@ -3451,6 +3532,50 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3451
3532
|
assertEquals(inboxLifecycle[0].attributes["activitypub.processing.result"], "processed");
|
|
3452
3533
|
assertEquals(inboxLifecycle[0].attributes["activitypub.activity.type"], "https://www.w3.org/ns/activitystreams#Create");
|
|
3453
3534
|
});
|
|
3535
|
+
await t.step("records activitypub.inbox.activity rejected for a queued activity whose ID has another origin than its actor", async () => {
|
|
3536
|
+
const kv = new MemoryKvStore();
|
|
3537
|
+
const [meterProvider, recorder] = createTestMeterProvider();
|
|
3538
|
+
const federation = new FederationImpl({
|
|
3539
|
+
kv,
|
|
3540
|
+
meterProvider,
|
|
3541
|
+
queue: {
|
|
3542
|
+
enqueue(_message, _options) {
|
|
3543
|
+
return Promise.resolve();
|
|
3544
|
+
},
|
|
3545
|
+
listen(_handler, _options) {
|
|
3546
|
+
return Promise.resolve();
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
});
|
|
3550
|
+
let dispatched = false;
|
|
3551
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(vocab.Create, () => {
|
|
3552
|
+
dispatched = true;
|
|
3553
|
+
});
|
|
3554
|
+
await federation.processQueuedTask(void 0, {
|
|
3555
|
+
type: "inbox",
|
|
3556
|
+
id: crypto.randomUUID(),
|
|
3557
|
+
baseUrl: "https://example.com",
|
|
3558
|
+
activity: {
|
|
3559
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3560
|
+
type: "Create",
|
|
3561
|
+
id: "https://victim.example/activities/queued-forged",
|
|
3562
|
+
actor: "https://remote.example/users/alice",
|
|
3563
|
+
object: {
|
|
3564
|
+
type: "Note",
|
|
3565
|
+
content: "Hello world"
|
|
3566
|
+
}
|
|
3567
|
+
},
|
|
3568
|
+
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3569
|
+
attempt: 0,
|
|
3570
|
+
identifier: null,
|
|
3571
|
+
traceContext: {}
|
|
3572
|
+
});
|
|
3573
|
+
assertFalse(dispatched);
|
|
3574
|
+
const inboxLifecycle = recorder.getMeasurements("activitypub.inbox.activity");
|
|
3575
|
+
assertEquals(inboxLifecycle.length, 1);
|
|
3576
|
+
assertEquals(inboxLifecycle[0].attributes["activitypub.processing.result"], "rejected");
|
|
3577
|
+
assertEquals(inboxLifecycle[0].attributes["activitypub.activity.type"], "https://www.w3.org/ns/activitystreams#Create");
|
|
3578
|
+
});
|
|
3454
3579
|
await t.step("records activitypub.inbox.activity retried on transient listener failure", async () => {
|
|
3455
3580
|
const kv = new MemoryKvStore();
|
|
3456
3581
|
const [meterProvider, recorder] = createTestMeterProvider();
|
|
@@ -3476,7 +3601,7 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3476
3601
|
activity: {
|
|
3477
3602
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3478
3603
|
type: "Create",
|
|
3479
|
-
id: "https://example
|
|
3604
|
+
id: "https://remote.example/activities/queued-retried",
|
|
3480
3605
|
actor: "https://remote.example/users/alice",
|
|
3481
3606
|
object: {
|
|
3482
3607
|
type: "Note",
|
|
@@ -3519,7 +3644,7 @@ test("FederationImpl.processQueuedTask()", async (t) => {
|
|
|
3519
3644
|
activity: {
|
|
3520
3645
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
3521
3646
|
type: "Create",
|
|
3522
|
-
id: "https://example
|
|
3647
|
+
id: "https://remote.example/activities/queued-abandoned",
|
|
3523
3648
|
actor: "https://remote.example/users/alice",
|
|
3524
3649
|
object: {
|
|
3525
3650
|
type: "Note",
|
|
@@ -7593,6 +7718,124 @@ test("ContextImpl.routeActivity() marks queued signed activities as non-LDS", as
|
|
|
7593
7718
|
assertEquals(inboxMessage.ldSignatureVerified, false);
|
|
7594
7719
|
assertEquals(inboxMessage.normalizedActivity, void 0);
|
|
7595
7720
|
});
|
|
7721
|
+
for (const queued of [false, true]) test(`ContextImpl.routeActivity() rejects a proof-signed cross-origin ID (queued: ${queued})`, async () => {
|
|
7722
|
+
const messages = [];
|
|
7723
|
+
const queue = {
|
|
7724
|
+
enqueue(message) {
|
|
7725
|
+
messages.push(message);
|
|
7726
|
+
return Promise.resolve();
|
|
7727
|
+
},
|
|
7728
|
+
async listen() {}
|
|
7729
|
+
};
|
|
7730
|
+
const federation = createFederation({
|
|
7731
|
+
kv: new MemoryKvStore(),
|
|
7732
|
+
documentLoaderFactory: () => mockDocumentLoader,
|
|
7733
|
+
contextLoaderFactory: () => mockDocumentLoader,
|
|
7734
|
+
queue: queued ? {
|
|
7735
|
+
inbox: queue,
|
|
7736
|
+
outbox: queue
|
|
7737
|
+
} : void 0,
|
|
7738
|
+
manuallyStartQueue: true
|
|
7739
|
+
});
|
|
7740
|
+
let listenerCalls = 0;
|
|
7741
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7742
|
+
listenerCalls++;
|
|
7743
|
+
});
|
|
7744
|
+
const signed = await signObject(new Create({
|
|
7745
|
+
id: new URL("https://victim.example/activities/1"),
|
|
7746
|
+
actor: ed25519Multikey.controllerId
|
|
7747
|
+
}), ed25519PrivateKey, ed25519Multikey.id, {
|
|
7748
|
+
contextLoader: mockDocumentLoader,
|
|
7749
|
+
documentLoader: mockDocumentLoader
|
|
7750
|
+
});
|
|
7751
|
+
assertFalse(await federation.createContext(new URL("https://local.example/")).routeActivity(null, signed));
|
|
7752
|
+
assertEquals(listenerCalls, 0);
|
|
7753
|
+
assertEquals(messages, []);
|
|
7754
|
+
});
|
|
7755
|
+
test("ContextImpl.routeActivity() rejects a missing actor before routing", async () => {
|
|
7756
|
+
const federation = createFederation({
|
|
7757
|
+
kv: new MemoryKvStore(),
|
|
7758
|
+
documentLoaderFactory: () => mockDocumentLoader,
|
|
7759
|
+
contextLoaderFactory: () => mockDocumentLoader
|
|
7760
|
+
});
|
|
7761
|
+
let listenerCalls = 0;
|
|
7762
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7763
|
+
listenerCalls++;
|
|
7764
|
+
});
|
|
7765
|
+
assertFalse(await federation.createContext(new URL("https://local.example/")).routeActivity(null, new Create({ id: new URL("https://remote.example/activities/1") })));
|
|
7766
|
+
assertEquals(listenerCalls, 0);
|
|
7767
|
+
});
|
|
7768
|
+
test("FederationImpl.processQueuedTask() rejects untrusted activity origins before KV access", async () => {
|
|
7769
|
+
class TrackingKvStore extends MemoryKvStore {
|
|
7770
|
+
reads = 0;
|
|
7771
|
+
writes = 0;
|
|
7772
|
+
get(key) {
|
|
7773
|
+
this.reads++;
|
|
7774
|
+
return super.get(key);
|
|
7775
|
+
}
|
|
7776
|
+
set(key, value, options) {
|
|
7777
|
+
this.writes++;
|
|
7778
|
+
return super.set(key, value, options);
|
|
7779
|
+
}
|
|
7780
|
+
}
|
|
7781
|
+
for (const activity of [{
|
|
7782
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
7783
|
+
id: "https://victim.example/activities/1",
|
|
7784
|
+
type: "Create",
|
|
7785
|
+
actor: "https://attacker.example/actor"
|
|
7786
|
+
}, {
|
|
7787
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
7788
|
+
id: "https://victim.example/activities/2",
|
|
7789
|
+
type: "Create"
|
|
7790
|
+
}]) {
|
|
7791
|
+
const kv = new TrackingKvStore();
|
|
7792
|
+
const federation = new FederationImpl({ kv });
|
|
7793
|
+
let listenerCalls = 0;
|
|
7794
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7795
|
+
listenerCalls++;
|
|
7796
|
+
});
|
|
7797
|
+
await federation.processQueuedTask(void 0, {
|
|
7798
|
+
type: "inbox",
|
|
7799
|
+
id: crypto.randomUUID(),
|
|
7800
|
+
baseUrl: "https://local.example",
|
|
7801
|
+
activity,
|
|
7802
|
+
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7803
|
+
attempt: 0,
|
|
7804
|
+
identifier: null,
|
|
7805
|
+
traceContext: {}
|
|
7806
|
+
});
|
|
7807
|
+
assertEquals(listenerCalls, 0);
|
|
7808
|
+
assertEquals(kv.reads, 0);
|
|
7809
|
+
assertEquals(kv.writes, 0);
|
|
7810
|
+
}
|
|
7811
|
+
const kv = new TrackingKvStore();
|
|
7812
|
+
const federation = new FederationImpl({
|
|
7813
|
+
kv,
|
|
7814
|
+
skipSignatureVerification: true
|
|
7815
|
+
});
|
|
7816
|
+
let listenerCalls = 0;
|
|
7817
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, () => {
|
|
7818
|
+
listenerCalls++;
|
|
7819
|
+
});
|
|
7820
|
+
await federation.processQueuedTask(void 0, {
|
|
7821
|
+
type: "inbox",
|
|
7822
|
+
id: crypto.randomUUID(),
|
|
7823
|
+
baseUrl: "https://local.example",
|
|
7824
|
+
activity: {
|
|
7825
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
7826
|
+
id: "https://victim.example/activities/opt-out",
|
|
7827
|
+
type: "Create",
|
|
7828
|
+
actor: "https://attacker.example/actor"
|
|
7829
|
+
},
|
|
7830
|
+
started: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7831
|
+
attempt: 0,
|
|
7832
|
+
identifier: null,
|
|
7833
|
+
traceContext: {}
|
|
7834
|
+
});
|
|
7835
|
+
assertEquals(listenerCalls, 1);
|
|
7836
|
+
assertEquals(kv.reads, 1);
|
|
7837
|
+
assertEquals(kv.writes, 1);
|
|
7838
|
+
});
|
|
7596
7839
|
test("ContextImpl.getCollectionUri()", () => {
|
|
7597
7840
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
7598
7841
|
const base = "https://example.com";
|
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-XZF9Yna_.cjs");
|
|
4
4
|
exports.CircuitBreaker = require_federation.CircuitBreaker;
|
|
5
5
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
6
6
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { _ as InboxVerificationKey, d as InboxProofPolicyFailureReason, f as InboxSignatureCheck, g as InboxVerificationFailureReason, h as InboxVerificationAttempt, m as InboxSignatureIdentity, p as InboxSignatureFailureReason } from "../key-nYGY4QB9.cjs";
|
|
3
|
-
import { $ as respondWithObject, $t as digest, A as InboxChallengePolicy, At as CustomCollectionDispatcher, B as createFederation, Bt as OutboxListener, C as FederationBenchmarkOptions, Ct as ActorKeyPairsDispatcher, D as FederationStartQueueOptions, Dt as CollectionDispatcher, E as FederationOptions, Et as CollectionCursor, F as PortableInboxForwardingOptions, Ft as MediaUploaderCallback, G as TaskEnqueueOptions, Gt as SharedInboxKeyDispatcher, H as createFederationBuilder, Ht as OutboxPermanentFailureHandler, I as Rfc6570Expression, It as NodeInfoDispatcher, J as CreateExponentialBackoffPolicyOptions, Jt as WebFingerLinksDispatcher, K as TaskHandler, Kt as UnverifiedActivityHandler, L as FederationKvPrefixes, Lt as ObjectAuthorizePredicate, M as MediaUploaderSetters, Mt as HashlinkMediaRequest, N as ObjectCallbackSetters, Nt as InboxErrorHandler, O as IdempotencyKeyCallback, Ot as CustomCollectionCounter, P as OutboxListenerSetters, Pt as InboxListener, Q as RespondWithObjectOptions, Qt as buildCollectionSynchronizationHeader, R as FederationOrigin, Rt as ObjectDispatcher, S as Federation, St as ActorHandleMapper, T as FederationFetchOptions, Tt as CollectionCounter, U as TaskDefinition, Ut as PortableActorIdMapper, V as Message, Vt as OutboxListenerErrorHandler, W as TaskDefinitionOptions, Wt as PortableCollectionOwnerMapper, X as RetryPolicy, Xt as SenderKeyPair, Y as RetryContext, Yt as SendActivityError, Z as createExponentialBackoffPolicy, Zt as PageItems, _ as ActorCallbackSetters, _t as NormalizedCircuitBreakerOptions, a as GetObjectOptions, an as InboxRequestReport, at as MessageQueueEnqueueOptions, b as CustomCollectionCallbackSetters, bt as ActorAliasMapper, c as IsSignedByAudienceOptions, ct as CircuitBreaker, d as ParseUriResult, dt as CircuitBreakerCreateOptions, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreakerFailurePolicy, g as SendActivityOptionsForCollection, gt as CircuitBreakerStateChange, h as SendActivityOptions, ht as CircuitBreakerState, i as GetActorOptions, in as InboxRequestOutcome, it as MessageQueueDepth, j as InboxListenerSetters, jt as HashlinkMediaDispatcher, k as IdempotencyStrategy, kt as CustomCollectionCursor, l as OutboxContext, lt as CircuitBreakerActivityDrop, m as RouteActivityOptions, mt as CircuitBreakerOptions, n as Context, nn as InboxJsonValue, nt as InProcessMessageQueueOptions, o as GetSignedKeyOptions, ot as MessageQueueListenOptions, p as RequestContext, pt as CircuitBreakerKvState, q as TaskRegistry, qt as UnverifiedActivityReason, r as ForwardActivityOptions, rn as InboxRequestFinishedHandler, rt as MessageQueue, s as InboxContext, st as ParallelMessageQueue, t as ActorKeyPair, tn as InboxAuthentication, tt as InProcessMessageQueue, u as ParseUriOptions, ut as CircuitBreakerBeforeSendDecision, v as CollectionCallbackSetters, vt as normalizeCircuitBreakerOptions, w as FederationBuilder, wt as AuthorizePredicate, x as Federatable, xt as ActorDispatcher, y as ConstructorWithTypeId, yt as parseCircuitBreakerKvState, z as FederationQueueOptions, zt as OutboxErrorHandler } from "../context-
|
|
3
|
+
import { $ as respondWithObject, $t as digest, A as InboxChallengePolicy, At as CustomCollectionDispatcher, B as createFederation, Bt as OutboxListener, C as FederationBenchmarkOptions, Ct as ActorKeyPairsDispatcher, D as FederationStartQueueOptions, Dt as CollectionDispatcher, E as FederationOptions, Et as CollectionCursor, F as PortableInboxForwardingOptions, Ft as MediaUploaderCallback, G as TaskEnqueueOptions, Gt as SharedInboxKeyDispatcher, H as createFederationBuilder, Ht as OutboxPermanentFailureHandler, I as Rfc6570Expression, It as NodeInfoDispatcher, J as CreateExponentialBackoffPolicyOptions, Jt as WebFingerLinksDispatcher, K as TaskHandler, Kt as UnverifiedActivityHandler, L as FederationKvPrefixes, Lt as ObjectAuthorizePredicate, M as MediaUploaderSetters, Mt as HashlinkMediaRequest, N as ObjectCallbackSetters, Nt as InboxErrorHandler, O as IdempotencyKeyCallback, Ot as CustomCollectionCounter, P as OutboxListenerSetters, Pt as InboxListener, Q as RespondWithObjectOptions, Qt as buildCollectionSynchronizationHeader, R as FederationOrigin, Rt as ObjectDispatcher, S as Federation, St as ActorHandleMapper, T as FederationFetchOptions, Tt as CollectionCounter, U as TaskDefinition, Ut as PortableActorIdMapper, V as Message, Vt as OutboxListenerErrorHandler, W as TaskDefinitionOptions, Wt as PortableCollectionOwnerMapper, X as RetryPolicy, Xt as SenderKeyPair, Y as RetryContext, Yt as SendActivityError, Z as createExponentialBackoffPolicy, Zt as PageItems, _ as ActorCallbackSetters, _t as NormalizedCircuitBreakerOptions, a as GetObjectOptions, an as InboxRequestReport, at as MessageQueueEnqueueOptions, b as CustomCollectionCallbackSetters, bt as ActorAliasMapper, c as IsSignedByAudienceOptions, ct as CircuitBreaker, d as ParseUriResult, dt as CircuitBreakerCreateOptions, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreakerFailurePolicy, g as SendActivityOptionsForCollection, gt as CircuitBreakerStateChange, h as SendActivityOptions, ht as CircuitBreakerState, i as GetActorOptions, in as InboxRequestOutcome, it as MessageQueueDepth, j as InboxListenerSetters, jt as HashlinkMediaDispatcher, k as IdempotencyStrategy, kt as CustomCollectionCursor, l as OutboxContext, lt as CircuitBreakerActivityDrop, m as RouteActivityOptions, mt as CircuitBreakerOptions, n as Context, nn as InboxJsonValue, nt as InProcessMessageQueueOptions, o as GetSignedKeyOptions, ot as MessageQueueListenOptions, p as RequestContext, pt as CircuitBreakerKvState, q as TaskRegistry, qt as UnverifiedActivityReason, r as ForwardActivityOptions, rn as InboxRequestFinishedHandler, rt as MessageQueue, s as InboxContext, st as ParallelMessageQueue, t as ActorKeyPair, tn as InboxAuthentication, tt as InProcessMessageQueue, u as ParseUriOptions, ut as CircuitBreakerBeforeSendDecision, v as CollectionCallbackSetters, vt as normalizeCircuitBreakerOptions, w as FederationBuilder, wt as AuthorizePredicate, x as Federatable, xt as ActorDispatcher, y as ConstructorWithTypeId, yt as parseCircuitBreakerKvState, z as FederationQueueOptions, zt as OutboxErrorHandler } from "../context-DPocjp1l.cjs";
|
|
4
4
|
import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "../kv-B2mzK5tl.cjs";
|
|
5
|
-
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-
|
|
5
|
+
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-DKGoPoQC.cjs";
|
|
6
6
|
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetObjectOptions, GetSignedKeyOptions, HashlinkMediaDispatcher, HashlinkMediaRequest, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxAuthentication, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxJsonValue, InboxListener, InboxListenerSetters, InboxProofPolicyFailureReason, InboxRequestFinishedHandler, InboxRequestOutcome, InboxRequestReport, InboxSignatureCheck, InboxSignatureFailureReason, InboxSignatureIdentity, InboxVerificationAttempt, InboxVerificationFailureReason, InboxVerificationKey, IsSignedByAudienceOptions, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriOptions, ParseUriResult, PortableActorIdMapper, PortableCollectionOwnerMapper, PortableInboxForwardingOptions, PortableRequest, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { _ as InboxVerificationKey, d as InboxProofPolicyFailureReason, f as InboxSignatureCheck, g as InboxVerificationFailureReason, h as InboxVerificationAttempt, m as InboxSignatureIdentity, p as InboxSignatureFailureReason } from "../key-DhsBxxZN.js";
|
|
3
|
-
import { $ as respondWithObject, $t as digest, A as InboxChallengePolicy, At as CustomCollectionDispatcher, B as createFederation, Bt as OutboxListener, C as FederationBenchmarkOptions, Ct as ActorKeyPairsDispatcher, D as FederationStartQueueOptions, Dt as CollectionDispatcher, E as FederationOptions, Et as CollectionCursor, F as PortableInboxForwardingOptions, Ft as MediaUploaderCallback, G as TaskEnqueueOptions, Gt as SharedInboxKeyDispatcher, H as createFederationBuilder, Ht as OutboxPermanentFailureHandler, I as Rfc6570Expression, It as NodeInfoDispatcher, J as CreateExponentialBackoffPolicyOptions, Jt as WebFingerLinksDispatcher, K as TaskHandler, Kt as UnverifiedActivityHandler, L as FederationKvPrefixes, Lt as ObjectAuthorizePredicate, M as MediaUploaderSetters, Mt as HashlinkMediaRequest, N as ObjectCallbackSetters, Nt as InboxErrorHandler, O as IdempotencyKeyCallback, Ot as CustomCollectionCounter, P as OutboxListenerSetters, Pt as InboxListener, Q as RespondWithObjectOptions, Qt as buildCollectionSynchronizationHeader, R as FederationOrigin, Rt as ObjectDispatcher, S as Federation, St as ActorHandleMapper, T as FederationFetchOptions, Tt as CollectionCounter, U as TaskDefinition, Ut as PortableActorIdMapper, V as Message, Vt as OutboxListenerErrorHandler, W as TaskDefinitionOptions, Wt as PortableCollectionOwnerMapper, X as RetryPolicy, Xt as SenderKeyPair, Y as RetryContext, Yt as SendActivityError, Z as createExponentialBackoffPolicy, Zt as PageItems, _ as ActorCallbackSetters, _t as NormalizedCircuitBreakerOptions, a as GetObjectOptions, an as InboxRequestReport, at as MessageQueueEnqueueOptions, b as CustomCollectionCallbackSetters, bt as ActorAliasMapper, c as IsSignedByAudienceOptions, ct as CircuitBreaker, d as ParseUriResult, dt as CircuitBreakerCreateOptions, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreakerFailurePolicy, g as SendActivityOptionsForCollection, gt as CircuitBreakerStateChange, h as SendActivityOptions, ht as CircuitBreakerState, i as GetActorOptions, in as InboxRequestOutcome, it as MessageQueueDepth, j as InboxListenerSetters, jt as HashlinkMediaDispatcher, k as IdempotencyStrategy, kt as CustomCollectionCursor, l as OutboxContext, lt as CircuitBreakerActivityDrop, m as RouteActivityOptions, mt as CircuitBreakerOptions, n as Context, nn as InboxJsonValue, nt as InProcessMessageQueueOptions, o as GetSignedKeyOptions, ot as MessageQueueListenOptions, p as RequestContext, pt as CircuitBreakerKvState, q as TaskRegistry, qt as UnverifiedActivityReason, r as ForwardActivityOptions, rn as InboxRequestFinishedHandler, rt as MessageQueue, s as InboxContext, st as ParallelMessageQueue, t as ActorKeyPair, tn as InboxAuthentication, tt as InProcessMessageQueue, u as ParseUriOptions, ut as CircuitBreakerBeforeSendDecision, v as CollectionCallbackSetters, vt as normalizeCircuitBreakerOptions, w as FederationBuilder, wt as AuthorizePredicate, x as Federatable, xt as ActorDispatcher, y as ConstructorWithTypeId, yt as parseCircuitBreakerKvState, z as FederationQueueOptions, zt as OutboxErrorHandler } from "../context-
|
|
3
|
+
import { $ as respondWithObject, $t as digest, A as InboxChallengePolicy, At as CustomCollectionDispatcher, B as createFederation, Bt as OutboxListener, C as FederationBenchmarkOptions, Ct as ActorKeyPairsDispatcher, D as FederationStartQueueOptions, Dt as CollectionDispatcher, E as FederationOptions, Et as CollectionCursor, F as PortableInboxForwardingOptions, Ft as MediaUploaderCallback, G as TaskEnqueueOptions, Gt as SharedInboxKeyDispatcher, H as createFederationBuilder, Ht as OutboxPermanentFailureHandler, I as Rfc6570Expression, It as NodeInfoDispatcher, J as CreateExponentialBackoffPolicyOptions, Jt as WebFingerLinksDispatcher, K as TaskHandler, Kt as UnverifiedActivityHandler, L as FederationKvPrefixes, Lt as ObjectAuthorizePredicate, M as MediaUploaderSetters, Mt as HashlinkMediaRequest, N as ObjectCallbackSetters, Nt as InboxErrorHandler, O as IdempotencyKeyCallback, Ot as CustomCollectionCounter, P as OutboxListenerSetters, Pt as InboxListener, Q as RespondWithObjectOptions, Qt as buildCollectionSynchronizationHeader, R as FederationOrigin, Rt as ObjectDispatcher, S as Federation, St as ActorHandleMapper, T as FederationFetchOptions, Tt as CollectionCounter, U as TaskDefinition, Ut as PortableActorIdMapper, V as Message, Vt as OutboxListenerErrorHandler, W as TaskDefinitionOptions, Wt as PortableCollectionOwnerMapper, X as RetryPolicy, Xt as SenderKeyPair, Y as RetryContext, Yt as SendActivityError, Z as createExponentialBackoffPolicy, Zt as PageItems, _ as ActorCallbackSetters, _t as NormalizedCircuitBreakerOptions, a as GetObjectOptions, an as InboxRequestReport, at as MessageQueueEnqueueOptions, b as CustomCollectionCallbackSetters, bt as ActorAliasMapper, c as IsSignedByAudienceOptions, ct as CircuitBreaker, d as ParseUriResult, dt as CircuitBreakerCreateOptions, et as respondWithObjectIfAcceptable, f as PortableRequest, ft as CircuitBreakerFailurePolicy, g as SendActivityOptionsForCollection, gt as CircuitBreakerStateChange, h as SendActivityOptions, ht as CircuitBreakerState, i as GetActorOptions, in as InboxRequestOutcome, it as MessageQueueDepth, j as InboxListenerSetters, jt as HashlinkMediaDispatcher, k as IdempotencyStrategy, kt as CustomCollectionCursor, l as OutboxContext, lt as CircuitBreakerActivityDrop, m as RouteActivityOptions, mt as CircuitBreakerOptions, n as Context, nn as InboxJsonValue, nt as InProcessMessageQueueOptions, o as GetSignedKeyOptions, ot as MessageQueueListenOptions, p as RequestContext, pt as CircuitBreakerKvState, q as TaskRegistry, qt as UnverifiedActivityReason, r as ForwardActivityOptions, rn as InboxRequestFinishedHandler, rt as MessageQueue, s as InboxContext, st as ParallelMessageQueue, t as ActorKeyPair, tn as InboxAuthentication, tt as InProcessMessageQueue, u as ParseUriOptions, ut as CircuitBreakerBeforeSendDecision, v as CollectionCallbackSetters, vt as normalizeCircuitBreakerOptions, w as FederationBuilder, wt as AuthorizePredicate, x as Federatable, xt as ActorDispatcher, y as ConstructorWithTypeId, yt as parseCircuitBreakerKvState, z as FederationQueueOptions, zt as OutboxErrorHandler } from "../context-2wLkQrjb.js";
|
|
4
4
|
import { a as MemoryKvStore, i as KvStoreSetOptions, n as KvStore, r as KvStoreListEntry, t as KvKey } from "../kv-B2mzK5tl.js";
|
|
5
|
-
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-
|
|
5
|
+
import { a as RouterOptions, i as RouterError, n as handleWebFinger, o as RouterRouteResult, r as Router, t as WebFingerHandlerParameters } from "../mod-Dm-7RdhR.js";
|
|
6
6
|
export { ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CircuitBreaker, CircuitBreakerActivityDrop, CircuitBreakerBeforeSendDecision, CircuitBreakerCreateOptions, CircuitBreakerFailurePolicy, CircuitBreakerKvState, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStateChange, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBenchmarkOptions, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetActorOptions, GetObjectOptions, GetSignedKeyOptions, HashlinkMediaDispatcher, HashlinkMediaRequest, IdempotencyKeyCallback, IdempotencyStrategy, InProcessMessageQueue, InProcessMessageQueueOptions, InboxAuthentication, InboxChallengePolicy, InboxContext, InboxErrorHandler, InboxJsonValue, InboxListener, InboxListenerSetters, InboxProofPolicyFailureReason, InboxRequestFinishedHandler, InboxRequestOutcome, InboxRequestReport, InboxSignatureCheck, InboxSignatureFailureReason, InboxSignatureIdentity, InboxVerificationAttempt, InboxVerificationFailureReason, InboxVerificationKey, IsSignedByAudienceOptions, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MediaUploaderCallback, MediaUploaderSetters, MemoryKvStore, Message, MessageQueue, MessageQueueDepth, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, NormalizedCircuitBreakerOptions, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxContext, OutboxErrorHandler, OutboxListener, OutboxListenerErrorHandler, OutboxListenerSetters, OutboxPermanentFailureHandler, PageItems, ParallelMessageQueue, ParseUriOptions, ParseUriResult, PortableActorIdMapper, PortableCollectionOwnerMapper, PortableInboxForwardingOptions, PortableRequest, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityError, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, TaskDefinition, TaskDefinitionOptions, TaskEnqueueOptions, TaskHandler, TaskRegistry, UnverifiedActivityHandler, UnverifiedActivityReason, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, normalizeCircuitBreakerOptions, parseCircuitBreakerKvState, respondWithObject, respondWithObjectIfAcceptable };
|
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-Mn7MeLDZ.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-DqV2dhgT.mjs";
|
|
11
|
+
import { o as signObject } from "../proof-BpQd-cat.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-BahtLJeT.mjs";
|
|
14
|
+
import { o as verifyCompoundPortableObjectProofs } from "../compound-proof-D5pMfQau.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-BpQd-cat.mjs";
|
|
12
|
+
import { f as verifyRequest, l as signRequest } from "../http-CO8l72H1.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-BahtLJeT.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-DqV2dhgT.mjs";
|
|
11
|
+
import { c as verifyObject, l as verifyPortableObjectProof } from "../proof-BpQd-cat.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-BahtLJeT.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-BpQd-cat.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-BahtLJeT.mjs";
|
|
13
|
+
import { t as verifyPortableObject } from "../portable-collection-DatZLGgt.mjs";
|
|
14
|
+
import { c as verifyServedPortableObjects } from "../compound-proof-D5pMfQau.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-BahtLJeT.mjs";
|
|
8
|
+
import { n as extractInboxes, t as SendActivityError } from "../send-CrgC-GYC.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,11 +8,11 @@ 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-DqV2dhgT.mjs";
|
|
12
|
+
import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http-CO8l72H1.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-BahtLJeT.mjs";
|
|
15
|
+
import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-Cb6Kalag.mjs";
|
|
16
16
|
import { t as ActivityListenerSet } from "../activity-listener-C-BSbKI7.mjs";
|
|
17
17
|
import { t as KvKeyCache } from "../keycache-D-MNltOk.mjs";
|
|
18
18
|
import { Create, CryptographicKey, Person } from "@fedify/vocab";
|
|
@@ -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-DqV2dhgT.mjs";
|
|
12
|
+
import { o as signObject } from "../proof-BpQd-cat.mjs";
|
|
13
|
+
import { l as signRequest, p as verifyRequestDetailed } from "../http-CO8l72H1.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-BahtLJeT.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-BahtLJeT.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-BpQd-cat.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-BahtLJeT.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-BpQd-cat.mjs";
|
|
12
|
+
import { l as signRequest } from "../http-CO8l72H1.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-BahtLJeT.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 { f as verifyRequest } from "../http-
|
|
14
|
+
import { f as verifyRequest } from "../http-CO8l72H1.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 { n as extractInboxes, r as sendActivity, t as SendActivityError } from "../send-
|
|
16
|
+
import { t as doesActorOwnKey } from "../owner-Cb6Kalag.mjs";
|
|
17
|
+
import { n as extractInboxes, r as sendActivity, t as SendActivityError } from "../send-CrgC-GYC.mjs";
|
|
18
18
|
import { t as FedifySpanExporter } from "../exporter-DThFfe7P.mjs";
|
|
19
19
|
import { configure, getLogger, reset, withContext } from "@logtape/logtape";
|
|
20
20
|
import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
|
|
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as MemoryKvStore } from "../../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-IG3pHfvZ.mjs";
|
|
6
6
|
import "../../testing-t8xDeJZ5.mjs";
|
|
7
|
-
import { o as createFederation } from "../../middleware-
|
|
7
|
+
import { o as createFederation } from "../../middleware-BahtLJeT.mjs";
|
|
8
8
|
import { n as ParallelMessageQueue } from "../../mq-Dm1Wmtm-.mjs";
|
|
9
9
|
import { configure, reset } from "@logtape/logtape";
|
|
10
10
|
import { delay } from "es-toolkit";
|
|
@@ -4,8 +4,8 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as MemoryKvStore } from "../../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { a as numberSchema, i as makeSchema, n as baseOptions, o as stringSchema, t as MockQueue } from "../../tasks-IG3pHfvZ.mjs";
|
|
6
6
|
import "../../testing-t8xDeJZ5.mjs";
|
|
7
|
-
import { o as createFederation } from "../../middleware-
|
|
8
|
-
import { r as createFederationBuilder } from "../../builder-
|
|
7
|
+
import { o as createFederation } from "../../middleware-BahtLJeT.mjs";
|
|
8
|
+
import { r as createFederationBuilder } from "../../builder-crKu0U3j.mjs";
|
|
9
9
|
import { t as TaskCodec } from "../../codec-C6rTrpIp.mjs";
|
|
10
10
|
import { t as InProcessMessageQueue } from "../../mq-Dm1Wmtm-.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-BjBxALiF.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 () => {
|
|
@@ -6,7 +6,7 @@ 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-BahtLJeT.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";
|