@fedify/fedify 2.3.0-dev.1069 → 2.3.0-dev.1079

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.
Files changed (71) hide show
  1. package/dist/{builder-DQ2zYTeA.mjs → builder-DqT-OPZ8.mjs} +4 -4
  2. package/dist/{chunk-QSgtlS85.mjs → chunk-DNRtMIoB.mjs} +1 -1
  3. package/dist/compat/outgoing-jsonld.test.mjs +2 -2
  4. package/dist/compat/public-audience.test.mjs +2 -2
  5. package/dist/compat/transformers.test.mjs +2 -2
  6. package/dist/{context-7Azky82W.mjs → context-BAE7AKLA.mjs} +61 -3
  7. package/dist/{deno-CFXqOz6w.mjs → deno-BxqkYxIf.mjs} +1 -1
  8. package/dist/{docloader-QNtAtTZF.mjs → docloader-vsZP01ww.mjs} +3 -3
  9. package/dist/{esm-DhnRLoG9.mjs → esm-sdtqOUPu.mjs} +5 -7
  10. package/dist/{execAsync-eck5rbtb.mjs → execAsync-DCBrgFiV.mjs} +2 -2
  11. package/dist/federation/builder.test.mjs +3 -3
  12. package/dist/federation/handler.test.mjs +4 -4
  13. package/dist/federation/idempotency.test.mjs +3 -3
  14. package/dist/federation/inbox.test.mjs +1 -1
  15. package/dist/federation/keycache.test.mjs +1 -1
  16. package/dist/federation/middleware.test.mjs +10 -10
  17. package/dist/federation/mod.cjs +1 -1
  18. package/dist/federation/mod.js +1 -1
  19. package/dist/federation/mq.test.mjs +1 -1
  20. package/dist/federation/negotiation.test.mjs +1 -1
  21. package/dist/federation/router.test.mjs +1 -1
  22. package/dist/federation/send.test.mjs +133 -139
  23. package/dist/federation/webfinger.test.mjs +3 -3
  24. package/dist/{getMachineId-bsd-DqZ4QRFp.mjs → getMachineId-bsd-etIyxDet.mjs} +3 -3
  25. package/dist/{getMachineId-darwin-DMbbW3m7.mjs → getMachineId-darwin-D23zTf4g.mjs} +3 -3
  26. package/dist/{getMachineId-linux-lyeD2ug3.mjs → getMachineId-linux-ObI47Hql.mjs} +2 -2
  27. package/dist/{getMachineId-unsupported-JuKr57jY.mjs → getMachineId-unsupported-Ddu-PFeh.mjs} +2 -2
  28. package/dist/{getMachineId-win-Dxyf5pJq.mjs → getMachineId-win-Dpap6v5i.mjs} +3 -3
  29. package/dist/{http-QHJGzUe8.mjs → http-DM4ZAFCe.mjs} +3 -3
  30. package/dist/{http-e1wtIlFo.cjs → http-DQ25_ruv.cjs} +1 -1
  31. package/dist/{http-D2EDlTr2.js → http-b__OS_rJ.js} +1 -1
  32. package/dist/{key-CpAxygvh.mjs → key-BNp_b9oE.mjs} +2 -2
  33. package/dist/{kv-cache-KLjvIlKt.js → kv-cache-D5vjOi5y.js} +1 -1
  34. package/dist/{kv-cache-B3GfB70S.cjs → kv-cache-DzctboPD.cjs} +1 -1
  35. package/dist/{ld-Ce_vkKjG.mjs → ld-L9w529xq.mjs} +3 -3
  36. package/dist/{middleware-DOLrvK_b.cjs → middleware-CMF242Rg.cjs} +56 -35
  37. package/dist/{middleware-DsGmXfXz.mjs → middleware-CTdNwf_s.mjs} +23 -15
  38. package/dist/{middleware-BJMPv7_l.mjs → middleware-CpCSD43m.mjs} +1 -1
  39. package/dist/{middleware-De241etq.js → middleware-DZNHpEbh.js} +40 -3
  40. package/dist/mod.cjs +4 -4
  41. package/dist/mod.js +4 -4
  42. package/dist/{negotiation-VnHNB0Q5.mjs → negotiation-DDstyBvc.mjs} +29 -0
  43. package/dist/nodeinfo/client.test.mjs +2 -2
  44. package/dist/nodeinfo/handler.test.mjs +2 -2
  45. package/dist/otel/exporter.test.mjs +2 -2
  46. package/dist/{outgoing-jsonld-Bi7n-dEy.mjs → outgoing-jsonld-BgFLCJQ_.mjs} +2 -2
  47. package/dist/{owner-DmgzyItA.mjs → owner-C30LGgMz.mjs} +2 -2
  48. package/dist/{proof-C3q2IhUr.mjs → proof-BjToRsXF.mjs} +5 -5
  49. package/dist/{proof-DLDsFYfD.js → proof-CO1qAbN8.js} +1 -1
  50. package/dist/{proof-BU1TpFYI.cjs → proof-zrLeLWgt.cjs} +3 -3
  51. package/dist/{send-CTi2iPXp.mjs → send-DzbMznU6.mjs} +3 -3
  52. package/dist/sig/http.test.mjs +22 -27
  53. package/dist/sig/key.test.mjs +2 -2
  54. package/dist/sig/ld.test.mjs +3 -3
  55. package/dist/sig/mod.cjs +2 -2
  56. package/dist/sig/mod.js +2 -2
  57. package/dist/sig/owner.test.mjs +2 -2
  58. package/dist/sig/proof.test.mjs +3 -3
  59. package/dist/testing/mod.d.mts +6 -1
  60. package/dist/testing/mod.mjs +1 -2
  61. package/dist/utils/docloader.test.mjs +3 -3
  62. package/dist/utils/kv-cache.test.mjs +2 -2
  63. package/dist/utils/mod.cjs +1 -1
  64. package/dist/utils/mod.js +1 -1
  65. package/dist/vocab/cjs.test.mjs +1 -1
  66. package/package.json +14 -14
  67. package/dist/middleware-CibncbiT.cjs +0 -4
  68. package/dist/{client-CIiz1WX7.mjs → client-B_A6mfn3.mjs} +1 -1
  69. package/dist/{kv-cache-Bmv7tUzz.mjs → kv-cache-EaVpV2xQ.mjs} +1 -1
  70. package/dist/{public-audience-PVTwU_Ex.mjs → public-audience-N3pyOx2p.mjs} +1 -1
  71. /package/dist/{router-CrMLXoOr.mjs → router-BT_F5748.mjs} +0 -0
