@fedify/fedify 2.5.0-dev.2448 → 2.5.0-dev.2492
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 +3 -0
- package/dist/{builder-DbC8bn6k.mjs → builder-DphK9v7f.mjs} +2 -2
- package/dist/{client-D-XP_Ccb.d.cts → client-3InDZbba.d.cts} +0 -1
- package/dist/{client-D-XP_Ccb.d.ts → client-3InDZbba.d.ts} +0 -1
- package/dist/{client-CEnNz8O7.mjs → client-5SIFzW3q.mjs} +113 -64
- 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-heeXW2_A.mjs → compound-proof-cYtvlTgF.mjs} +2 -2
- package/dist/{context-GlHrzdSP.d.ts → context-DQJE9YfH.d.ts} +29 -3
- package/dist/{context-BazwQrHn.d.cts → context-DSuL3YWx.d.cts} +29 -3
- package/dist/{deno-Dpewt_jJ.mjs → deno-iOAA7iRN.mjs} +1 -1
- package/dist/docloader-DCZkiTeF.mjs +136 -0
- package/dist/{exporter-DThFfe7P.mjs → exporter-DVG68ozH.mjs} +36 -30
- package/dist/federation/builder.test.mjs +1 -1
- package/dist/federation/compound-fanout.test.mjs +6 -3
- package/dist/federation/handler-compound-proof.test.mjs +3 -3
- 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 +468 -33
- 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/outgoing-proof.test.mjs +9 -6
- 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 +11 -5
- package/dist/federation/portable-inbox.test.mjs +4 -4
- package/dist/federation/portable-parse-uri.test.mjs +1 -1
- package/dist/federation/portable-route-activity.test.mjs +2 -2
- package/dist/federation/portable.test.mjs +3 -3
- package/dist/federation/send.test.mjs +502 -93
- 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-D8YexkP1.cjs → federation-D0AZw_aw.cjs} +246 -108
- package/dist/{http-BZkyQIkb.mjs → http-BoJCMnjY.mjs} +204 -106
- package/dist/{http-BBr-VLil.js → http-ChXUU_3c.js} +178 -109
- package/dist/{http-CAl7Num5.cjs → http-kv1LZw-r.cjs} +179 -110
- package/dist/{inbox-wDuMKaFW.mjs → inbox-BjihTKLo.mjs} +2 -2
- package/dist/{inbox-view-NE9wXdLo.mjs → inbox-view-D-skypg-.mjs} +1 -1
- package/dist/{key-nYGY4QB9.d.cts → key-DbLNT-vA.d.ts} +1 -2
- package/dist/{key-DhsBxxZN.d.ts → key-DlHT4R6k.d.cts} +1 -2
- package/dist/{kv-cache-CTQSfkmp.mjs → kv-cache-Cmsyke4d.mjs} +1 -1
- package/dist/{kv-cache-U7uz5nx4.js → kv-cache-DQcte7ES.js} +73 -28
- package/dist/{kv-cache-CjgCOz3i.cjs → kv-cache-Ddh5sMxH.cjs} +72 -27
- package/dist/{ld-Cel1RRZ5.d.cts → ld-CWVpo_NM.d.cts} +1 -1
- package/dist/{ld-CQFuiah9.mjs → ld-CdvcOEXQ.mjs} +2 -2
- package/dist/{ld-CcuZ4NZa.d.ts → ld-Inagww4R.d.ts} +1 -1
- package/dist/{metrics-B-QxRSSR.mjs → metrics-CpxvUrBz.mjs} +1 -1
- package/dist/{middleware-P-AZEQMn.js → middleware-BHb5toqA.js} +247 -109
- package/dist/{middleware-BdlNa8BD.mjs → middleware-BKs2DLUF.mjs} +1 -1
- package/dist/{middleware-CuVa0UuS.mjs → middleware-CoBLrTKX.mjs} +89 -49
- package/dist/{mod-DvWOv2Ho.d.cts → mod-6TQ4UQZb.d.cts} +1 -1
- package/dist/{mod-BHQE-7WQ.d.ts → mod-B4kBw1-8.d.ts} +1 -1
- package/dist/{mod-DkhfZC1u.d.ts → mod-B7j30IQf.d.ts} +2 -9
- package/dist/{mod-B2783_3v.d.cts → mod-C1nT74IG.d.cts} +1 -1
- package/dist/{mod-DjZfJj9R.d.ts → mod-CIeBgsOC.d.ts} +1 -1
- package/dist/{mod-B5-wdzmJ.d.cts → mod-YvA4Rk8J.d.cts} +2 -9
- package/dist/mod.cjs +5 -5
- package/dist/mod.d.cts +7 -7
- package/dist/mod.d.ts +7 -7
- package/dist/mod.js +5 -5
- package/dist/nodeinfo/client.test.mjs +337 -19
- package/dist/nodeinfo/handler.test.mjs +1 -1
- package/dist/nodeinfo/mod.cjs +1 -1
- package/dist/nodeinfo/mod.d.cts +1 -1
- package/dist/nodeinfo/mod.d.ts +1 -1
- package/dist/nodeinfo/mod.js +1 -1
- package/dist/otel/exporter.test.mjs +257 -1
- package/dist/otel/mod.cjs +36 -30
- package/dist/otel/mod.d.cts +13 -0
- package/dist/otel/mod.d.ts +13 -0
- package/dist/otel/mod.js +36 -30
- package/dist/{owner-ccKkQOAf.mjs → owner-DTnVpUKA.mjs} +3 -3
- package/dist/{portable-collection-CndnpXfo.mjs → portable-collection-CJeYTL61.mjs} +2 -2
- package/dist/{portable-collection-TC-kvkVI.cjs → portable-collection-DciwBIia.cjs} +1 -1
- package/dist/{portable-collection-DUlQ3s2M.js → portable-collection-TmtpzD4E.js} +1 -1
- package/dist/{portable-key-D5tFOoV-.mjs → portable-key-DcYok4ki.mjs} +1 -1
- package/dist/{proof-DPoF06nz.mjs → proof-GH7Poos_.mjs} +3 -3
- package/dist/{send-CF44O1Df.mjs → send-BgGJh6pv.mjs} +174 -76
- 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 +553 -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.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 +4 -4
- 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-XlZ4Wb94.mjs → temporal-gJINzcL4.mjs} +1 -1
- package/dist/testing/kv.test.mjs +1 -1
- package/dist/testing/mod.d.mts +26 -0
- package/dist/{types-_S2_MeLF.js → types-DUjZb4i6.js} +112 -63
- package/dist/{types-poIao40f.cjs → types-hKCCjii0.cjs} +111 -62
- package/dist/utils/docloader.test.mjs +344 -36
- 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 +8 -8
- package/dist/docloader-CpsDyqVN.mjs +0 -91
|
@@ -189,33 +189,6 @@ var FedifySpanExporter = class {
|
|
|
189
189
|
record.spanId
|
|
190
190
|
];
|
|
191
191
|
await this.#kv.set(key, record, options);
|
|
192
|
-
await this.#updateTraceSummary(record, options);
|
|
193
|
-
}
|
|
194
|
-
async #setWithCasRetry(key, transform, options) {
|
|
195
|
-
if (this.#kv.cas != null) for (let attempt = 0; attempt < 3; attempt++) {
|
|
196
|
-
const existing = await this.#kv.get(key);
|
|
197
|
-
const newValue = transform(existing);
|
|
198
|
-
if (await this.#kv.cas(key, existing, newValue, options)) return;
|
|
199
|
-
}
|
|
200
|
-
const newValue = transform(await this.#kv.get(key));
|
|
201
|
-
await this.#kv.set(key, newValue, options);
|
|
202
|
-
}
|
|
203
|
-
async #updateTraceSummary(record, options) {
|
|
204
|
-
const summaryKey = [
|
|
205
|
-
...this.#keyPrefix,
|
|
206
|
-
"_summaries",
|
|
207
|
-
record.traceId
|
|
208
|
-
];
|
|
209
|
-
await this.#setWithCasRetry(summaryKey, (existing) => {
|
|
210
|
-
const activityCount = existing != null ? existing.activityCount + 1 : 1;
|
|
211
|
-
const activityTypes = existing != null ? existing.activityTypes.includes(record.activityType) ? existing.activityTypes : [...existing.activityTypes, record.activityType] : [record.activityType];
|
|
212
|
-
return {
|
|
213
|
-
traceId: existing?.traceId ?? record.traceId,
|
|
214
|
-
timestamp: existing?.timestamp ?? record.timestamp,
|
|
215
|
-
activityCount,
|
|
216
|
-
activityTypes
|
|
217
|
-
};
|
|
218
|
-
}, options);
|
|
219
192
|
}
|
|
220
193
|
/**
|
|
221
194
|
* Gets all activity records for a specific trace ID.
|
|
@@ -232,13 +205,46 @@ var FedifySpanExporter = class {
|
|
|
232
205
|
/**
|
|
233
206
|
* Gets recent traces with summary information.
|
|
234
207
|
*
|
|
208
|
+
* Each summary is computed directly from the activity records currently
|
|
209
|
+
* stored for each trace, rather than from a separately maintained
|
|
210
|
+
* counter. This guarantees that a trace is discoverable, and its
|
|
211
|
+
* `activityCount` accurate, as soon as its records are stored, even if
|
|
212
|
+
* an earlier attempt at summarizing it (in a previous version of this
|
|
213
|
+
* exporter) never completed, and that the count always reflects
|
|
214
|
+
* records that have not expired. It costs a full scan of every stored
|
|
215
|
+
* record on every call, including full inbound activity JSON. The
|
|
216
|
+
* `limit` option only truncates the returned summaries and does not
|
|
217
|
+
* reduce the scan. Callers that poll this method frequently should
|
|
218
|
+
* account for the total retained data when choosing a TTL and polling
|
|
219
|
+
* interval.
|
|
220
|
+
*
|
|
235
221
|
* @param options Options for the query.
|
|
236
222
|
* @returns An array of trace summaries.
|
|
237
223
|
*/
|
|
238
224
|
async getRecentTraces(options) {
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
for await (const entry of this.#kv.list(
|
|
225
|
+
const aggregates = /* @__PURE__ */ new Map();
|
|
226
|
+
const traceIdIndex = this.#keyPrefix.length;
|
|
227
|
+
for await (const entry of this.#kv.list(this.#keyPrefix)) {
|
|
228
|
+
const traceId = entry.key[traceIdIndex];
|
|
229
|
+
if (traceId == null || traceId === "_summaries") continue;
|
|
230
|
+
const record = entry.value;
|
|
231
|
+
if (record == null || typeof record.timestamp !== "string") continue;
|
|
232
|
+
const aggregate = aggregates.get(traceId);
|
|
233
|
+
if (aggregate == null) aggregates.set(traceId, {
|
|
234
|
+
timestamp: record.timestamp,
|
|
235
|
+
activityCount: 1,
|
|
236
|
+
activityTypes: [record.activityType]
|
|
237
|
+
});
|
|
238
|
+
else {
|
|
239
|
+
aggregate.activityCount++;
|
|
240
|
+
if (record.timestamp < aggregate.timestamp) aggregate.timestamp = record.timestamp;
|
|
241
|
+
if (!aggregate.activityTypes.includes(record.activityType)) aggregate.activityTypes.push(record.activityType);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const summaries = [...aggregates].map(([traceId, aggregate]) => ({
|
|
245
|
+
traceId,
|
|
246
|
+
...aggregate
|
|
247
|
+
}));
|
|
242
248
|
summaries.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
|
|
243
249
|
if (options?.limit != null) return summaries.slice(0, options.limit);
|
|
244
250
|
return summaries;
|
|
@@ -7,7 +7,7 @@ import { t as assertExists } from "../assert_exists-cffSpJ7X.mjs";
|
|
|
7
7
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
10
|
-
import { r as createFederationBuilder } from "../builder-
|
|
10
|
+
import { r as createFederationBuilder } from "../builder-DphK9v7f.mjs";
|
|
11
11
|
import { DisallowedOperatorError, DisallowedVarSpecModifierError, DuplicateRouteVariableError, RouteTemplateOptionsNotMatchedError, RouterError } from "@fedify/uri-template";
|
|
12
12
|
import { Activity, Note, Person } from "@fedify/vocab";
|
|
13
13
|
import { test } from "@fedify/fixture";
|
|
@@ -6,11 +6,11 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
|
-
import { x as exportJwk } from "../ld-
|
|
9
|
+
import { x as exportJwk } from "../ld-CdvcOEXQ.mjs";
|
|
10
10
|
import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
|
|
11
|
-
import { h as verifyProof, s as signObject } from "../proof-
|
|
11
|
+
import { h as verifyProof, s as signObject } from "../proof-GH7Poos_.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-CoBLrTKX.mjs";
|
|
14
14
|
import { Create, DataIntegrityProof, Note } from "@fedify/vocab";
|
|
15
15
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
16
16
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -68,6 +68,7 @@ test("fanout delivery keeps an embedded signed child intact", async () => {
|
|
|
68
68
|
kv: new MemoryKvStore(),
|
|
69
69
|
contextLoaderFactory: () => mockDocumentLoader
|
|
70
70
|
});
|
|
71
|
+
federation.allowPrivateAddress = true;
|
|
71
72
|
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox");
|
|
72
73
|
const message = {
|
|
73
74
|
type: "fanout",
|
|
@@ -139,6 +140,7 @@ test("forced fanout signs before serializing so the child survives", async () =>
|
|
|
139
140
|
manuallyStartQueue: true,
|
|
140
141
|
contextLoaderFactory: () => mockDocumentLoader
|
|
141
142
|
});
|
|
143
|
+
federation.allowPrivateAddress = true;
|
|
142
144
|
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox");
|
|
143
145
|
await federation.createContext(new URL("https://example.com/")).sendActivity({
|
|
144
146
|
keyId: childKeyId,
|
|
@@ -203,6 +205,7 @@ test("an already signed activity keeps its single proof through fanout", async (
|
|
|
203
205
|
manuallyStartQueue: true,
|
|
204
206
|
contextLoaderFactory: () => mockDocumentLoader
|
|
205
207
|
});
|
|
208
|
+
federation.allowPrivateAddress = true;
|
|
206
209
|
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox");
|
|
207
210
|
await federation.createContext(new URL("https://example.com/")).sendActivity({
|
|
208
211
|
keyId: childKeyId,
|
|
@@ -5,10 +5,10 @@ import { r as createRequestContext, t as createInboxContext } from "../context-C
|
|
|
5
5
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
6
6
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
7
7
|
import "../std__assert-DvMDRPes.mjs";
|
|
8
|
-
import { a as compactJsonLd, h as verifyCompactJsonLd, m as signJsonLd } from "../ld-
|
|
9
|
-
import {
|
|
8
|
+
import { a as compactJsonLd, h as verifyCompactJsonLd, m as signJsonLd } from "../ld-CdvcOEXQ.mjs";
|
|
9
|
+
import { u as signRequest } from "../http-BoJCMnjY.mjs";
|
|
10
10
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
11
|
-
import { f as handleInbox, o as createFederation } from "../middleware-
|
|
11
|
+
import { f as handleInbox, o as createFederation } from "../middleware-CoBLrTKX.mjs";
|
|
12
12
|
import { t as ActivityListenerSet } from "../activity-listener-CELFAodc.mjs";
|
|
13
13
|
import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
|
|
14
14
|
import { Create, CryptographicKey, Multikey, Person, Update } from "@fedify/vocab";
|
|
@@ -11,13 +11,13 @@ import "../std__assert-DvMDRPes.mjs";
|
|
|
11
11
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
12
12
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
13
13
|
import { r as parseAcceptSignature } from "../accept-CPVqki78.mjs";
|
|
14
|
-
import { T as generateCryptoKeyPair, a as compactJsonLd, m as signJsonLd } from "../ld-
|
|
15
|
-
import { s as signObject } from "../proof-
|
|
16
|
-
import {
|
|
14
|
+
import { T as generateCryptoKeyPair, a as compactJsonLd, m as signJsonLd } from "../ld-CdvcOEXQ.mjs";
|
|
15
|
+
import { s as signObject } from "../proof-GH7Poos_.mjs";
|
|
16
|
+
import { u as signRequest } from "../http-BoJCMnjY.mjs";
|
|
17
17
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
18
|
-
import { d as handleCustomCollection, f as handleInbox, g as respondWithObjectIfAcceptable, h as respondWithObject, l as handleActor, m as handleOutbox, o as createFederation, p as handleObject, u as handleCollection } from "../middleware-
|
|
18
|
+
import { d as handleCustomCollection, f as handleInbox, g as respondWithObjectIfAcceptable, h as respondWithObject, l as handleActor, m as handleOutbox, o as createFederation, p as handleObject, u as handleCollection } from "../middleware-CoBLrTKX.mjs";
|
|
19
19
|
import { t as ActivityListenerSet } from "../activity-listener-CELFAodc.mjs";
|
|
20
|
-
import { t as FedifySpanExporter } from "../exporter-
|
|
20
|
+
import { t as FedifySpanExporter } from "../exporter-DVG68ozH.mjs";
|
|
21
21
|
import { configure, getLogger, reset, withContext } from "@logtape/logtape";
|
|
22
22
|
import { Activity, Create, CryptographicKey, Multikey, Note, Person, Tombstone } from "@fedify/vocab";
|
|
23
23
|
import { FetchError, parseIri } from "@fedify/vocab-runtime";
|
|
@@ -10,8 +10,8 @@ import "../std__assert-DvMDRPes.mjs";
|
|
|
10
10
|
import { t as assertStrictEquals } from "../assert_strict_equals-CYvBmkpC.mjs";
|
|
11
11
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
12
12
|
import { r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
|
|
13
|
-
import { o as createFederation, x as parseHashlinkGatewayRequest } from "../middleware-
|
|
14
|
-
import { r as createFederationBuilder } from "../builder-
|
|
13
|
+
import { o as createFederation, x as parseHashlinkGatewayRequest } from "../middleware-CoBLrTKX.mjs";
|
|
14
|
+
import { r as createFederationBuilder } from "../builder-DphK9v7f.mjs";
|
|
15
15
|
import { n as RouterError } from "../router-u5O5KCQr.mjs";
|
|
16
16
|
import { Note } from "@fedify/vocab";
|
|
17
17
|
import { computeDigestMultibase, encodeMultibase, exportDidKey } from "@fedify/vocab-runtime";
|
|
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
5
5
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
6
6
|
import "../std__assert-DvMDRPes.mjs";
|
|
7
|
-
import { s as signObject } from "../proof-
|
|
7
|
+
import { s as signObject } from "../proof-GH7Poos_.mjs";
|
|
8
8
|
import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
9
|
-
import { o as createFederation } from "../middleware-
|
|
9
|
+
import { o as createFederation } from "../middleware-CoBLrTKX.mjs";
|
|
10
10
|
import { Create, Follow, Person } from "@fedify/vocab";
|
|
11
11
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
12
12
|
//#region src/federation/idempotency.test.ts
|
|
@@ -7,12 +7,12 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
7
7
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
8
8
|
import "../std__assert-DvMDRPes.mjs";
|
|
9
9
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
10
|
-
import { m as signJsonLd } from "../ld-
|
|
11
|
-
import { s as signObject } from "../proof-
|
|
12
|
-
import {
|
|
10
|
+
import { m as signJsonLd } from "../ld-CdvcOEXQ.mjs";
|
|
11
|
+
import { s as signObject } from "../proof-GH7Poos_.mjs";
|
|
12
|
+
import { u as signRequest } from "../http-BoJCMnjY.mjs";
|
|
13
13
|
import { a as rsaPrivateKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
|
|
14
|
-
import { o as createFederation } from "../middleware-
|
|
15
|
-
import { c as expandDocument } from "../inbox-view-
|
|
14
|
+
import { o as createFederation } from "../middleware-CoBLrTKX.mjs";
|
|
15
|
+
import { c as expandDocument } from "../inbox-view-D-skypg-.mjs";
|
|
16
16
|
import { Create, FeatureRequest, Person } from "@fedify/vocab";
|
|
17
17
|
import { FetchError, encodeMultibase, preloadedContexts } from "@fedify/vocab-runtime";
|
|
18
18
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -2,12 +2,12 @@ import "temporal-polyfill";
|
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
4
|
import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
|
|
5
|
-
import { m as signJsonLd } from "../ld-
|
|
6
|
-
import { s as signObject } from "../proof-
|
|
7
|
-
import {
|
|
5
|
+
import { m as signJsonLd } from "../ld-CdvcOEXQ.mjs";
|
|
6
|
+
import { s as signObject } from "../proof-GH7Poos_.mjs";
|
|
7
|
+
import { u as signRequest } from "../http-BoJCMnjY.mjs";
|
|
8
8
|
import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
|
|
9
|
-
import { o as createFederation } from "../middleware-
|
|
10
|
-
import { r as createFederationBuilder } from "../builder-
|
|
9
|
+
import { o as createFederation } from "../middleware-CoBLrTKX.mjs";
|
|
10
|
+
import { r as createFederationBuilder } from "../builder-DphK9v7f.mjs";
|
|
11
11
|
import { Create, Person } from "@fedify/vocab";
|
|
12
12
|
import { exportDidKey, parseIri } from "@fedify/vocab-runtime";
|
|
13
13
|
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
@@ -6,7 +6,7 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
|
6
6
|
import "../std__assert-DvMDRPes.mjs";
|
|
7
7
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
8
8
|
import { t as assert } from "../assert-D1Eafmd_.mjs";
|
|
9
|
-
import { a as createSnapshotOnlyLoader, c as expandDocument, f as restoreVerifiedActivityView, i as createReleasableLoader, l as getActorPresence, n as buildVerifiedActivityView, p as serializeContextSnapshot, r as createContextSnapshot, s as deserializeContextSnapshot, t as ContextSnapshotMissError, u as getPropertyValues } from "../inbox-view-
|
|
9
|
+
import { a as createSnapshotOnlyLoader, c as expandDocument, f as restoreVerifiedActivityView, i as createReleasableLoader, l as getActorPresence, n as buildVerifiedActivityView, p as serializeContextSnapshot, r as createContextSnapshot, s as deserializeContextSnapshot, t as ContextSnapshotMissError, u as getPropertyValues } from "../inbox-view-D-skypg-.mjs";
|
|
10
10
|
import { getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
|
|
11
11
|
import { test } from "@fedify/fixture";
|
|
12
12
|
//#region src/federation/inbox-view.test.ts
|
|
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
|
5
5
|
import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
|
|
6
6
|
import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
|
|
7
7
|
import { t as ActivityListenerSet } from "../activity-listener-CELFAodc.mjs";
|
|
8
|
-
import { t as actorsHaveSameOrigin } from "../inbox-
|
|
8
|
+
import { t as actorsHaveSameOrigin } from "../inbox-BjihTKLo.mjs";
|
|
9
9
|
import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
|
|
10
10
|
import { parseIri } from "@fedify/vocab-runtime";
|
|
11
11
|
import { test } from "@fedify/fixture";
|
|
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
|
|
|
4
4
|
import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
|
|
5
5
|
import "../std__assert-DvMDRPes.mjs";
|
|
6
6
|
import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
|
|
7
|
-
import { _ as recordKeyLookup, a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-
|
|
7
|
+
import { _ as recordKeyLookup, a as instrumentDocumentLoader, b as recordWebFingerHandle, c as recordCircuitBreakerStateChange, d as recordCollectionRequest, f as recordCollectionTotalItems, g as recordInboxActivity, h as recordFanoutRecipients, i as getRemoteHost, l as recordCollectionDispatchDuration, m as recordDocumentFetch, p as recordDocumentCache, r as getFederationMetrics, t as classifyFetchError, u as recordCollectionPageItems, v as recordOutboxActivity, x as registerQueueDepthGauge, y as recordOutboxEnqueue } from "../metrics-CpxvUrBz.mjs";
|
|
8
8
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
9
9
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|
|
10
10
|
import { DataPointType, MeterProvider, MetricReader } from "@opentelemetry/sdk-metrics";
|