@fedify/fedify 1.8.1-pr.334.1193 → 1.8.1-pr.340.1214

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 (107) hide show
  1. package/dist/{actor-CeBMq8qR.js → actor-0406z0yr.js} +1 -1
  2. package/dist/{actor-BxYrc06V.js → actor-BaC4dvrg.js} +179 -179
  3. package/dist/{actor-B4TBtqRP.d.ts → actor-CWNAGvnO.d.ts} +2 -2
  4. package/dist/{authdocloader-D64rqKxU.js → authdocloader-CEsK8iV_.js} +3 -3
  5. package/dist/{authdocloader-mGQvrIQ2.js → authdocloader-CtMSv_Pw.js} +3 -3
  6. package/dist/{builder-BMWyrhEH.js → builder-BMJsk4Fm.js} +74 -4
  7. package/dist/{client-BQ4AQGKo.d.ts → client-B0IOer6B.d.ts} +1 -1
  8. package/dist/{client-CTC5x_Sz.js → client-BKDCmXzu.js} +1 -1
  9. package/dist/compat/mod.d.ts +11 -11
  10. package/dist/compat/mod.js +1 -1
  11. package/dist/compat/transformers.test.js +16 -16
  12. package/dist/{context-B6mUZhs_.d.ts → context-BNA3vzcr.d.ts} +273 -60
  13. package/dist/{docloader-BeCtcTOJ.d.ts → docloader-CLolPVL_.d.ts} +1 -1
  14. package/dist/{docloader-BU0Mbf3M.js → docloader-DWk5FlEW.js} +1 -1
  15. package/dist/{esm-LMB9p-G5.js → esm-CXrO8Uio.js} +1 -1
  16. package/dist/federation/builder.test.js +25 -6
  17. package/dist/federation/collection.test.js +3 -3
  18. package/dist/federation/handler.test.js +327 -17
  19. package/dist/federation/inbox.test.js +4 -4
  20. package/dist/federation/keycache.test.js +4 -4
  21. package/dist/federation/kv.test.js +3 -3
  22. package/dist/federation/middleware.test.js +49 -18
  23. package/dist/federation/mod.d.ts +11 -11
  24. package/dist/federation/mod.js +11 -11
  25. package/dist/federation/mq.test.js +3 -3
  26. package/dist/federation/retry.test.js +3 -3
  27. package/dist/federation/router.test.js +3 -3
  28. package/dist/federation/send.test.js +10 -10
  29. package/dist/{http-D3g0NXG1.js → http-CO1FrcSi.js} +2 -2
  30. package/dist/{http-D1uoUH4N.d.ts → http-COez3YdK.d.ts} +4 -4
  31. package/dist/{http-CYR3mIVn.js → http-DhcY_6sW.js} +3 -3
  32. package/dist/{inbox-CKssCQNk.js → inbox-BU_xB7k0.js} +1 -1
  33. package/dist/{key-BBZcKCrH.js → key-B09hs4s0.js} +3 -3
  34. package/dist/{key-CmOXs0Mq.js → key-BdLJwUgz.js} +3 -3
  35. package/dist/{key-YOEsvep6.js → key-CnJoBmuO.js} +3 -3
  36. package/dist/{key-CuNvhgVd.js → key-DOtg5R6v.js} +4 -4
  37. package/dist/{keycache-DGObidvq.js → keycache-lSDCpE3z.js} +1 -1
  38. package/dist/{keys-CPhbsrsX.js → keys-DAWEhOVZ.js} +1 -1
  39. package/dist/{kv-DDdb1hMa.d.ts → kv-BqOK6zss.d.ts} +1 -1
  40. package/dist/{ld-D8ugSU-x.js → ld-wWks9TWo.js} +2 -2
  41. package/dist/{lookup-rBByGTyy.js → lookup-B7MyB44I.js} +1 -1
  42. package/dist/{lookup-B0_qPExk.js → lookup-Cph3FzCE.js} +1 -1
  43. package/dist/{lookup-J_m4YZg0.d.ts → lookup-tSXYzgYs.d.ts} +1 -1
  44. package/dist/middleware-B3Vppi4s.js +26 -0
  45. package/dist/{middleware-u2WBeCjB.js → middleware-B93u9XJg.js} +552 -17
  46. package/dist/middleware-B_dKx4Hf.js +17 -0
  47. package/dist/{middleware-B_To0NZ3.js → middleware-BrIs_Xfo.js} +616 -11
  48. package/dist/{mod-BCl7t-Ka.d.ts → mod-Bf-mThHd.d.ts} +4 -4
  49. package/dist/{mod-BFwgZ7_K.d.ts → mod-C2jQirfr.d.ts} +2 -2
  50. package/dist/{mod-D9qE4iHP.d.ts → mod-CxD6XXBN.d.ts} +5 -5
  51. package/dist/{mod-0L5jhGYM.d.ts → mod-UTC30uNC.d.ts} +2 -2
  52. package/dist/mod.d.ts +14 -14
  53. package/dist/mod.js +11 -11
  54. package/dist/nodeinfo/client.test.js +5 -5
  55. package/dist/nodeinfo/handler.test.js +16 -16
  56. package/dist/nodeinfo/mod.d.ts +3 -3
  57. package/dist/nodeinfo/mod.js +2 -2
  58. package/dist/nodeinfo/semver.test.js +3 -3
  59. package/dist/nodeinfo/types.test.js +3 -3
  60. package/dist/{owner-CEv_PfyK.d.ts → owner-BlxMNrL4.d.ts} +3 -3
  61. package/dist/{owner-D1TBvEbO.js → owner-D5LGiRcJ.js} +2 -2
  62. package/dist/{proof-CUsFh6B-.js → proof-B2bSQ9mB.js} +4 -4
  63. package/dist/{proof-CyWfFsKS.js → proof-DMbQihAa.js} +3 -3
  64. package/dist/runtime/authdocloader.test.js +9 -9
  65. package/dist/runtime/docloader.test.js +4 -4
  66. package/dist/runtime/key.test.js +5 -5
  67. package/dist/runtime/langstr.test.js +3 -3
  68. package/dist/runtime/mod.d.ts +5 -5
  69. package/dist/runtime/mod.js +6 -6
  70. package/dist/runtime/multibase/multibase.test.js +3 -3
  71. package/dist/runtime/url.test.js +3 -3
  72. package/dist/{send-CrjrTnXW.js → send-CHfFIhLs.js} +2 -2
  73. package/dist/sig/http.test.js +8 -8
  74. package/dist/sig/key.test.js +6 -6
  75. package/dist/sig/ld.test.js +7 -7
  76. package/dist/sig/mod.d.ts +7 -7
  77. package/dist/sig/mod.js +6 -6
  78. package/dist/sig/owner.test.js +7 -7
  79. package/dist/sig/proof.test.js +7 -7
  80. package/dist/testing/docloader.test.js +3 -3
  81. package/dist/testing/mod.d.ts +260 -48
  82. package/dist/testing/mod.js +3 -3
  83. package/dist/{testing-CROcCUCq.js → testing-B1f6X3bJ.js} +4 -3
  84. package/dist/{transformers-ghwJuzGY.js → transformers-DJRB0yFF.js} +3 -3
  85. package/dist/{type-DGlR8Urb.js → type-DDS4cl1h.js} +179 -179
  86. package/dist/{types-DZdBK266.js → types-DqEgOZ7x.js} +1 -1
  87. package/dist/vocab/actor.test.js +5 -5
  88. package/dist/vocab/lookup.test.js +4 -4
  89. package/dist/vocab/mod.d.ts +5 -5
  90. package/dist/vocab/mod.js +4 -4
  91. package/dist/vocab/type.test.js +3 -3
  92. package/dist/vocab/vocab.test.js +4 -4
  93. package/dist/{vocab-BLQ-_oLb.js → vocab-4bE35CsS.js} +3 -3
  94. package/dist/{vocab-By6mpzr-.d.ts → vocab-Cyrb7_co.d.ts} +1 -1
  95. package/dist/webfinger/handler.test.js +16 -16
  96. package/dist/webfinger/lookup.test.js +4 -4
  97. package/dist/webfinger/mod.d.ts +3 -3
  98. package/dist/webfinger/mod.js +2 -2
  99. package/dist/x/cfworkers.d.ts +1 -1
  100. package/dist/x/cfworkers.test.js +3 -3
  101. package/dist/x/hono.d.ts +14 -14
  102. package/dist/x/hono.js +2 -2
  103. package/dist/x/sveltekit.d.ts +11 -11
  104. package/dist/x/sveltekit.js +1 -1
  105. package/package.json +1 -1
  106. package/dist/middleware-DbDzHrt7.js +0 -17
  107. package/dist/middleware-JUbAKlS5.js +0 -26
