@fedify/fedify 2.0.36-dev.2828 → 2.0.36-dev.2843

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 (72) hide show
  1. package/dist/{builder-NquOFkEx.mjs → builder-CcDcpJbi.mjs} +3 -3
  2. package/dist/{callback-ySj5p3Ml.d.mts → callback-Bmi_V7Ai.d.mts} +16 -0
  3. package/dist/{client-jE7oGvRh.d.ts → client-9DPcy_Yx.d.ts} +16 -0
  4. package/dist/{client-BIBzqEIp.d.cts → client-B3ruDgWg.d.cts} +16 -0
  5. package/dist/{client-DLAWT9ep.mjs → client-DMnQeMkz.mjs} +86 -11
  6. package/dist/compat/mod.d.cts +1 -1
  7. package/dist/compat/mod.d.ts +1 -1
  8. package/dist/compat/transformers.test.mjs +1 -1
  9. package/dist/{context-DGC1C_UU.d.cts → context-CO7Qh6cG.d.cts} +1 -1
  10. package/dist/{context-CgpkmUFq.d.ts → context-D-oakGjH.d.ts} +1 -1
  11. package/dist/{deno-uX5OxSMQ.mjs → deno-y8JmzzvA.mjs} +1 -1
  12. package/dist/{docloader-BVio_R-w.mjs → docloader-y8c0QD51.mjs} +2 -2
  13. package/dist/federation/attachment-responses.test.mjs +2 -2
  14. package/dist/federation/builder.test.mjs +1 -1
  15. package/dist/federation/delivery-attachments.test.mjs +3 -3
  16. package/dist/federation/handler.test.mjs +6 -6
  17. package/dist/federation/idempotency.test.mjs +2 -2
  18. package/dist/federation/inbox.test.mjs +1 -1
  19. package/dist/federation/middleware.test.mjs +23 -7
  20. package/dist/federation/mod.cjs +1 -1
  21. package/dist/federation/mod.d.cts +2 -2
  22. package/dist/federation/mod.d.ts +2 -2
  23. package/dist/federation/mod.js +1 -1
  24. package/dist/federation/send.test.mjs +283 -3
  25. package/dist/federation/temporal.test.mjs +1 -1
  26. package/dist/federation/webfinger.test.mjs +1 -1
  27. package/dist/{http-Bp6bXNxO.cjs → http-BaS2YI7N.cjs} +1 -1
  28. package/dist/{http-Cx49vN9O.mjs → http-Bc__CJad.mjs} +2 -2
  29. package/dist/{http-DaxiTQXs.js → http-DSXmvBHu.js} +1 -1
  30. package/dist/{inbox-Rw21yNrv.mjs → inbox-C_wa-LYT.mjs} +1 -1
  31. package/dist/{key-CxZXo3sZ.mjs → key-B_0zygjz.mjs} +1 -1
  32. package/dist/{kv-cache-BjsvCInD.cjs → kv-cache-CTDDgSAY.cjs} +1 -1
  33. package/dist/{kv-cache-BEYK4z_E.js → kv-cache-D5LTdGp1.js} +1 -1
  34. package/dist/{ld-DTaV6DUm.mjs → ld-Dn_1iRZn.mjs} +2 -2
  35. package/dist/{middleware-Cz87lzGU.mjs → middleware-C0kb-J_z.mjs} +1 -1
  36. package/dist/{middleware-ByAekFky.cjs → middleware-C9DzAb43.cjs} +1 -1
  37. package/dist/{middleware-BuQURchh.mjs → middleware-CiFuNfkj.mjs} +16 -12
  38. package/dist/{middleware-By3uBhIJ.cjs → middleware-DWeZgneL.cjs} +99 -24
  39. package/dist/{middleware-Bnn9AKMf.js → middleware-DzOFdjWu.js} +98 -23
  40. package/dist/{mod-BzKteaAe.d.cts → mod-DUC2Rnne.d.cts} +1 -1
  41. package/dist/{mod-BqnolIm8.d.ts → mod-Dl09kqul.d.ts} +1 -1
  42. package/dist/mod.cjs +5 -5
  43. package/dist/mod.d.cts +3 -3
  44. package/dist/mod.d.ts +3 -3
  45. package/dist/mod.js +5 -5
  46. package/dist/nodeinfo/client.test.mjs +432 -5
  47. package/dist/nodeinfo/handler.test.mjs +1 -1
  48. package/dist/nodeinfo/mod.cjs +1 -1
  49. package/dist/nodeinfo/mod.d.cts +1 -1
  50. package/dist/nodeinfo/mod.d.ts +1 -1
  51. package/dist/nodeinfo/mod.js +1 -1
  52. package/dist/{owner-CEFC5tVI.mjs → owner-ATab1_Ig.mjs} +2 -2
  53. package/dist/{proof-Bl3zk5c6.cjs → proof-Biei-37s.cjs} +1 -1
  54. package/dist/{proof-Ct8tSLww.js → proof-s1jWHtTh.js} +1 -1
  55. package/dist/{proof-DFrHHTit.mjs → proof-wb_nX2ts.mjs} +2 -2
  56. package/dist/{send-Dn11B6x2.mjs → send-CGSvhwBb.mjs} +92 -21
  57. package/dist/sig/http.test.mjs +2 -2
  58. package/dist/sig/key-types.test.d.mts +1 -1
  59. package/dist/sig/key.test.mjs +2 -2
  60. package/dist/sig/ld.test.mjs +2 -2
  61. package/dist/sig/mod.cjs +2 -2
  62. package/dist/sig/mod.js +2 -2
  63. package/dist/sig/owner.test.mjs +1 -1
  64. package/dist/sig/proof.test.mjs +2 -2
  65. package/dist/{temporal-DEWMgahT.mjs → temporal-kI2oPgzl.mjs} +1 -1
  66. package/dist/testing/mod.d.mts +1 -1
  67. package/dist/{types-DOvyymM4.cjs → types-B5wRhemi.cjs} +85 -10
  68. package/dist/{types-B1_pRFE_.js → types-CXy2lRVU.js} +86 -11
  69. package/dist/utils/docloader.test.mjs +2 -2
  70. package/dist/utils/mod.cjs +1 -1
  71. package/dist/utils/mod.js +1 -1
  72. package/package.json +5 -5
