@fedify/fedify 2.3.0-dev.1050 → 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-5M0ZV0s3.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-BvRV20GH.mjs → deno-BxqkYxIf.mjs} +1 -1
  8. package/dist/{docloader-YOsFpxMZ.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-BETUCsB0.mjs → http-DM4ZAFCe.mjs} +3 -3
  30. package/dist/{http-DT4PVP4u.cjs → http-DQ25_ruv.cjs} +1 -1
  31. package/dist/{http-Cj-JmUpS.js → http-b__OS_rJ.js} +1 -1
  32. package/dist/{key-CjtOXvjb.mjs → key-BNp_b9oE.mjs} +2 -2
  33. package/dist/{kv-cache-BOU_yvQi.js → kv-cache-D5vjOi5y.js} +1 -1
  34. package/dist/{kv-cache-DqiCNMDz.cjs → kv-cache-DzctboPD.cjs} +1 -1
  35. package/dist/{ld-WRlX-hAe.mjs → ld-L9w529xq.mjs} +3 -3
  36. package/dist/{middleware-C-fzauLy.cjs → middleware-CMF242Rg.cjs} +56 -35
  37. package/dist/{middleware-BD-WrN2n.mjs → middleware-CTdNwf_s.mjs} +23 -15
  38. package/dist/{middleware-CAUZmBAN.mjs → middleware-CpCSD43m.mjs} +1 -1
  39. package/dist/{middleware-B0YQlYeu.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-B6F-ovsj.mjs → owner-C30LGgMz.mjs} +2 -2
  48. package/dist/{proof-CN82dCfF.mjs → proof-BjToRsXF.mjs} +5 -5
  49. package/dist/{proof-DCfIkmPR.js → proof-CO1qAbN8.js} +1 -1
  50. package/dist/{proof-CP3pE1Ok.cjs → proof-zrLeLWgt.cjs} +3 -3
  51. package/dist/{send-DNs8Rwv0.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 +15 -15
  67. package/dist/middleware-D3TvoZdj.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,13 +1,13 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { r as createRequestContext } from "../context-7Azky82W.mjs";
4
+ import { r as createRequestContext } from "../context-BAE7AKLA.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-CRDpx_HF.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
8
- import { o as createFederation, s as handleWebFinger } from "../middleware-BD-WrN2n.mjs";
9
- import { test } from "@fedify/fixture";
8
+ import { o as createFederation, s as handleWebFinger } from "../middleware-CTdNwf_s.mjs";
10
9
  import { Image, Link, Person, Tombstone } from "@fedify/vocab";
10
+ import { test } from "@fedify/fixture";
11
11
  //#region src/federation/webfinger.test.ts
12
12
  test("handleWebFinger()", async (t) => {
13
13
  const url = new URL("https://example.com/.well-known/webfinger");
@@ -1,9 +1,9 @@
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
- import { t as require_execAsync } from "./execAsync-eck5rbtb.mjs";
6
- //#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/getMachineId-bsd.js
4
+ import { n as __require, t as __commonJSMin } from "./chunk-DNRtMIoB.mjs";
5
+ import { t as require_execAsync } from "./execAsync-DCBrgFiV.mjs";
6
+ //#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/getMachineId-bsd.js
7
7
  var require_getMachineId_bsd = /* @__PURE__ */ __commonJSMin(((exports) => {
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.getMachineId = void 0;
@@ -1,9 +1,9 @@
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
- import { t as require_execAsync } from "./execAsync-eck5rbtb.mjs";
6
- //#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/getMachineId-darwin.js
4
+ import { n as __require, t as __commonJSMin } from "./chunk-DNRtMIoB.mjs";
5
+ import { t as require_execAsync } from "./execAsync-DCBrgFiV.mjs";
6
+ //#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/getMachineId-darwin.js
7
7
  var require_getMachineId_darwin = /* @__PURE__ */ __commonJSMin(((exports) => {
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.getMachineId = void 0;
@@ -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/getMachineId-linux.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/getMachineId-linux.js
6
6
  var require_getMachineId_linux = /* @__PURE__ */ __commonJSMin(((exports) => {
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.getMachineId = void 0;
@@ -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/getMachineId-unsupported.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/getMachineId-unsupported.js
6
6
  var require_getMachineId_unsupported = /* @__PURE__ */ __commonJSMin(((exports) => {
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.getMachineId = void 0;
@@ -1,9 +1,9 @@
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
- import { t as require_execAsync } from "./execAsync-eck5rbtb.mjs";
6
- //#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/getMachineId-win.js
4
+ import { n as __require, t as __commonJSMin } from "./chunk-DNRtMIoB.mjs";
5
+ import { t as require_execAsync } from "./execAsync-DCBrgFiV.mjs";
6
+ //#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/getMachineId-win.js
7
7
  var require_getMachineId_win = /* @__PURE__ */ __commonJSMin(((exports) => {
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.getMachineId = void 0;
@@ -1,13 +1,13 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BvRV20GH.mjs";
4
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
5
5
  import { i as validateAcceptSignature, n as fulfillAcceptSignature, r as parseAcceptSignature } from "./accept-CceiKpCy.mjs";
6
- import { o as validateCryptoKey, r as fetchKeyDetailed } from "./key-CjtOXvjb.mjs";
6
+ import { o as validateCryptoKey, r as fetchKeyDetailed } from "./key-BNp_b9oE.mjs";
7
+ import { getLogger } from "@logtape/logtape";
7
8
  import { CryptographicKey } from "@fedify/vocab";
8
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
9
10
  import { FetchError } from "@fedify/vocab-runtime";
10
- import { getLogger } from "@logtape/logtape";
11
11
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
12
12
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
13
13
  import { encodeHex } from "byte-encodings/hex";
@@ -11,7 +11,7 @@ let _opentelemetry_semantic_conventions = require("@opentelemetry/semantic-conve
11
11
  let byte_encodings_base64 = require("byte-encodings/base64");
12
12
  //#region deno.json
13
13
  var name = "@fedify/fedify";
14
- var version = "2.3.0-dev.1050+74157106";
14
+ var version = "2.3.0-dev.1079+36ac23d1";
15
15
  //#endregion
16
16
  //#region src/sig/accept.ts
17
17
  /**
@@ -10,7 +10,7 @@ import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } fro
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "2.3.0-dev.1050+74157106";
13
+ var version = "2.3.0-dev.1079+36ac23d1";
14
14
  //#endregion
15
15
  //#region src/sig/accept.ts
16
16
  /**
@@ -1,11 +1,11 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BvRV20GH.mjs";
4
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
5
+ import { getLogger } from "@logtape/logtape";
5
6
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
6
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
8
  import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
8
- import { getLogger } from "@logtape/logtape";
9
9
  //#region src/sig/key.ts
10
10
  /**
11
11
  * Checks if the given key is valid and supported. No-op if the key is valid,
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { d as validateCryptoKey, t as doubleKnock } from "./http-Cj-JmUpS.js";
3
+ import { d as validateCryptoKey, t as doubleKnock } from "./http-b__OS_rJ.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { curry } from "es-toolkit";
6
6
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts, validatePublicUrl } from "@fedify/vocab-runtime";
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-DT4PVP4u.cjs");
4
+ const require_http = require("./http-DQ25_ruv.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
@@ -1,12 +1,12 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BvRV20GH.mjs";
5
- import { n as fetchKey, o as validateCryptoKey } from "./key-CjtOXvjb.mjs";
4
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
5
+ import { n as fetchKey, o as validateCryptoKey } from "./key-BNp_b9oE.mjs";
6
+ import { getLogger } from "@logtape/logtape";
6
7
  import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
7
8
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
9
  import { getDocumentLoader } from "@fedify/vocab-runtime";
9
- import { getLogger } from "@logtape/logtape";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
11
  import { encodeHex } from "byte-encodings/hex";
12
12
  import jsonld from "@fedify/vocab-runtime/jsonld";
@@ -1,11 +1,11 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- require("./chunk-DDcVe30Y.cjs");
3
+ const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
4
  const require_transformers = require("./transformers-NeAONrAq.cjs");
5
- const require_http = require("./http-DT4PVP4u.cjs");
6
- const require_proof = require("./proof-CP3pE1Ok.cjs");
5
+ const require_http = require("./http-DQ25_ruv.cjs");
6
+ const require_proof = require("./proof-zrLeLWgt.cjs");
7
7
  const require_types = require("./types-KC4QAoxe.cjs");
8
- const require_kv_cache = require("./kv-cache-DqiCNMDz.cjs");
8
+ const require_kv_cache = require("./kv-cache-DzctboPD.cjs");
9
9
  let _logtape_logtape = require("@logtape/logtape");
10
10
  let _fedify_vocab = require("@fedify/vocab");
11
11
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -211,7 +211,7 @@ var FederationBuilderImpl = class {
211
211
  this.collectionTypeIds = {};
212
212
  }
213
213
  async build(options) {
214
- const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-D3TvoZdj.cjs"));
214
+ const { FederationImpl } = await Promise.resolve().then(() => middleware_exports);
215
215
  const f = new FederationImpl(options);
216
216
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
217
217
  f.router = this.router.clone();
@@ -1150,6 +1150,35 @@ var KvKeyCache = class {
1150
1150
  };
1151
1151
  //#endregion
1152
1152
  //#region src/federation/negotiation.ts
1153
+ /*!
1154
+ * Adapted directly from negotiator at https://github.com/jshttp/negotiator/
1155
+ * which is licensed as follows:
1156
+ *
1157
+ * (The MIT License)
1158
+ *
1159
+ * Copyright (c) 2012-2014 Federico Romero
1160
+ * Copyright (c) 2012-2014 Isaac Z. Schlueter
1161
+ * Copyright (c) 2014-2015 Douglas Christopher Wilson
1162
+ *
1163
+ * Permission is hereby granted, free of charge, to any person obtaining
1164
+ * a copy of this software and associated documentation files (the
1165
+ * 'Software'), to deal in the Software without restriction, including
1166
+ * without limitation the rights to use, copy, modify, merge, publish,
1167
+ * distribute, sublicense, and/or sell copies of the Software, and to
1168
+ * permit persons to whom the Software is furnished to do so, subject to
1169
+ * the following conditions:
1170
+ *
1171
+ * The above copyright notice and this permission notice shall be
1172
+ * included in all copies or substantial portions of the Software.
1173
+ *
1174
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1175
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1176
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1177
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1178
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1179
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1180
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1181
+ */
1153
1182
  function compareSpecs(a, b) {
1154
1183
  return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
1155
1184
  }
@@ -2032,6 +2061,14 @@ async function _handleOrderedCollection(request, { name, values, context, tracer
2032
2061
  * @since 1.8.0
2033
2062
  */
2034
2063
  var CustomCollectionHandler = class {
2064
+ name;
2065
+ values;
2066
+ context;
2067
+ callbacks;
2068
+ tracerProvider;
2069
+ Collection;
2070
+ CollectionPage;
2071
+ filterPredicate;
2035
2072
  /**
2036
2073
  * The tracer for telemetry.
2037
2074
  * @type {Tracer}
@@ -2896,6 +2933,14 @@ async function handleWebFingerInternal(request, { context, host, actorDispatcher
2896
2933
  }
2897
2934
  //#endregion
2898
2935
  //#region src/federation/middleware.ts
2936
+ var middleware_exports = /* @__PURE__ */ require_chunk.__exportAll({
2937
+ ContextImpl: () => ContextImpl,
2938
+ FederationImpl: () => FederationImpl,
2939
+ InboxContextImpl: () => InboxContextImpl,
2940
+ KvSpecDeterminer: () => KvSpecDeterminer,
2941
+ OutboxContextImpl: () => OutboxContextImpl,
2942
+ createFederation: () => createFederation
2943
+ });
2899
2944
  /**
2900
2945
  * Create a new {@link Federation} instance.
2901
2946
  * @param parameters Parameters for initializing the instance.
@@ -4965,36 +5010,6 @@ function getRequestId(request) {
4965
5010
  return `req_${Date.now().toString(36)}${Math.random().toString(36).slice(2, 8)}`;
4966
5011
  }
4967
5012
  //#endregion
4968
- Object.defineProperty(exports, "ContextImpl", {
4969
- enumerable: true,
4970
- get: function() {
4971
- return ContextImpl;
4972
- }
4973
- });
4974
- Object.defineProperty(exports, "FederationImpl", {
4975
- enumerable: true,
4976
- get: function() {
4977
- return FederationImpl;
4978
- }
4979
- });
4980
- Object.defineProperty(exports, "InboxContextImpl", {
4981
- enumerable: true,
4982
- get: function() {
4983
- return InboxContextImpl;
4984
- }
4985
- });
4986
- Object.defineProperty(exports, "KvSpecDeterminer", {
4987
- enumerable: true,
4988
- get: function() {
4989
- return KvSpecDeterminer;
4990
- }
4991
- });
4992
- Object.defineProperty(exports, "OutboxContextImpl", {
4993
- enumerable: true,
4994
- get: function() {
4995
- return OutboxContextImpl;
4996
- }
4997
- });
4998
5013
  Object.defineProperty(exports, "Router", {
4999
5014
  enumerable: true,
5000
5015
  get: function() {
@@ -5049,6 +5064,12 @@ Object.defineProperty(exports, "handleWebFinger", {
5049
5064
  return handleWebFinger;
5050
5065
  }
5051
5066
  });
5067
+ Object.defineProperty(exports, "middleware_exports", {
5068
+ enumerable: true,
5069
+ get: function() {
5070
+ return middleware_exports;
5071
+ }
5072
+ });
5052
5073
  Object.defineProperty(exports, "respondWithObject", {
5053
5074
  enumerable: true,
5054
5075
  get: function() {
@@ -1,31 +1,31 @@
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";
5
- import { n as version, t as name } from "./deno-BvRV20GH.mjs";
4
+ import { n as RouterError } from "./router-BT_F5748.mjs";
5
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
6
6
  import { t as formatAcceptSignature } from "./accept-CceiKpCy.mjs";
7
- import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-CjtOXvjb.mjs";
8
- import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-BETUCsB0.mjs";
9
- import { t as getAuthenticatedDocumentLoader } from "./docloader-YOsFpxMZ.mjs";
10
- import { n as kvCache } from "./kv-cache-Bmv7tUzz.mjs";
11
- import { a as signJsonLd, i as hasSignatureLike, o as verifyJsonLd, r as detachSignature } from "./ld-WRlX-hAe.mjs";
12
- import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-B6F-ovsj.mjs";
13
- import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-Bi7n-dEy.mjs";
14
- import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-CN82dCfF.mjs";
15
- import { t as getNodeInfo } from "./client-CIiz1WX7.mjs";
7
+ import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-BNp_b9oE.mjs";
8
+ import { l as verifyRequest, o as parseRfc9421SignatureInput, u as verifyRequestDetailed } from "./http-DM4ZAFCe.mjs";
9
+ import { t as getAuthenticatedDocumentLoader } from "./docloader-vsZP01ww.mjs";
10
+ import { n as kvCache } from "./kv-cache-EaVpV2xQ.mjs";
11
+ import { a as signJsonLd, i as hasSignatureLike, o as verifyJsonLd, r as detachSignature } from "./ld-L9w529xq.mjs";
12
+ import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-C30LGgMz.mjs";
13
+ import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-BgFLCJQ_.mjs";
14
+ import { i as verifyObject, n as hasProofLike, r as signObject } from "./proof-BjToRsXF.mjs";
15
+ import { t as getNodeInfo } from "./client-B_A6mfn3.mjs";
16
16
  import { t as nodeInfoToJson } from "./types-BFowWFTT.mjs";
17
- import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-5M0ZV0s3.mjs";
17
+ import { n as FederationBuilderImpl, t as ACTOR_ALIAS_PREFIX } from "./builder-DqT-OPZ8.mjs";
18
18
  import { t as buildCollectionSynchronizationHeader } from "./collection-CA3V5zyK.mjs";
19
- import { a as getFederationMetrics, i as getDurationMs, n as extractInboxes, o as getRemoteHost, r as sendActivity, t as SendActivityError } from "./send-DNs8Rwv0.mjs";
19
+ import { a as getFederationMetrics, i as getDurationMs, n as extractInboxes, o as getRemoteHost, r as sendActivity, t as SendActivityError } from "./send-DzbMznU6.mjs";
20
20
  import { t as KvKeyCache } from "./keycache-BeU0LCII.mjs";
21
- import { t as acceptsJsonLd } from "./negotiation-VnHNB0Q5.mjs";
21
+ import { t as acceptsJsonLd } from "./negotiation-DDstyBvc.mjs";
22
22
  import { t as createExponentialBackoffPolicy } from "./retry-_VvV0h9f.mjs";
23
+ import { getLogger, withContext } from "@logtape/logtape";
23
24
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
24
25
  import { lookupWebFinger } from "@fedify/webfinger";
25
26
  import { SpanKind, SpanStatusCode, context, metrics, propagation, trace } from "@opentelemetry/api";
26
27
  import { uniq } from "es-toolkit";
27
28
  import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
28
- import { getLogger, withContext } from "@logtape/logtape";
29
29
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
30
30
  import { domainToASCII } from "node:url";
31
31
  //#region src/compat/transformers.ts
@@ -1117,6 +1117,14 @@ async function _handleOrderedCollection(request, { name, values, context, tracer
1117
1117
  * @since 1.8.0
1118
1118
  */
1119
1119
  var CustomCollectionHandler = class {
1120
+ name;
1121
+ values;
1122
+ context;
1123
+ callbacks;
1124
+ tracerProvider;
1125
+ Collection;
1126
+ CollectionPage;
1127
+ filterPredicate;
1120
1128
  /**
1121
1129
  * The tracer for telemetry.
1122
1130
  * @type {Tracer}
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as FederationImpl } from "./middleware-BD-WrN2n.mjs";
4
+ import { n as FederationImpl } from "./middleware-CTdNwf_s.mjs";
5
5
  export { FederationImpl };
@@ -2,10 +2,10 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  import { t as __exportAll } from "./chunk-nlSIicah.js";
4
4
  import { r as getDefaultActivityTransformers } from "./transformers-ve6e2xcg.js";
5
- import { _ as version, a as verifyRequestDetailed, d as validateCryptoKey, f as formatAcceptSignature, g as name, i as verifyRequest, n as parseRfc9421SignatureInput, o as exportJwk, t as doubleKnock, u as importJwk } from "./http-Cj-JmUpS.js";
6
- import { c as getKeyOwner, d as detachSignature, f as hasSignatureLike, i as verifyObject, m as verifyJsonLd, n as hasProofLike, o as normalizeOutgoingActivityJsonLd, p as signJsonLd, r as signObject, s as doesActorOwnKey } from "./proof-DCfIkmPR.js";
5
+ import { _ as version, a as verifyRequestDetailed, d as validateCryptoKey, f as formatAcceptSignature, g as name, i as verifyRequest, n as parseRfc9421SignatureInput, o as exportJwk, t as doubleKnock, u as importJwk } from "./http-b__OS_rJ.js";
6
+ import { c as getKeyOwner, d as detachSignature, f as hasSignatureLike, i as verifyObject, m as verifyJsonLd, n as hasProofLike, o as normalizeOutgoingActivityJsonLd, p as signJsonLd, r as signObject, s as doesActorOwnKey } from "./proof-CO1qAbN8.js";
7
7
  import { n as getNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
8
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-BOU_yvQi.js";
8
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-D5vjOi5y.js";
9
9
  import { getLogger, withContext } from "@logtape/logtape";
10
10
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, Tombstone, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
11
11
  import { SpanKind, SpanStatusCode, context, metrics, propagation, trace } from "@opentelemetry/api";
@@ -1150,6 +1150,35 @@ var KvKeyCache = class {
1150
1150
  };
1151
1151
  //#endregion
1152
1152
  //#region src/federation/negotiation.ts
1153
+ /*!
1154
+ * Adapted directly from negotiator at https://github.com/jshttp/negotiator/
1155
+ * which is licensed as follows:
1156
+ *
1157
+ * (The MIT License)
1158
+ *
1159
+ * Copyright (c) 2012-2014 Federico Romero
1160
+ * Copyright (c) 2012-2014 Isaac Z. Schlueter
1161
+ * Copyright (c) 2014-2015 Douglas Christopher Wilson
1162
+ *
1163
+ * Permission is hereby granted, free of charge, to any person obtaining
1164
+ * a copy of this software and associated documentation files (the
1165
+ * 'Software'), to deal in the Software without restriction, including
1166
+ * without limitation the rights to use, copy, modify, merge, publish,
1167
+ * distribute, sublicense, and/or sell copies of the Software, and to
1168
+ * permit persons to whom the Software is furnished to do so, subject to
1169
+ * the following conditions:
1170
+ *
1171
+ * The above copyright notice and this permission notice shall be
1172
+ * included in all copies or substantial portions of the Software.
1173
+ *
1174
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1175
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1176
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1177
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1178
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1179
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1180
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1181
+ */
1153
1182
  function compareSpecs(a, b) {
1154
1183
  return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
1155
1184
  }
@@ -2032,6 +2061,14 @@ async function _handleOrderedCollection(request, { name, values, context, tracer
2032
2061
  * @since 1.8.0
2033
2062
  */
2034
2063
  var CustomCollectionHandler = class {
2064
+ name;
2065
+ values;
2066
+ context;
2067
+ callbacks;
2068
+ tracerProvider;
2069
+ Collection;
2070
+ CollectionPage;
2071
+ filterPredicate;
2035
2072
  /**
2036
2073
  * The tracer for telemetry.
2037
2074
  * @type {Tracer}
package/dist/mod.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("./chunk-DDcVe30Y.cjs");
5
5
  const require_transformers = require("./transformers-NeAONrAq.cjs");
6
6
  require("./compat/mod.cjs");
7
- const require_http = require("./http-DT4PVP4u.cjs");
8
- const require_middleware = require("./middleware-C-fzauLy.cjs");
9
- const require_proof = require("./proof-CP3pE1Ok.cjs");
7
+ const require_http = require("./http-DQ25_ruv.cjs");
8
+ const require_middleware = require("./middleware-CMF242Rg.cjs");
9
+ const require_proof = require("./proof-zrLeLWgt.cjs");
10
10
  const require_types = require("./types-KC4QAoxe.cjs");
11
- const require_kv_cache = require("./kv-cache-DqiCNMDz.cjs");
11
+ const require_kv_cache = require("./kv-cache-DzctboPD.cjs");
12
12
  const require_federation_mod = require("./federation/mod.cjs");
13
13
  require("./nodeinfo/mod.cjs");
14
14
  require("./runtime/mod.cjs");
package/dist/mod.js CHANGED
@@ -3,11 +3,11 @@ import "urlpattern-polyfill";
3
3
  import "./chunk-nlSIicah.js";
4
4
  import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-ve6e2xcg.js";
5
5
  import "./compat/mod.js";
6
- import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-Cj-JmUpS.js";
7
- 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-B0YQlYeu.js";
8
- import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "./proof-DCfIkmPR.js";
6
+ import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "./http-b__OS_rJ.js";
7
+ 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";
8
+ import { a as verifyProof, c as getKeyOwner, d as detachSignature, f as hasSignatureLike, h as verifySignature, i as verifyObject, l as attachSignature, m as verifyJsonLd, n as hasProofLike, p as signJsonLd, r as signObject, s as doesActorOwnKey, t as createProof, u as createSignature } from "./proof-CO1qAbN8.js";
9
9
  import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-hvL8ElAs.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-BOU_yvQi.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-D5vjOi5y.js";
11
11
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation/mod.js";
12
12
  import "./nodeinfo/mod.js";
13
13
  import "./runtime/mod.js";
@@ -2,6 +2,35 @@ import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region src/federation/negotiation.ts
5
+ /*!
6
+ * Adapted directly from negotiator at https://github.com/jshttp/negotiator/
7
+ * which is licensed as follows:
8
+ *
9
+ * (The MIT License)
10
+ *
11
+ * Copyright (c) 2012-2014 Federico Romero
12
+ * Copyright (c) 2012-2014 Isaac Z. Schlueter
13
+ * Copyright (c) 2014-2015 Douglas Christopher Wilson
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining
16
+ * a copy of this software and associated documentation files (the
17
+ * 'Software'), to deal in the Software without restriction, including
18
+ * without limitation the rights to use, copy, modify, merge, publish,
19
+ * distribute, sublicense, and/or sell copies of the Software, and to
20
+ * permit persons to whom the Software is furnished to do so, subject to
21
+ * the following conditions:
22
+ *
23
+ * The above copyright notice and this permission notice shall be
24
+ * included in all copies or substantial portions of the Software.
25
+ *
26
+ * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
27
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
30
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
31
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
32
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
+ */
5
34
  function compareSpecs(a, b) {
6
35
  return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
7
36
  }
@@ -3,8 +3,8 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-CRDpx_HF.mjs";
6
- import { t as esm_default } from "../esm-DhnRLoG9.mjs";
7
- import { a as parseProtocol, c as parseUsage, i as parseOutboundService, n as parseInboundService, o as parseServices, r as parseNodeInfo, s as parseSoftware, t as getNodeInfo } from "../client-CIiz1WX7.mjs";
6
+ import { t as esm_default } from "../esm-sdtqOUPu.mjs";
7
+ import { a as parseProtocol, c as parseUsage, i as parseOutboundService, n as parseInboundService, o as parseServices, r as parseNodeInfo, s as parseSoftware, t as getNodeInfo } from "../client-B_A6mfn3.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/nodeinfo/client.test.ts
10
10
  test("getNodeInfo()", async (t) => {
@@ -1,11 +1,11 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { r as createRequestContext } from "../context-7Azky82W.mjs";
4
+ import { r as createRequestContext } from "../context-BAE7AKLA.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-CRDpx_HF.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
8
- import { _ as handleNodeInfoJrd, g as handleNodeInfo, o as createFederation } from "../middleware-BD-WrN2n.mjs";
8
+ import { _ as handleNodeInfoJrd, g as handleNodeInfo, o as createFederation } from "../middleware-CTdNwf_s.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  //#region src/nodeinfo/handler.test.ts
11
11
  test("handleNodeInfo()", async () => {
@@ -4,10 +4,10 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-CRDpx_HF.mjs";
6
6
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
7
- import { test } from "@fedify/fixture";
8
- import { SpanKind, SpanStatusCode, TraceFlags } from "@opentelemetry/api";
9
7
  import { getLogger } from "@logtape/logtape";
10
8
  import { ExportResultCode } from "@opentelemetry/core";
9
+ import { SpanKind, SpanStatusCode, TraceFlags } from "@opentelemetry/api";
10
+ import { test } from "@fedify/fixture";
11
11
  //#region src/otel/exporter.ts
12
12
  /**
13
13
  * A SpanExporter that persists ActivityPub activity traces to a
@@ -1,9 +1,9 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as preloadedOnlyDocumentLoader, t as normalizePublicAudience } from "./public-audience-PVTwU_Ex.mjs";
5
- import { preloadedContexts } from "@fedify/vocab-runtime";
4
+ import { n as preloadedOnlyDocumentLoader, t as normalizePublicAudience } from "./public-audience-N3pyOx2p.mjs";
6
5
  import { getLogger } from "@logtape/logtape";
6
+ import { preloadedContexts } from "@fedify/vocab-runtime";
7
7
  import jsonld from "@fedify/vocab-runtime/jsonld";
8
8
  //#region src/compat/outgoing-jsonld.ts
9
9
  const logger = getLogger([
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BvRV20GH.mjs";
5
- import "./key-CjtOXvjb.mjs";
4
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
5
+ import "./key-BNp_b9oE.mjs";
6
6
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,13 +1,13 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BvRV20GH.mjs";
5
- import { n as fetchKey, o as validateCryptoKey } from "./key-CjtOXvjb.mjs";
6
- import { n as preloadedOnlyDocumentLoader } from "./public-audience-PVTwU_Ex.mjs";
7
- import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-Bi7n-dEy.mjs";
4
+ import { n as version, t as name } from "./deno-BxqkYxIf.mjs";
5
+ import { n as fetchKey, o as validateCryptoKey } from "./key-BNp_b9oE.mjs";
6
+ import { n as preloadedOnlyDocumentLoader } from "./public-audience-N3pyOx2p.mjs";
7
+ import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-BgFLCJQ_.mjs";
8
+ import { getLogger } from "@logtape/logtape";
8
9
  import { Activity, DataIntegrityProof, Multikey, getTypeId } from "@fedify/vocab";
9
10
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
- import { getLogger } from "@logtape/logtape";
11
11
  import { encodeHex } from "byte-encodings/hex";
12
12
  import serialize from "json-canon";
13
13
  //#region src/sig/proof.ts
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { _ as version, d as validateCryptoKey, g as name, s as fetchKey } from "./http-Cj-JmUpS.js";
3
+ import { _ as version, d as validateCryptoKey, g as name, s as fetchKey } from "./http-b__OS_rJ.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, PUBLIC_COLLECTION, getTypeId, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";