@fedify/fedify 2.0.36-dev.2779 → 2.0.36-dev.2842

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 (49) hide show
  1. package/dist/{builder-UXDfZSno.mjs → builder-CuQLFOSj.mjs} +3 -3
  2. package/dist/compat/transformers.test.mjs +1 -1
  3. package/dist/{deno-Bwn7hAXr.mjs → deno-USvfGHbR.mjs} +1 -1
  4. package/dist/{docloader-DSQXpyiJ.mjs → docloader-CDITXM6j.mjs} +2 -2
  5. package/dist/federation/attachment-responses.test.mjs +2 -2
  6. package/dist/federation/builder.test.mjs +1 -1
  7. package/dist/federation/delivery-attachments.test.mjs +3 -3
  8. package/dist/federation/handler.test.mjs +6 -6
  9. package/dist/federation/idempotency.test.mjs +2 -2
  10. package/dist/federation/inbox.test.mjs +1 -1
  11. package/dist/federation/middleware.test.mjs +7 -7
  12. package/dist/federation/mod.cjs +1 -1
  13. package/dist/federation/mod.js +1 -1
  14. package/dist/federation/send.test.mjs +283 -3
  15. package/dist/federation/temporal.test.mjs +1 -1
  16. package/dist/federation/webfinger.test.mjs +1 -1
  17. package/dist/{http-aVfiO4CG.cjs → http-BAhackOL.cjs} +1 -1
  18. package/dist/{http-DuIId6ul.mjs → http-BGjEnY4L.mjs} +2 -2
  19. package/dist/{http-C-P8JP1h.js → http-ixT5PjBz.js} +1 -1
  20. package/dist/{inbox-Cq4_-nPi.mjs → inbox-BtfUJZS3.mjs} +1 -1
  21. package/dist/{key-BMJlknME.mjs → key-BDisDFGv.mjs} +1 -1
  22. package/dist/{kv-cache-C6BYEp2D.cjs → kv-cache-BKEuedCv.cjs} +1 -1
  23. package/dist/{kv-cache-PAsTBkxX.js → kv-cache-YdAhdrrh.js} +1 -1
  24. package/dist/{ld-oemavcUi.mjs → ld-CjHkfxXf.mjs} +2 -2
  25. package/dist/{middleware-CjwdngG9.cjs → middleware-DjXy4YoB.cjs} +94 -23
  26. package/dist/{middleware-D8Hh8RSu.mjs → middleware-DkrLbSc2.mjs} +11 -11
  27. package/dist/{middleware-sDUMisQG.cjs → middleware-HI6aNn_6.cjs} +1 -1
  28. package/dist/{middleware-BSMUxoX2.js → middleware-X7A94J2d.js} +93 -22
  29. package/dist/{middleware-Bw59VTh0.mjs → middleware-gr2ldCQw.mjs} +1 -1
  30. package/dist/mod.cjs +4 -4
  31. package/dist/mod.js +4 -4
  32. package/dist/nodeinfo/handler.test.mjs +1 -1
  33. package/dist/{owner-CYTWux20.mjs → owner-CyoKKXIR.mjs} +2 -2
  34. package/dist/{proof-DXp_5fqW.cjs → proof-BOemJGRl.cjs} +1 -1
  35. package/dist/{proof-DWny6g-g.js → proof-BiTmCpLq.js} +1 -1
  36. package/dist/{proof-B7pdOJb5.mjs → proof-D8S0HFxt.mjs} +2 -2
  37. package/dist/{send-7rTXYfE8.mjs → send-speW4h59.mjs} +92 -21
  38. package/dist/sig/http.test.mjs +2 -2
  39. package/dist/sig/key.test.mjs +2 -2
  40. package/dist/sig/ld.test.mjs +2 -2
  41. package/dist/sig/mod.cjs +2 -2
  42. package/dist/sig/mod.js +2 -2
  43. package/dist/sig/owner.test.mjs +1 -1
  44. package/dist/sig/proof.test.mjs +2 -2
  45. package/dist/{temporal-CxaXuWOi.mjs → temporal-Dlbq-g7z.mjs} +1 -1
  46. package/dist/utils/docloader.test.mjs +2 -2
  47. package/dist/utils/mod.cjs +1 -1
  48. package/dist/utils/mod.js +1 -1
  49. package/package.json +5 -5
@@ -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-Bwn7hAXr.mjs";
5
- import { r as doubleKnockScoped } from "./http-DuIId6ul.mjs";
4
+ import { n as version, t as name } from "./deno-USvfGHbR.mjs";
5
+ import { r as doubleKnockScoped } from "./http-BGjEnY4L.mjs";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
8
8
  import { openDirectFetch, openPublicFetch } from "@fedify/vocab-runtime/internal";
