@fedify/fedify 2.0.0-pr.435.1673 → 2.0.0-pr.445.1694
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/{actor-CNUje03O.cjs → actor-CwZ2m5rG.cjs} +7263 -2440
- package/dist/{actor-DMgu-ZjT.d.cts → actor-D6K058Tb.d.cts} +1 -1
- package/dist/{actor-BxAu0qet.js → actor-D8gCwLzv.js} +1 -1
- package/dist/{actor-m_ko-86v.js → actor-DoMcqXsW.js} +7263 -2440
- package/dist/{actor-C22bXuuC.d.ts → actor-T6RyhRgk.d.ts} +1 -1
- package/dist/{authdocloader-nRFL9luh.js → authdocloader-Cv_qEn1G.js} +3 -3
- package/dist/{authdocloader-Chl2nuOI.js → authdocloader-DYTNpaMA.js} +3 -3
- package/dist/{authdocloader-D_3mtAjX.cjs → authdocloader-bsmVF6eO.cjs} +3 -3
- package/dist/{builder-C8Of4dPy.js → builder-1_skw-d2.js} +10 -4
- package/dist/{client-yGBH5stP.js → client-D5CBsPrc.js} +1 -1
- package/dist/compat/mod.d.cts +7 -7
- package/dist/compat/mod.d.ts +7 -7
- package/dist/compat/transformers.test.js +16 -16
- package/dist/{context-CQsAT7xk.d.ts → context-DBKpNBnc.d.ts} +67 -12
- package/dist/{context-tVOQ76fi.d.cts → context-DiqjMRef.d.cts} +67 -12
- package/dist/{docloader-SZjTrl6Z.cjs → docloader-CYnQRIXv.cjs} +1 -1
- package/dist/{docloader-_WdHTWQR.js → docloader-Czl3xV10.js} +1 -1
- package/dist/{esm-e_G_xo95.js → esm-Dl5T1RNE.js} +1 -1
- package/dist/federation/builder.test.js +5 -5
- package/dist/federation/collection.test.js +3 -3
- package/dist/federation/handler.test.js +17 -17
- package/dist/federation/idempotency.test.d.ts +3 -0
- package/dist/federation/idempotency.test.js +202 -0
- package/dist/federation/inbox.test.js +4 -4
- package/dist/federation/keycache.test.js +4 -4
- package/dist/federation/kv.test.js +3 -3
- package/dist/federation/middleware.test.js +24 -47
- package/dist/federation/mod.cjs +10 -10
- package/dist/federation/mod.d.cts +7 -7
- package/dist/federation/mod.d.ts +7 -7
- package/dist/federation/mod.js +10 -10
- package/dist/federation/mq.test.js +3 -3
- package/dist/federation/negotiation.test.js +3 -3
- package/dist/federation/retry.test.js +3 -3
- package/dist/federation/router.test.js +3 -3
- package/dist/federation/send.test.js +10 -10
- package/dist/fixtures/media.example.com/avatars/test-avatar.jpg.json +6 -0
- package/dist/{http-DREvFalF.cjs → http-CAusBl_3.cjs} +3 -3
- package/dist/{http-BpoEurUR.js → http-C_Qc2neP.js} +3 -3
- package/dist/{http-BEo67UOx.js → http-CuS-d4U0.js} +2 -2
- package/dist/{http-BS6766zs.d.cts → http-D-e6AFwR.d.cts} +1 -1
- package/dist/{http-DqSNLFNY.d.ts → http-D6Uj2x2y.d.ts} +1 -1
- package/dist/{inbox-D-B5xFtJ.js → inbox-IETv_Qez.js} +24 -7
- package/dist/{key-Cf8KTg-A.js → key-BNJQQm3h.js} +2 -2
- package/dist/{key-DJpcumqB.js → key-C_ruQbbl.js} +4 -4
- package/dist/key-DIMJMxf4.cjs +10 -0
- package/dist/{key-Cps8Sv3N.js → key-DnqhSgAv.js} +2 -2
- package/dist/{key-DqrTz8Xq.js → key-DpFjiItf.js} +3 -3
- package/dist/{key-JqiQvcq1.cjs → key-DuXv64tg.cjs} +2 -2
- package/dist/{keycache-D_Q1fPV0.js → keycache-CSBkusP8.js} +1 -1
- package/dist/{keys-F0jh2GNR.js → keys-D3_MDK7n.js} +1 -1
- package/dist/{ld-CXygHn_m.js → ld-Isot0tiW.js} +2 -2
- package/dist/{lookup-DuqY2_In.js → lookup-CbtuFbtg.js} +21 -12
- package/dist/{lookup-C-Y0Ep1a.cjs → lookup-D6dro5Au.cjs} +1 -1
- package/dist/{lookup-C6WSLjPE.js → lookup-Dhm78GlK.js} +1 -1
- package/dist/middleware-BpR6186a.js +26 -0
- package/dist/{middleware-2qNNXYEE.js → middleware-BuHr2fzh.js} +52 -29
- package/dist/middleware-DDMxdtWM.cjs +17 -0
- package/dist/{middleware-CMiUxZ6O.js → middleware-DQYscW90.js} +26 -26
- package/dist/{middleware-BsFAFlnZ.cjs → middleware-Dgmdgrvb.cjs} +52 -29
- package/dist/middleware-T-knSMwl.js +17 -0
- package/dist/{mod-Drmz72EK.d.ts → mod-BhUKmBJD.d.ts} +2 -2
- package/dist/{mod-DBQAI4v9.d.cts → mod-Bpb5QLaZ.d.cts} +2 -2
- package/dist/{mod-TFoH2Ql8.d.ts → mod-CerN_Sza.d.ts} +1 -1
- package/dist/{mod-Dc_-mf8s.d.cts → mod-Cj1tHXBR.d.cts} +1 -1
- package/dist/{mod-evzlRVZq.d.cts → mod-CxkWO3Mg.d.cts} +19 -1
- package/dist/{mod-B26zRlH1.d.ts → mod-D_y2y32N.d.ts} +2 -2
- package/dist/{mod-BClfg3ej.d.cts → mod-Djzcw2ry.d.cts} +2 -2
- package/dist/{mod-Cxt4Kpf6.d.ts → mod-DlU8ISoa.d.ts} +19 -1
- package/dist/mod.cjs +10 -10
- package/dist/mod.d.cts +10 -10
- package/dist/mod.d.ts +10 -10
- package/dist/mod.js +10 -10
- package/dist/nodeinfo/client.test.js +5 -5
- package/dist/nodeinfo/handler.test.js +16 -16
- package/dist/nodeinfo/mod.cjs +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-B-7Ptt_m.d.cts → owner-BN_tO3cY.d.cts} +2 -2
- package/dist/{owner-D2fTlp_x.js → owner-ChSL4aJ7.js} +2 -2
- package/dist/{owner-CQPnQVtf.d.ts → owner-hd9lvQcP.d.ts} +2 -2
- package/dist/{proof-CHM9su4L.js → proof-BiSCuwyA.js} +3 -3
- package/dist/{proof-C4Y4gJcm.cjs → proof-ONNmhInb.cjs} +3 -3
- package/dist/{proof-kEUjWRNJ.js → proof-x3IBewan.js} +2 -2
- package/dist/runtime/authdocloader.test.js +9 -9
- package/dist/runtime/docloader.test.js +4 -4
- package/dist/runtime/key.test.js +5 -5
- package/dist/runtime/langstr.test.js +3 -3
- package/dist/runtime/link.test.js +3 -3
- package/dist/runtime/mod.cjs +6 -6
- package/dist/runtime/mod.d.cts +3 -3
- package/dist/runtime/mod.d.ts +3 -3
- package/dist/runtime/mod.js +6 -6
- package/dist/runtime/multibase/multibase.test.js +3 -3
- package/dist/runtime/url.test.js +3 -3
- package/dist/{send-Utq2Jm0I.js → send-D5fjmUEj.js} +2 -2
- package/dist/sig/http.test.js +8 -8
- package/dist/sig/key.test.js +6 -6
- package/dist/sig/ld.test.js +7 -7
- package/dist/sig/mod.cjs +6 -6
- package/dist/sig/mod.d.cts +5 -5
- package/dist/sig/mod.d.ts +5 -5
- package/dist/sig/mod.js +6 -6
- package/dist/sig/owner.test.js +7 -7
- package/dist/sig/proof.test.js +7 -7
- package/dist/testing/docloader.test.js +3 -3
- package/dist/testing/mod.d.ts +272 -0
- package/dist/testing/mod.js +3 -3
- package/dist/{testing-DUpTIvNE.js → testing-tWr1VQxx.js} +2 -2
- package/dist/{type-BYN6Ax2M.js → type-DaUr3Il7.js} +6943 -2120
- package/dist/{types-BBpQe860.cjs → types-D2Nyz0tR.cjs} +1 -1
- package/dist/{types-BXkh8ctL.js → types-DQuSDtDg.js} +1 -1
- package/dist/vocab/actor.test.js +5 -5
- package/dist/vocab/lookup.test.js +255 -5
- package/dist/vocab/mod.cjs +4 -4
- package/dist/vocab/mod.d.cts +3 -3
- package/dist/vocab/mod.d.ts +3 -3
- package/dist/vocab/mod.js +4 -4
- package/dist/vocab/type.test.js +3 -3
- package/dist/vocab/vocab.test.js +397 -8
- package/dist/{vocab-SOE1ifCr.d.ts → vocab-BI0Ak5lL.d.ts} +290 -0
- package/dist/{vocab-DWZQ7gVQ.cjs → vocab-Dd4VMrr0.cjs} +23 -14
- package/dist/{vocab-DJTYMqyU.d.cts → vocab-Dw1-yVGg.d.cts} +290 -0
- package/dist/{vocab-PKJB4DyY.js → vocab-w--qk7HF.js} +23 -14
- package/dist/webfinger/handler.test.js +16 -16
- package/dist/webfinger/lookup.test.js +4 -4
- package/dist/webfinger/mod.cjs +2 -2
- package/dist/webfinger/mod.js +2 -2
- package/dist/x/cfworkers.test.js +3 -3
- package/dist/x/hono.d.cts +6 -6
- package/dist/x/hono.d.ts +6 -6
- package/dist/x/sveltekit.d.cts +6 -6
- package/dist/x/sveltekit.d.ts +6 -6
- package/package.json +1 -1
- package/dist/key-BvvbahfP.cjs +0 -10
- package/dist/middleware-BD1IE5O5.js +0 -26
- package/dist/middleware-BuZrvrDv.js +0 -17
- package/dist/middleware-h_3nRr8m.cjs +0 -17
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
3
|
import { GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
|
4
|
-
import { Application, Group, Organization, Person, Service } from "./vocab-
|
4
|
+
import { Application, Group, Organization, Person, Service } from "./vocab-BI0Ak5lL.js";
|
5
5
|
import { TracerProvider } from "@opentelemetry/api";
|
6
6
|
|
7
7
|
//#region src/vocab/actor.d.ts
|
@@ -2,9 +2,9 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-
|
6
|
-
import { validateCryptoKey } from "./key-
|
7
|
-
import { doubleKnock } from "./http-
|
5
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-Czl3xV10.js";
|
6
|
+
import { validateCryptoKey } from "./key-BNJQQm3h.js";
|
7
|
+
import { doubleKnock } from "./http-C_Qc2neP.js";
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
9
9
|
|
10
10
|
//#region src/runtime/authdocloader.ts
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-
|
7
|
-
import { validateCryptoKey } from "./key-
|
8
|
-
import { doubleKnock } from "./http-
|
6
|
+
import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./type-DaUr3Il7.js";
|
7
|
+
import { validateCryptoKey } from "./key-DnqhSgAv.js";
|
8
|
+
import { doubleKnock } from "./http-CuS-d4U0.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
|
11
11
|
//#region src/runtime/authdocloader.ts
|
@@ -3,9 +3,9 @@
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
4
4
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
6
|
-
const require_docloader = require('./docloader-
|
7
|
-
const require_key = require('./key-
|
8
|
-
const require_http = require('./http-
|
6
|
+
const require_docloader = require('./docloader-CYnQRIXv.cjs');
|
7
|
+
const require_key = require('./key-DuXv64tg.cjs');
|
8
|
+
const require_http = require('./http-CAusBl_3.cjs');
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
10
10
|
|
11
11
|
//#region src/runtime/authdocloader.ts
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { deno_default, getTypeId } from "./type-
|
7
|
-
import { Router, RouterError } from "./lookup-
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
6
|
+
import { deno_default, getTypeId } from "./type-DaUr3Il7.js";
|
7
|
+
import { Router, RouterError } from "./lookup-CbtuFbtg.js";
|
8
|
+
import { InboxListenerSet } from "./inbox-IETv_Qez.js";
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
10
10
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
11
11
|
|
@@ -28,6 +28,7 @@ var FederationBuilderImpl = class {
|
|
28
28
|
inboxListeners;
|
29
29
|
inboxErrorHandler;
|
30
30
|
sharedInboxKeyDispatcher;
|
31
|
+
idempotencyStrategy;
|
31
32
|
collectionTypeIds;
|
32
33
|
collectionCallbacks;
|
33
34
|
/**
|
@@ -42,7 +43,7 @@ var FederationBuilderImpl = class {
|
|
42
43
|
this.collectionTypeIds = {};
|
43
44
|
}
|
44
45
|
async build(options) {
|
45
|
-
const { FederationImpl } = await import("./middleware-
|
46
|
+
const { FederationImpl } = await import("./middleware-BpR6186a.js");
|
46
47
|
const f = new FederationImpl(options);
|
47
48
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
48
49
|
f.router = this.router.clone();
|
@@ -64,6 +65,7 @@ var FederationBuilderImpl = class {
|
|
64
65
|
f.inboxListeners = this.inboxListeners?.clone();
|
65
66
|
f.inboxErrorHandler = this.inboxErrorHandler;
|
66
67
|
f.sharedInboxKeyDispatcher = this.sharedInboxKeyDispatcher;
|
68
|
+
f.idempotencyStrategy = this.idempotencyStrategy;
|
67
69
|
return f;
|
68
70
|
}
|
69
71
|
_getTracer() {
|
@@ -486,6 +488,10 @@ var FederationBuilderImpl = class {
|
|
486
488
|
setSharedKeyDispatcher: (dispatcher) => {
|
487
489
|
this.sharedInboxKeyDispatcher = dispatcher;
|
488
490
|
return setters;
|
491
|
+
},
|
492
|
+
withIdempotency: (strategy) => {
|
493
|
+
this.idempotencyStrategy = strategy;
|
494
|
+
return setters;
|
489
495
|
}
|
490
496
|
};
|
491
497
|
return setters;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { getUserAgent } from "./type-
|
6
|
+
import { getUserAgent } from "./type-DaUr3Il7.js";
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
8
8
|
|
9
9
|
//#region src/nodeinfo/client.ts
|
package/dist/compat/mod.d.cts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import "../kv-63Cil1MD.cjs";
|
2
2
|
import "../docloader-D-MrRyHl.cjs";
|
3
3
|
import "../client-CegPX0Rn.cjs";
|
4
|
-
import "../vocab-
|
5
|
-
import "../actor-
|
6
|
-
import "../http-
|
7
|
-
import "../owner-
|
8
|
-
import "../mod-
|
4
|
+
import "../vocab-Dw1-yVGg.cjs";
|
5
|
+
import "../actor-D6K058Tb.cjs";
|
6
|
+
import "../http-D-e6AFwR.cjs";
|
7
|
+
import "../owner-BN_tO3cY.cjs";
|
8
|
+
import "../mod-CxkWO3Mg.cjs";
|
9
9
|
import "../mod-jQ4OODsl.cjs";
|
10
|
-
import { ActivityTransformer } from "../context-
|
10
|
+
import { ActivityTransformer } from "../context-DiqjMRef.cjs";
|
11
11
|
import "../mq-B7R1Q-M5.cjs";
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-Bpb5QLaZ.cjs";
|
13
13
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.d.ts
CHANGED
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import "../kv-C7sopW2E.js";
|
4
4
|
import "../docloader-CxWcuWqQ.js";
|
5
5
|
import "../client-bgSdkFa2.js";
|
6
|
-
import "../vocab-
|
7
|
-
import "../actor-
|
8
|
-
import "../http-
|
9
|
-
import "../owner-
|
10
|
-
import "../mod-
|
6
|
+
import "../vocab-BI0Ak5lL.js";
|
7
|
+
import "../actor-T6RyhRgk.js";
|
8
|
+
import "../http-D6Uj2x2y.js";
|
9
|
+
import "../owner-hd9lvQcP.js";
|
10
|
+
import "../mod-DlU8ISoa.js";
|
11
11
|
import "../mod-DBzN0aCM.js";
|
12
|
-
import { ActivityTransformer } from "../context-
|
12
|
+
import { ActivityTransformer } from "../context-DBKpNBnc.js";
|
13
13
|
import "../mq-CRGm1e_F.js";
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-D_y2y32N.js";
|
15
15
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
@@ -3,30 +3,30 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Follow, Person } from "../type-
|
6
|
+
import { Follow, Person } from "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
12
|
-
import "../client-
|
13
|
-
import "../lookup-
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-DQYscW90.js";
|
12
|
+
import "../client-D5CBsPrc.js";
|
13
|
+
import "../lookup-CbtuFbtg.js";
|
14
14
|
import "../types-BSuWJsOm.js";
|
15
|
-
import "../actor-
|
16
|
-
import "../key-
|
17
|
-
import "../http-
|
18
|
-
import "../authdocloader-
|
19
|
-
import "../ld-
|
20
|
-
import "../owner-
|
21
|
-
import "../proof-
|
22
|
-
import "../inbox-
|
23
|
-
import "../builder-
|
15
|
+
import "../actor-D8gCwLzv.js";
|
16
|
+
import "../key-DnqhSgAv.js";
|
17
|
+
import "../http-CuS-d4U0.js";
|
18
|
+
import "../authdocloader-DYTNpaMA.js";
|
19
|
+
import "../ld-Isot0tiW.js";
|
20
|
+
import "../owner-ChSL4aJ7.js";
|
21
|
+
import "../proof-x3IBewan.js";
|
22
|
+
import "../inbox-IETv_Qez.js";
|
23
|
+
import "../builder-1_skw-d2.js";
|
24
24
|
import "../collection-CcnIw1qY.js";
|
25
|
-
import "../keycache-
|
25
|
+
import "../keycache-CSBkusP8.js";
|
26
26
|
import "../negotiation-5NPJL6zp.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { test } from "../testing-
|
28
|
+
import "../send-D5fjmUEj.js";
|
29
|
+
import { test } from "../testing-tWr1VQxx.js";
|
30
30
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
@@ -3,11 +3,11 @@ import { URLPattern } from "urlpattern-polyfill";
|
|
3
3
|
import { KvKey, KvStore } from "./kv-C7sopW2E.js";
|
4
4
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-CxWcuWqQ.js";
|
5
5
|
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-bgSdkFa2.js";
|
6
|
-
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-
|
7
|
-
import { Actor, Recipient } from "./actor-
|
8
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
9
|
-
import { GetKeyOwnerOptions } from "./owner-
|
10
|
-
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-
|
6
|
+
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-BI0Ak5lL.js";
|
7
|
+
import { Actor, Recipient } from "./actor-T6RyhRgk.js";
|
8
|
+
import { HttpMessageSignaturesSpec } from "./http-D6Uj2x2y.js";
|
9
|
+
import { GetKeyOwnerOptions } from "./owner-hd9lvQcP.js";
|
10
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-DlU8ISoa.js";
|
11
11
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "./mod-DBzN0aCM.js";
|
12
12
|
import { MessageQueue } from "./mq-CRGm1e_F.js";
|
13
13
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
@@ -309,6 +309,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
|
|
309
309
|
type CustomCollectionCursor<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams) => string | null | Promise<string | null>;
|
310
310
|
//#endregion
|
311
311
|
//#region src/federation/handler.d.ts
|
312
|
+
|
312
313
|
/**
|
313
314
|
* Options for the {@link respondWithObject} and
|
314
315
|
* {@link respondWithObjectIfAcceptable} functions.
|
@@ -1091,12 +1092,6 @@ interface FederationOptions<TContextData> {
|
|
1091
1092
|
* @since 1.4.0
|
1092
1093
|
*/
|
1093
1094
|
contextLoaderFactory?: DocumentLoaderFactory;
|
1094
|
-
/**
|
1095
|
-
* A custom JSON-LD context loader. By default, this uses the same loader
|
1096
|
-
* as the document loader.
|
1097
|
-
* @deprecated Use {@link contextLoaderFactory} instead.
|
1098
|
-
*/
|
1099
|
-
contextLoader?: DocumentLoader;
|
1100
1095
|
/**
|
1101
1096
|
* A factory function that creates an authenticated document loader for a
|
1102
1097
|
* given identity. This is used for fetching documents that require
|
@@ -1305,6 +1300,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
|
|
1305
1300
|
*/
|
1306
1301
|
authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
|
1307
1302
|
}
|
1303
|
+
/**
|
1304
|
+
* The strategy for handling activity idempotency in inbox processing.
|
1305
|
+
*
|
1306
|
+
* - `"global"`: Activities are deduplicated globally across all inboxes and
|
1307
|
+
* origins. The same activity ID will be processed only once, regardless
|
1308
|
+
* of which inbox receives it or which server sent it.
|
1309
|
+
*
|
1310
|
+
* - `"per-origin"`: Activities are deduplicated per receiving server's origin.
|
1311
|
+
* The same activity ID will be processed only once on each receiving server,
|
1312
|
+
* but can be processed separately on different receiving servers. This had
|
1313
|
+
* been the default behavior in Fedify 1.x versions.
|
1314
|
+
*
|
1315
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
|
1316
|
+
* ID can be processed once per inbox, allowing the same activity to be
|
1317
|
+
* delivered to multiple inboxes independently. This follows standard
|
1318
|
+
* ActivityPub behavior and is the default strategy since Fedify 2.0.0.
|
1319
|
+
*
|
1320
|
+
* @since 1.9.0
|
1321
|
+
*/
|
1322
|
+
type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
|
1323
|
+
/**
|
1324
|
+
* A callback to generate a custom idempotency key for an activity.
|
1325
|
+
* Returns the cache key to use, or null to skip idempotency checking.
|
1326
|
+
* @template TContextData The context data to pass to the {@link InboxContext}.
|
1327
|
+
* @param ctx The inbox context.
|
1328
|
+
* @param activity The activity being processed.
|
1329
|
+
* @returns The idempotency key to use for caching, or null to skip caching.
|
1330
|
+
* @since 1.9.0
|
1331
|
+
*/
|
1332
|
+
type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
|
1308
1333
|
/**
|
1309
1334
|
* Registry for inbox listeners for different activity types.
|
1310
1335
|
*/
|
@@ -1335,6 +1360,36 @@ interface InboxListenerSetters<TContextData> {
|
|
1335
1360
|
* @since 0.11.0
|
1336
1361
|
*/
|
1337
1362
|
setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
|
1363
|
+
/**
|
1364
|
+
* Configures the strategy for handling activity idempotency in inbox processing.
|
1365
|
+
*
|
1366
|
+
* @example
|
1367
|
+
* Use per-inbox strategy (standard ActivityPub behavior):
|
1368
|
+
* ```
|
1369
|
+
* federation
|
1370
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
1371
|
+
* .withIdempotency("per-inbox");
|
1372
|
+
* ```
|
1373
|
+
*
|
1374
|
+
* Use custom strategy:
|
1375
|
+
* ```
|
1376
|
+
* federation
|
1377
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
1378
|
+
* .withIdempotency((ctx, activity) => {
|
1379
|
+
* // Return null to skip idempotency
|
1380
|
+
* return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
|
1381
|
+
* });
|
1382
|
+
* ```
|
1383
|
+
*
|
1384
|
+
* @param strategy The idempotency strategy to use. Can be:
|
1385
|
+
* - `"global"`: Activities are deduplicated across all inboxes and origins
|
1386
|
+
* - `"per-origin"`: Activities are deduplicated per inbox origin
|
1387
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox
|
1388
|
+
* - A custom callback function that returns the cache key to use
|
1389
|
+
* @returns The setters object so that settings can be chained.
|
1390
|
+
* @since 1.9.0
|
1391
|
+
*/
|
1392
|
+
withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
|
1338
1393
|
}
|
1339
1394
|
/**
|
1340
1395
|
* Parameters of {@link Federation.fetch} method.
|
@@ -2253,4 +2308,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
2253
2308
|
multikey: Multikey;
|
2254
2309
|
}
|
2255
2310
|
//#endregion
|
2256
|
-
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
2311
|
+
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { KvKey, KvStore } from "./kv-63Cil1MD.cjs";
|
2
2
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
|
3
3
|
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-CegPX0Rn.cjs";
|
4
|
-
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-
|
5
|
-
import { Actor, Recipient } from "./actor-
|
6
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
7
|
-
import { GetKeyOwnerOptions } from "./owner-
|
8
|
-
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-
|
4
|
+
import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-Dw1-yVGg.cjs";
|
5
|
+
import { Actor, Recipient } from "./actor-D6K058Tb.cjs";
|
6
|
+
import { HttpMessageSignaturesSpec } from "./http-D-e6AFwR.cjs";
|
7
|
+
import { GetKeyOwnerOptions } from "./owner-BN_tO3cY.cjs";
|
8
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-CxkWO3Mg.cjs";
|
9
9
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "./mod-jQ4OODsl.cjs";
|
10
10
|
import { MessageQueue } from "./mq-B7R1Q-M5.cjs";
|
11
11
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
@@ -307,6 +307,7 @@ type CustomCollectionCounter<TParams extends Record<string, string>, TContextDat
|
|
307
307
|
type CustomCollectionCursor<TParams extends Record<string, string>, TContext extends Context<TContextData>, TContextData> = (context: TContext, values: TParams) => string | null | Promise<string | null>;
|
308
308
|
//#endregion
|
309
309
|
//#region src/federation/handler.d.ts
|
310
|
+
|
310
311
|
/**
|
311
312
|
* Options for the {@link respondWithObject} and
|
312
313
|
* {@link respondWithObjectIfAcceptable} functions.
|
@@ -1089,12 +1090,6 @@ interface FederationOptions<TContextData> {
|
|
1089
1090
|
* @since 1.4.0
|
1090
1091
|
*/
|
1091
1092
|
contextLoaderFactory?: DocumentLoaderFactory;
|
1092
|
-
/**
|
1093
|
-
* A custom JSON-LD context loader. By default, this uses the same loader
|
1094
|
-
* as the document loader.
|
1095
|
-
* @deprecated Use {@link contextLoaderFactory} instead.
|
1096
|
-
*/
|
1097
|
-
contextLoader?: DocumentLoader;
|
1098
1093
|
/**
|
1099
1094
|
* A factory function that creates an authenticated document loader for a
|
1100
1095
|
* given identity. This is used for fetching documents that require
|
@@ -1303,6 +1298,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
|
|
1303
1298
|
*/
|
1304
1299
|
authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
|
1305
1300
|
}
|
1301
|
+
/**
|
1302
|
+
* The strategy for handling activity idempotency in inbox processing.
|
1303
|
+
*
|
1304
|
+
* - `"global"`: Activities are deduplicated globally across all inboxes and
|
1305
|
+
* origins. The same activity ID will be processed only once, regardless
|
1306
|
+
* of which inbox receives it or which server sent it.
|
1307
|
+
*
|
1308
|
+
* - `"per-origin"`: Activities are deduplicated per receiving server's origin.
|
1309
|
+
* The same activity ID will be processed only once on each receiving server,
|
1310
|
+
* but can be processed separately on different receiving servers. This had
|
1311
|
+
* been the default behavior in Fedify 1.x versions.
|
1312
|
+
*
|
1313
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
|
1314
|
+
* ID can be processed once per inbox, allowing the same activity to be
|
1315
|
+
* delivered to multiple inboxes independently. This follows standard
|
1316
|
+
* ActivityPub behavior and is the default strategy since Fedify 2.0.0.
|
1317
|
+
*
|
1318
|
+
* @since 1.9.0
|
1319
|
+
*/
|
1320
|
+
type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
|
1321
|
+
/**
|
1322
|
+
* A callback to generate a custom idempotency key for an activity.
|
1323
|
+
* Returns the cache key to use, or null to skip idempotency checking.
|
1324
|
+
* @template TContextData The context data to pass to the {@link InboxContext}.
|
1325
|
+
* @param ctx The inbox context.
|
1326
|
+
* @param activity The activity being processed.
|
1327
|
+
* @returns The idempotency key to use for caching, or null to skip caching.
|
1328
|
+
* @since 1.9.0
|
1329
|
+
*/
|
1330
|
+
type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
|
1306
1331
|
/**
|
1307
1332
|
* Registry for inbox listeners for different activity types.
|
1308
1333
|
*/
|
@@ -1333,6 +1358,36 @@ interface InboxListenerSetters<TContextData> {
|
|
1333
1358
|
* @since 0.11.0
|
1334
1359
|
*/
|
1335
1360
|
setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
|
1361
|
+
/**
|
1362
|
+
* Configures the strategy for handling activity idempotency in inbox processing.
|
1363
|
+
*
|
1364
|
+
* @example
|
1365
|
+
* Use per-inbox strategy (standard ActivityPub behavior):
|
1366
|
+
* ```
|
1367
|
+
* federation
|
1368
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
1369
|
+
* .withIdempotency("per-inbox");
|
1370
|
+
* ```
|
1371
|
+
*
|
1372
|
+
* Use custom strategy:
|
1373
|
+
* ```
|
1374
|
+
* federation
|
1375
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
1376
|
+
* .withIdempotency((ctx, activity) => {
|
1377
|
+
* // Return null to skip idempotency
|
1378
|
+
* return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
|
1379
|
+
* });
|
1380
|
+
* ```
|
1381
|
+
*
|
1382
|
+
* @param strategy The idempotency strategy to use. Can be:
|
1383
|
+
* - `"global"`: Activities are deduplicated across all inboxes and origins
|
1384
|
+
* - `"per-origin"`: Activities are deduplicated per inbox origin
|
1385
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox
|
1386
|
+
* - A custom callback function that returns the cache key to use
|
1387
|
+
* @returns The setters object so that settings can be chained.
|
1388
|
+
* @since 1.9.0
|
1389
|
+
*/
|
1390
|
+
withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
|
1336
1391
|
}
|
1337
1392
|
/**
|
1338
1393
|
* Parameters of {@link Federation.fetch} method.
|
@@ -2251,4 +2306,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
2251
2306
|
multikey: Multikey;
|
2252
2307
|
}
|
2253
2308
|
//#endregion
|
2254
|
-
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
2309
|
+
export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, ConstructorWithTypeId, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, CustomCollectionCallbackSetters, CustomCollectionCounter, CustomCollectionCursor, CustomCollectionDispatcher, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, IdempotencyKeyCallback, IdempotencyStrategy, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParamsKeyPath, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|
@@ -10,7 +10,7 @@ const node_net = require_chunk.__toESM(require("node:net"));
|
|
10
10
|
|
11
11
|
//#region deno.json
|
12
12
|
var name = "@fedify/fedify";
|
13
|
-
var version = "2.0.0-pr.
|
13
|
+
var version = "2.0.0-pr.445.1694+d0c7cd75";
|
14
14
|
var license = "MIT";
|
15
15
|
var exports$1 = {
|
16
16
|
".": "./src/mod.ts",
|
@@ -3,7 +3,7 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { __commonJS, __toESM } from "./type-
|
6
|
+
import { __commonJS, __toESM } from "./type-DaUr3Il7.js";
|
7
7
|
|
8
8
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
9
9
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
@@ -3,15 +3,15 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Activity, Note, Person } from "../type-
|
6
|
+
import { Activity, Note, Person } from "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import "../lookup-
|
12
|
-
import "../inbox-
|
13
|
-
import { createFederationBuilder } from "../builder-
|
14
|
-
import { test } from "../testing-
|
11
|
+
import "../lookup-CbtuFbtg.js";
|
12
|
+
import "../inbox-IETv_Qez.js";
|
13
|
+
import { createFederationBuilder } from "../builder-1_skw-d2.js";
|
14
|
+
import { test } from "../testing-tWr1VQxx.js";
|
15
15
|
import { assertExists } from "../std__assert-X-_kMxKM.js";
|
16
16
|
import "../assert_rejects-DiIiJbZn.js";
|
17
17
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,13 +3,13 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import "../type-
|
6
|
+
import "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
|
-
import "../lookup-
|
10
|
+
import "../lookup-CbtuFbtg.js";
|
11
11
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-CcnIw1qY.js";
|
12
|
-
import { test } from "../testing-
|
12
|
+
import { test } from "../testing-tWr1VQxx.js";
|
13
13
|
import "../std__assert-X-_kMxKM.js";
|
14
14
|
import "../assert_rejects-DiIiJbZn.js";
|
15
15
|
import "../assert_is_error-BPGph1Jx.js";
|
@@ -3,36 +3,36 @@
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
globalThis.addEventListener = () => {};
|
5
5
|
|
6
|
-
import { Create, Note, Person } from "../type-
|
6
|
+
import { Create, Note, Person } from "../type-DaUr3Il7.js";
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
11
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
12
|
-
import "../client-
|
13
|
-
import "../lookup-
|
11
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DQYscW90.js";
|
12
|
+
import "../client-D5CBsPrc.js";
|
13
|
+
import "../lookup-CbtuFbtg.js";
|
14
14
|
import "../types-BSuWJsOm.js";
|
15
|
-
import "../actor-
|
16
|
-
import "../key-
|
17
|
-
import { signRequest } from "../http-
|
18
|
-
import "../authdocloader-
|
19
|
-
import "../ld-
|
20
|
-
import "../owner-
|
21
|
-
import "../proof-
|
22
|
-
import { InboxListenerSet } from "../inbox-
|
23
|
-
import "../builder-
|
15
|
+
import "../actor-D8gCwLzv.js";
|
16
|
+
import "../key-DnqhSgAv.js";
|
17
|
+
import { signRequest } from "../http-CuS-d4U0.js";
|
18
|
+
import "../authdocloader-DYTNpaMA.js";
|
19
|
+
import "../ld-Isot0tiW.js";
|
20
|
+
import "../owner-ChSL4aJ7.js";
|
21
|
+
import "../proof-x3IBewan.js";
|
22
|
+
import { InboxListenerSet } from "../inbox-IETv_Qez.js";
|
23
|
+
import "../builder-1_skw-d2.js";
|
24
24
|
import "../collection-CcnIw1qY.js";
|
25
|
-
import "../keycache-
|
25
|
+
import "../keycache-CSBkusP8.js";
|
26
26
|
import "../negotiation-5NPJL6zp.js";
|
27
27
|
import "../retry-D4GJ670a.js";
|
28
|
-
import "../send-
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
28
|
+
import "../send-D5fjmUEj.js";
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-tWr1VQxx.js";
|
30
30
|
import "../std__assert-X-_kMxKM.js";
|
31
31
|
import "../assert_rejects-DiIiJbZn.js";
|
32
32
|
import "../assert_is_error-BPGph1Jx.js";
|
33
33
|
import "../assert_not_equals-f3m3epl3.js";
|
34
34
|
import "../assert_throws-BOO88avQ.js";
|
35
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
35
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-D3_MDK7n.js";
|
36
36
|
|
37
37
|
//#region src/federation/handler.test.ts
|
38
38
|
test("handleActor()", async () => {
|