@fedify/fedify 1.9.0-dev.1613 → 1.9.0-dev.1689
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-Ch5yFYFG.d.ts → actor-C1Euqngb.d.ts} +1 -1
- package/dist/{actor-BkOvltE1.cjs → actor-CK94m0Yv.cjs} +7263 -2440
- package/dist/{actor-BrhPUG_N.js → actor-Dpkqj5Dv.js} +7263 -2440
- package/dist/{actor-Do9KG1O2.js → actor-DzdLVqkJ.js} +1 -1
- package/dist/{actor-CHOM_AN3.d.cts → actor-Ydzhc8dj.d.cts} +1 -1
- package/dist/{authdocloader-lcfCE1vG.cjs → authdocloader-4iBGWlQw.cjs} +3 -3
- package/dist/{authdocloader-CF0X5NR7.js → authdocloader-BVvTFQbi.js} +3 -3
- package/dist/{authdocloader-D_pDyzSu.js → authdocloader-DdSBpn11.js} +3 -3
- package/dist/{builder-CwFGbC7w.js → builder-BR--hcb8.js} +10 -4
- package/dist/{client-CkjMau5E.js → client-BoUqciR8.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-DFruNLny.d.ts → context-CZorAkt8.d.ts} +66 -6
- package/dist/{context-KXVF2AhH.d.cts → context-DCh96LcF.d.cts} +66 -6
- package/dist/{docloader-CCo7N8E2.cjs → docloader-Bui9z8Lb.cjs} +1 -1
- package/dist/{docloader-CB-b64F8.js → docloader-DyvW1gbN.js} +1 -1
- package/dist/{esm-BeBLf_np.js → esm-DMb2eQXG.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 +4 -3
- package/dist/federation/middleware.test.js +18 -18
- 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/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-B_zBcsai.d.cts → http-B1_DzfAU.d.cts} +1 -1
- package/dist/{http-DpcYXIiB.cjs → http-BAaVL480.cjs} +3 -3
- package/dist/{http-zgzZkO8A.js → http-C7nvEG1N.js} +2 -2
- package/dist/{http-D8Q4xH0d.d.ts → http-wsGR6KkT.d.ts} +1 -1
- package/dist/{http-CmDy8xoP.js → http-xsj5Fzwl.js} +3 -3
- package/dist/{inbox-CirfyLns.js → inbox-DZNE3Jtq.js} +29 -7
- package/dist/{key-CN1jS3_Y.js → key-C25gGlmV.js} +2 -2
- package/dist/key-CHU24Npw.cjs +10 -0
- package/dist/{key-Dq2ZV4ZW.js → key-CbnQpdZy.js} +2 -2
- package/dist/{key-BytDOwJJ.js → key-DOPWTj2e.js} +4 -4
- package/dist/{key-DgFXwwZv.js → key-DgZIZVqA.js} +3 -3
- package/dist/{key-4EZXrjJw.cjs → key-DqqCoLbc.cjs} +2 -2
- package/dist/{keycache-COrk8-eB.js → keycache-CoMI1L_W.js} +1 -1
- package/dist/{keys-BieqxHLC.js → keys-CMahfArj.js} +1 -1
- package/dist/{ld-o8aGatC0.js → ld-WZpO-MzE.js} +2 -2
- package/dist/{lookup-CwHCSBI8.cjs → lookup-D_w567L8.cjs} +1 -1
- package/dist/{lookup-DADsKd8V.js → lookup-WoJkw8wY.js} +1 -1
- package/dist/{lookup-BkaLctZw.js → lookup-y6-PEpxS.js} +21 -12
- package/dist/middleware-BYEKw_OJ.js +17 -0
- package/dist/{middleware-BcqldfgB.cjs → middleware-CWlrInU2.cjs} +66 -34
- package/dist/{middleware-CuCsnDA9.js → middleware-Cj9WC_iX.js} +66 -34
- package/dist/{middleware-B1iLu-jg.js → middleware-CjgR6ayA.js} +35 -31
- package/dist/middleware-DbxA0Z6o.js +26 -0
- package/dist/middleware-hTlyJu9R.cjs +17 -0
- package/dist/{mod-NKH_G-IY.d.cts → mod-BUbqxBev.d.cts} +19 -1
- package/dist/{mod-YfAcrVbP.d.cts → mod-BojaEE1l.d.cts} +2 -2
- package/dist/{mod-Cy6pkZSn.d.ts → mod-CDObsV1d.d.ts} +19 -1
- package/dist/{mod-BAuhKa9d.d.ts → mod-CIbqfZW0.d.ts} +1 -1
- package/dist/{mod-B7Pc0I7F.d.ts → mod-DgcYoyZK.d.ts} +2 -2
- package/dist/{mod-C3CGxYoF.d.cts → mod-Dt-G9ZOS.d.cts} +1 -1
- package/dist/{mod-COw_caPC.d.cts → mod-fjqfsrty.d.cts} +2 -2
- package/dist/{mod-CiXjux2r.d.ts → mod-tWXEItkO.d.ts} +2 -2
- 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/semver.test.js +3 -3
- package/dist/nodeinfo/types.test.js +3 -3
- package/dist/{owner-C9Ry0TOI.d.cts → owner-6KSEp9eV.d.cts} +2 -2
- package/dist/{owner-D38zBIMc.d.ts → owner-BbeUDvOu.d.ts} +2 -2
- package/dist/{owner-qeK3HiL9.js → owner-CPBOVM7l.js} +2 -2
- package/dist/{proof-DasSZLsd.cjs → proof-BLoRsaYR.cjs} +3 -3
- package/dist/{proof-BSqN3lwx.js → proof-CpmDDzvf.js} +3 -3
- package/dist/{proof-0MIJ70kC.js → proof-h0JvKPRP.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-CuL-kYv7.js → send-CD-m2vwX.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-Did3bCyV.js → testing-DvTABhvG.js} +2 -2
- package/dist/{type-Bm9mdHQS.js → type-BCazg_Pu.js} +6943 -2120
- package/dist/{types-B9ZmKzEm.js → types-BsM0mf3R.js} +1 -1
- package/dist/{types-DF88bXyE.cjs → types-F8JMlP-f.cjs} +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 +433 -9
- package/dist/{vocab-DFyEBhSA.cjs → vocab-C-qxDq1m.cjs} +23 -14
- package/dist/{vocab-BEEm2I6u.d.ts → vocab-CDHNj5zp.d.ts} +290 -0
- package/dist/{vocab-BzGg7ltX.d.cts → vocab-Cfs0937i.d.cts} +290 -0
- package/dist/{vocab-BVOFD7iz.js → vocab-DdTdRfBW.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-BSapRu6X.cjs +0 -10
- package/dist/middleware-3K0jP9Du.js +0 -26
- package/dist/middleware-CZyWbiwd.js +0 -17
- package/dist/middleware-T8MY-txY.cjs +0 -17
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Application, Group, Organization, Person, Service, deno_default, getTypeId, lookupWebFinger } from "./type-
|
|
6
|
+
import { Application, Group, Organization, Person, Service, deno_default, getTypeId, lookupWebFinger } from "./type-BCazg_Pu.js";
|
|
7
7
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
8
8
|
import { domainToASCII, domainToUnicode } from "node:url";
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetUserAgentOptions } from "./docloader-D-MrRyHl.cjs";
|
|
2
|
-
import { Application, Group, Organization, Person, Service } from "./vocab-
|
|
2
|
+
import { Application, Group, Organization, Person, Service } from "./vocab-Cfs0937i.cjs";
|
|
3
3
|
import { TracerProvider } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/vocab/actor.d.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-Bui9z8Lb.cjs');
|
|
7
|
+
const require_key = require('./key-DqqCoLbc.cjs');
|
|
8
|
+
const require_http = require('./http-BAaVL480.cjs');
|
|
9
9
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
10
10
|
|
|
11
11
|
//#region src/runtime/authdocloader.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-DyvW1gbN.js";
|
|
6
|
+
import { validateCryptoKey } from "./key-CbnQpdZy.js";
|
|
7
|
+
import { doubleKnock } from "./http-xsj5Fzwl.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-BCazg_Pu.js";
|
|
7
|
+
import { validateCryptoKey } from "./key-C25gGlmV.js";
|
|
8
|
+
import { doubleKnock } from "./http-C7nvEG1N.js";
|
|
9
9
|
import { getLogger } from "@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-BCazg_Pu.js";
|
|
7
|
+
import { Router, RouterError } from "./lookup-y6-PEpxS.js";
|
|
8
|
+
import { InboxListenerSet } from "./inbox-DZNE3Jtq.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-DbxA0Z6o.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-BCazg_Pu.js";
|
|
7
7
|
import { parseSemVer } from "./semver-dArNLkR9.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
|
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-DjT_tegg.cjs";
|
|
4
|
-
import "../vocab-
|
|
5
|
-
import "../actor-
|
|
6
|
-
import "../http-
|
|
7
|
-
import "../owner-
|
|
8
|
-
import "../mod-
|
|
4
|
+
import "../vocab-Cfs0937i.cjs";
|
|
5
|
+
import "../actor-Ydzhc8dj.cjs";
|
|
6
|
+
import "../http-B1_DzfAU.cjs";
|
|
7
|
+
import "../owner-6KSEp9eV.cjs";
|
|
8
|
+
import "../mod-BUbqxBev.cjs";
|
|
9
9
|
import "../mod-jQ4OODsl.cjs";
|
|
10
|
-
import { ActivityTransformer } from "../context-
|
|
10
|
+
import { ActivityTransformer } from "../context-DCh96LcF.cjs";
|
|
11
11
|
import "../mq-B7R1Q-M5.cjs";
|
|
12
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
12
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-BojaEE1l.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-DF8anIB5.js";
|
|
6
|
-
import "../vocab-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import "../http-
|
|
9
|
-
import "../owner-
|
|
10
|
-
import "../mod-
|
|
6
|
+
import "../vocab-CDHNj5zp.js";
|
|
7
|
+
import "../actor-C1Euqngb.js";
|
|
8
|
+
import "../http-wsGR6KkT.js";
|
|
9
|
+
import "../owner-BbeUDvOu.js";
|
|
10
|
+
import "../mod-CDObsV1d.js";
|
|
11
11
|
import "../mod-DBzN0aCM.js";
|
|
12
|
-
import { ActivityTransformer } from "../context-
|
|
12
|
+
import { ActivityTransformer } from "../context-CZorAkt8.js";
|
|
13
13
|
import "../mq-CRGm1e_F.js";
|
|
14
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
14
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-tWXEItkO.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-BCazg_Pu.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-
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-CjgR6ayA.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-BoUqciR8.js";
|
|
14
|
+
import "../lookup-y6-PEpxS.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-DzdLVqkJ.js";
|
|
17
|
+
import "../key-C25gGlmV.js";
|
|
18
|
+
import "../http-C7nvEG1N.js";
|
|
19
|
+
import "../authdocloader-DdSBpn11.js";
|
|
20
|
+
import "../ld-WZpO-MzE.js";
|
|
21
|
+
import "../owner-CPBOVM7l.js";
|
|
22
|
+
import "../proof-h0JvKPRP.js";
|
|
23
|
+
import "../inbox-DZNE3Jtq.js";
|
|
24
|
+
import "../builder-BR--hcb8.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-CoMI1L_W.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-CD-m2vwX.js";
|
|
29
|
+
import { test } from "../testing-DvTABhvG.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-DF8anIB5.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-CDHNj5zp.js";
|
|
7
|
+
import { Actor, Recipient } from "./actor-C1Euqngb.js";
|
|
8
|
+
import { HttpMessageSignaturesSpec } from "./http-wsGR6KkT.js";
|
|
9
|
+
import { GetKeyOwnerOptions } from "./owner-BbeUDvOu.js";
|
|
10
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-CDObsV1d.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";
|
|
@@ -1312,6 +1312,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
|
|
|
1312
1312
|
*/
|
|
1313
1313
|
authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
|
|
1314
1314
|
}
|
|
1315
|
+
/**
|
|
1316
|
+
* The strategy for handling activity idempotency in inbox processing.
|
|
1317
|
+
*
|
|
1318
|
+
* - `"global"`: Activities are deduplicated globally across all inboxes and
|
|
1319
|
+
* origins. The same activity ID will be processed only once, regardless
|
|
1320
|
+
* of which inbox receives it or which server sent it.
|
|
1321
|
+
*
|
|
1322
|
+
* - `"per-origin"`: Activities are deduplicated per receiving server's origin.
|
|
1323
|
+
* The same activity ID will be processed only once on each receiving server,
|
|
1324
|
+
* but can be processed separately on different receiving servers. This was
|
|
1325
|
+
* the default behavior in Fedify 1.x versions.
|
|
1326
|
+
*
|
|
1327
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
|
|
1328
|
+
* ID can be processed once per inbox, allowing the same activity to be
|
|
1329
|
+
* delivered to multiple inboxes independently. This follows standard
|
|
1330
|
+
* ActivityPub behavior and will be the default in Fedify 2.0.
|
|
1331
|
+
*
|
|
1332
|
+
* @since 1.9.0
|
|
1333
|
+
*/
|
|
1334
|
+
type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
|
|
1335
|
+
/**
|
|
1336
|
+
* A callback to generate a custom idempotency key for an activity.
|
|
1337
|
+
* Returns the cache key to use, or null to skip idempotency checking.
|
|
1338
|
+
* @template TContextData The context data to pass to the {@link InboxContext}.
|
|
1339
|
+
* @param ctx The inbox context.
|
|
1340
|
+
* @param activity The activity being processed.
|
|
1341
|
+
* @returns The idempotency key to use for caching, or null to skip caching.
|
|
1342
|
+
* @since 1.9.0
|
|
1343
|
+
*/
|
|
1344
|
+
type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
|
|
1315
1345
|
/**
|
|
1316
1346
|
* Registry for inbox listeners for different activity types.
|
|
1317
1347
|
*/
|
|
@@ -1342,6 +1372,36 @@ interface InboxListenerSetters<TContextData> {
|
|
|
1342
1372
|
* @since 0.11.0
|
|
1343
1373
|
*/
|
|
1344
1374
|
setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Configures the strategy for handling activity idempotency in inbox processing.
|
|
1377
|
+
*
|
|
1378
|
+
* @example
|
|
1379
|
+
* Use per-inbox strategy (standard ActivityPub behavior):
|
|
1380
|
+
* ```
|
|
1381
|
+
* federation
|
|
1382
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
|
1383
|
+
* .withIdempotency("per-inbox");
|
|
1384
|
+
* ```
|
|
1385
|
+
*
|
|
1386
|
+
* Use custom strategy:
|
|
1387
|
+
* ```
|
|
1388
|
+
* federation
|
|
1389
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
|
1390
|
+
* .withIdempotency((ctx, activity) => {
|
|
1391
|
+
* // Return null to skip idempotency
|
|
1392
|
+
* return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
|
|
1393
|
+
* });
|
|
1394
|
+
* ```
|
|
1395
|
+
*
|
|
1396
|
+
* @param strategy The idempotency strategy to use. Can be:
|
|
1397
|
+
* - `"global"`: Activities are deduplicated across all inboxes and origins
|
|
1398
|
+
* - `"per-origin"`: Activities are deduplicated per inbox origin
|
|
1399
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox
|
|
1400
|
+
* - A custom callback function that returns the cache key to use
|
|
1401
|
+
* @returns The setters object so that settings can be chained.
|
|
1402
|
+
* @since 1.9.0
|
|
1403
|
+
*/
|
|
1404
|
+
withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
|
|
1345
1405
|
}
|
|
1346
1406
|
/**
|
|
1347
1407
|
* Parameters of {@link Federation.fetch} method.
|
|
@@ -2260,4 +2320,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
|
2260
2320
|
multikey: Multikey;
|
|
2261
2321
|
}
|
|
2262
2322
|
//#endregion
|
|
2263
|
-
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 };
|
|
2323
|
+
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-DjT_tegg.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-Cfs0937i.cjs";
|
|
5
|
+
import { Actor, Recipient } from "./actor-Ydzhc8dj.cjs";
|
|
6
|
+
import { HttpMessageSignaturesSpec } from "./http-B1_DzfAU.cjs";
|
|
7
|
+
import { GetKeyOwnerOptions } from "./owner-6KSEp9eV.cjs";
|
|
8
|
+
import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-BUbqxBev.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";
|
|
@@ -1310,6 +1310,36 @@ interface CollectionCallbackSetters<TContext extends Context<TContextData>, TCon
|
|
|
1310
1310
|
*/
|
|
1311
1311
|
authorize(predicate: AuthorizePredicate<TContextData>): CollectionCallbackSetters<TContext, TContextData, TFilter>;
|
|
1312
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* The strategy for handling activity idempotency in inbox processing.
|
|
1315
|
+
*
|
|
1316
|
+
* - `"global"`: Activities are deduplicated globally across all inboxes and
|
|
1317
|
+
* origins. The same activity ID will be processed only once, regardless
|
|
1318
|
+
* of which inbox receives it or which server sent it.
|
|
1319
|
+
*
|
|
1320
|
+
* - `"per-origin"`: Activities are deduplicated per receiving server's origin.
|
|
1321
|
+
* The same activity ID will be processed only once on each receiving server,
|
|
1322
|
+
* but can be processed separately on different receiving servers. This was
|
|
1323
|
+
* the default behavior in Fedify 1.x versions.
|
|
1324
|
+
*
|
|
1325
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox. The same activity
|
|
1326
|
+
* ID can be processed once per inbox, allowing the same activity to be
|
|
1327
|
+
* delivered to multiple inboxes independently. This follows standard
|
|
1328
|
+
* ActivityPub behavior and will be the default in Fedify 2.0.
|
|
1329
|
+
*
|
|
1330
|
+
* @since 1.9.0
|
|
1331
|
+
*/
|
|
1332
|
+
type IdempotencyStrategy = "global" | "per-origin" | "per-inbox";
|
|
1333
|
+
/**
|
|
1334
|
+
* A callback to generate a custom idempotency key for an activity.
|
|
1335
|
+
* Returns the cache key to use, or null to skip idempotency checking.
|
|
1336
|
+
* @template TContextData The context data to pass to the {@link InboxContext}.
|
|
1337
|
+
* @param ctx The inbox context.
|
|
1338
|
+
* @param activity The activity being processed.
|
|
1339
|
+
* @returns The idempotency key to use for caching, or null to skip caching.
|
|
1340
|
+
* @since 1.9.0
|
|
1341
|
+
*/
|
|
1342
|
+
type IdempotencyKeyCallback<TContextData> = (ctx: InboxContext<TContextData>, activity: Activity) => string | null | Promise<string | null>;
|
|
1313
1343
|
/**
|
|
1314
1344
|
* Registry for inbox listeners for different activity types.
|
|
1315
1345
|
*/
|
|
@@ -1340,6 +1370,36 @@ interface InboxListenerSetters<TContextData> {
|
|
|
1340
1370
|
* @since 0.11.0
|
|
1341
1371
|
*/
|
|
1342
1372
|
setSharedKeyDispatcher(dispatcher: SharedInboxKeyDispatcher<TContextData>): InboxListenerSetters<TContextData>;
|
|
1373
|
+
/**
|
|
1374
|
+
* Configures the strategy for handling activity idempotency in inbox processing.
|
|
1375
|
+
*
|
|
1376
|
+
* @example
|
|
1377
|
+
* Use per-inbox strategy (standard ActivityPub behavior):
|
|
1378
|
+
* ```
|
|
1379
|
+
* federation
|
|
1380
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
|
1381
|
+
* .withIdempotency("per-inbox");
|
|
1382
|
+
* ```
|
|
1383
|
+
*
|
|
1384
|
+
* Use custom strategy:
|
|
1385
|
+
* ```
|
|
1386
|
+
* federation
|
|
1387
|
+
* .setInboxListeners("/users/{identifier}/inbox", "/inbox")
|
|
1388
|
+
* .withIdempotency((ctx, activity) => {
|
|
1389
|
+
* // Return null to skip idempotency
|
|
1390
|
+
* return `${ctx.origin}:${activity.id?.href}:${ctx.recipient}`;
|
|
1391
|
+
* });
|
|
1392
|
+
* ```
|
|
1393
|
+
*
|
|
1394
|
+
* @param strategy The idempotency strategy to use. Can be:
|
|
1395
|
+
* - `"global"`: Activities are deduplicated across all inboxes and origins
|
|
1396
|
+
* - `"per-origin"`: Activities are deduplicated per inbox origin
|
|
1397
|
+
* - `"per-inbox"`: Activities are deduplicated per inbox
|
|
1398
|
+
* - A custom callback function that returns the cache key to use
|
|
1399
|
+
* @returns The setters object so that settings can be chained.
|
|
1400
|
+
* @since 1.9.0
|
|
1401
|
+
*/
|
|
1402
|
+
withIdempotency(strategy: IdempotencyStrategy | IdempotencyKeyCallback<TContextData>): InboxListenerSetters<TContextData>;
|
|
1343
1403
|
}
|
|
1344
1404
|
/**
|
|
1345
1405
|
* Parameters of {@link Federation.fetch} method.
|
|
@@ -2258,4 +2318,4 @@ interface ActorKeyPair extends CryptoKeyPair {
|
|
|
2258
2318
|
multikey: Multikey;
|
|
2259
2319
|
}
|
|
2260
2320
|
//#endregion
|
|
2261
|
-
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 };
|
|
2321
|
+
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 = "1.9.0-dev.
|
|
13
|
+
var version = "1.9.0-dev.1689+cbc8aca7";
|
|
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-BCazg_Pu.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,16 +3,16 @@
|
|
|
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-BCazg_Pu.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
11
|
import { parseSemVer } from "../semver-dArNLkR9.js";
|
|
12
|
-
import "../lookup-
|
|
13
|
-
import "../inbox-
|
|
14
|
-
import { createFederationBuilder } from "../builder-
|
|
15
|
-
import { test } from "../testing-
|
|
12
|
+
import "../lookup-y6-PEpxS.js";
|
|
13
|
+
import "../inbox-DZNE3Jtq.js";
|
|
14
|
+
import { createFederationBuilder } from "../builder-BR--hcb8.js";
|
|
15
|
+
import { test } from "../testing-DvTABhvG.js";
|
|
16
16
|
import { assertExists } from "../std__assert-X-_kMxKM.js";
|
|
17
17
|
import "../assert_rejects-DiIiJbZn.js";
|
|
18
18
|
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-BCazg_Pu.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-y6-PEpxS.js";
|
|
11
11
|
import { buildCollectionSynchronizationHeader, digest } from "../collection-CSzG2j1P.js";
|
|
12
|
-
import { test } from "../testing-
|
|
12
|
+
import { test } from "../testing-DvTABhvG.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-BCazg_Pu.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 { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
+
import { acceptsJsonLd, createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-CjgR6ayA.js";
|
|
12
12
|
import "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-
|
|
14
|
-
import "../lookup-
|
|
13
|
+
import "../client-BoUqciR8.js";
|
|
14
|
+
import "../lookup-y6-PEpxS.js";
|
|
15
15
|
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-
|
|
17
|
-
import "../key-
|
|
18
|
-
import { signRequest } from "../http-
|
|
19
|
-
import "../authdocloader-
|
|
20
|
-
import "../ld-
|
|
21
|
-
import "../owner-
|
|
22
|
-
import "../proof-
|
|
23
|
-
import { InboxListenerSet } from "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../actor-DzdLVqkJ.js";
|
|
17
|
+
import "../key-C25gGlmV.js";
|
|
18
|
+
import { signRequest } from "../http-C7nvEG1N.js";
|
|
19
|
+
import "../authdocloader-DdSBpn11.js";
|
|
20
|
+
import "../ld-WZpO-MzE.js";
|
|
21
|
+
import "../owner-CPBOVM7l.js";
|
|
22
|
+
import "../proof-h0JvKPRP.js";
|
|
23
|
+
import { InboxListenerSet } from "../inbox-DZNE3Jtq.js";
|
|
24
|
+
import "../builder-BR--hcb8.js";
|
|
25
25
|
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-
|
|
26
|
+
import "../keycache-CoMI1L_W.js";
|
|
27
27
|
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CD-m2vwX.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-DvTABhvG.js";
|
|
30
30
|
import "../std__assert-X-_kMxKM.js";
|
|
31
31
|
import { assertFalse } from "../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-CMahfArj.js";
|
|
36
36
|
|
|
37
37
|
//#region src/federation/handler.test.ts
|
|
38
38
|
test("acceptsJsonLd()", () => {
|