@@ -8,10 +8,10 @@ import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
8
8
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
9
9
  import { t as assertNotEquals } from "../assert_not_equals-BkxW5QJI.mjs";
10
10
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
11
- import { u as verifyRequest } from "../http-Cx49vN9O.mjs";
11
+ import { u as verifyRequest } from "../http-Bc__CJad.mjs";
12
12
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
13
- import { t as doesActorOwnKey } from "../owner-CEFC5tVI.mjs";
14
- import { i as sendActivity, n as extractInboxes, r as fetchWithValidatedRedirects, t as SendActivityError } from "../send-Dn11B6x2.mjs";
13
+ import { t as doesActorOwnKey } from "../owner-ATab1_Ig.mjs";
14
+ import { i as sendActivity, n as extractInboxes, r as fetchWithValidatedRedirects, t as SendActivityError } from "../send-CGSvhwBb.mjs";
15
15
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
17
17
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
@@ -622,6 +622,286 @@ const unsignedKeys = [{
622
622
  privateKey: ed25519PrivateKey,
623
623
  keyId: ed25519Multikey.id
624
624
  }];
625
+ test("sendActivity() bounds slow response headers on both signing paths", async (t) => {
626
+ for (const signed of [false, true]) await t.step(`signed: ${signed}`, async () => {
627
+ let requests = 0;
628
+ let closes = 0;
629
+ const error = await assertRejects(() => sendActivity({
630
+ activity: lifecycleActivity,
631
+ keys: signed ? signedKeys : unsignedKeys,
632
+ inbox: new URL("https://example.com/slow-headers")
633
+ }, {
634
+ timeoutMs: 100,
635
+ openHop: (url) => Promise.resolve({
636
+ url: new URL(url),
637
+ fetch(input, init) {
638
+ requests++;
639
+ const signal = init?.signal ?? (input instanceof Request ? input.signal : void 0);
640
+ assert(signal != null);
641
+ return new Promise((_, reject) => {
642
+ signal.addEventListener("abort", () => reject(signal.reason), { once: true });
643
+ });
644
+ },
645
+ close() {
646
+ closes++;
647
+ return Promise.resolve();
648
+ }
649
+ })
650
+ }), FetchError);
651
+ assert(error.message.includes("Timed out after 100 ms"));
652
+ assertInstanceOf(error.cause, DOMException);
653
+ assertEquals(error.cause.name, "TimeoutError");
654
+ assertEquals(requests, 1);
655
+ assertEquals(closes, 1);
656
+ });
657
+ });
658
+ test("sendActivity() closes a session opened after the deadline", async () => {
659
+ let resolveOpen;
660
+ let closes = 0;
661
+ const error = await assertRejects(() => sendActivity({
662
+ activity: lifecycleActivity,
663
+ keys: unsignedKeys,
664
+ inbox: new URL("https://example.com/late-open")
665
+ }, {
666
+ timeoutMs: 20,
667
+ openHop: () => new Promise((resolve) => resolveOpen = resolve)
668
+ }), FetchError);
669
+ assertInstanceOf(error.cause, DOMException);
670
+ assertEquals(error.cause.name, "TimeoutError");
671
+ assert(resolveOpen != null);
672
+ resolveOpen({
673
+ url: new URL("https://example.com/late-open"),
674
+ fetch: () => Promise.reject(/* @__PURE__ */ new Error("A late session must not fetch")),
675
+ close: () => {
676
+ closes++;
677
+ return Promise.resolve();
678
+ }
679
+ });
680
+ await Promise.resolve();
681
+ assertEquals(closes, 1);
682
+ });
683
+ test("sendActivity() keeps its deadline across redirects", async (t) => {
684
+ for (const signed of [false, true]) await t.step(`signed: ${signed}`, async () => {
685
+ const first = "https://example.com/first-inbox";
686
+ const second = "https://example.com/second-inbox";
687
+ const requests = [];
688
+ let closes = 0;
689
+ await assertRejects(() => sendActivity({
690
+ activity: lifecycleActivity,
691
+ keys: signed ? signedKeys : unsignedKeys,
692
+ inbox: new URL(first)
693
+ }, {
694
+ timeoutMs: 100,
695
+ openHop: (url) => Promise.resolve({
696
+ url: new URL(url),
697
+ async fetch(input, init) {
698
+ const request = new Request(input, init);
699
+ requests.push(request);
700
+ if (url === first) {
701
+ await new Promise((resolve) => setTimeout(resolve, 30));
702
+ return new Response(null, {
703
+ status: 307,
704
+ headers: { Location: second }
705
+ });
706
+ }
707
+ return await new Promise((_, reject) => {
708
+ request.signal.addEventListener("abort", () => reject(request.signal.reason), { once: true });
709
+ });
710
+ },
711
+ close() {
712
+ closes++;
713
+ return Promise.resolve();
714
+ }
715
+ })
716
+ }), FetchError);
717
+ assertEquals(requests.map((request) => request.url), [first, second]);
718
+ assert(requests.every((request) => request.signal.aborted));
719
+ assertEquals(closes, 2);
720
+ });
721
+ });
722
+ test("sendActivity() keeps its deadline across signature attempts", async () => {
723
+ let requests = 0;
724
+ let closes = 0;
725
+ await assertRejects(() => sendActivity({
726
+ activity: lifecycleActivity,
727
+ keys: signedKeys,
728
+ inbox: new URL("https://example.com/double-knock-timeout")
729
+ }, {
730
+ timeoutMs: 100,
731
+ openHop: (url) => Promise.resolve({
732
+ url: new URL(url),
733
+ fetch(input, init) {
734
+ requests++;
735
+ if (requests === 1) return Promise.resolve(new Response(null, { status: 401 }));
736
+ const signal = init?.signal ?? (input instanceof Request ? input.signal : void 0);
737
+ assert(signal != null);
738
+ return new Promise((_, reject) => {
739
+ signal.addEventListener("abort", () => reject(signal.reason), { once: true });
740
+ });
741
+ },
742
+ close() {
743
+ closes++;
744
+ return Promise.resolve();
745
+ }
746
+ })
747
+ }), FetchError);
748
+ assertEquals(requests, 2);
749
+ assertEquals(closes, 1);
750
+ });
751
+ test("sendActivity() preserves an error status when its body stalls", async (t) => {
752
+ for (const signed of [false, true]) for (const status of [410, 500]) await t.step(`signed: ${signed}, status: ${status}`, async () => {
753
+ let requests = 0;
754
+ let closes = 0;
755
+ const error = await assertRejects(() => sendActivity({
756
+ activity: lifecycleActivity,
757
+ keys: signed ? signedKeys : unsignedKeys,
758
+ inbox: new URL("https://example.com/slow-body")
759
+ }, {
760
+ timeoutMs: 100,
761
+ openHop: (url) => Promise.resolve({
762
+ url: new URL(url),
763
+ fetch() {
764
+ requests++;
765
+ return Promise.resolve(new Response(new ReadableStream({ pull: () => new Promise(() => {}) }), { status }));
766
+ },
767
+ close() {
768
+ closes++;
769
+ return Promise.resolve();
770
+ }
771
+ })
772
+ }), SendActivityError);
773
+ assertEquals(error.statusCode, status);
774
+ assertEquals(error.responseBody, "(timed out reading response body)");
775
+ assertEquals(requests, signed ? 2 : 1);
776
+ assertEquals(closes, 1);
777
+ });
778
+ });
779
+ test("sendActivity() does not read a body after its deadline", async () => {
780
+ let reads = 0;
781
+ let closes = 0;
782
+ const error = await assertRejects(() => sendActivity({
783
+ activity: lifecycleActivity,
784
+ keys: unsignedKeys,
785
+ inbox: new URL("https://example.com/late-error")
786
+ }, {
787
+ timeoutMs: 10,
788
+ openHop: (url) => Promise.resolve({
789
+ url: new URL(url),
790
+ async fetch() {
791
+ await new Promise((resolve) => setTimeout(resolve, 30));
792
+ return new Response(new ReadableStream({ pull() {
793
+ reads++;
794
+ throw new Error("The expired response must not be read");
795
+ } }, { highWaterMark: 0 }), { status: 500 });
796
+ },
797
+ close() {
798
+ closes++;
799
+ return Promise.resolve();
800
+ }
801
+ })
802
+ }), SendActivityError);
803
+ assertEquals(error.statusCode, 500);
804
+ assertEquals(error.responseBody, "(timed out reading response body)");
805
+ assertEquals(reads, 0);
806
+ assertEquals(closes, 1);
807
+ });
808
+ test("sendActivity() bounds signature spec lookup", async () => {
809
+ let resolveLookup;
810
+ const lookup = new Promise((resolve) => resolveLookup = resolve);
811
+ let lookupReleased = false;
812
+ let lookups = 0;
813
+ let closes = 0;
814
+ const release = setTimeout(() => {
815
+ lookupReleased = true;
816
+ resolveLookup("rfc9421");
817
+ }, 100);
818
+ try {
819
+ const error = await assertRejects(() => sendActivity({
820
+ activity: lifecycleActivity,
821
+ keys: signedKeys,
822
+ inbox: new URL("https://example.com/stalled-spec-lookup"),
823
+ specDeterminer: {
824
+ determineSpec() {
825
+ lookups++;
826
+ return lookup;
827
+ },
828
+ rememberSpec: () => {}
829
+ }
830
+ }, {
831
+ timeoutMs: 20,
832
+ openHop: (url) => Promise.resolve({
833
+ url: new URL(url),
834
+ fetch: () => Promise.resolve(new Response(null, { status: 202 })),
835
+ close() {
836
+ closes++;
837
+ return Promise.resolve();
838
+ }
839
+ })
840
+ }), FetchError);
841
+ assertInstanceOf(error.cause, DOMException);
842
+ assertEquals(error.cause.name, "TimeoutError");
843
+ assertEquals(lookups, 1);
844
+ assertFalse(lookupReleased);
845
+ assertEquals(closes, 1);
846
+ } finally {
847
+ clearTimeout(release);
848
+ resolveLookup("rfc9421");
849
+ }
850
+ });
851
+ test("sendActivity() does not wait for signature spec storage", async () => {
852
+ let resolveStorage;
853
+ const storage = new Promise((resolve) => resolveStorage = resolve);
854
+ let storageReleased = false;
855
+ let writes = 0;
856
+ let closes = 0;
857
+ const release = setTimeout(() => {
858
+ storageReleased = true;
859
+ resolveStorage();
860
+ }, 100);
861
+ try {
862
+ await sendActivity({
863
+ activity: lifecycleActivity,
864
+ keys: signedKeys,
865
+ inbox: new URL("https://example.com/stalled-spec-storage"),
866
+ specDeterminer: {
867
+ determineSpec: () => "rfc9421",
868
+ rememberSpec() {
869
+ writes++;
870
+ return storage;
871
+ }
872
+ }
873
+ }, {
874
+ timeoutMs: 20,
875
+ openHop: (url) => Promise.resolve({
876
+ url: new URL(url),
877
+ fetch: () => Promise.resolve(new Response(null, { status: 202 })),
878
+ close() {
879
+ closes++;
880
+ return Promise.resolve();
881
+ }
882
+ })
883
+ });
884
+ assertEquals(writes, 1);
885
+ assertFalse(storageReleased);
886
+ assertEquals(closes, 1);
887
+ } finally {
888
+ clearTimeout(release);
889
+ resolveStorage();
890
+ }
891
+ });
892
+ test("sendActivity() keeps an empty error body distinct from a timeout", async () => {
893
+ const error = await assertRejects(() => sendActivity({
894
+ activity: lifecycleActivity,
895
+ keys: unsignedKeys,
896
+ inbox: new URL("https://example.com/empty-error")
897
+ }, { openHop: (url) => Promise.resolve({
898
+ url: new URL(url),
899
+ fetch: () => Promise.resolve(new Response(null, { status: 500 })),
900
+ close: () => Promise.resolve()
901
+ }) }), SendActivityError);
902
+ assertEquals(error.statusCode, 500);
903
+ assertEquals(error.responseBody, "");
904
+ });
625
905
  test("sendActivity() cancels a successful response body", async (t) => {
626
906
  for (const signed of [true, false]) await t.step(`signed: ${signed}`, async () => {
627
907
  const inbox = "https://example.com/lifecycle/inbox";
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import "../std__assert-DflMZha5.mjs";
5
5
  import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
6
6
  import { t as assert } from "../assert-BhQd8QHP.mjs";
7
- import { t as hasMalformedKnownTemporalLiteral } from "../temporal-DEWMgahT.mjs";
7
+ import { t as hasMalformedKnownTemporalLiteral } from "../temporal-kI2oPgzl.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/federation/temporal.test.ts
10
10
  test("hasMalformedKnownTemporalLiteral() detects expanded proof timestamps", async () => {
@@ -5,7 +5,7 @@ import { n as createRequestContext } from "../context-Juj6bdHC.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-DflMZha5.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
8
- import { a as createFederation, o as handleWebFinger } from "../middleware-BuQURchh.mjs";
8
+ import { a as createFederation, o as handleWebFinger } from "../middleware-CiFuNfkj.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  import { Image, Link, Person } from "@fedify/vocab";
11
11
  //#region src/federation/webfinger.test.ts
@@ -12,7 +12,7 @@ let byte_encodings_base64 = require("byte-encodings/base64");
12
12
  let structured_field_values = require("structured-field-values");
13
13
  //#region deno.json
14
14
  var name = "@fedify/fedify";
15
- var version = "2.0.36-dev.2828+4d2d041b";
15
+ var version = "2.0.36-dev.2843+780589e4";
16
16
  //#endregion
17
17
  //#region src/sig/key.ts
18
18
  /** Classifies decoding failures without hiding unexpected loader errors. */
@@ -1,8 +1,8 @@
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-uX5OxSMQ.mjs";
5
- import { o as validateCryptoKey, r as fetchKey } from "./key-CxZXo3sZ.mjs";
4
+ import { n as version, t as name } from "./deno-y8JmzzvA.mjs";
5
+ import { o as validateCryptoKey, r as fetchKey } from "./key-B_0zygjz.mjs";
6
6
  import { CryptographicKey } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { FetchError } from "@fedify/vocab-runtime";
@@ -11,7 +11,7 @@ import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
11
  import { Item, decodeDict, encodeItem } from "structured-field-values";
12
12
  //#region deno.json
13
13
  var name = "@fedify/fedify";
14
- var version = "2.0.36-dev.2828+4d2d041b";
14
+ var version = "2.0.36-dev.2843+780589e4";
15
15
  //#endregion
16
16
  //#region src/sig/key.ts
17
17
  /** Classifies decoding failures without hiding unexpected loader errors. */
@@ -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 version, t as name } from "./deno-uX5OxSMQ.mjs";
4
+ import { n as version, t as name } from "./deno-y8JmzzvA.mjs";
5
5
  import { Activity, getTypeId } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
7
7
  import { getLogger } from "@logtape/logtape";
@@ -1,7 +1,7 @@
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-uX5OxSMQ.mjs";
4
+ import { n as version, t as name } from "./deno-y8JmzzvA.mjs";
5
5
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { FetchError, UrlError, getDocumentLoader } 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-Bp6bXNxO.cjs");
4
+ const require_http = require("./http-BaS2YI7N.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,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { l as validateCryptoKey, t as doubleKnockScoped } from "./http-DaxiTQXs.js";
3
+ import { l as validateCryptoKey, t as doubleKnockScoped } from "./http-DSXmvBHu.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { curry } from "es-toolkit";
6
6
  import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts } from "@fedify/vocab-runtime";
@@ -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-uX5OxSMQ.mjs";
5
- import { o as validateCryptoKey, r as fetchKey } from "./key-CxZXo3sZ.mjs";
4
+ import { n as version, t as name } from "./deno-y8JmzzvA.mjs";
5
+ import { o as validateCryptoKey, r as fetchKey } from "./key-B_0zygjz.mjs";
6
6
  import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
@@ -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-BuQURchh.mjs";
4
+ import { n as FederationImpl } from "./middleware-CiFuNfkj.mjs";
5
5
  export { FederationImpl };
@@ -1,4 +1,4 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_middleware = require("./middleware-By3uBhIJ.cjs");
3
+ const require_middleware = require("./middleware-DWeZgneL.cjs");
4
4
  exports.FederationImpl = require_middleware.FederationImpl;
@@ -2,25 +2,25 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-uX5OxSMQ.mjs";
6
- import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-CxZXo3sZ.mjs";
7
- import { u as verifyRequest } from "./http-Cx49vN9O.mjs";
8
- import { n as getAuthenticatedDocumentLoader } from "./docloader-BVio_R-w.mjs";
5
+ import { n as version, t as name } from "./deno-y8JmzzvA.mjs";
6
+ import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-B_0zygjz.mjs";
7
+ import { u as verifyRequest } from "./http-Bc__CJad.mjs";
8
+ import { n as getAuthenticatedDocumentLoader } from "./docloader-y8c0QD51.mjs";
9
9
  import { n as kvCache } from "./kv-cache-BrjuJue8.mjs";
10
- import { a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, f as isClearlyMalformedContextReference, h as verifyCompactJsonLd, l as getNormalizationContextLoader, m as signJsonLd, p as isInvalidUrlTypeError, r as assertSafeJsonLd, s as describeSignatureShape, t as InvalidContextReferenceError, v as wrapContextLoaderForJsonLd } from "./ld-DTaV6DUm.mjs";
11
- import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-CEFC5tVI.mjs";
12
- import { n as signObject, r as verifyObject } from "./proof-DFrHHTit.mjs";
13
- import { d as MAX_BODY_SIZE, f as readBoundedText, t as getNodeInfo, u as BodyTooLargeError } from "./client-DLAWT9ep.mjs";
10
+ import { a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, f as isClearlyMalformedContextReference, h as verifyCompactJsonLd, l as getNormalizationContextLoader, m as signJsonLd, p as isInvalidUrlTypeError, r as assertSafeJsonLd, s as describeSignatureShape, t as InvalidContextReferenceError, v as wrapContextLoaderForJsonLd } from "./ld-Dn_1iRZn.mjs";
11
+ import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-ATab1_Ig.mjs";
12
+ import { n as signObject, r as verifyObject } from "./proof-wb_nX2ts.mjs";
13
+ import { d as MAX_BODY_SIZE, f as readBoundedText, t as getNodeInfo, u as BodyTooLargeError } from "./client-DMnQeMkz.mjs";
14
14
  import { t as normalizeAttachmentArrays } from "./attachment-arrays-D43igPLB.mjs";
15
15
  import { t as nodeInfoToJson } from "./types-DCP0WLdt.mjs";
16
- import { n as actorsHaveSameOrigin, r as routeActivity } from "./inbox-Rw21yNrv.mjs";
17
- import { t as FederationBuilderImpl } from "./builder-NquOFkEx.mjs";
16
+ import { n as actorsHaveSameOrigin, r as routeActivity } from "./inbox-C_wa-LYT.mjs";
17
+ import { t as FederationBuilderImpl } from "./builder-CcDcpJbi.mjs";
18
18
  import { t as buildCollectionSynchronizationHeader } from "./collection-BD6-SZ6O.mjs";
19
19
  import { t as KvKeyCache } from "./keycache-BhLorx33.mjs";
20
20
  import { t as acceptsJsonLd } from "./negotiation-DnsfFF8I.mjs";
21
- import { t as hasMalformedKnownTemporalLiteral } from "./temporal-DEWMgahT.mjs";
21
+ import { t as hasMalformedKnownTemporalLiteral } from "./temporal-kI2oPgzl.mjs";
22
22
  import { t as createExponentialBackoffPolicy } from "./retry-CJL0poaU.mjs";
23
- import { i as sendActivity, n as extractInboxes, t as SendActivityError } from "./send-Dn11B6x2.mjs";
23
+ import { i as sendActivity, n as extractInboxes, t as SendActivityError } from "./send-CGSvhwBb.mjs";
24
24
  import { Activity, Collection, CollectionPage, CryptographicKey, DataIntegrityProof, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
25
25
  import { lookupWebFinger } from "@fedify/webfinger";
26
26
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -2944,10 +2944,14 @@ var ContextImpl = class ContextImpl {
2944
2944
  return options.parse === "none" ? getNodeInfo(url, {
2945
2945
  parse: "none",
2946
2946
  direct: options.direct,
2947
+ timeout: options.timeout,
2948
+ signal: options.signal,
2947
2949
  userAgent: options?.userAgent ?? this.federation.userAgent
2948
2950
  }) : getNodeInfo(url, {
2949
2951
  parse: options.parse,
2950
2952
  direct: options.direct,
2953
+ timeout: options.timeout,
2954
+ signal: options.signal,
2951
2955
  userAgent: options?.userAgent ?? this.federation.userAgent
2952
2956
  });
2953
2957
  }