@fedify/fedify 1.8.1-pr.315.1089 → 1.8.1-pr.315.1090

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 (90) hide show
  1. package/dist/{actor-B4TBtqRP.d.ts → actor-1rvS-py8.d.ts} +2 -2
  2. package/dist/{actor-6ZGdUyTU.js → actor-BX-pKSuT.js} +3 -3
  3. package/dist/{actor-wseKMw85.js → actor-C02Getjh.js} +179 -179
  4. package/dist/{authdocloader-EijwIgU-.js → authdocloader-BZs3nvC8.js} +4 -4
  5. package/dist/{authdocloader-BTCPL7WR.js → authdocloader-BbVFhkcz.js} +4 -4
  6. package/dist/{builder-CzxIh2TM.js → builder-DuW8p2S3.js} +3 -3
  7. package/dist/{client-BZRXX1tQ.js → client-BD0mI7gk.js} +1 -1
  8. package/dist/{client-BQ4AQGKo.d.ts → client-DK4qnXK0.d.ts} +1 -1
  9. package/dist/compat/mod.d.ts +10 -10
  10. package/dist/compat/transformers.test.js +17 -17
  11. package/dist/{context-CBKX7mkt.d.ts → context-BhO5LP_t.d.ts} +8 -8
  12. package/dist/{context-DRua680B.js → context-V7yd31ov.js} +3 -3
  13. package/dist/{docloader-09nVWLAZ.js → docloader-Bh-sDknx.js} +1 -1
  14. package/dist/{docloader-pPwozoYc.js → docloader-D5BOqs-9.js} +13 -25
  15. package/dist/{docloader-BeCtcTOJ.d.ts → docloader-DtGccyuM.d.ts} +10 -1
  16. package/dist/{docloader-Ci2ZqlAC.js → docloader-umQd797n.js} +13 -25
  17. package/dist/federation/builder.test.js +4 -4
  18. package/dist/federation/handler.test.js +20 -20
  19. package/dist/federation/inbox.test.js +3 -3
  20. package/dist/federation/keycache.test.js +3 -3
  21. package/dist/federation/middleware.test.js +19 -19
  22. package/dist/federation/mod.d.ts +9 -9
  23. package/dist/federation/mod.js +10 -10
  24. package/dist/federation/send.test.js +10 -10
  25. package/dist/{http-BjEe2e-1.js → http-CkS9JLmm.js} +3 -3
  26. package/dist/{http-D1uoUH4N.d.ts → http-Cp-0z2Ja.d.ts} +2 -2
  27. package/dist/{http-CTYSNs13.js → http-D59x3pzl.js} +3 -3
  28. package/dist/{inbox-BEJ1jCuJ.js → inbox-BjyNe-HL.js} +2 -2
  29. package/dist/{key-C0LADV6I.js → key-Btkh3AwY.js} +2 -2
  30. package/dist/{key-Bx1xBj1K.js → key-Cf8lNopw.js} +4 -4
  31. package/dist/{key-CZcP6KS0.js → key-DqZKjPjH.js} +5 -5
  32. package/dist/{key-BV6GQBrd.js → key-jxin-rRq.js} +3 -3
  33. package/dist/{keycache-C6JVPcU_.js → keycache-BC5bL06g.js} +1 -1
  34. package/dist/{keys-DRsPG_Da.js → keys-Dfntfi5m.js} +1 -1
  35. package/dist/{ld-CdLqdZ_9.js → ld-DwoZFwEd.js} +3 -3
  36. package/dist/{lookup-y8VJVm2c.js → lookup-CAXRxPZ3.js} +5 -5
  37. package/dist/{lookup-BoY0Ke_l.js → lookup-DvfZUKur.js} +1 -1
  38. package/dist/{lookup-CR8wX97f.js → lookup-gQIU9tXW.js} +1 -1
  39. package/dist/{lookup-C4hWkBxk.d.ts → lookup-m3U6KA0u.d.ts} +1 -1
  40. package/dist/middleware-31SyXabg.js +33 -0
  41. package/dist/{middleware-QeZ8G8s9.js → middleware-BOHju0mN.js} +10 -10
  42. package/dist/middleware-CGl-YyTa.js +17 -0
  43. package/dist/{middleware-DCOs6R7U.js → middleware-cN6r9o1m.js} +15 -15
  44. package/dist/{mod-cB3yFF_7.d.ts → mod-BqCBztub.d.ts} +2 -2
  45. package/dist/{mod-0L5jhGYM.d.ts → mod-c1I-Ydch.d.ts} +2 -2
  46. package/dist/{mod-C6GBqqWQ.d.ts → mod-nlVEnYuj.d.ts} +2 -2
  47. package/dist/{mod-BCl7t-Ka.d.ts → mod-yPzXIjJX.d.ts} +3 -3
  48. package/dist/mod.d.ts +12 -12
  49. package/dist/mod.js +10 -10
  50. package/dist/nodeinfo/client.test.js +2 -2
  51. package/dist/nodeinfo/handler.test.js +19 -19
  52. package/dist/nodeinfo/mod.d.ts +2 -2
  53. package/dist/nodeinfo/mod.js +2 -2
  54. package/dist/{owner-CEv_PfyK.d.ts → owner-BK4eWKBp.d.ts} +3 -3
  55. package/dist/{owner-C0gFlCL_.js → owner-BrSLT3By.js} +3 -3
  56. package/dist/{proof-DAAMAukc.js → proof-BDYegzwN.js} +3 -3
  57. package/dist/{proof-Dz8KixnY.js → proof-u4rhYX_R.js} +3 -3
  58. package/dist/runtime/authdocloader.test.js +9 -9
  59. package/dist/runtime/docloader.test.js +2 -2
  60. package/dist/runtime/key.test.js +5 -5
  61. package/dist/runtime/mod.d.ts +4 -4
  62. package/dist/runtime/mod.js +6 -6
  63. package/dist/{send-DsNrziEt.js → send-DRDKgORs.js} +2 -2
  64. package/dist/sig/http.test.js +8 -8
  65. package/dist/sig/key.test.js +7 -7
  66. package/dist/sig/ld.test.js +8 -8
  67. package/dist/sig/mod.d.ts +6 -6
  68. package/dist/sig/mod.js +6 -6
  69. package/dist/sig/owner.test.js +9 -9
  70. package/dist/sig/proof.test.js +8 -8
  71. package/dist/testing/docloader.test.js +1 -1
  72. package/dist/{types-D-EdCGcO.js → types-D1lhruqy.js} +1 -1
  73. package/dist/vocab/actor.test.js +4 -4
  74. package/dist/vocab/lookup.test.js +5 -5
  75. package/dist/vocab/mod.d.ts +4 -4
  76. package/dist/vocab/mod.js +4 -4
  77. package/dist/vocab/type.test.js +2 -2
  78. package/dist/vocab/vocab.test.js +4 -4
  79. package/dist/{vocab-By6mpzr-.d.ts → vocab-B52eQhpN.d.ts} +1 -1
  80. package/dist/{vocab-DaAuYKqm.js → vocab-BaWeqg9y.js} +5 -5
  81. package/dist/{vocab-CJA9Q_w4.js → vocab-C4cyrUaT.js} +178 -178
  82. package/dist/webfinger/handler.test.js +19 -19
  83. package/dist/webfinger/lookup.test.js +2 -2
  84. package/dist/webfinger/mod.d.ts +2 -2
  85. package/dist/webfinger/mod.js +2 -2
  86. package/dist/x/hono.d.ts +9 -9
  87. package/dist/x/sveltekit.d.ts +9 -9
  88. package/package.json +1 -1
  89. package/dist/middleware-BLu0AXhf.js +0 -17
  90. package/dist/middleware-DB11lEoH.js +0 -33
