@fedify/fedify 2.0.0-dev.279 → 2.0.0-dev.323
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builder-B7WWCOdc.js → builder-CvKuNW7P.js} +3 -3
- package/dist/{chunk-DqRYRqnO.cjs → chunk-CGaQZ11T.cjs} +19 -0
- package/dist/chunk-DJNbSFdH.js +29 -0
- package/dist/compat/mod.cjs +1 -1
- package/dist/compat/mod.d.cts +6 -6
- package/dist/compat/mod.d.ts +6 -6
- package/dist/compat/mod.js +2 -2
- package/dist/compat/transformers.test.js +11 -11
- package/dist/{context-BNNWbaZL.d.ts → context-CJO1oqSa.d.ts} +4 -4
- package/dist/{context-D7JEVvXJ.d.cts → context-Zqld1re2.d.cts} +4 -4
- package/dist/{deno-fe0u4LiE.js → deno-BTAi5-ur.js} +4 -2
- package/dist/{docloader-C9Dmxf-K.js → docloader-D8dzb6AT.js} +2 -2
- package/dist/federation/builder.test.js +3 -3
- package/dist/federation/handler.test.js +11 -11
- package/dist/federation/idempotency.test.js +47 -11
- package/dist/federation/inbox.test.js +2 -2
- package/dist/federation/middleware.test.js +11 -11
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.d.cts +6 -6
- package/dist/federation/mod.d.ts +6 -6
- package/dist/federation/mod.js +7 -7
- package/dist/federation/send.test.js +5 -5
- package/dist/federation/webfinger.test.js +11 -11
- package/dist/{federation-CE0CJ_0G.cjs → federation-Bp3HI26G.cjs} +1 -1
- package/dist/{http-DMi5iyiI.cjs → http-BCfCt7nq.cjs} +5 -3
- package/dist/{http-7r8B3dF_.js → http-C02fQ5SX.js} +4 -2
- package/dist/{http-oCBlFLKT.js → http-C4WANccp.js} +2 -2
- package/dist/{inbox-Dm1rfkdg.js → inbox-CdBcxHA7.js} +1 -1
- package/dist/{key-BGzsKfpZ.js → key-BI6sqU5u.js} +1 -1
- package/dist/{kv-cache-CETRZwoP.js → kv-cache-BLxaWwPk.js} +1 -1
- package/dist/{kv-cache-C0AvpI7U.cjs → kv-cache-Dk9UX_M2.cjs} +2 -2
- package/dist/{ld-BaO1-A5Y.js → ld-qTcTL2A4.js} +2 -2
- package/dist/middleware-BhYGJwH9.js +12 -0
- package/dist/{middleware-CnGBoMop.js → middleware-DG4UsFBP.js} +11 -11
- package/dist/{middleware-BlOT9luD.js → middleware-DaOdxVOc.js} +10 -10
- package/dist/middleware-Dsrm1uhx.cjs +12 -0
- package/dist/{middleware-R0w-WauH.js → middleware-LQKxYF7X.js} +6 -6
- package/dist/{middleware-C0Vj7vNo.cjs → middleware-nW8ONmt3.cjs} +7 -7
- package/dist/mod-Bh8mqlYw.d.cts +9 -0
- package/dist/{mod-YpmzboJc.d.ts → mod-Bpuc-q64.d.ts} +1 -1
- package/dist/{mod-BhDb3RBS.d.ts → mod-C92O3FpJ.d.ts} +1 -1
- package/dist/{mod-054TSUXs.d.cts → mod-CKtAEVny.d.cts} +1 -1
- package/dist/{mod-BrS8tiad.d.cts → mod-COO7VMcm.d.cts} +1 -1
- package/dist/{mod-DZmuPaKv.d.ts → mod-CvhyLrjX.d.ts} +2 -2
- package/dist/mod-D6HodEq7.d.ts +7 -0
- package/dist/{mod-C74sRHP8.d.cts → mod-DFWeUq2q.d.cts} +1 -1
- package/dist/{mod-BHXq4Q3x.d.cts → mod-DWaA45ef.d.cts} +2 -2
- package/dist/{mod-jOa7W503.d.ts → mod-q2IR8UiH.d.ts} +1 -1
- package/dist/mod.cjs +57 -9
- package/dist/mod.d.cts +19 -10
- package/dist/mod.d.ts +20 -10
- package/dist/mod.js +59 -11
- package/dist/nodeinfo/handler.test.js +11 -11
- package/dist/nodeinfo/mod.cjs +1 -1
- package/dist/nodeinfo/mod.d.cts +2 -2
- package/dist/nodeinfo/mod.d.ts +2 -2
- package/dist/nodeinfo/mod.js +2 -2
- package/dist/otel/mod.cjs +1 -1
- package/dist/otel/mod.d.cts +1 -1
- package/dist/otel/mod.d.ts +1 -1
- package/dist/{owner-BqIhDQWW.js → owner-Cfmtlwoe.js} +1 -1
- package/dist/{proof-DoHt7qrS.js → proof-Bc8ULrzP.js} +2 -2
- package/dist/{proof-vSvvLbTh.cjs → proof-BoqEqbih.cjs} +2 -2
- package/dist/{proof-Cg6AAAWI.js → proof-OjMPhNWs.js} +1 -1
- package/dist/runtime/mod.cjs +14 -0
- package/dist/runtime/mod.d.cts +2 -0
- package/dist/runtime/mod.d.ts +4 -0
- package/dist/runtime/mod.js +7 -0
- package/dist/runtime-c2Njxsry.cjs +17 -0
- package/dist/runtime-poamPCMb.js +13 -0
- package/dist/{send-CO2ZYT96.js → send-BKW3wSXo.js} +2 -2
- package/dist/sig/http.test.js +3 -3
- package/dist/sig/key.test.js +2 -2
- package/dist/sig/ld.test.js +3 -3
- package/dist/sig/mod.cjs +3 -3
- package/dist/sig/mod.d.cts +3 -3
- package/dist/sig/mod.d.ts +3 -3
- package/dist/sig/mod.js +3 -3
- package/dist/sig/owner.test.js +3 -3
- package/dist/sig/proof.test.js +3 -3
- package/dist/{transformers-BjBg6Lag.cjs → transformers-3g8GZwkZ.cjs} +1 -1
- package/dist/{types-B6z6CqIz.cjs → types-Cd_hszr_.cjs} +1 -1
- package/dist/utils/docloader.test.js +4 -4
- package/dist/utils/mod.cjs +3 -3
- package/dist/utils/mod.d.cts +3 -3
- package/dist/utils/mod.d.ts +3 -3
- package/dist/utils/mod.js +3 -3
- package/dist/vocab/mod.cjs +13 -0
- package/dist/vocab/mod.d.cts +1 -0
- package/dist/vocab/mod.d.ts +3 -0
- package/dist/vocab/mod.js +5 -0
- package/package.json +25 -5
- package/dist/middleware-BDJNulB_.js +0 -12
- package/dist/middleware-DT3JkH-g.cjs +0 -12
- /package/dist/{client-by-PEGAJ.d.cts → client-CwkOPN13.d.cts} +0 -0
- /package/dist/{client-CUTUGgvJ.d.ts → client-a7NwzhA2.d.ts} +0 -0
- /package/dist/{compat-nxUqe4Z-.js → compat-Bb4NuTUO.js} +0 -0
- /package/dist/{federation-D6FVaeAR.js → federation-DaMfqRm4.js} +0 -0
- /package/dist/{http-ClB3pLcL.d.cts → http-CCEu-x1_.d.cts} +0 -0
- /package/dist/{http-DLBDPal9.d.ts → http-CODSJcKx.d.ts} +0 -0
- /package/dist/{kv-B4vFhIYL.d.cts → kv-g9jFc34-.d.cts} +0 -0
- /package/dist/{kv-CYySNrsn.d.ts → kv-jg_8SMc1.d.ts} +0 -0
- /package/dist/{mod-1E3W847c.d.ts → mod-AGjRfPjT.d.ts} +0 -0
- /package/dist/{mod-C81L6_lQ.d.cts → mod-gq_Xfdz8.d.cts} +0 -0
- /package/dist/{nodeinfo-BlLsRSiT.js → nodeinfo-DoESQxq5.js} +0 -0
- /package/dist/{owner-C-zfmVAD.d.cts → owner-9yZ5Ibsb.d.cts} +0 -0
- /package/dist/{owner-BgI8C-VY.d.ts → owner-DQYAbVmX.d.ts} +0 -0
- /package/dist/{sig-CwuONEzF.js → sig-BNhspNOf.js} +0 -0
- /package/dist/{sig-DeXX2xnj.cjs → sig-vX39WyWI.cjs} +0 -0
- /package/dist/{transformers-N_ip_y4P.js → transformers-C3FLHUd6.js} +0 -0
- /package/dist/{types-8l28uC8o.js → types-C93Ob9cU.js} +0 -0
- /package/dist/{utils-Db0ZmjcD.cjs → utils-BQ9KqEK9.cjs} +0 -0
- /package/dist/{utils-Wranxuoe.js → utils-Dn5OPdSW.js} +0 -0
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
6
|
+
import { deno_default } from "./deno-BTAi5-ur.js";
|
|
7
7
|
import { Router, RouterError } from "./router-D9eI0s4b.js";
|
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
|
8
|
+
import { InboxListenerSet } from "./inbox-CdBcxHA7.js";
|
|
9
9
|
import { getLogger } from "@logtape/logtape";
|
|
10
10
|
import { getTypeId } from "@fedify/vocab";
|
|
11
11
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
@@ -44,7 +44,7 @@ var FederationBuilderImpl = class {
|
|
|
44
44
|
this.collectionTypeIds = {};
|
|
45
45
|
}
|
|
46
46
|
async build(options) {
|
|
47
|
-
const { FederationImpl } = await import("./middleware-
|
|
47
|
+
const { FederationImpl } = await import("./middleware-DG4UsFBP.js");
|
|
48
48
|
const f = new FederationImpl(options);
|
|
49
49
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
50
50
|
f.router = this.router.clone();
|
|
@@ -9,6 +9,12 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
9
9
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
10
|
var __getProtoOf = Object.getPrototypeOf;
|
|
11
11
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all) __defProp(target, name, {
|
|
14
|
+
get: all[name],
|
|
15
|
+
enumerable: true
|
|
16
|
+
});
|
|
17
|
+
};
|
|
12
18
|
var __copyProps = (to, from, except, desc) => {
|
|
13
19
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
14
20
|
key = keys[i];
|
|
@@ -19,6 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
25
|
}
|
|
20
26
|
return to;
|
|
21
27
|
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
22
29
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
30
|
value: mod,
|
|
24
31
|
enumerable: true
|
|
@@ -26,6 +33,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
33
|
|
|
27
34
|
//#endregion
|
|
28
35
|
|
|
36
|
+
Object.defineProperty(exports, '__export', {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return __export;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, '__reExport', {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return __reExport;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
29
48
|
Object.defineProperty(exports, '__toESM', {
|
|
30
49
|
enumerable: true,
|
|
31
50
|
get: function () {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
+
|
|
5
|
+
//#region rolldown:runtime
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
18
|
+
key = keys[i];
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
20
|
+
get: ((k) => from[k]).bind(null, key),
|
|
21
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { __export, __reExport };
|
package/dist/compat/mod.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_transformers = require('../transformers-
|
|
5
|
+
const require_transformers = require('../transformers-3g8GZwkZ.cjs');
|
|
6
6
|
require('../compat-DmDDELst.cjs');
|
|
7
7
|
|
|
8
8
|
exports.actorDehydrator = require_transformers.actorDehydrator;
|
package/dist/compat/mod.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../client-
|
|
2
|
-
import "../http-
|
|
3
|
-
import "../owner-
|
|
4
|
-
import { ActivityTransformer } from "../context-
|
|
5
|
-
import "../kv-
|
|
6
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
1
|
+
import "../client-CwkOPN13.cjs";
|
|
2
|
+
import "../http-CCEu-x1_.cjs";
|
|
3
|
+
import "../owner-9yZ5Ibsb.cjs";
|
|
4
|
+
import { ActivityTransformer } from "../context-Zqld1re2.cjs";
|
|
5
|
+
import "../kv-g9jFc34-.cjs";
|
|
6
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-DFWeUq2q.cjs";
|
|
7
7
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../client-
|
|
4
|
-
import "../http-
|
|
5
|
-
import "../owner-
|
|
6
|
-
import { ActivityTransformer } from "../context-
|
|
7
|
-
import "../kv-
|
|
8
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-
|
|
3
|
+
import "../client-a7NwzhA2.js";
|
|
4
|
+
import "../http-CODSJcKx.js";
|
|
5
|
+
import "../owner-DQYAbVmX.js";
|
|
6
|
+
import { ActivityTransformer } from "../context-CJO1oqSa.js";
|
|
7
|
+
import "../kv-jg_8SMc1.js";
|
|
8
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-Bpuc-q64.js";
|
|
9
9
|
export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
package/dist/compat/mod.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-
|
|
6
|
-
import "../compat-
|
|
5
|
+
import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-C3FLHUd6.js";
|
|
6
|
+
import "../compat-Bb4NuTUO.js";
|
|
7
7
|
|
|
8
8
|
export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
|
|
@@ -8,25 +8,25 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
11
|
+
import "../deno-BTAi5-ur.js";
|
|
12
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-DaOdxVOc.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BI6sqU5u.js";
|
|
17
|
+
import "../http-C4WANccp.js";
|
|
18
|
+
import "../ld-qTcTL2A4.js";
|
|
19
|
+
import "../owner-Cfmtlwoe.js";
|
|
20
|
+
import "../proof-Bc8ULrzP.js";
|
|
21
|
+
import "../docloader-D8dzb6AT.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CdBcxHA7.js";
|
|
24
|
+
import "../builder-CvKuNW7P.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BKW3wSXo.js";
|
|
30
30
|
import { Follow, Person } from "@fedify/vocab";
|
|
31
31
|
|
|
32
32
|
//#region src/compat/transformers.test.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-
|
|
4
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
|
5
|
-
import { GetKeyOwnerOptions } from "./owner-
|
|
6
|
-
import { KvKey, KvStore } from "./kv-
|
|
3
|
+
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-a7NwzhA2.js";
|
|
4
|
+
import { HttpMessageSignaturesSpec } from "./http-CODSJcKx.js";
|
|
5
|
+
import { GetKeyOwnerOptions } from "./owner-DQYAbVmX.js";
|
|
6
|
+
import { KvKey, KvStore } from "./kv-jg_8SMc1.js";
|
|
7
7
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, TraverseCollectionOptions } from "@fedify/vocab";
|
|
8
8
|
import { Span, Tracer, TracerProvider } from "@opentelemetry/api";
|
|
9
9
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-
|
|
2
|
-
import { HttpMessageSignaturesSpec } from "./http-
|
|
3
|
-
import { GetKeyOwnerOptions } from "./owner-
|
|
4
|
-
import { KvKey, KvStore } from "./kv-
|
|
1
|
+
import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-CwkOPN13.cjs";
|
|
2
|
+
import { HttpMessageSignaturesSpec } from "./http-CCEu-x1_.cjs";
|
|
3
|
+
import { GetKeyOwnerOptions } from "./owner-9yZ5Ibsb.cjs";
|
|
4
|
+
import { KvKey, KvStore } from "./kv-g9jFc34-.cjs";
|
|
5
5
|
import { Activity, Actor, Collection, CryptographicKey, Hashtag, Link, LookupObjectOptions, Multikey, Object as Object$1, Recipient, TraverseCollectionOptions } from "@fedify/vocab";
|
|
6
6
|
import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "@fedify/vocab-runtime";
|
|
7
7
|
import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "@fedify/webfinger";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
//#region deno.json
|
|
7
7
|
var name = "@fedify/fedify";
|
|
8
|
-
var version = "2.0.0-dev.
|
|
8
|
+
var version = "2.0.0-dev.323+1d796545";
|
|
9
9
|
var license = "MIT";
|
|
10
10
|
var exports = {
|
|
11
11
|
".": "./src/mod.ts",
|
|
@@ -13,8 +13,10 @@ var exports = {
|
|
|
13
13
|
"./federation": "./src/federation/mod.ts",
|
|
14
14
|
"./nodeinfo": "./src/nodeinfo/mod.ts",
|
|
15
15
|
"./otel": "./src/otel/mod.ts",
|
|
16
|
+
"./runtime": "./src/runtime/mod.ts",
|
|
16
17
|
"./sig": "./src/sig/mod.ts",
|
|
17
|
-
"./utils": "./src/utils/mod.ts"
|
|
18
|
+
"./utils": "./src/utils/mod.ts",
|
|
19
|
+
"./vocab": "./src/vocab/mod.ts"
|
|
18
20
|
};
|
|
19
21
|
var imports = {
|
|
20
22
|
"@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
6
|
+
import { validateCryptoKey } from "./key-BI6sqU5u.js";
|
|
7
|
+
import { doubleKnock } from "./http-C4WANccp.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { curry } from "es-toolkit";
|
|
10
10
|
import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
@@ -8,10 +8,10 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
11
|
+
import "../deno-BTAi5-ur.js";
|
|
12
12
|
import "../router-D9eI0s4b.js";
|
|
13
|
-
import "../inbox-
|
|
14
|
-
import { createFederationBuilder } from "../builder-
|
|
13
|
+
import "../inbox-CdBcxHA7.js";
|
|
14
|
+
import { createFederationBuilder } from "../builder-CvKuNW7P.js";
|
|
15
15
|
import { assertExists } from "../std__assert-DWivtrGR.js";
|
|
16
16
|
import "../assert_rejects-Ce45JcFg.js";
|
|
17
17
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -8,25 +8,25 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
11
|
+
import "../deno-BTAi5-ur.js";
|
|
12
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DaOdxVOc.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import { signRequest } from "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BI6sqU5u.js";
|
|
17
|
+
import { signRequest } from "../http-C4WANccp.js";
|
|
18
|
+
import "../ld-qTcTL2A4.js";
|
|
19
|
+
import "../owner-Cfmtlwoe.js";
|
|
20
|
+
import "../proof-Bc8ULrzP.js";
|
|
21
|
+
import "../docloader-D8dzb6AT.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import { InboxListenerSet } from "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import { InboxListenerSet } from "../inbox-CdBcxHA7.js";
|
|
24
|
+
import "../builder-CvKuNW7P.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BKW3wSXo.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -8,25 +8,25 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation } from "../middleware-
|
|
11
|
+
import "../deno-BTAi5-ur.js";
|
|
12
|
+
import { createFederation } from "../middleware-DaOdxVOc.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import { signObject } from "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BI6sqU5u.js";
|
|
17
|
+
import "../http-C4WANccp.js";
|
|
18
|
+
import "../ld-qTcTL2A4.js";
|
|
19
|
+
import "../owner-Cfmtlwoe.js";
|
|
20
|
+
import { signObject } from "../proof-Bc8ULrzP.js";
|
|
21
|
+
import "../docloader-D8dzb6AT.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CdBcxHA7.js";
|
|
24
|
+
import "../builder-CvKuNW7P.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BKW3wSXo.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -198,5 +198,41 @@ test("Federation.setInboxListeners().withIdempotency() - custom callback", async
|
|
|
198
198
|
assertEquals(response.status, 202);
|
|
199
199
|
assertEquals(processedActivities.length, 3);
|
|
200
200
|
});
|
|
201
|
+
test("Federation.setInboxListeners() - default strategy is per-inbox", async () => {
|
|
202
|
+
const federation = createTestFederation();
|
|
203
|
+
const processedActivities = [];
|
|
204
|
+
federation.setInboxListeners("/users/{identifier}/inbox", "/inbox").on(Create, (ctx, activity$1) => {
|
|
205
|
+
processedActivities.push([ctx.recipient, activity$1]);
|
|
206
|
+
});
|
|
207
|
+
const activity = new Create({
|
|
208
|
+
id: new URL("https://example.com/activities/6"),
|
|
209
|
+
actor: new URL("https://example.com/person2")
|
|
210
|
+
});
|
|
211
|
+
const signedActivity = await signObject(activity, ed25519PrivateKey, ed25519Multikey.id);
|
|
212
|
+
const body = JSON.stringify(await signedActivity.toJsonLd({ contextLoader: mockDocumentLoader }));
|
|
213
|
+
let response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
|
214
|
+
method: "POST",
|
|
215
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
216
|
+
body
|
|
217
|
+
}), { contextData: void 0 });
|
|
218
|
+
assertEquals(response.status, 202);
|
|
219
|
+
assertEquals(processedActivities.length, 1);
|
|
220
|
+
assertEquals(processedActivities[0][0], "john");
|
|
221
|
+
response = await federation.fetch(new Request("https://example.com/inbox", {
|
|
222
|
+
method: "POST",
|
|
223
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
224
|
+
body
|
|
225
|
+
}), { contextData: void 0 });
|
|
226
|
+
assertEquals(response.status, 202);
|
|
227
|
+
assertEquals(processedActivities.length, 2);
|
|
228
|
+
assertEquals(processedActivities[1][0], null);
|
|
229
|
+
response = await federation.fetch(new Request("https://example.com/users/john/inbox", {
|
|
230
|
+
method: "POST",
|
|
231
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
232
|
+
body
|
|
233
|
+
}), { contextData: void 0 });
|
|
234
|
+
assertEquals(response.status, 202);
|
|
235
|
+
assertEquals(processedActivities.length, 2);
|
|
236
|
+
});
|
|
201
237
|
|
|
202
238
|
//#endregion
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../deno-
|
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
|
8
|
+
import "../deno-BTAi5-ur.js";
|
|
9
|
+
import { InboxListenerSet } from "../inbox-CdBcxHA7.js";
|
|
10
10
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
11
11
|
import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
|
|
12
12
|
|
|
@@ -8,25 +8,25 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import "../deno-BTAi5-ur.js";
|
|
12
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-DaOdxVOc.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import { RouterError } from "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import { signRequest, verifyRequest } from "../http-
|
|
18
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
|
20
|
-
import { signObject, verifyObject } from "../proof-
|
|
21
|
-
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-
|
|
16
|
+
import "../key-BI6sqU5u.js";
|
|
17
|
+
import { signRequest, verifyRequest } from "../http-C4WANccp.js";
|
|
18
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-qTcTL2A4.js";
|
|
19
|
+
import { doesActorOwnKey } from "../owner-Cfmtlwoe.js";
|
|
20
|
+
import { signObject, verifyObject } from "../proof-Bc8ULrzP.js";
|
|
21
|
+
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-D8dzb6AT.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CdBcxHA7.js";
|
|
24
|
+
import "../builder-CvKuNW7P.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BKW3wSXo.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
require('../transformers-
|
|
6
|
-
require('../http-
|
|
7
|
-
const require_middleware = require('../middleware-
|
|
8
|
-
require('../proof-
|
|
9
|
-
const require_federation = require('../federation-
|
|
10
|
-
require('../types-
|
|
11
|
-
require('../kv-cache-
|
|
5
|
+
require('../transformers-3g8GZwkZ.cjs');
|
|
6
|
+
require('../http-BCfCt7nq.cjs');
|
|
7
|
+
const require_middleware = require('../middleware-nW8ONmt3.cjs');
|
|
8
|
+
require('../proof-BoqEqbih.cjs');
|
|
9
|
+
const require_federation = require('../federation-Bp3HI26G.cjs');
|
|
10
|
+
require('../types-Cd_hszr_.cjs');
|
|
11
|
+
require('../kv-cache-Dk9UX_M2.cjs');
|
|
12
12
|
|
|
13
13
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
14
14
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../client-
|
|
2
|
-
import "../http-
|
|
3
|
-
import "../owner-
|
|
4
|
-
import { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
5
|
-
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
6
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-
|
|
1
|
+
import "../client-CwkOPN13.cjs";
|
|
2
|
+
import "../http-CCEu-x1_.cjs";
|
|
3
|
+
import "../owner-9yZ5Ibsb.cjs";
|
|
4
|
+
import { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-Zqld1re2.cjs";
|
|
5
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-g9jFc34-.cjs";
|
|
6
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-CKtAEVny.cjs";
|
|
7
7
|
export { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../client-
|
|
4
|
-
import "../http-
|
|
5
|
-
import "../owner-
|
|
6
|
-
import { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-
|
|
7
|
-
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-
|
|
8
|
-
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-
|
|
3
|
+
import "../client-a7NwzhA2.js";
|
|
4
|
+
import "../http-CODSJcKx.js";
|
|
5
|
+
import "../owner-DQYAbVmX.js";
|
|
6
|
+
import { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../context-CJO1oqSa.js";
|
|
7
|
+
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore } from "../kv-jg_8SMc1.js";
|
|
8
|
+
import { WebFingerHandlerParameters, handleWebFinger } from "../mod-C92O3FpJ.js";
|
|
9
9
|
export { 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, InProcessMessageQueue, InProcessMessageQueueOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore, Message, MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParallelMessageQueue, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, Rfc6570Expression, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, WebFingerHandlerParameters, WebFingerLinksDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
package/dist/federation/mod.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import "../transformers-
|
|
6
|
-
import "../http-
|
|
7
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
8
|
-
import "../proof-
|
|
9
|
-
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-
|
|
10
|
-
import "../types-
|
|
11
|
-
import "../kv-cache-
|
|
5
|
+
import "../transformers-C3FLHUd6.js";
|
|
6
|
+
import "../http-C02fQ5SX.js";
|
|
7
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-LQKxYF7X.js";
|
|
8
|
+
import "../proof-OjMPhNWs.js";
|
|
9
|
+
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-DaMfqRm4.js";
|
|
10
|
+
import "../types-C93Ob9cU.js";
|
|
11
|
+
import "../kv-cache-BLxaWwPk.js";
|
|
12
12
|
|
|
13
13
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -7,11 +7,11 @@ import { createTestTracerProvider, mockDocumentLoader, test } from "../dist-B5f6
|
|
|
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
|
-
import "../deno-
|
|
11
|
-
import "../key-
|
|
12
|
-
import { verifyRequest } from "../http-
|
|
13
|
-
import { doesActorOwnKey } from "../owner-
|
|
14
|
-
import { extractInboxes, sendActivity } from "../send-
|
|
10
|
+
import "../deno-BTAi5-ur.js";
|
|
11
|
+
import "../key-BI6sqU5u.js";
|
|
12
|
+
import { verifyRequest } from "../http-C4WANccp.js";
|
|
13
|
+
import { doesActorOwnKey } from "../owner-Cfmtlwoe.js";
|
|
14
|
+
import { extractInboxes, sendActivity } from "../send-BKW3wSXo.js";
|
|
15
15
|
import "../std__assert-DWivtrGR.js";
|
|
16
16
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
17
17
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -8,25 +8,25 @@ 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-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation, handleWebFinger } from "../middleware-
|
|
11
|
+
import "../deno-BTAi5-ur.js";
|
|
12
|
+
import { createFederation, handleWebFinger } from "../middleware-DaOdxVOc.js";
|
|
13
13
|
import "../client-Dg7OfUDA.js";
|
|
14
14
|
import "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
16
|
+
import "../key-BI6sqU5u.js";
|
|
17
|
+
import "../http-C4WANccp.js";
|
|
18
|
+
import "../ld-qTcTL2A4.js";
|
|
19
|
+
import "../owner-Cfmtlwoe.js";
|
|
20
|
+
import "../proof-Bc8ULrzP.js";
|
|
21
|
+
import "../docloader-D8dzb6AT.js";
|
|
22
22
|
import "../kv-cache-B__dHl7g.js";
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
23
|
+
import "../inbox-CdBcxHA7.js";
|
|
24
|
+
import "../builder-CvKuNW7P.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-DRxpZ5r9.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-BKW3wSXo.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_chunk = require('./chunk-
|
|
5
|
+
const require_chunk = require('./chunk-CGaQZ11T.cjs');
|
|
6
6
|
const es_toolkit = require_chunk.__toESM(require("es-toolkit"));
|
|
7
7
|
|
|
8
8
|
//#region src/federation/kv.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_chunk = require('./chunk-
|
|
5
|
+
const require_chunk = require('./chunk-CGaQZ11T.cjs');
|
|
6
6
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
7
7
|
const __fedify_vocab = require_chunk.__toESM(require("@fedify/vocab"));
|
|
8
8
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
@@ -14,7 +14,7 @@ const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runt
|
|
|
14
14
|
|
|
15
15
|
//#region deno.json
|
|
16
16
|
var name = "@fedify/fedify";
|
|
17
|
-
var version = "2.0.0-dev.
|
|
17
|
+
var version = "2.0.0-dev.323+1d796545";
|
|
18
18
|
var license = "MIT";
|
|
19
19
|
var exports$1 = {
|
|
20
20
|
".": "./src/mod.ts",
|
|
@@ -22,8 +22,10 @@ var exports$1 = {
|
|
|
22
22
|
"./federation": "./src/federation/mod.ts",
|
|
23
23
|
"./nodeinfo": "./src/nodeinfo/mod.ts",
|
|
24
24
|
"./otel": "./src/otel/mod.ts",
|
|
25
|
+
"./runtime": "./src/runtime/mod.ts",
|
|
25
26
|
"./sig": "./src/sig/mod.ts",
|
|
26
|
-
"./utils": "./src/utils/mod.ts"
|
|
27
|
+
"./utils": "./src/utils/mod.ts",
|
|
28
|
+
"./vocab": "./src/vocab/mod.ts"
|
|
27
29
|
};
|
|
28
30
|
var imports = {
|
|
29
31
|
"@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
|