@@ -3,24 +3,24 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Application, Endpoints, Group, Person, Service } from "../type-DGlR8Urb.js";
6
+ import { Activity, Application, Endpoints, Group, Person, Service } from "../type-DDS4cl1h.js";
7
7
  import { assertEquals } from "../assert_equals-C5gKCm6A.js";
8
8
  import { assert } from "../assert-DwEa6glZ.js";
9
9
  import "../assert_instance_of-C9QtN-X9.js";
10
- import "../lookup-B0_qPExk.js";
11
- import "../actor-CeBMq8qR.js";
12
- import "../key-YOEsvep6.js";
13
- import { verifyRequest } from "../http-D3g0NXG1.js";
14
- import { doesActorOwnKey } from "../owner-D1TBvEbO.js";
15
- import { extractInboxes, sendActivity } from "../send-CrjrTnXW.js";
16
- import { mockDocumentLoader, test } from "../testing-CROcCUCq.js";
10
+ import "../lookup-Cph3FzCE.js";
11
+ import "../actor-0406z0yr.js";
12
+ import "../key-CnJoBmuO.js";
13
+ import { verifyRequest } from "../http-CO1FrcSi.js";
14
+ import { doesActorOwnKey } from "../owner-D5LGiRcJ.js";
15
+ import { extractInboxes, sendActivity } from "../send-CHfFIhLs.js";
16
+ import { mockDocumentLoader, test } from "../testing-B1f6X3bJ.js";
17
17
  import "../std__assert-BQdmxyzF.js";