@@ -6,10 +6,10 @@
6
6
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
7
7
  import { assert } from "../assert-DwEa6glZ.js";
8
8
  import { assertInstanceOf } from "../assert_instance_of-C9QtN-X9.js";
9
- import "../docloader-pPwozoYc.js";
9
+ import "../docloader-D5BOqs-9.js";
10
10
  import "../url-kTAI6_KP.js";
11
11
  import { decode } from "../multibase-DeCHcK8L.js";
12
- import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-CJA9Q_w4.js";
12
+ import { Activity, Announce, Create, CryptographicKey, Follow, Hashtag, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, vocab_exports } from "../vocab-C4cyrUaT.js";
13
13
  import { LanguageString } from "../langstr-DbWheeIS.js";
14
14
  import { test } from "../testing-BZ0dJ4qn.js";
15
15
  import "../std__assert-B3iAixc-.js";
@@ -17,8 +17,8 @@ import { assertFalse, assertRejects } from "../assert_rejects-DceVjUlD.js";
17
17
  import "../assert_is_error-DQdKoRgb.js";
18
18
  import { assertNotEquals } from "../assert_not_equals-7pyUM3Ib.js";
19
19
  import { assertThrows } from "../assert_throws-DTDC_gwN.js";
20
- import { mockDocumentLoader } from "../docloader-09nVWLAZ.js";
21
- import { ed25519PublicKey, rsaPublicKey1 } from "../keys-DRsPG_Da.js";
20
+ import { mockDocumentLoader } from "../docloader-Bh-sDknx.js";
21
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-Dfntfi5m.js";
22
22
  import { pascalCase } from "es-toolkit";
23
23
  import { parseLanguageTag } from "@phensley/language-tag";
24
24
  import { Validator } from "@cfworker/json-schema";
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-BeCtcTOJ.js";
3
+ import { DocumentLoader } from "./docloader-DtGccyuM.js";
4
4
  import { Span, TracerProvider } from "@opentelemetry/api";
5
5
  import { LanguageTag } from "@phensley/language-tag";
6
6
 
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-Ci2ZqlAC.js";
6
- import { Object as Object$1, getTypeId } from "./actor-wseKMw85.js";
7
- import { lookupWebFinger } from "./lookup-CR8wX97f.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-umQd797n.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-C02Getjh.js";
7
+ import { lookupWebFinger } from "./lookup-gQIU9tXW.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { delay } from "es-toolkit";
@@ -154,7 +154,7 @@ async function lookupObjectInternal(identifier, options = {}) {
154
154
  if (typeof identifier === "string") identifier = toAcctUrl(identifier) ?? new URL(identifier);
155
155
  let document = null;
156
156
  if (identifier.protocol === "http:" || identifier.protocol === "https:") try {
157
- const remoteDoc = await documentLoader(identifier.href);
157
+ const remoteDoc = await documentLoader(identifier.href, { signal: options.signal });
158
158
  document = remoteDoc.document;
159
159
  } catch (error) {
160
160
  logger.debug("Failed to fetch remote document:\n{error}", { error });
@@ -170,7 +170,7 @@ async function lookupObjectInternal(identifier, options = {}) {
170
170
  for (const l of jrd.links) {
171
171
  if (l.type !== "application/activity+json" && !l.type?.match(/application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/) || l.rel !== "self") continue;
172
172
  try {
173
- const remoteDoc = await documentLoader(l.href);
173
+ const remoteDoc = await documentLoader(l.href, { signal: options.signal });
174
174
  document = remoteDoc.document;
175
175
  break;
176
176
  } catch (error) {