@@ -40,7 +40,8 @@ function extractInboxes({ recipients, preferSharedInbox, excludeBaseUris }) {
40
40
  * @param parameters The parameters for sending the activity.
41
41
  * See also {@link SendActivityParameters}.
42
42
  * @param deps The dependencies, for tests.
43
- * @throws {Error} If the activity fails to send.
43
+ * @throws {FetchError} If the delivery times out before receiving a response.
44
+ * @throws {SendActivityError} If the inbox returns an unsuccessful response.
44
45
  */
45
46
  function sendActivity(options, deps = {}) {
46
47
  const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
@@ -67,7 +68,25 @@ function sendActivity(options, deps = {}) {
67
68
  });
68
69
  }
69
70
  const MAX_ERROR_RESPONSE_BODY_BYTES = 1024;
70
- async function readLimitedResponseBody(response, maxBytes) {
71
+ const SEND_ACTIVITY_TIMEOUT_MS = 3e4;
72
+ function raceWithAbort(promise, signal) {
73
+ if (signal.aborted) return Promise.reject(signal.reason);
74
+ return new Promise((resolve, reject) => {
75
+ const onAbort = () => {
76
+ signal.removeEventListener("abort", onAbort);
77
+ reject(signal.reason);
78
+ };
79
+ signal.addEventListener("abort", onAbort, { once: true });
80
+ promise.then((value) => {
81
+ signal.removeEventListener("abort", onAbort);
82
+ resolve(value);
83
+ }, (error) => {
84
+ signal.removeEventListener("abort", onAbort);
85
+ reject(error);
86
+ });
87
+ });
88
+ }
89
+ async function readLimitedResponseBody(response, maxBytes, signal) {
71
90
  if (response.body == null) return "";
72
91
  const reader = response.body.getReader();
73
92
  const decoder = new TextDecoder();
@@ -76,7 +95,8 @@ async function readLimitedResponseBody(response, maxBytes) {
76
95
  let truncated = false;
77
96
  try {
78
97
  while (true) {
79
- const { done, value } = await reader.read();
98
+ signal.throwIfAborted();
99
+ const { done, value } = await raceWithAbort(reader.read(), signal);
80
100
  if (done) break;
81
101
  if (totalBytes + value.length > maxBytes) {
82
102
  const remaining = maxBytes - totalBytes;
@@ -88,8 +108,10 @@ async function readLimitedResponseBody(response, maxBytes) {
88
108
  totalBytes += value.length;
89
109
  }
90
110
  } finally {
91
- if (truncated) reader.cancel().catch(() => {});
92
- reader.releaseLock();
111
+ if (truncated || signal.aborted) reader.cancel().catch(() => {});
112
+ try {
113
+ reader.releaseLock();
114
+ } catch (_) {}
93
115
  }
94
116
  let result = chunks.join("");
95
117
  if (truncated) result += "… (truncated)";
@@ -101,12 +123,24 @@ async function sendActivityInternal({ activity, activityId, keys, inbox, allowPr
101
123
  "federation",
102
124
  "outbox"
103
125
  ]);
104
- const openUnvalidatedHop = deps.openHop ?? (allowPrivateAddress ? openDirectFetch : (url) => openPublicFetch(url));
126
+ const timeoutMs = deps.timeoutMs ?? SEND_ACTIVITY_TIMEOUT_MS;
127
+ const controller = new AbortController();
128
+ const { signal } = controller;
129
+ const openUnvalidatedHop = deps.openHop ?? (allowPrivateAddress ? openDirectFetch : (url) => openPublicFetch(url, { signal }));
105
130
  let opened = false;
106
131
  async function openHop(url) {
107
132
  let session;
108
133
  try {
109
- session = await openUnvalidatedHop(url);
134
+ signal.throwIfAborted();
135
+ const opening = openUnvalidatedHop(url);
136
+ opening.then((lateSession) => {
137
+ if (signal.aborted) closeAfterError(lateSession, logger);
138
+ }, () => {});
139
+ session = await raceWithAbort(opening, signal);
140
+ if (signal.aborted) {
141
+ closeAfterError(session, logger);
142
+ signal.throwIfAborted();
143
+ }
110
144
  } catch (error) {
111
145
  if (error instanceof UrlError && error.reason === "dns") {
112
146
  logger.error("DNS resolution failed for URL: {url}", {
@@ -132,7 +166,8 @@ async function sendActivityInternal({ activity, activityId, keys, inbox, allowPr
132
166
  method: "POST",
133
167
  headers,
134
168
  body: JSON.stringify(activity),
135
- redirect: "manual"
169
+ redirect: "manual",
170
+ signal
136
171
  });
137
172
  let rsaKey = null;
138
173
  for (const key of keys) if (key.privateKey.algorithm.name === "RSASSA-PKCS1-v1_5") {
@@ -147,18 +182,48 @@ async function sendActivityInternal({ activity, activityId, keys, inbox, allowPr
147
182
  }))
148
183
  });
149
184
  let outcome;
185
+ const boundedSpecDeterminer = specDeterminer == null ? void 0 : {
186
+ determineSpec(origin) {
187
+ signal.throwIfAborted();
188
+ return raceWithAbort(Promise.resolve(specDeterminer.determineSpec(origin)), signal);
189
+ },
190
+ rememberSpec(origin, spec) {
191
+ if (signal.aborted) return;
192
+ try {
193
+ Promise.resolve(specDeterminer.rememberSpec(origin, spec)).catch((error) => logger.debug("Failed to remember the signature spec for {origin}: {error}", {
194
+ origin,
195
+ error
196
+ }));
197
+ } catch (error) {
198
+ logger.debug("Failed to remember the signature spec for {origin}: {error}", {
199
+ origin,
200
+ error
201
+ });
202
+ }
203
+ }
204
+ };
205
+ const timer = setTimeout(() => controller.abort(new DOMException("The delivery timed out.", "TimeoutError")), timeoutMs);
150
206
  try {
151
- outcome = rsaKey == null ? await fetchWithValidatedRedirects(request, openHop, (response) => consumeSendActivityResponse(response, inbox)) : await doubleKnockScoped(request, rsaKey, {
207
+ outcome = rsaKey == null ? await fetchWithValidatedRedirects(request, openHop, (response) => consumeSendActivityResponse(response, inbox, signal), signal) : await doubleKnockScoped(request, rsaKey, {
152
208
  tracerProvider,
153
- specDeterminer
154
- }, openHop, (response) => consumeSendActivityResponse(response, inbox));
209
+ specDeterminer: boundedSpecDeterminer,
210
+ signal
211
+ }, openHop, (response) => consumeSendActivityResponse(response, inbox, signal));
155
212
  } catch (error) {
156
- if (opened) logger.error("Failed to send activity {activityId} to {inbox}:\n{error}", {
213
+ let failureError = error;
214
+ if (signal.aborted && !(error instanceof SendActivityError)) {
215
+ const failure = new FetchError(inbox.href, `Timed out after ${timeoutMs} ms`);
216
+ failure.cause = signal.reason;
217
+ failureError = failure;
218
+ }
219
+ if (opened || signal.aborted) logger.error("Failed to send activity {activityId} to {inbox}:\n{error}", {
157
220
  activityId,
158
221
  inbox: inbox.href,
159
- error
222
+ error: failureError
160
223
  });
161
- throw error;
224
+ throw failureError;
225
+ } finally {
226
+ clearTimeout(timer);
162
227
  }
163
228
  if (!outcome.ok) {
164
229
  const { status, statusText, error } = outcome;
@@ -200,17 +265,18 @@ function cancelResponseBody(response, url) {
200
265
  * session is open: the body of a successful response is cancelled, and at
201
266
  * most 1 KiB of an error response body is read.
202
267
  */
203
- async function consumeSendActivityResponse(response, inbox) {
268
+ async function consumeSendActivityResponse(response, inbox, signal) {
204
269
  if (response.ok) {
205
270
  cancelResponseBody(response, response.url || inbox.href);
206
271
  return { ok: true };
207
272
  }
208
273
  let error;
209
274
  try {
210
- error = await readLimitedResponseBody(response, MAX_ERROR_RESPONSE_BODY_BYTES);
275
+ error = await readLimitedResponseBody(response, MAX_ERROR_RESPONSE_BODY_BYTES, signal);
211
276
  } catch (_) {
212
277
  error = "";
213
278
  }
279
+ if (signal.aborted) error = "(timed out reading response body)";
214
280
  return {
215
281
  ok: false,
216
282
  status: response.status,
@@ -229,7 +295,7 @@ async function consumeSendActivityResponse(response, inbox) {
229
295
  * @param consume The function to consume the final response.
230
296
  * @returns The value returned by `consume`.
231
297
  */
232
- async function fetchWithValidatedRedirects(request, openHop, consume) {
298
+ async function fetchWithValidatedRedirects(request, openHop, consume, signal) {
233
299
  const logger = getLogger([
234
300
  "fedify",
235
301
  "federation",
@@ -237,10 +303,14 @@ async function fetchWithValidatedRedirects(request, openHop, consume) {
237
303
  ]);
238
304
  let body = await request.clone().text();
239
305
  for (let redirects = 0;; redirects++) {
306
+ signal?.throwIfAborted();
240
307
  const session = await openHop(request.url);
241
308
  let response;
242
309
  try {
243
- response = await session.fetch(request, { redirect: "manual" });
310
+ response = await session.fetch(request, {
311
+ redirect: "manual",
312
+ signal
313
+ });
244
314
  } catch (error) {
245
315
  await closeAfterError(session, logger);
246
316
  throw error;
@@ -290,7 +360,8 @@ async function fetchWithValidatedRedirects(request, openHop, consume) {
290
360
  method,
291
361
  headers,
292
362
  body,
293
- redirect: "manual"
363
+ redirect: "manual",
364
+ signal: signal ?? request.signal
294
365
  });
295
366
  }
296
367
  }
@@ -7,8 +7,8 @@ import { i as assertExists, t as assertStringIncludes } from "../std__assert-Dfl
7
7
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
8
8
  import { t as assert } from "../assert-BhQd8QHP.mjs";
9
9
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
10
- import { t as exportJwk } from "../key-BMJlknME.mjs";
11
- import { a as formatRfc9421SignatureParameters, c as signRequest, i as formatRfc9421Signature, l as timingSafeEqual, n as doubleKnock, o as parseRfc9421Signature, r as doubleKnockScoped, s as parseRfc9421SignatureInput, t as createRfc9421SignatureBase, u as verifyRequest } from "../http-DuIId6ul.mjs";
10
+ import { t as exportJwk } from "../key-BDisDFGv.mjs";
11
+ import { a as formatRfc9421SignatureParameters, c as signRequest, i as formatRfc9421Signature, l as timingSafeEqual, n as doubleKnock, o as parseRfc9421Signature, r as doubleKnockScoped, s as parseRfc9421SignatureInput, t as createRfc9421SignatureBase, u as verifyRequest } from "../http-BGjEnY4L.mjs";
12
12
  import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CCxRJhWa.mjs";
13
13
  import { mockDocumentLoader, test } from "@fedify/fixture";
14
14
  import { FetchError, exportSpki } from "@fedify/vocab-runtime";
@@ -6,9 +6,9 @@ import { n as assertStrictEquals } from "../std__assert-DflMZha5.mjs";
6
6
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
7
7
  import { t as assert } from "../assert-BhQd8QHP.mjs";
8
8
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
9
- import { a as importJwk, i as generateCryptoKeyPair, o as validateCryptoKey, r as fetchKey, t as exportJwk } from "../key-BMJlknME.mjs";
9
+ import { a as importJwk, i as generateCryptoKeyPair, o as validateCryptoKey, r as fetchKey, t as exportJwk } from "../key-BDisDFGv.mjs";
10
10
  import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
11
- import { v as wrapContextLoaderForJsonLd } from "../ld-oemavcUi.mjs";
11
+ import { v as wrapContextLoaderForJsonLd } from "../ld-CjHkfxXf.mjs";
12
12
  import { mockDocumentLoader, test } from "@fedify/fixture";
13
13
  import { CryptographicKey, Multikey, Person } from "@fedify/vocab";
14
14
  import { FetchError, UrlError, getDocumentLoader } from "@fedify/vocab-runtime";
@@ -5,9 +5,9 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
6
6
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
8
- import { i as generateCryptoKeyPair } from "../key-BMJlknME.mjs";
8
+ import { i as generateCryptoKeyPair } from "../key-BDisDFGv.mjs";
9
9
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
10
- import { _ as verifySignature, a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, g as verifyJsonLd, i as attachSignature, m as signJsonLd, n as UnsafeJsonLdError, o as createSignature, p as isInvalidUrlTypeError, s as describeSignatureShape, u as hasSignature } from "../ld-oemavcUi.mjs";
10
+ import { _ as verifySignature, a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, g as verifyJsonLd, i as attachSignature, m as signJsonLd, n as UnsafeJsonLdError, o as createSignature, p as isInvalidUrlTypeError, s as describeSignatureShape, u as hasSignature } from "../ld-CjHkfxXf.mjs";
11
11
  import { t as ldSignatureWithoutCreated } from "../ld-signature-_KYhPsqt.mjs";
12
12
  import { mockDocumentLoader, test } from "@fedify/fixture";
13
13
  import { Create, CryptographicKey, Note } from "@fedify/vocab";
package/dist/sig/mod.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_http = require("../http-aVfiO4CG.cjs");
5
- const require_proof = require("../proof-DXp_5fqW.cjs");
4
+ const require_http = require("../http-BAhackOL.cjs");
5
+ const require_proof = require("../proof-BOemJGRl.cjs");
6
6
  exports.attachSignature = require_proof.attachSignature;
7
7
  exports.createProof = require_proof.createProof;
8
8
  exports.createSignature = require_proof.createSignature;
package/dist/sig/mod.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "../http-C-P8JP1h.js";
4
- import { a as doesActorOwnKey, b as verifyJsonLd, d as createSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, t as createProof, v as signJsonLd, x as verifySignature } from "../proof-DWny6g-g.js";
3
+ import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "../http-ixT5PjBz.js";
4
+ import { a as doesActorOwnKey, b as verifyJsonLd, d as createSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, t as createProof, v as signJsonLd, x as verifySignature } from "../proof-BiTmCpLq.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
@@ -6,7 +6,7 @@ import "../std__assert-DflMZha5.mjs";
6
6
  import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
7
7
  import { t as assert } from "../assert-BhQd8QHP.mjs";
8
8
  import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CCxRJhWa.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CYTWux20.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CyoKKXIR.mjs";
10
10
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
12
12
  //#region src/sig/owner.test.ts
@@ -6,8 +6,8 @@ import "../std__assert-DflMZha5.mjs";
6
6
  import { n as assertInstanceOf } from "../assert-BhQd8QHP.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
8
8
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
9
- import { _ as verifySignature, c as detachSignature, m as signJsonLd } from "../ld-oemavcUi.mjs";
10
- import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-B7pdOJb5.mjs";
9
+ import { _ as verifySignature, c as detachSignature, m as signJsonLd } from "../ld-CjHkfxXf.mjs";
10
+ import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-D8S0HFxt.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { Create, DataIntegrityProof, Multikey, Note, OrderedCollectionPage, Place } from "@fedify/vocab";
13
13
  import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { l as getNormalizationContextLoader } from "./ld-oemavcUi.mjs";
4
+ import { l as getNormalizationContextLoader } from "./ld-CjHkfxXf.mjs";
5
5
  import jsonld from "@fedify/vocab-runtime/jsonld";
6
6
  import { normalizeDateTimeLiteral } from "@fedify/vocab-runtime/temporal";
7
7
  //#region src/federation/temporal.ts
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-DVILvP5e.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-DflMZha5.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
8
- import { u as verifyRequest } from "../http-DuIId6ul.mjs";
8
+ import { u as verifyRequest } from "../http-BGjEnY4L.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-CCxRJhWa.mjs";
10
- import { n as getAuthenticatedDocumentLoader, t as createAuthenticatedDocumentLoader } from "../docloader-DSQXpyiJ.mjs";
10
+ import { n as getAuthenticatedDocumentLoader, t as createAuthenticatedDocumentLoader } from "../docloader-CDITXM6j.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
13
13
  import { openDirectFetch, openPublicFetch } from "@fedify/vocab-runtime/internal";
@@ -1,6 +1,6 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_kv_cache = require("../kv-cache-C6BYEp2D.cjs");
4
+ const require_kv_cache = require("../kv-cache-BKEuedCv.cjs");
5
5
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
6
6
  exports.kvCache = require_kv_cache.kvCache;
package/dist/utils/mod.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-PAsTBkxX.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-YdAhdrrh.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.0.36-dev.2779+68f8f486",
3
+ "version": "2.0.36-dev.2842+d35af543",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -144,9 +144,9 @@
144
144
  "uri-template-router": "^1.0.0",
145
145
  "url-template": "^3.1.1",
146
146
  "urlpattern-polyfill": "^10.1.0",
147
- "@fedify/vocab": "2.0.36-dev.2779+68f8f486",
148
- "@fedify/vocab-runtime": "2.0.36-dev.2779+68f8f486",
149
- "@fedify/webfinger": "2.0.36-dev.2779+68f8f486"
147
+ "@fedify/vocab": "2.0.36-dev.2842+d35af543",
148
+ "@fedify/vocab-runtime": "2.0.36-dev.2842+d35af543",
149
+ "@fedify/webfinger": "2.0.36-dev.2842+d35af543"
150
150
  },
151
151
  "devDependencies": {
152
152
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -159,7 +159,7 @@
159
159
  "typescript": "^6.0.0",
160
160
  "wrangler": "^4.17.0",
161
161
  "@fedify/fixture": "2.0.0",
162
- "@fedify/vocab-tools": "^2.0.36-dev.2779+68f8f486"
162
+ "@fedify/vocab-tools": "^2.0.36-dev.2842+d35af543"
163
163
  },
164
164
  "scripts": {
165
165
  "build:self": "tsdown",