@@ -1,12 +1,12 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as RouterError, t as Router } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-CFXqOz6w.mjs";
4
+ import { n as RouterError, t as Router } from "./router-BT_F5748.mjs";
5
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
6
6
  import { t as ActivityListenerSet } from "./activity-listener-tztVvlNb.mjs";
7
+ import { getLogger } from "@logtape/logtape";
7
8
  import { Tombstone, getTypeId } from "@fedify/vocab";
8
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
- import { getLogger } from "@logtape/logtape";
10
10
  //#region src/federation/builder.ts
11
11
  const ACTOR_ALIAS_PREFIX = "actorAlias:";
12
12
  function validateSingleIdentifierVariablePath(path, errorMessage) {
@@ -59,7 +59,7 @@ var FederationBuilderImpl = class {
59
59
  this.collectionTypeIds = {};
60
60
  }
61
61
  async build(options) {
62
- const { FederationImpl } = await import("./middleware-BJMPv7_l.mjs");
62
+ const { FederationImpl } = await import("./middleware-CpCSD43m.mjs");
63
63
  const f = new FederationImpl(options);
64
64
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
65
65
  f.router = this.router.clone();
@@ -9,7 +9,7 @@ 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 __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
12
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
13
13
  var __copyProps = (to, from, except, desc) => {
14
14
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
15
  key = keys[i];
@@ -3,9 +3,9 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { t as assertStrictEquals } from "../assert_strict_equals-Dmjbg-bA.mjs";
6
- import { n as normalizeAttachmentArrays, r as normalizeOutgoingActivityJsonLd, t as isPreloadedContextAttachmentSafe } from "../outgoing-jsonld-Bi7n-dEy.mjs";
7
- import { mockDocumentLoader, test } from "@fedify/fixture";
6
+ import { n as normalizeAttachmentArrays, r as normalizeOutgoingActivityJsonLd, t as isPreloadedContextAttachmentSafe } from "../outgoing-jsonld-BgFLCJQ_.mjs";
8
7
  import { Create, Document, Note, PUBLIC_COLLECTION } from "@fedify/vocab";
8
+ import { mockDocumentLoader, test } from "@fedify/fixture";
9
9
  //#region src/compat/outgoing-jsonld.test.ts
10
10
  test("normalizeAttachmentArrays() wraps scalar attachments", async () => {
11
11
  const object = (await normalizeAttachmentArrays({
@@ -3,9 +3,9 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
6
- import { t as normalizePublicAudience } from "../public-audience-PVTwU_Ex.mjs";
7
- import { test } from "@fedify/fixture";
6
+ import { t as normalizePublicAudience } from "../public-audience-N3pyOx2p.mjs";
8
7
  import { Create, Note, PUBLIC_COLLECTION } from "@fedify/vocab";
8
+ import { test } from "@fedify/fixture";
9
9
  import { getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
10
10
  //#region src/compat/public-audience.test.ts
11
11
  const PUBLIC_URI = PUBLIC_COLLECTION.href;
@@ -5,9 +5,9 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
6
6
  import { t as assert } from "../assert-DikXweDx.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
8
- import { n as FederationImpl, v as actorDehydrator, y as autoIdAssigner } from "../middleware-DsGmXfXz.mjs";
9
- import { test } from "@fedify/fixture";
8
+ import { n as FederationImpl, v as actorDehydrator, y as autoIdAssigner } from "../middleware-CTdNwf_s.mjs";
10
9
  import { Follow, Person } from "@fedify/vocab";
10
+ import { test } from "@fedify/fixture";
11
11
  //#region src/compat/transformers.test.ts
12
12
  const context = new FederationImpl({ kv: new MemoryKvStore() }).createContext(new URL("http://example.com/"));
13
13
  test("autoIdAssigner", async () => {
@@ -1,11 +1,69 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as RouterError } from "./router-CrMLXoOr.mjs";
5
- import { mockDocumentLoader } from "@fedify/fixture";
4
+ import { n as RouterError } from "./router-BT_F5748.mjs";
5
+ import { getLogger } from "@logtape/logtape";
6
+ import "@opentelemetry/sdk-trace-base";
7
+ import "@opentelemetry/core";
6
8
  import { lookupObject, traverseCollection } from "@fedify/vocab";
7
9
  import { lookupWebFinger } from "@fedify/webfinger";
8
10
  import { metrics, trace } from "@opentelemetry/api";
11
+ //#region ../fixture/dist/mod.js
12
+ const logger = getLogger(["fixture", "docloader"]);
13
+ /**
14
+ * A mock of the document loader. This does not make any actual HTTP requests
15
+ * towards the remote server, but looks up the local fixture files instead.
16
+ *
17
+ * For instance, `mockDocumentLoader("http://example.com/foo/bar")` will look up
18
+ * the file `testing/fixtures/http/example.com/foo/bar` (no suffix) and return
19
+ * its content as the response.
20
+ */
21
+ async function mockDocumentLoader(resource, _options) {
22
+ const url = new URL(resource);
23
+ if ("navigator" in globalThis && navigator.userAgent === "Cloudflare-Workers") {
24
+ const testUrl = new URL(url);
25
+ testUrl.hostname += ".test";
26
+ const resp = await fetch(testUrl);
27
+ if (resp.ok) {
28
+ const document = await resp.json();
29
+ logger.debug("Successfully fetched fixture {resource}: {status} {statusText}\n{body}", {
30
+ resource,
31
+ status: resp.status,
32
+ statusText: resp.statusText,
33
+ body: document
34
+ });
35
+ return {
36
+ contextUrl: null,
37
+ document,
38
+ documentUrl: resource
39
+ };
40
+ }
41
+ const error = await resp.text();
42
+ logger.error("Failed to fetch fixture {resource}: {error}", {
43
+ resource,
44
+ error
45
+ });
46
+ throw new Error(error);
47
+ }
48
+ const fixturePath = `${"Deno" in globalThis ? "." : "@fedify/fixture"}/fixtures/${url.host}${url.pathname}.json`;
49
+ let document;
50
+ try {
51
+ document = (await import(fixturePath, { with: { type: "json" } })).default;
52
+ } catch (error) {
53
+ logger.error("Failed to read fixture file {path}: {error}", {
54
+ path: fixturePath,
55
+ error
56
+ });
57
+ throw error;
58
+ }
59
+ return {
60
+ contextUrl: null,
61
+ document,
62
+ documentUrl: resource
63
+ };
64
+ }
65
+ const testDefinitions = [];
66
+ //#endregion
9
67
  //#region src/testing/context.ts
10
68
  function createContext(values) {
11
69
  const { federation, url = new URL("http://example.com/"), canonicalOrigin, data, documentLoader, contextLoader, meterProvider, tracerProvider, clone, getNodeInfoUri, getActorUri, getObjectUri, getCollectionUri, getOutboxUri, getInboxUri, getFollowingUri, getFollowersUri, getLikedUri, getFeaturedUri, getFeaturedTagsUri, parseUri, getActorKeyPairs, getDocumentLoader, lookupObject: lookupObject$1, traverseCollection: traverseCollection$1, lookupNodeInfo, lookupWebFinger: lookupWebFinger$1, sendActivity, routeActivity } = values;
@@ -118,4 +176,4 @@ function createOutboxContext(args) {
118
176
  };
119
177
  }
120
178
  //#endregion
121
- export { createOutboxContext as n, createRequestContext as r, createInboxContext as t };
179
+ export { testDefinitions as i, createOutboxContext as n, createRequestContext as r, createInboxContext as t };
@@ -3,6 +3,6 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region deno.json
5
5
  var name = "@fedify/fedify";
6
- var version = "2.3.0-dev.1069+81e910ce";
6
+ var version = "2.3.0-dev.1079+36ac23d1";
7
7
  //#endregion
8
8
  export { version as n, name as t };
@@ -1,11 +1,11 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { o as validateCryptoKey } from "./key-CpAxygvh.mjs";
5
- import { n as doubleKnock } from "./http-QHJGzUe8.mjs";
4
+ import { o as validateCryptoKey } from "./key-BNp_b9oE.mjs";
5
+ import { n as doubleKnock } from "./http-DM4ZAFCe.mjs";
6
+ import { getLogger } from "@logtape/logtape";
6
7
  import { curry } from "es-toolkit";
7
8
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
8
- import { getLogger } from "@logtape/logtape";
9
9
  //#region src/utils/docloader.ts
10
10
  const logger = getLogger([
11
11
  "fedify",
@@ -1,9 +1,10 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { r as __toESM, t as __commonJSMin } from "./chunk-QSgtlS85.mjs";
5
- //#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
6
- var require_glob_to_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ import { r as __toESM, t as __commonJSMin } from "./chunk-DNRtMIoB.mjs";
5
+ //#endregion
6
+ //#region ../../node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.mjs
7
+ var import_glob_to_regexp = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
7
8
  module.exports = function(glob, opts) {
8
9
  if (typeof glob !== "string") throw new TypeError("Expected a string");
9
10
  var str = String(glob);
@@ -74,9 +75,7 @@ var require_glob_to_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) =>
74
75
  if (!flags || !~flags.indexOf("g")) reStr = "^" + reStr + "$";
75
76
  return new RegExp(reStr, flags);
76
77
  };
77
- }));
78
- //#endregion
79
- //#region ../../node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.mjs
78
+ })))(), 1);
80
79
  /**
81
80
  * @param {string|RegExp} input The route pattern
82
81
  * @param {boolean} [loose] Allow open-ended matching. Ignored with `RegExp` input.
@@ -431,7 +430,6 @@ function normalizeHeaders(headers) {
431
430
  }
432
431
  //#endregion
433
432
  //#region ../../node_modules/.pnpm/fetch-mock@12.6.0/node_modules/fetch-mock/dist/esm/Matchers.js
434
- var import_glob_to_regexp = /* @__PURE__ */ __toESM(require_glob_to_regexp(), 1);
435
433
  const isUrlMatcher = (matcher) => matcher instanceof RegExp || typeof matcher === "string" || typeof matcher === "object" && "href" in matcher;
436
434
  const isFunctionMatcher = (matcher) => typeof matcher === "function";
437
435
  const stringMatchers = {
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as __require, t as __commonJSMin } from "./chunk-QSgtlS85.mjs";
5
- //#region ../../node_modules/.pnpm/@opentelemetry+resources@2.5.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
4
+ import { n as __require, t as __commonJSMin } from "./chunk-DNRtMIoB.mjs";
5
+ //#region ../../node_modules/.pnpm/@opentelemetry+resources@2.7.1_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
6
6
  var require_execAsync = /* @__PURE__ */ __commonJSMin(((exports) => {
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.execAsync = void 0;
@@ -1,14 +1,14 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as RouterError } from "../router-CrMLXoOr.mjs";
4
+ import { n as RouterError } from "../router-BT_F5748.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import { i as assertExists } from "../std__assert-CRDpx_HF.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
9
- import { r as createFederationBuilder } from "../builder-DQ2zYTeA.mjs";
10
- import { test } from "@fedify/fixture";
9
+ import { r as createFederationBuilder } from "../builder-DqT-OPZ8.mjs";
11
10
  import { Activity, Note, Person } from "@fedify/vocab";
11
+ import { test } from "@fedify/fixture";
12
12
  //#region src/federation/builder.test.ts
13
13
  test("FederationBuilder", async (t) => {
14
14
  await t.step("should build a Federation object with registered components", async () => {
@@ -1,19 +1,19 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as createOutboxContext, r as createRequestContext, t as createInboxContext } from "../context-7Azky82W.mjs";
4
+ import { n as createOutboxContext, r as createRequestContext, t as createInboxContext } from "../context-BAE7AKLA.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import { r as assertGreaterOrEqual } from "../std__assert-CRDpx_HF.mjs";
7
7
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
8
8
  import { t as assert } from "../assert-DikXweDx.mjs";
9
9
  import { r as parseAcceptSignature } from "../accept-CceiKpCy.mjs";
10
- import { s as signRequest } from "../http-QHJGzUe8.mjs";
10
+ import { s as signRequest } from "../http-DM4ZAFCe.mjs";
11
11
  import { a as rsaPrivateKey3, c as rsaPublicKey3, s as rsaPublicKey2 } from "../keys-C3kae-6B.mjs";
12
12
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
13
- import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-DsGmXfXz.mjs";
13
+ import { c as handleActor, d as handleInbox, f as handleObject, h as respondWithObjectIfAcceptable, l as handleCollection, m as respondWithObject, o as createFederation, p as handleOutbox, u as handleCustomCollection } from "../middleware-CTdNwf_s.mjs";
14
14
  import { t as ActivityListenerSet } from "../activity-listener-tztVvlNb.mjs";
15
- import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
15
  import { Activity, Create, Note, Person, Tombstone } from "@fedify/vocab";
16
+ import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
17
17
  import { FetchError } from "@fedify/vocab-runtime";
18
18
  //#region src/federation/handler.test.ts
19
19
  const QUOTE_CONTEXT_TERMS = {
@@ -4,11 +4,11 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-CRDpx_HF.mjs";
6
6
  import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-C3kae-6B.mjs";
7
- import { r as signObject } from "../proof-C3q2IhUr.mjs";
7
+ import { r as signObject } from "../proof-BjToRsXF.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
9
- import { o as createFederation } from "../middleware-DsGmXfXz.mjs";
10
- import { mockDocumentLoader, test } from "@fedify/fixture";
9
+ import { o as createFederation } from "../middleware-CTdNwf_s.mjs";
11
10
  import { Create, Follow, Person } from "@fedify/vocab";
11
+ import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  //#region src/federation/idempotency.test.ts
13
13
  const kv = new MemoryKvStore();
14
14
  const federationOptions = {
@@ -4,8 +4,8 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
6
6
  import { t as ActivityListenerSet } from "../activity-listener-tztVvlNb.mjs";
7
- import { test } from "@fedify/fixture";
8
7
  import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
8
+ import { test } from "@fedify/fixture";
9
9
  //#region src/federation/inbox.test.ts
10
10
  test("ActivityListenerSet", () => {
11
11
  const listeners = new ActivityListenerSet();
@@ -6,8 +6,8 @@ import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
6
6
  import { t as assert } from "../assert-DikXweDx.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
8
8
  import { t as KvKeyCache } from "../keycache-BeU0LCII.mjs";
9
- import { test } from "@fedify/fixture";
10
9
  import { CryptographicKey, Multikey } from "@fedify/vocab";
10
+ import { test } from "@fedify/fixture";
11
11
  //#region src/federation/keycache.test.ts
12
12
  test("KvKeyCache.set()", async () => {
13
13
  const kv = new MemoryKvStore();
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as RouterError } from "../router-CrMLXoOr.mjs";
4
+ import { n as RouterError } from "../router-BT_F5748.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import { i as assertExists } from "../std__assert-CRDpx_HF.mjs";
7
7
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
@@ -10,20 +10,20 @@ import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
10
10
  import { t as assertNotEquals } from "../assert_not_equals--wG9hV7u.mjs";
11
11
  import { t as assertStrictEquals } from "../assert_strict_equals-Dmjbg-bA.mjs";
12
12
  import { t as assert } from "../assert-DikXweDx.mjs";
13
- import { t as esm_default } from "../esm-DhnRLoG9.mjs";
14
- import { l as verifyRequest, s as signRequest } from "../http-QHJGzUe8.mjs";
13
+ import { t as esm_default } from "../esm-sdtqOUPu.mjs";
14
+ import { l as verifyRequest, s as signRequest } from "../http-DM4ZAFCe.mjs";
15
15
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-C3kae-6B.mjs";
16
- import { t as getAuthenticatedDocumentLoader } from "../docloader-QNtAtTZF.mjs";
17
- import { a as signJsonLd, o as verifyJsonLd, r as detachSignature } from "../ld-Ce_vkKjG.mjs";
18
- import { t as doesActorOwnKey } from "../owner-DmgzyItA.mjs";
19
- import { i as verifyObject, r as signObject } from "../proof-C3q2IhUr.mjs";
16
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-vsZP01ww.mjs";
17
+ import { a as signJsonLd, o as verifyJsonLd, r as detachSignature } from "../ld-L9w529xq.mjs";
18
+ import { t as doesActorOwnKey } from "../owner-C30LGgMz.mjs";
19
+ import { i as verifyObject, r as signObject } from "../proof-BjToRsXF.mjs";
20
20
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
21
- import { i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-DsGmXfXz.mjs";
22
- import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
21
+ import { i as KvSpecDeterminer, n as FederationImpl, o as createFederation, r as InboxContextImpl, t as ContextImpl } from "../middleware-CTdNwf_s.mjs";
22
+ import { configure, reset } from "@logtape/logtape";
23
23
  import * as vocab from "@fedify/vocab";
24
24
  import { getTypeId, lookupObject } from "@fedify/vocab";
25
+ import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
25
26
  import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
26
- import { configure, reset } from "@logtape/logtape";
27
27
  import serialize from "json-canon";
28
28
  //#region ../fixture/src/fixtures/example.com/create.json
29
29
  var id$2 = "https://example.com/create";
@@ -2,7 +2,7 @@ const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("../chunk-DDcVe30Y.cjs");
5
- const require_middleware = require("../middleware-DOLrvK_b.cjs");
5
+ const require_middleware = require("../middleware-CMF242Rg.cjs");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  //#region src/federation/kv.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "../middleware-De241etq.js";
3
+ import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "../middleware-DZNHpEbh.js";
4
4
  import { isEqual } from "es-toolkit";
5
5
  //#region src/federation/kv.ts
6
6
  /**
@@ -5,8 +5,8 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { n as assertGreater, r as assertGreaterOrEqual } from "../std__assert-CRDpx_HF.mjs";
6
6
  import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assert } from "../assert-DikXweDx.mjs";
8
- import { test } from "@fedify/fixture";
9
8
  import { delay } from "es-toolkit";
9
+ import { test } from "@fedify/fixture";
10
10
  //#region src/federation/mq.ts
11
11
  /**
12
12
  * A message queue that processes messages in the same process.
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import "../std__assert-CRDpx_HF.mjs";
5
5
  import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
6
6
  import { t as assert } from "../assert-DikXweDx.mjs";
7
- import { t as acceptsJsonLd } from "../negotiation-VnHNB0Q5.mjs";
7
+ import { t as acceptsJsonLd } from "../negotiation-DDstyBvc.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/federation/negotiation.test.ts
10
10
  test("acceptsJsonLd()", () => {
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as RouterError, t as Router } from "../router-CrMLXoOr.mjs";
4
+ import { n as RouterError, t as Router } from "../router-BT_F5748.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-CRDpx_HF.mjs";
7
7
  import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";