18
18
  import { assertFalse, assertRejects } from "../assert_rejects-AjlKk-Vo.js";
19
19
  import "../assert_is_error-CeVBLPsZ.js";
20
20
  import { assertNotEquals } from "../assert_not_equals-D2R2nl5h.js";
21
21
  import "../assert_throws-CqMKbTh_.js";
22
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-CPhbsrsX.js";
23
- import { esm_default } from "../esm-LMB9p-G5.js";
22
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-DAWEhOVZ.js";
23
+ import { esm_default } from "../esm-CXrO8Uio.js";
24
24
 
25
25
  //#region federation/send.test.ts
26
26
  test("extractInboxes()", () => {
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, deno_default } from "./type-DGlR8Urb.js";
7
- import { fetchKey, validateCryptoKey } from "./key-YOEsvep6.js";
6
+ import { CryptographicKey, deno_default } from "./type-DDS4cl1h.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-CnJoBmuO.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { DocumentLoader } from "./docloader-BeCtcTOJ.js";
4
- import { CryptographicKey, Multikey } from "./vocab-By6mpzr-.js";
3
+ import { DocumentLoader } from "./docloader-CLolPVL_.js";
4
+ import { CryptographicKey, Multikey } from "./vocab-Cyrb7_co.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region sig/key.d.ts
@@ -75,7 +75,7 @@ interface FetchKeyResult<T extends CryptographicKey | Multikey> {
75
75
  * Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
76
76
  * If the given URL contains an {@link Actor} object, it tries to find
77
77
  * the corresponding key in the `publicKey` or `assertionMethod` property.
78
- * @typeParam T The type of the key to fetch. Either {@link CryptographicKey}
78
+ * @template T The type of the key to fetch. Either {@link CryptographicKey}
79
79
  * or {@link Multikey}.
80
80
  * @param keyId The URL of the key.
81
81
  * @param cls The class of the key to fetch. Either {@link CryptographicKey}
@@ -150,7 +150,7 @@ interface SignRequestOptions {
150
150
  currentTime?: Temporal.Instant;
151
151
  /**
152
152
  * The request body as ArrayBuffer. If provided, avoids cloning the request body.
153
- * @since 1.8.0
153
+ * @since 1.7.7
154
154
  */
155
155
  body?: ArrayBuffer | null;
156
156
  /**
@@ -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 } from "./docloader-BU0Mbf3M.js";
6
- import { CryptographicKey } from "./actor-BxYrc06V.js";
7
- import { fetchKey, validateCryptoKey } from "./key-BBZcKCrH.js";
5
+ import { deno_default } from "./docloader-DWk5FlEW.js";
6
+ import { CryptographicKey } from "./actor-BaC4dvrg.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-B09hs4s0.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, deno_default, getTypeId } from "./type-DGlR8Urb.js";
6
+ import { Activity, deno_default, getTypeId } from "./type-DDS4cl1h.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
9
9
 
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-BU0Mbf3M.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-BxYrc06V.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-DWk5FlEW.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-BaC4dvrg.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -91,7 +91,7 @@ async function importJwk(jwk, type) {
91
91
  * Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
92
92
  * If the given URL contains an {@link Actor} object, it tries to find
93
93
  * the corresponding key in the `publicKey` or `assertionMethod` property.
94
- * @typeParam T The type of the key to fetch. Either {@link CryptographicKey}
94
+ * @template T The type of the key to fetch. Either {@link CryptographicKey}
95
95
  * or {@link Multikey}.
96
96
  * @param keyId The URL of the key.
97
97
  * @param cls The class of the key to fetch. Either {@link CryptographicKey}
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "./type-DGlR8Urb.js";
7
- import "./actor-CeBMq8qR.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-YOEsvep6.js";
6
+ import "./type-DDS4cl1h.js";
7
+ import "./actor-0406z0yr.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CnJoBmuO.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-DGlR8Urb.js";
7
- import { isActor } from "./actor-CeBMq8qR.js";
6
+ import { CryptographicKey, Object as Object$1, deno_default, getDocumentLoader } from "./type-DDS4cl1h.js";
7
+ import { isActor } from "./actor-0406z0yr.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
10
 
@@ -92,7 +92,7 @@ async function importJwk(jwk, type) {
92
92
  * Fetches a {@link CryptographicKey} or {@link Multikey} from the given URL.
93
93
  * If the given URL contains an {@link Actor} object, it tries to find
94
94
  * the corresponding key in the `publicKey` or `assertionMethod` property.
95
- * @typeParam T The type of the key to fetch. Either {@link CryptographicKey}
95
+ * @template T The type of the key to fetch. Either {@link CryptographicKey}
96
96
  * or {@link Multikey}.
97
97
  * @param keyId The URL of the key.
98
98
  * @param cls The class of the key to fetch. Either {@link CryptographicKey}
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "./docloader-BU0Mbf3M.js";
6
- import "./actor-BxYrc06V.js";
7
- import "./lookup-rBByGTyy.js";
8
- import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-BBZcKCrH.js";
5
+ import "./docloader-DWk5FlEW.js";
6
+ import "./actor-BaC4dvrg.js";
7
+ import "./lookup-B7MyB44I.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-B09hs4s0.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./type-DGlR8Urb.js";
6
+ import { CryptographicKey, Multikey } from "./type-DDS4cl1h.js";
7
7
 
8
8
  //#region federation/keycache.ts
9
9
  var KvKeyCache = class {
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey, importSpki } from "./type-DGlR8Urb.js";
6
+ import { CryptographicKey, Multikey, importSpki } from "./type-DDS4cl1h.js";
7
7
 
8
8
  //#region testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -29,7 +29,7 @@ interface KvStore {
29
29
  * Gets the value for the given key.
30
30
  * @param key The key to get the value for.
31
31
  * @returns The value for the key, or `undefined` if the key does not exist.
32
- * @typeParam T The type of the value to get.
32
+ * @template T The type of the value to get.
33
33
  */
34
34
  get<T = unknown>(key: KvKey): Promise<T | undefined>;
35
35
  /**
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-DGlR8Urb.js";
7
- import { fetchKey, validateCryptoKey } from "./key-YOEsvep6.js";
6
+ import { Activity, CryptographicKey, Object as Object$1, deno_default, getDocumentLoader, getTypeId } from "./type-DDS4cl1h.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-CnJoBmuO.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-BU0Mbf3M.js";
5
+ import { UrlError, deno_default, getUserAgent, validatePublicUrl } from "./docloader-DWk5FlEW.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
 
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-DGlR8Urb.js";
6
+ import { Object as Object$1, deno_default, getDocumentLoader, getTypeId, lookupWebFinger } from "./type-DDS4cl1h.js";
7
7
  import { cloneDeep, delay } from "es-toolkit";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetUserAgentOptions } from "./docloader-BeCtcTOJ.js";
3
+ import { GetUserAgentOptions } from "./docloader-CLolPVL_.js";
4
4
  import { TracerProvider } from "@opentelemetry/api";
5
5
 
6
6
  //#region webfinger/jrd.d.ts
@@ -0,0 +1,26 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+ globalThis.addEventListener = () => {};
5
+
6
+ import "./type-DDS4cl1h.js";
7
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-B93u9XJg.js";
8
+ import "./semver-DCqorrj5.js";
9
+ import "./client-BKDCmXzu.js";
10
+ import "./lookup-Cph3FzCE.js";
11
+ import "./types-n7HI7VFr.js";
12
+ import "./actor-0406z0yr.js";
13
+ import "./key-CnJoBmuO.js";
14
+ import "./http-CO1FrcSi.js";
15
+ import "./authdocloader-CEsK8iV_.js";
16
+ import "./ld-wWks9TWo.js";
17
+ import "./owner-D5LGiRcJ.js";
18
+ import "./proof-DMbQihAa.js";
19
+ import "./inbox-BU_xB7k0.js";
20
+ import "./builder-BMJsk4Fm.js";
21
+ import "./collection-D5V3UzU3.js";
22
+ import "./keycache-lSDCpE3z.js";
23
+ import "./retry-BnpVRGFC.js";
24
+ import "./send-CHfFIhLs.js";
25
+
26
+ export { FederationImpl };