@fedify/fedify 2.4.0-dev.1583 → 2.4.0-dev.1618
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/{accept-CgDcxvjV.mjs → accept-8PiolDP7.mjs} +1 -1
- package/dist/{activity-listener-BeTGV3wc.mjs → activity-listener-BtTSxZWA.mjs} +1 -1
- package/dist/{assert-DvVHoIZ0.mjs → assert-CJ1KXcvv.mjs} +2 -2
- package/dist/{assert_equals-PBVKNMJd.mjs → assert_equals-BV7oLMxm.mjs} +1 -1
- package/dist/{assert_instance_of-CxoC8bVq.mjs → assert_instance_of-Q9KTBnrf.mjs} +2 -2
- package/dist/{assert_not_equals-C8vcTTA3.mjs → assert_not_equals-EPJPoxuf.mjs} +2 -2
- package/dist/{assert_rejects-DAdaaIWM.mjs → assert_rejects-EgstcQy5.mjs} +3 -3
- package/dist/{assert_strict_equals-BzqyKuYL.mjs → assert_strict_equals-Ec20AUwa.mjs} +2 -2
- package/dist/{assert_throws-zN79lgIC.mjs → assert_throws-NiFfqbnH.mjs} +2 -2
- package/dist/{builder-Doj1FmsW.mjs → builder-C4a7TAvq.mjs} +26 -4
- package/dist/{chunk-DDcVe30Y.cjs → chunk-Czpeue4M.cjs} +0 -1
- package/dist/{chunk-CRNNMoPX.js → chunk-D5IdezsZ.js} +1 -1
- package/dist/{circuit-breaker-hJBB6jwA.mjs → circuit-breaker-CBGyz5F7.mjs} +1 -1
- package/dist/{client-B_A6mfn3.mjs → client-CjF5IYQS.mjs} +1 -1
- package/dist/{codec-nfBU4Up4.mjs → codec-BBga-FWI.mjs} +1 -1
- package/dist/{collection-Dp5ky45w.mjs → collection-BIhlldqK.mjs} +1 -1
- package/dist/compat/mod.cjs +1 -2
- package/dist/compat/mod.d.cts +1 -1
- package/dist/compat/mod.d.ts +1 -1
- package/dist/compat/mod.js +2 -2
- package/dist/compat/outgoing-jsonld.test.d.mts +1 -1
- package/dist/compat/outgoing-jsonld.test.mjs +4 -4
- package/dist/compat/public-audience.test.d.mts +1 -1
- package/dist/compat/public-audience.test.mjs +4 -4
- package/dist/compat/transformers.test.d.mts +1 -1
- package/dist/compat/transformers.test.mjs +6 -6
- package/dist/{context-BBRTgkrs.mjs → context-BJXxPElm.mjs} +3 -2
- package/dist/{context-GfQA-CqB.d.ts → context-Zii1f5xS.d.ts} +97 -1
- package/dist/{context-BLe0NPtZ.d.cts → context-lxX6I7as.d.cts} +97 -1
- package/dist/{deno-Bkl9jNVs.mjs → deno-DepnPEgI.mjs} +2 -2
- package/dist/{docloader-f1XFaWWh.mjs → docloader-C_IefWRb.mjs} +3 -3
- package/dist/{esm-vrlUxr60.mjs → esm-yYQfPhIY.mjs} +1 -1
- package/dist/federation/builder.test.d.mts +1 -1
- package/dist/federation/builder.test.mjs +16 -6
- package/dist/federation/circuit-breaker.test.d.mts +1 -1
- package/dist/federation/circuit-breaker.test.mjs +6 -6
- package/dist/federation/collection.test.d.mts +1 -1
- package/dist/federation/collection.test.mjs +4 -4
- package/dist/federation/handler.test.d.mts +1 -1
- package/dist/federation/handler.test.mjs +14 -14
- package/dist/federation/idempotency.test.d.mts +1 -1
- package/dist/federation/idempotency.test.mjs +7 -7
- package/dist/federation/inbox.test.d.mts +1 -1
- package/dist/federation/inbox.test.mjs +4 -4
- package/dist/federation/keycache.test.d.mts +1 -1
- package/dist/federation/keycache.test.mjs +6 -6
- package/dist/federation/kv.test.d.mts +1 -1
- package/dist/federation/kv.test.mjs +4 -4
- package/dist/federation/metrics.test.d.mts +1 -1
- package/dist/federation/metrics.test.mjs +5 -5
- package/dist/federation/middleware.test.d.mts +1 -1
- package/dist/federation/middleware.test.mjs +470 -22
- package/dist/federation/mod.cjs +4 -3
- package/dist/federation/mod.d.cts +3 -3
- package/dist/federation/mod.d.ts +3 -3
- package/dist/federation/mod.js +2 -2
- package/dist/federation/mq.test.d.mts +1 -1
- package/dist/federation/mq.test.mjs +6 -6
- package/dist/federation/negotiation.test.d.mts +1 -1
- package/dist/federation/negotiation.test.mjs +5 -5
- package/dist/federation/retry.test.d.mts +1 -1
- package/dist/federation/retry.test.mjs +4 -4
- package/dist/federation/router.test.d.mts +1 -1
- package/dist/federation/router.test.mjs +6 -6
- package/dist/federation/send.test.d.mts +1 -1
- package/dist/federation/send.test.mjs +12 -12
- package/dist/federation/tasks/codec.test.d.mts +1 -1
- package/dist/federation/tasks/codec.test.mjs +2 -2
- package/dist/federation/tasks/enqueue.test.d.mts +1 -1
- package/dist/federation/tasks/enqueue.test.mjs +5 -5
- package/dist/federation/tasks/tasks.test.d.mts +1 -1
- package/dist/federation/tasks/tasks.test.mjs +7 -7
- package/dist/federation/temporal.test.d.mts +1 -1
- package/dist/federation/temporal.test.mjs +5 -5
- package/dist/federation/webfinger.test.d.mts +1 -1
- package/dist/federation/webfinger.test.mjs +7 -7
- package/dist/{http-BBkdx4Kd.mjs → http-CT7tcVBN.mjs} +5 -5
- package/dist/{http-jCq51U37.cjs → http-D5ylizT7.cjs} +4 -3
- package/dist/{http-CphHLbTC.js → http-DD07Erm7.js} +2 -2
- package/dist/{key-BBKNHoB9.mjs → key-C3t-PS3M.mjs} +3 -3
- package/dist/{keycache-CaOR6NYg.mjs → keycache-_DHqz5z_.mjs} +1 -1
- package/dist/{keys-CSYsOMFG.mjs → keys-Dbyd7bhl.mjs} +1 -1
- package/dist/{kv-CIvR3Non.mjs → kv-CXBAok3k.mjs} +1 -1
- package/dist/{kv-cache-D3KdEZAg.js → kv-cache-Bvv7Wp8h.js} +2 -2
- package/dist/{kv-cache-SVUAUYIs.mjs → kv-cache-CK273Baz.mjs} +2 -2
- package/dist/{kv-cache-B9Zvq4xB.cjs → kv-cache-DbFdquuM.cjs} +4 -3
- package/dist/{ld-DLyXLPDS.mjs → ld-D8wAPjxC.mjs} +4 -4
- package/dist/{metrics-BVRrGEXj.mjs → metrics-D1NrDWq-.mjs} +2 -2
- package/dist/{middleware-1AyOpRqz.mjs → middleware-BRunoF2v.mjs} +244 -24
- package/dist/{middleware-CzWfDAQY.mjs → middleware-CaP0k3AD.mjs} +2 -2
- package/dist/{middleware-B1jZw4xB.js → middleware-kQ-qwTDh.js} +249 -7
- package/dist/{middleware-DszmUorL.cjs → middleware-nmfhGFtV.cjs} +290 -39
- package/dist/{mod-Cmr39iWq.d.ts → mod-DLc2Ot6f.d.ts} +1 -1
- package/dist/{mod-B8Efb9qp.d.cts → mod-gOlPDuT8.d.cts} +1 -1
- package/dist/mod.cjs +7 -8
- package/dist/mod.d.cts +4 -4
- package/dist/mod.d.ts +4 -4
- package/dist/mod.js +8 -8
- package/dist/{mq-03vS-C9P.mjs → mq-llHKivST.mjs} +1 -1
- package/dist/{negotiation-m_L2nyS3.mjs → negotiation-RuwrPFqi.mjs} +1 -1
- package/dist/nodeinfo/client.test.d.mts +1 -1
- package/dist/nodeinfo/client.test.mjs +5 -5
- package/dist/nodeinfo/handler.test.d.mts +1 -1
- package/dist/nodeinfo/handler.test.mjs +6 -6
- package/dist/nodeinfo/mod.cjs +1 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/types.test.d.mts +1 -1
- package/dist/nodeinfo/types.test.mjs +5 -5
- package/dist/otel/exporter.test.d.mts +1 -1
- package/dist/otel/exporter.test.mjs +4 -4
- package/dist/otel/mod.cjs +1 -2
- package/dist/otel/mod.js +1 -1
- package/dist/{outgoing-jsonld-BNL8AC14.mjs → outgoing-jsonld-URuqsICz.mjs} +2 -2
- package/dist/{owner-BukzQW4T.mjs → owner-BjdNNmKF.mjs} +3 -3
- package/dist/{proof-IDHRILpm.js → proof--HiDnLAE.js} +15 -4
- package/dist/{proof-BVglyYRW.mjs → proof-1Xy5Ur-T.mjs} +19 -7
- package/dist/{proof-DkeR_Fsm.cjs → proof-DcOiiLDF.cjs} +16 -4
- package/dist/{public-audience-c9zmYKgA.mjs → public-audience-Cr5MsnMq.mjs} +1 -1
- package/dist/{retry-DI4O-zYl.mjs → retry-DgFqeS5k.mjs} +1 -1
- package/dist/runtime/mod.cjs +1 -2
- package/dist/runtime/mod.js +2 -2
- package/dist/{send-D04Hz77b.mjs → send-ClJ4UcZL.mjs} +4 -4
- package/dist/sig/accept.test.d.mts +1 -1
- package/dist/sig/accept.test.mjs +2 -2
- package/dist/sig/http.test.d.mts +1 -1
- package/dist/sig/http.test.mjs +10 -10
- package/dist/sig/key.test.d.mts +1 -1
- package/dist/sig/key.test.mjs +7 -7
- package/dist/sig/ld.test.d.mts +1 -1
- package/dist/sig/ld.test.mjs +8 -8
- package/dist/sig/mod.cjs +2 -3
- package/dist/sig/mod.js +3 -3
- package/dist/sig/owner.test.d.mts +1 -1
- package/dist/sig/owner.test.mjs +7 -7
- package/dist/sig/proof.test.d.mts +1 -1
- package/dist/sig/proof.test.mjs +146 -9
- package/dist/{std__assert-Dh6uLf_q.mjs → std__assert-B2NnY9bq.mjs} +5 -5
- package/dist/temporal-polyfill-BCdTHexd.cjs +3565 -0
- package/dist/{temporal-xcPM9mxe.mjs → temporal-wA-b1IAz.mjs} +2 -2
- package/dist/testing/mod.d.mts +97 -1
- package/dist/testing/mod.mjs +3 -3
- package/dist/{testing-Dy-WhqpN.mjs → testing-CO7ftO8A.mjs} +3 -3
- package/dist/{transformers-NeAONrAq.cjs → transformers-DGwl-hD1.cjs} +1 -2
- package/dist/{transformers-BGMIq1cs.js → transformers-DXze6FUB.js} +1 -1
- package/dist/{types-KC4QAoxe.cjs → types-CPym83zc.cjs} +1 -2
- package/dist/{types-BFowWFTT.mjs → types-CrtdVuDP.mjs} +1 -1
- package/dist/{types-CAY3OdLq.js → types-DC1pNgJA.js} +1 -1
- package/dist/utils/docloader.test.d.mts +1 -1
- package/dist/utils/docloader.test.mjs +8 -8
- package/dist/utils/kv-cache.test.d.mts +1 -1
- package/dist/utils/kv-cache.test.mjs +2 -2
- package/dist/utils/mod.cjs +1 -2
- package/dist/utils/mod.js +2 -2
- package/dist/vocab/cjs.test.d.mts +1 -1
- package/dist/vocab/cjs.test.mjs +14 -1
- package/dist/vocab/mod.cjs +0 -1
- package/dist/vocab/mod.js +1 -1
- package/package.json +8 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { o as validateCryptoKey } from "./key-
|
|
5
|
-
import { n as doubleKnock } from "./http-
|
|
4
|
+
import { o as validateCryptoKey } from "./key-C3t-PS3M.mjs";
|
|
5
|
+
import { n as doubleKnock } from "./http-CT7tcVBN.mjs";
|
|
6
6
|
import { getLogger } from "@logtape/logtape";
|
|
7
7
|
import { curry } from "es-toolkit";
|
|
8
8
|
import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as MemoryKvStore } from "../kv-
|
|
5
|
-
import { t as assertEquals } from "../assert_equals-
|
|
6
|
-
import { r as assertExists } from "../std__assert-
|
|
7
|
-
import { t as assertThrows } from "../assert_throws-
|
|
8
|
-
import { r as createFederationBuilder } from "../builder-
|
|
4
|
+
import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
6
|
+
import { r as assertExists } from "../std__assert-B2NnY9bq.mjs";
|
|
7
|
+
import { t as assertThrows } from "../assert_throws-NiFfqbnH.mjs";
|
|
8
|
+
import { r as createFederationBuilder } from "../builder-C4a7TAvq.mjs";
|
|
9
9
|
import { DisallowedOperatorError, DisallowedVarSpecModifierError, DuplicateRouteVariableError, RouteTemplateOptionsNotMatchedError, RouterError } from "@fedify/uri-template";
|
|
10
10
|
import { Activity, Note, Person } from "@fedify/vocab";
|
|
11
11
|
import { test } from "@fedify/fixture";
|
|
@@ -142,6 +142,16 @@ test("FederationBuilder", async (t) => {
|
|
|
142
142
|
const builder5 = createFederationBuilder();
|
|
143
143
|
assertThrows(() => builder5.setOutboxDispatcher("/users/{identifier:3}/outbox", () => ({ items: [] })), DisallowedVarSpecModifierError);
|
|
144
144
|
});
|
|
145
|
+
await t.step("should validate media uploader paths", () => {
|
|
146
|
+
const noop = () => Promise.resolve(new URL("https://example.com/"));
|
|
147
|
+
const builder = createFederationBuilder();
|
|
148
|
+
builder.setMediaUploader("/users/{identifier}/media", noop);
|
|
149
|
+
assertThrows(() => builder.setMediaUploader("/users/{identifier}/media2", noop), RouterError);
|
|
150
|
+
assertThrows(() => createFederationBuilder().setMediaUploader("/users/media", noop), RouteTemplateOptionsNotMatchedError);
|
|
151
|
+
assertThrows(() => createFederationBuilder().setMediaUploader("/users/{identifier}/media/{extra}", noop), RouterError);
|
|
152
|
+
assertThrows(() => createFederationBuilder().setMediaUploader("/users/{identifier*}/media", noop), DisallowedVarSpecModifierError);
|
|
153
|
+
assertThrows(() => createFederationBuilder().setMediaUploader("/users{?identifier}/media", noop), DisallowedOperatorError);
|
|
154
|
+
});
|
|
145
155
|
await t.step("rejects non-segment-boundary identifier operators at registration for required-identifier routes", () => {
|
|
146
156
|
assertThrows(() => createFederationBuilder().setActorDispatcher("/users{/identifier}", () => null), DisallowedOperatorError);
|
|
147
157
|
assertThrows(() => createFederationBuilder().setActorDispatcher("{/identifier}", () => null), DisallowedOperatorError);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as MemoryKvStore } from "../kv-
|
|
5
|
-
import { t as assertEquals } from "../assert_equals-
|
|
6
|
-
import "../std__assert-
|
|
7
|
-
import { t as assertThrows } from "../assert_throws-
|
|
8
|
-
import { n as normalizeCircuitBreakerOptions, r as parseCircuitBreakerKvState, t as CircuitBreaker } from "../circuit-breaker-
|
|
4
|
+
import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
6
|
+
import "../std__assert-B2NnY9bq.mjs";
|
|
7
|
+
import { t as assertThrows } from "../assert_throws-NiFfqbnH.mjs";
|
|
8
|
+
import { n as normalizeCircuitBreakerOptions, r as parseCircuitBreakerKvState, t as CircuitBreaker } from "../circuit-breaker-CBGyz5F7.mjs";
|
|
9
9
|
import { test } from "@fedify/fixture";
|
|
10
10
|
//#region src/federation/circuit-breaker.test.ts
|
|
11
11
|
var AlwaysConflictingKvStore = class extends MemoryKvStore {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as assertEquals } from "../assert_equals-
|
|
5
|
-
import "../std__assert-
|
|
6
|
-
import { n as digest, t as buildCollectionSynchronizationHeader } from "../collection-
|
|
4
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
5
|
+
import "../std__assert-B2NnY9bq.mjs";
|
|
6
|
+
import { n as digest, t as buildCollectionSynchronizationHeader } from "../collection-BIhlldqK.mjs";
|
|
7
7
|
import { test } from "@fedify/fixture";
|
|
8
8
|
import { decodeHex } from "byte-encodings/hex";
|
|
9
9
|
//#region src/federation/collection.test.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { n as createOutboxContext, r as createRequestContext, t as createInboxContext } from "../context-
|
|
5
|
-
import { t as MemoryKvStore } from "../kv-
|
|
6
|
-
import { t as assertEquals } from "../assert_equals-
|
|
7
|
-
import "../std__assert-
|
|
8
|
-
import { n as assertGreaterOrEqual, t as assertRejects } from "../assert_rejects-
|
|
9
|
-
import { t as assertInstanceOf } from "../assert_instance_of-
|
|
10
|
-
import { t as assert } from "../assert-
|
|
11
|
-
import { r as parseAcceptSignature } from "../accept-
|
|
12
|
-
import { s as signRequest } from "../http-
|
|
13
|
-
import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-
|
|
14
|
-
import { a as compactJsonLd, p as signJsonLd } from "../ld-
|
|
15
|
-
import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-
|
|
16
|
-
import { t as ActivityListenerSet } from "../activity-listener-
|
|
4
|
+
import { n as createOutboxContext, r as createRequestContext, t as createInboxContext } from "../context-BJXxPElm.mjs";
|
|
5
|
+
import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
|
|
6
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
7
|
+
import "../std__assert-B2NnY9bq.mjs";
|
|
8
|
+
import { n as assertGreaterOrEqual, t as assertRejects } from "../assert_rejects-EgstcQy5.mjs";
|
|
9
|
+
import { t as assertInstanceOf } from "../assert_instance_of-Q9KTBnrf.mjs";
|
|
10
|
+
import { t as assert } from "../assert-CJ1KXcvv.mjs";
|
|
11
|
+
import { r as parseAcceptSignature } from "../accept-8PiolDP7.mjs";
|
|
12
|
+
import { s as signRequest } from "../http-CT7tcVBN.mjs";
|
|
13
|
+
import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-Dbyd7bhl.mjs";
|
|
14
|
+
import { a as compactJsonLd, p as signJsonLd } from "../ld-D8wAPjxC.mjs";
|
|
15
|
+
import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-BRunoF2v.mjs";
|
|
16
|
+
import { t as ActivityListenerSet } from "../activity-listener-BtTSxZWA.mjs";
|
|
17
17
|
import { Activity, Create, Note, Person, Tombstone } from "@fedify/vocab";
|
|
18
18
|
import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
19
19
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as MemoryKvStore } from "../kv-
|
|
5
|
-
import { t as assertEquals } from "../assert_equals-
|
|
6
|
-
import "../std__assert-
|
|
7
|
-
import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-
|
|
8
|
-
import { r as signObject } from "../proof-
|
|
9
|
-
import { o as createFederation } from "../middleware-
|
|
4
|
+
import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
6
|
+
import "../std__assert-B2NnY9bq.mjs";
|
|
7
|
+
import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-Dbyd7bhl.mjs";
|
|
8
|
+
import { r as signObject } from "../proof-1Xy5Ur-T.mjs";
|
|
9
|
+
import { o as createFederation } from "../middleware-BRunoF2v.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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as assertEquals } from "../assert_equals-
|
|
5
|
-
import { t as assertThrows } from "../assert_throws-
|
|
6
|
-
import { t as ActivityListenerSet } from "../activity-listener-
|
|
4
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
5
|
+
import { t as assertThrows } from "../assert_throws-NiFfqbnH.mjs";
|
|
6
|
+
import { t as ActivityListenerSet } from "../activity-listener-BtTSxZWA.mjs";
|
|
7
7
|
import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
|
|
8
8
|
import { test } from "@fedify/fixture";
|
|
9
9
|
//#region src/federation/inbox.test.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as MemoryKvStore } from "../kv-
|
|
5
|
-
import { t as assertEquals } from "../assert_equals-
|
|
6
|
-
import { t as assertInstanceOf } from "../assert_instance_of-
|
|
7
|
-
import { t as assert } from "../assert-
|
|
8
|
-
import { t as KvKeyCache } from "../keycache-
|
|
4
|
+
import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
6
|
+
import { t as assertInstanceOf } from "../assert_instance_of-Q9KTBnrf.mjs";
|
|
7
|
+
import { t as assert } from "../assert-CJ1KXcvv.mjs";
|
|
8
|
+
import { t as KvKeyCache } from "../keycache-_DHqz5z_.mjs";
|
|
9
9
|
import { CryptographicKey, Multikey } from "@fedify/vocab";
|
|
10
10
|
import { test } from "@fedify/fixture";
|
|
11
11
|
//#region src/federation/keycache.test.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as MemoryKvStore } from "../kv-
|
|
5
|
-
import { t as assertEquals } from "../assert_equals-
|
|
6
|
-
import "../std__assert-
|
|
4
|
+
import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
6
|
+
import "../std__assert-B2NnY9bq.mjs";
|
|
7
7
|
import { test } from "@fedify/fixture";
|
|
8
8
|
//#region src/federation/kv.test.ts
|
|
9
9
|
test("MemoryKvStore", async (t) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "temporal-polyfill";
|
|
2
2
|
import "urlpattern-polyfill";
|
|
3
3
|
globalThis.addEventListener = () => {};
|
|
4
|
-
import { t as assertEquals } from "../assert_equals-
|
|
5
|
-
import "../std__assert-
|
|
6
|
-
import { t as assertRejects } from "../assert_rejects-
|
|
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-
|
|
4
|
+
import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
|
|
5
|
+
import "../std__assert-B2NnY9bq.mjs";
|
|
6
|
+
import { t as assertRejects } from "../assert_rejects-EgstcQy5.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-D1NrDWq-.mjs";
|
|
8
8
|
import { createTestMeterProvider, test } from "@fedify/fixture";
|
|
9
9
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
10
10
|
import { DataPointType, MeterProvider, MetricReader } from "@opentelemetry/sdk-metrics";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Temporal } from "
|
|
1
|
+
import { Temporal } from "temporal-polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|