@fedify/fedify 2.0.0-pr.479.1919 → 2.0.0-pr.490.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/{actor-CTcfCF-e.js → actor-BT-e5fn9.js} +1 -1
- package/dist/{actor-aoIDzHM-.js → actor-B_gRMloq.js} +185 -185
- package/dist/{actor-eSbSJCyv.cjs → actor-CBfPjuWj.cjs} +185 -185
- package/dist/{builder-CKCsO0nM.js → builder-4syLV1-z.js} +3 -3
- package/dist/compat/transformers.test.js +14 -14
- package/dist/{docloader-COSFvh5S.js → docloader-DndkGj0O.js} +2 -2
- package/dist/{esm-D5OetL8h.js → esm-VlKMJQqV.js} +32 -17
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +102 -15
- package/dist/federation/idempotency.test.js +15 -15
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +16 -16
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +52 -9
- package/dist/{http-aoeFmy2i.js → http-DH47B-h3.js} +2 -2
- package/dist/{http-BNMiToHH.cjs → http-Dxpqz4hE.cjs} +2 -2
- package/dist/{http-DbWw9vtS.js → http-YhR_TMMQ.js} +2 -2
- package/dist/{inbox-BeP4imwe.js → inbox-CEyHvxOo.js} +1 -1
- package/dist/{key-D2WGU6SD.js → key-x7E5PYI0.js} +2 -2
- package/dist/{keycache-0LcBz2yy.js → keycache-BRXuBDuy.js} +1 -1
- package/dist/{keys-AHG-wt-J.js → keys-DLk_8H-l.js} +1 -1
- package/dist/{kv-cache-CfUWFmLz.cjs → kv-cache-BMpfJFTx.cjs} +1 -1
- package/dist/{kv-cache-CcQpkali.js → kv-cache-HFnFIjSD.js} +1 -1
- package/dist/{ld-DphsGJfY.js → ld-CRPaU6c8.js} +2 -2
- package/dist/{lookup-DNfkdH2x.cjs → lookup-BTqtVATt.cjs} +4 -3
- package/dist/{lookup-Cg1nNCOj.js → lookup-DOSnR912.js} +4 -3
- package/dist/{lookup-rb-YQy27.js → lookup-Dj9-mgOn.js} +193 -187
- package/dist/{middleware-Bfc-TPm2.js → middleware-BIqFwRwI.js} +18 -11
- package/dist/{middleware-Brv2gzXG.cjs → middleware-Ck7O6mb0.cjs} +21 -9
- package/dist/middleware-CxswDtQn.js +15 -0
- package/dist/middleware-CyITsnX0.js +26 -0
- package/dist/{middleware-D_oWwl2e.js → middleware-DfLpMu7C.js} +21 -9
- package/dist/middleware-Z8lc_drL.cjs +15 -0
- package/dist/mod.cjs +7 -7
- package/dist/mod.js +7 -7
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +14 -14
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/otel-1BmGPuZc.js +64 -0
- package/dist/{owner-BK0A2Bj5.js → owner-CIWnopkT.js} +44 -8
- package/dist/{proof-nZk-m5gi.js → proof-C8-2l0zH.js} +45 -9
- package/dist/{proof-iTdPd6ob.js → proof-D-5ri6rf.js} +2 -2
- package/dist/{proof-CBjhU6M6.cjs → proof-fEwcA7LA.cjs} +44 -8
- package/dist/{send-C-Bq89Nu.js → send-CPGk9QKZ.js} +9 -4
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +4 -4
- package/dist/sig/mod.js +4 -4
- package/dist/sig/owner.test.js +30 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-W17blAnV.js → testing-BslrM_9E.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +2 -2
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +26 -4
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +157 -157
- package/dist/{vocab-Rb_a6qW2.js → vocab-ByUp-A2_.js} +7 -2
- package/dist/{vocab-Dhp1MW3o.cjs → vocab-X_X5T8D3.cjs} +7 -2
- package/dist/webfinger/handler.test.js +14 -14
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/package.json +9 -5
- package/dist/middleware-B0_G1lxv.js +0 -26
- package/dist/middleware-BFamiqxv.js +0 -15
- package/dist/middleware-zpuco1qg.cjs +0 -15
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Router, RouterError, deno_default, getTypeId } from "./lookup-
|
|
7
|
-
import { InboxListenerSet } from "./inbox-
|
|
6
|
+
import { Router, RouterError, deno_default, getTypeId } from "./lookup-Dj9-mgOn.js";
|
|
7
|
+
import { InboxListenerSet } from "./inbox-CEyHvxOo.js";
|
|
8
8
|
import { getLogger } from "@logtape/logtape";
|
|
9
9
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
10
10
|
|
|
@@ -42,7 +42,7 @@ var FederationBuilderImpl = class {
|
|
|
42
42
|
this.collectionTypeIds = {};
|
|
43
43
|
}
|
|
44
44
|
async build(options) {
|
|
45
|
-
const { FederationImpl } = await import("./middleware-
|
|
45
|
+
const { FederationImpl } = await import("./middleware-CyITsnX0.js");
|
|
46
46
|
const f = new FederationImpl(options);
|
|
47
47
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
48
48
|
f.router = this.router.clone();
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Follow, Person } from "../lookup-
|
|
6
|
+
import { Follow, Person } from "../lookup-Dj9-mgOn.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-BIqFwRwI.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-BT-e5fn9.js";
|
|
15
|
+
import "../key-x7E5PYI0.js";
|
|
16
|
+
import "../http-DH47B-h3.js";
|
|
17
|
+
import "../ld-CRPaU6c8.js";
|
|
18
|
+
import "../owner-CIWnopkT.js";
|
|
19
|
+
import "../proof-D-5ri6rf.js";
|
|
20
|
+
import "../docloader-DndkGj0O.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-CEyHvxOo.js";
|
|
23
|
+
import "../builder-4syLV1-z.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BRXuBDuy.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { test } from "../testing-
|
|
28
|
+
import "../send-CPGk9QKZ.js";
|
|
29
|
+
import { test } from "../testing-BslrM_9E.js";
|
|
30
30
|
|
|
31
31
|
//#region src/compat/transformers.test.ts
|
|
32
32
|
const federation = new FederationImpl({ kv: new MemoryKvStore() });
|
|
@@ -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-x7E5PYI0.js";
|
|
7
|
+
import { doubleKnock } from "./http-DH47B-h3.js";
|
|
8
8
|
import { curry } from "es-toolkit";
|
|
9
9
|
import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
10
10
|
import { getLogger } from "@logtape/logtape";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { __commonJS, __toESM } from "./lookup-
|
|
6
|
+
import { __commonJS, __toESM } from "./lookup-Dj9-mgOn.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) {
|
|
@@ -115,7 +115,7 @@ function parse(input, loose) {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
//#endregion
|
|
118
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
118
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/TypeDescriptor.js
|
|
119
119
|
const valueTypes = new Set([
|
|
120
120
|
"boolean",
|
|
121
121
|
"number",
|
|
@@ -207,7 +207,7 @@ var TypeDescriptor = class TypeDescriptor {
|
|
|
207
207
|
};
|
|
208
208
|
|
|
209
209
|
//#endregion
|
|
210
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
210
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/IsSubsetOf.js
|
|
211
211
|
const allowedTypes = new Set([
|
|
212
212
|
"array",
|
|
213
213
|
"object",
|
|
@@ -366,7 +366,7 @@ function dequal(foo, bar) {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
//#endregion
|
|
369
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
369
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/RequestUtils.js
|
|
370
370
|
const absoluteUrlRX = new RegExp("^[a-z]+://|^data:", "i");
|
|
371
371
|
const protocolRelativeUrlRX = new RegExp("^//", "i");
|
|
372
372
|
function hasCredentialsInUrl(url) {
|
|
@@ -431,6 +431,11 @@ function getPath(url) {
|
|
|
431
431
|
const u = absoluteUrlRX.test(url) ? new URL(url) : new URL(url, "http://dummy");
|
|
432
432
|
return u.pathname;
|
|
433
433
|
}
|
|
434
|
+
function getHost(url) {
|
|
435
|
+
if (absoluteUrlRX.test(url)) return new URL(url).host;
|
|
436
|
+
else if ("location" in globalThis) return globalThis.location.host;
|
|
437
|
+
return null;
|
|
438
|
+
}
|
|
434
439
|
function getQuery(url) {
|
|
435
440
|
const u = absoluteUrlRX.test(url) ? new URL(url) : new URL(url, "http://dummy");
|
|
436
441
|
return u.search ? u.search.substr(1) : "";
|
|
@@ -444,7 +449,7 @@ function normalizeHeaders(headers) {
|
|
|
444
449
|
}
|
|
445
450
|
|
|
446
451
|
//#endregion
|
|
447
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
452
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/Matchers.js
|
|
448
453
|
var import_glob_to_regexp = __toESM(require_glob_to_regexp(), 1);
|
|
449
454
|
const isUrlMatcher = (matcher) => matcher instanceof RegExp || typeof matcher === "string" || typeof matcher === "object" && "href" in matcher;
|
|
450
455
|
const isFunctionMatcher = (matcher) => typeof matcher === "function";
|
|
@@ -475,6 +480,9 @@ const stringMatchers = {
|
|
|
475
480
|
const path = getPath(url);
|
|
476
481
|
return path === targetString || path === dotlessTargetString;
|
|
477
482
|
};
|
|
483
|
+
},
|
|
484
|
+
host: (targetString) => {
|
|
485
|
+
return ({ url }) => targetString === getHost(url);
|
|
478
486
|
}
|
|
479
487
|
};
|
|
480
488
|
const getHeaderMatcher = ({ headers: expectedHeaders }) => {
|
|
@@ -627,7 +635,7 @@ const builtInMatchers = [
|
|
|
627
635
|
];
|
|
628
636
|
|
|
629
637
|
//#endregion
|
|
630
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
638
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/StatusTextMap.js
|
|
631
639
|
const statusTextMap = {
|
|
632
640
|
100: "Continue",
|
|
633
641
|
101: "Switching Protocols",
|
|
@@ -695,7 +703,7 @@ const statusTextMap = {
|
|
|
695
703
|
var StatusTextMap_default = statusTextMap;
|
|
696
704
|
|
|
697
705
|
//#endregion
|
|
698
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
706
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/Route.js
|
|
699
707
|
var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind, f) {
|
|
700
708
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
701
709
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -829,7 +837,7 @@ builtInMatchers.forEach(Route.defineMatcher);
|
|
|
829
837
|
var Route_default = Route;
|
|
830
838
|
|
|
831
839
|
//#endregion
|
|
832
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
840
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/Router.js
|
|
833
841
|
const responseConfigProps = [
|
|
834
842
|
"body",
|
|
835
843
|
"headers",
|
|
@@ -881,18 +889,23 @@ var Router = class {
|
|
|
881
889
|
throwSpecExceptions(callLog);
|
|
882
890
|
return new Promise(async (resolve, reject) => {
|
|
883
891
|
const { url, options, request, pendingPromises } = callLog;
|
|
892
|
+
let eventListenerAbortController;
|
|
884
893
|
if (callLog.signal) {
|
|
885
894
|
const abort = () => {
|
|
886
895
|
const error = new DOMException("The operation was aborted.", "AbortError");
|
|
887
896
|
const requestBody = request?.body || options?.body;
|
|
888
|
-
if (requestBody instanceof ReadableStream) if (requestBody.locked)
|
|
897
|
+
if (requestBody instanceof ReadableStream) if (requestBody.locked) console.warn("fetch-mock: Locked request body can't be cancelled");
|
|
889
898
|
else requestBody.cancel(error);
|
|
890
|
-
if (callLog?.response?.body) if (callLog.response.body.locked)
|
|
899
|
+
if (callLog?.response?.body) if (callLog.response.body.locked) console.warn("fetch-mock: Locked response body can't be cancelled");
|
|
891
900
|
else callLog.response.body.cancel(error);
|
|
892
901
|
reject(error);
|
|
893
902
|
};
|
|
894
903
|
if (callLog.signal.aborted) abort();
|
|
895
|
-
|
|
904
|
+
eventListenerAbortController = new AbortController();
|
|
905
|
+
callLog.signal.addEventListener("abort", abort, {
|
|
906
|
+
once: true,
|
|
907
|
+
signal: eventListenerAbortController.signal
|
|
908
|
+
});
|
|
896
909
|
}
|
|
897
910
|
if (this.needsToReadBody(request)) options.body = await options.body;
|
|
898
911
|
const routesToTry = this.fallbackRoute ? [...this.routes, this.fallbackRoute] : this.routes;
|
|
@@ -905,6 +918,8 @@ var Router = class {
|
|
|
905
918
|
resolve(observableResponse);
|
|
906
919
|
} catch (err) {
|
|
907
920
|
reject(err);
|
|
921
|
+
} finally {
|
|
922
|
+
eventListenerAbortController?.abort();
|
|
908
923
|
}
|
|
909
924
|
else reject(/* @__PURE__ */ new Error(`fetch-mock: No response or fallback rule to cover ${options && options.method || "GET"} to ${url}`));
|
|
910
925
|
});
|
|
@@ -1002,7 +1017,7 @@ var Router = class {
|
|
|
1002
1017
|
};
|
|
1003
1018
|
|
|
1004
1019
|
//#endregion
|
|
1005
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
1020
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/CallHistory.js
|
|
1006
1021
|
const isName = (filter) => typeof filter === "string" && /^[\da-zA-Z-]+$/.test(filter) && !["matched", "unmatched"].includes(filter);
|
|
1007
1022
|
const isMatchedOrUnmatched = (filter) => typeof filter === "boolean" || ["matched", "unmatched"].includes(filter);
|
|
1008
1023
|
var CallHistory = class {
|
|
@@ -1032,11 +1047,11 @@ var CallHistory = class {
|
|
|
1032
1047
|
let calls = [...this.callLogs];
|
|
1033
1048
|
if (typeof filter === "undefined" && !options) return calls;
|
|
1034
1049
|
if (isMatchedOrUnmatched(filter)) {
|
|
1035
|
-
if ([true, "matched"].includes(filter)) calls = calls.filter(({ route }) => !route.config.isFallback);
|
|
1036
|
-
else if ([false, "unmatched"].includes(filter)) calls = calls.filter(({ route }) => Boolean(route.config.isFallback));
|
|
1050
|
+
if ([true, "matched"].includes(filter)) calls = calls.filter(({ route }) => !route?.config || !route.config.isFallback);
|
|
1051
|
+
else if ([false, "unmatched"].includes(filter)) calls = calls.filter(({ route }) => Boolean(route?.config && route.config.isFallback));
|
|
1037
1052
|
if (!options) return calls;
|
|
1038
1053
|
} else if (isName(filter)) {
|
|
1039
|
-
calls = calls.filter(({ route
|
|
1054
|
+
calls = calls.filter(({ route }) => route?.config?.name === filter);
|
|
1040
1055
|
if (!options) return calls;
|
|
1041
1056
|
} else if (isUrlMatcher(filter)) options = {
|
|
1042
1057
|
url: filter,
|
|
@@ -1087,7 +1102,7 @@ var CallHistory = class {
|
|
|
1087
1102
|
var CallHistory_default = CallHistory;
|
|
1088
1103
|
|
|
1089
1104
|
//#endregion
|
|
1090
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
1105
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/FetchMock.js
|
|
1091
1106
|
const defaultFetchMockConfig = {
|
|
1092
1107
|
includeContentLength: true,
|
|
1093
1108
|
matchPartialBody: false,
|
|
@@ -1220,7 +1235,7 @@ const fetchMock = new FetchMock({ ...defaultFetchMockConfig });
|
|
|
1220
1235
|
var FetchMock_default = fetchMock;
|
|
1221
1236
|
|
|
1222
1237
|
//#endregion
|
|
1223
|
-
//#region ../../node_modules/.pnpm/fetch-mock@12.
|
|
1238
|
+
//#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/index.js
|
|
1224
1239
|
var esm_default = FetchMock_default;
|
|
1225
1240
|
|
|
1226
1241
|
//#endregion
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Note, Person } from "../lookup-
|
|
6
|
+
import { Activity, Note, Person } from "../lookup-Dj9-mgOn.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 "../inbox-
|
|
12
|
-
import { createFederationBuilder } from "../builder-
|
|
13
|
-
import { test } from "../testing-
|
|
11
|
+
import "../inbox-CEyHvxOo.js";
|
|
12
|
+
import { createFederationBuilder } from "../builder-4syLV1-z.js";
|
|
13
|
+
import { test } from "../testing-BslrM_9E.js";
|
|
14
14
|
import { assertExists } from "../std__assert-DWivtrGR.js";
|
|
15
15
|
import "../assert_rejects-Ce45JcFg.js";
|
|
16
16
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-Dj9-mgOn.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 { buildCollectionSynchronizationHeader, digest } from "../collection-BzWsN9pB.js";
|
|
11
|
-
import { test } from "../testing-
|
|
11
|
+
import { test } from "../testing-BslrM_9E.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,35 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Note, Person } from "../lookup-
|
|
6
|
+
import { Create, Note, Person } from "../lookup-Dj9-mgOn.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-
|
|
11
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-BIqFwRwI.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import { signRequest } from "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-BT-e5fn9.js";
|
|
15
|
+
import "../key-x7E5PYI0.js";
|
|
16
|
+
import { signRequest } from "../http-DH47B-h3.js";
|
|
17
|
+
import "../ld-CRPaU6c8.js";
|
|
18
|
+
import "../owner-CIWnopkT.js";
|
|
19
|
+
import "../proof-D-5ri6rf.js";
|
|
20
|
+
import "../docloader-DndkGj0O.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import { InboxListenerSet } from "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import { InboxListenerSet } from "../inbox-CEyHvxOo.js";
|
|
23
|
+
import "../builder-4syLV1-z.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BRXuBDuy.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CPGk9QKZ.js";
|
|
29
|
+
import { createInboxContext, createRequestContext, mockDocumentLoader, test } from "../testing-BslrM_9E.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
33
33
|
import "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
34
|
+
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DLk_8H-l.js";
|
|
35
|
+
import { createTestTracerProvider } from "../otel-1BmGPuZc.js";
|
|
35
36
|
|
|
36
37
|
//#region src/federation/handler.test.ts
|
|
37
38
|
test("handleActor()", async () => {
|
|
@@ -1481,5 +1482,91 @@ test("handleCustomCollection()", async () => {
|
|
|
1481
1482
|
assertEquals(onNotFoundCalled, null);
|
|
1482
1483
|
assertEquals(onUnauthorizedCalled, null);
|
|
1483
1484
|
});
|
|
1485
|
+
test("handleInbox() records OpenTelemetry span events", async () => {
|
|
1486
|
+
const [tracerProvider, exporter] = createTestTracerProvider();
|
|
1487
|
+
const kv = new MemoryKvStore();
|
|
1488
|
+
const federation = createFederation({
|
|
1489
|
+
kv,
|
|
1490
|
+
tracerProvider
|
|
1491
|
+
});
|
|
1492
|
+
const activity = new Create({
|
|
1493
|
+
id: new URL("https://example.com/activity"),
|
|
1494
|
+
actor: new URL("https://example.com/users/someone"),
|
|
1495
|
+
object: new Note({
|
|
1496
|
+
id: new URL("https://example.com/note"),
|
|
1497
|
+
content: "Hello, world!"
|
|
1498
|
+
})
|
|
1499
|
+
});
|
|
1500
|
+
const request = new Request("https://example.com/users/someone/inbox", {
|
|
1501
|
+
method: "POST",
|
|
1502
|
+
headers: { "Content-Type": "application/activity+json" },
|
|
1503
|
+
body: JSON.stringify(await activity.toJsonLd())
|
|
1504
|
+
});
|
|
1505
|
+
const signed = await signRequest(request, rsaPrivateKey3, new URL("https://example.com/users/someone#main-key"));
|
|
1506
|
+
const context = createRequestContext({
|
|
1507
|
+
federation,
|
|
1508
|
+
request: signed,
|
|
1509
|
+
url: new URL(signed.url),
|
|
1510
|
+
data: void 0,
|
|
1511
|
+
documentLoader: mockDocumentLoader,
|
|
1512
|
+
contextLoader: mockDocumentLoader,
|
|
1513
|
+
getActorUri(identifier) {
|
|
1514
|
+
return new URL(`https://example.com/users/${identifier}`);
|
|
1515
|
+
}
|
|
1516
|
+
});
|
|
1517
|
+
const actorDispatcher = (ctx, handle) => {
|
|
1518
|
+
if (handle !== "someone") return null;
|
|
1519
|
+
return new Person({
|
|
1520
|
+
id: ctx.getActorUri(handle),
|
|
1521
|
+
name: "Someone",
|
|
1522
|
+
inbox: new URL("https://example.com/users/someone/inbox"),
|
|
1523
|
+
publicKey: rsaPublicKey2
|
|
1524
|
+
});
|
|
1525
|
+
};
|
|
1526
|
+
const listeners = new InboxListenerSet();
|
|
1527
|
+
let receivedActivity = null;
|
|
1528
|
+
listeners.add(Create, (_ctx, activity$1) => {
|
|
1529
|
+
receivedActivity = activity$1;
|
|
1530
|
+
});
|
|
1531
|
+
const response = await handleInbox(signed, {
|
|
1532
|
+
recipient: "someone",
|
|
1533
|
+
context,
|
|
1534
|
+
inboxContextFactory(_activity) {
|
|
1535
|
+
return createInboxContext({
|
|
1536
|
+
...context,
|
|
1537
|
+
clone: void 0
|
|
1538
|
+
});
|
|
1539
|
+
},
|
|
1540
|
+
kv,
|
|
1541
|
+
kvPrefixes: {
|
|
1542
|
+
activityIdempotence: ["activityIdempotence"],
|
|
1543
|
+
publicKey: ["publicKey"]
|
|
1544
|
+
},
|
|
1545
|
+
actorDispatcher,
|
|
1546
|
+
inboxListeners: listeners,
|
|
1547
|
+
inboxErrorHandler: void 0,
|
|
1548
|
+
onNotFound: (_request) => new Response("Not found", { status: 404 }),
|
|
1549
|
+
signatureTimeWindow: false,
|
|
1550
|
+
skipSignatureVerification: true,
|
|
1551
|
+
tracerProvider
|
|
1552
|
+
});
|
|
1553
|
+
assertEquals(response.status, 202);
|
|
1554
|
+
assert(receivedActivity != null);
|
|
1555
|
+
const spans = exporter.getSpans("activitypub.inbox");
|
|
1556
|
+
assertEquals(spans.length, 1);
|
|
1557
|
+
const span = spans[0];
|
|
1558
|
+
assertEquals(span.attributes["fedify.inbox.recipient"], "someone");
|
|
1559
|
+
assertEquals(span.attributes["activitypub.activity.id"], "https://example.com/activity");
|
|
1560
|
+
const events = exporter.getEvents("activitypub.inbox", "activitypub.activity.received");
|
|
1561
|
+
assertEquals(events.length, 1);
|
|
1562
|
+
const event = events[0];
|
|
1563
|
+
assert(event.attributes != null);
|
|
1564
|
+
assertEquals(event.attributes["activitypub.activity.verified"], true);
|
|
1565
|
+
assertEquals(event.attributes["http_signatures.verified"], false);
|
|
1566
|
+
assert(typeof event.attributes["activitypub.activity.json"] === "string");
|
|
1567
|
+
const recordedActivity = JSON.parse(event.attributes["activitypub.activity.json"]);
|
|
1568
|
+
assertEquals(recordedActivity.id, "https://example.com/activity");
|
|
1569
|
+
assertEquals(recordedActivity.type, "Create");
|
|
1570
|
+
});
|
|
1484
1571
|
|
|
1485
1572
|
//#endregion
|
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Create, Follow, Person } from "../lookup-
|
|
6
|
+
import { Create, Follow, Person } from "../lookup-Dj9-mgOn.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 { createFederation } from "../middleware-
|
|
11
|
+
import { createFederation } from "../middleware-BIqFwRwI.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import { signObject } from "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-BT-e5fn9.js";
|
|
15
|
+
import "../key-x7E5PYI0.js";
|
|
16
|
+
import "../http-DH47B-h3.js";
|
|
17
|
+
import "../ld-CRPaU6c8.js";
|
|
18
|
+
import "../owner-CIWnopkT.js";
|
|
19
|
+
import { signObject } from "../proof-D-5ri6rf.js";
|
|
20
|
+
import "../docloader-DndkGj0O.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-CEyHvxOo.js";
|
|
23
|
+
import "../builder-4syLV1-z.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BRXuBDuy.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CPGk9QKZ.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-BslrM_9E.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
33
33
|
import "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-
|
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-DLk_8H-l.js";
|
|
35
35
|
|
|
36
36
|
//#region src/federation/idempotency.test.ts
|
|
37
37
|
const kv = new MemoryKvStore();
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Create, Invite, Offer, Update } from "../lookup-
|
|
6
|
+
import { Activity, Create, Invite, Offer, Update } from "../lookup-Dj9-mgOn.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import { InboxListenerSet } from "../inbox-
|
|
9
|
-
import { test } from "../testing-
|
|
8
|
+
import { InboxListenerSet } from "../inbox-CEyHvxOo.js";
|
|
9
|
+
import { test } from "../testing-BslrM_9E.js";
|
|
10
10
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
11
11
|
|
|
12
12
|
//#region src/federation/inbox.test.ts
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { CryptographicKey, Multikey } from "../lookup-
|
|
6
|
+
import { CryptographicKey, Multikey } from "../lookup-Dj9-mgOn.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 { KvKeyCache } from "../keycache-
|
|
12
|
-
import { test } from "../testing-
|
|
11
|
+
import { KvKeyCache } from "../keycache-BRXuBDuy.js";
|
|
12
|
+
import { test } from "../testing-BslrM_9E.js";
|
|
13
13
|
|
|
14
14
|
//#region src/federation/keycache.test.ts
|
|
15
15
|
test("KvKeyCache.set()", async () => {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import "../lookup-
|
|
6
|
+
import "../lookup-Dj9-mgOn.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 { test } from "../testing-
|
|
11
|
+
import { test } from "../testing-BslrM_9E.js";
|
|
12
12
|
import "../std__assert-DWivtrGR.js";
|
|
13
13
|
import "../assert_rejects-Ce45JcFg.js";
|
|
14
14
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, RouterError, getTypeId, lookupObject } from "../lookup-
|
|
6
|
+
import { Activity, Announce, Create, Invite, Multikey, Note, Object as Object$1, Offer, Person, RouterError, getTypeId, lookupObject } from "../lookup-Dj9-mgOn.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 { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
11
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-BIqFwRwI.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import { signRequest, verifyRequest } from "../http-
|
|
17
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
18
|
-
import { doesActorOwnKey } from "../owner-
|
|
19
|
-
import { signObject, verifyObject } from "../proof-
|
|
20
|
-
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-
|
|
14
|
+
import "../actor-BT-e5fn9.js";
|
|
15
|
+
import "../key-x7E5PYI0.js";
|
|
16
|
+
import { signRequest, verifyRequest } from "../http-DH47B-h3.js";
|
|
17
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-CRPaU6c8.js";
|
|
18
|
+
import { doesActorOwnKey } from "../owner-CIWnopkT.js";
|
|
19
|
+
import { signObject, verifyObject } from "../proof-D-5ri6rf.js";
|
|
20
|
+
import { fetchDocumentLoader, getAuthenticatedDocumentLoader } from "../docloader-DndkGj0O.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-CEyHvxOo.js";
|
|
23
|
+
import "../builder-4syLV1-z.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-BRXuBDuy.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { mockDocumentLoader, test } from "../testing-
|
|
28
|
+
import "../send-CPGk9QKZ.js";
|
|
29
|
+
import { mockDocumentLoader, test } from "../testing-BslrM_9E.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";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-
|
|
35
|
-
import { esm_default } from "../esm-
|
|
34
|
+
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-DLk_8H-l.js";
|
|
35
|
+
import { esm_default } from "../esm-VlKMJQqV.js";
|
|
36
36
|
|
|
37
37
|
//#region src/testing/fixtures/example.com/create.json
|
|
38
38
|
var __context$2 = "https://www.w3.org/ns/activitystreams";
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
require('../transformers-CoBS-oFG.cjs');
|
|
6
|
-
require('../lookup-
|
|
7
|
-
require('../actor-
|
|
8
|
-
const require_middleware = require('../middleware-
|
|
9
|
-
require('../http-
|
|
10
|
-
require('../proof-
|
|
6
|
+
require('../lookup-BTqtVATt.cjs');
|
|
7
|
+
require('../actor-CBfPjuWj.cjs');
|
|
8
|
+
const require_middleware = require('../middleware-Ck7O6mb0.cjs');
|
|
9
|
+
require('../http-Dxpqz4hE.cjs');
|
|
10
|
+
require('../proof-fEwcA7LA.cjs');
|
|
11
11
|
const require_federation = require('../federation-CRpdnOMS.cjs');
|
|
12
12
|
require('../types-CWgzGaqk.cjs');
|
|
13
|
-
require('../kv-cache-
|
|
14
|
-
require('../vocab-
|
|
13
|
+
require('../kv-cache-BMpfJFTx.cjs');
|
|
14
|
+
require('../vocab-X_X5T8D3.cjs');
|
|
15
15
|
|
|
16
16
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
17
17
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-BFT6d7J5.js";
|
|
6
|
-
import "../lookup-
|
|
7
|
-
import "../actor-
|
|
8
|
-
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
9
|
-
import "../http-
|
|
10
|
-
import "../proof-
|
|
6
|
+
import "../lookup-DOSnR912.js";
|
|
7
|
+
import "../actor-B_gRMloq.js";
|
|
8
|
+
import { Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-DfLpMu7C.js";
|
|
9
|
+
import "../http-YhR_TMMQ.js";
|
|
10
|
+
import "../proof-C8-2l0zH.js";
|
|
11
11
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-jcR8-ZxP.js";
|
|
12
12
|
import "../types-BtUjyi5y.js";
|
|
13
|
-
import "../kv-cache-
|
|
14
|
-
import "../vocab-
|
|
13
|
+
import "../kv-cache-HFnFIjSD.js";
|
|
14
|
+
import "../vocab-ByUp-A2_.js";
|
|
15
15
|
|
|
16
16
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
|