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

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 (91) hide show
  1. package/dist/{actor-BxYrc06V.js → actor-D6O35chv.js} +179 -179
  2. package/dist/{actor-CeBMq8qR.js → actor-T9Hsc-zg.js} +1 -1
  3. package/dist/{authdocloader-D64rqKxU.js → authdocloader-Be4dT7EP.js} +3 -3
  4. package/dist/{authdocloader-mGQvrIQ2.js → authdocloader-Bk6lZ8Ac.js} +3 -3
  5. package/dist/{builder-BMWyrhEH.js → builder-CgMvNTTw.js} +74 -4
  6. package/dist/{client-CTC5x_Sz.js → client-BtE58B4g.js} +1 -1
  7. package/dist/compat/mod.d.ts +3 -3
  8. package/dist/compat/transformers.test.js +16 -16
  9. package/dist/{context-B6mUZhs_.d.ts → context-Csbv_Ssv.d.ts} +215 -2
  10. package/dist/{docloader-BU0Mbf3M.js → docloader-oaVj9AVA.js} +1 -1
  11. package/dist/{esm-LMB9p-G5.js → esm-C7PWYVnn.js} +1 -1
  12. package/dist/federation/builder.test.js +25 -6
  13. package/dist/federation/collection.test.js +3 -3
  14. package/dist/federation/handler.test.js +327 -17
  15. package/dist/federation/inbox.test.js +4 -4
  16. package/dist/federation/keycache.test.js +4 -4
  17. package/dist/federation/kv.test.js +3 -3
  18. package/dist/federation/middleware.test.js +49 -18
  19. package/dist/federation/mod.d.ts +3 -3
  20. package/dist/federation/mod.js +10 -10
  21. package/dist/federation/mq.test.js +3 -3
  22. package/dist/federation/retry.test.js +3 -3
  23. package/dist/federation/router.test.js +3 -3
  24. package/dist/federation/send.test.js +10 -10
  25. package/dist/{http-D1uoUH4N.d.ts → http-BL6S1G0j.d.ts} +1 -1
  26. package/dist/{http-CYR3mIVn.js → http-DAfZt0YC.js} +3 -3
  27. package/dist/{http-D3g0NXG1.js → http-vc__YpPz.js} +2 -2
  28. package/dist/{inbox-CKssCQNk.js → inbox-ClTTIj5D.js} +1 -1
  29. package/dist/{key-CmOXs0Mq.js → key-BZ1BO7bW.js} +3 -3
  30. package/dist/{key-CuNvhgVd.js → key-CHGQtXVi.js} +4 -4
  31. package/dist/{key-BBZcKCrH.js → key-CRxCwmeR.js} +2 -2
  32. package/dist/{key-YOEsvep6.js → key-Cce78zFE.js} +2 -2
  33. package/dist/{keycache-DGObidvq.js → keycache-Dpt22wcN.js} +1 -1
  34. package/dist/{keys-CPhbsrsX.js → keys-DyFTVvdg.js} +1 -1
  35. package/dist/{ld-D8ugSU-x.js → ld-TTQ84IRa.js} +2 -2
  36. package/dist/{lookup-B0_qPExk.js → lookup-BfDjnc5q.js} +1 -1
  37. package/dist/{lookup-rBByGTyy.js → lookup-ssxf3fFY.js} +1 -1
  38. package/dist/middleware-5t02e2Mh.js +17 -0
  39. package/dist/middleware-BhdwTRMN.js +26 -0
  40. package/dist/{middleware-u2WBeCjB.js → middleware-Dgt63xgu.js} +549 -14
  41. package/dist/{middleware-B_To0NZ3.js → middleware-uxtesvlQ.js} +615 -10
  42. package/dist/{mod-0L5jhGYM.d.ts → mod-D8-liXFY.d.ts} +1 -1
  43. package/dist/{mod-D9qE4iHP.d.ts → mod-Dc_fDCtK.d.ts} +1 -1
  44. package/dist/{mod-BCl7t-Ka.d.ts → mod-j0OCtlRW.d.ts} +1 -1
  45. package/dist/mod.d.ts +6 -6
  46. package/dist/mod.js +10 -10
  47. package/dist/nodeinfo/client.test.js +5 -5
  48. package/dist/nodeinfo/handler.test.js +16 -16
  49. package/dist/nodeinfo/mod.js +2 -2
  50. package/dist/nodeinfo/semver.test.js +3 -3
  51. package/dist/nodeinfo/types.test.js +3 -3
  52. package/dist/{owner-D1TBvEbO.js → owner-BdiuD-G1.js} +2 -2
  53. package/dist/{proof-CyWfFsKS.js → proof-CJV0jQHE.js} +2 -2
  54. package/dist/{proof-CUsFh6B-.js → proof-DGzSTm0i.js} +3 -3
  55. package/dist/runtime/authdocloader.test.js +9 -9
  56. package/dist/runtime/docloader.test.js +4 -4
  57. package/dist/runtime/key.test.js +5 -5
  58. package/dist/runtime/langstr.test.js +3 -3
  59. package/dist/runtime/mod.d.ts +2 -2
  60. package/dist/runtime/mod.js +6 -6
  61. package/dist/runtime/multibase/multibase.test.js +3 -3
  62. package/dist/runtime/url.test.js +3 -3
  63. package/dist/{send-CrjrTnXW.js → send-BZ31cSu1.js} +2 -2
  64. package/dist/sig/http.test.js +8 -8
  65. package/dist/sig/key.test.js +6 -6
  66. package/dist/sig/ld.test.js +7 -7
  67. package/dist/sig/mod.d.ts +2 -2
  68. package/dist/sig/mod.js +6 -6
  69. package/dist/sig/owner.test.js +7 -7
  70. package/dist/sig/proof.test.js +7 -7
  71. package/dist/testing/docloader.test.js +3 -3
  72. package/dist/testing/mod.d.ts +212 -0
  73. package/dist/testing/mod.js +3 -3
  74. package/dist/{testing-CROcCUCq.js → testing-B1BQega8.js} +4 -3
  75. package/dist/{type-DGlR8Urb.js → type-TcjBlJJ1.js} +179 -179
  76. package/dist/{types-DZdBK266.js → types-DTFhOxvI.js} +1 -1
  77. package/dist/vocab/actor.test.js +5 -5
  78. package/dist/vocab/lookup.test.js +4 -4
  79. package/dist/vocab/mod.js +4 -4
  80. package/dist/vocab/type.test.js +3 -3
  81. package/dist/vocab/vocab.test.js +4 -4
  82. package/dist/{vocab-BLQ-_oLb.js → vocab-YYPCIl0U.js} +3 -3
  83. package/dist/webfinger/handler.test.js +16 -16
  84. package/dist/webfinger/lookup.test.js +4 -4
  85. package/dist/webfinger/mod.js +2 -2
  86. package/dist/x/cfworkers.test.js +3 -3
  87. package/dist/x/hono.d.ts +2 -2
  88. package/dist/x/sveltekit.d.ts +2 -2
  89. package/package.json +1 -1
  90. package/dist/middleware-DbDzHrt7.js +0 -17
  91. 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-TcjBlJJ1.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-BfDjnc5q.js";
11
+ import "../actor-T9Hsc-zg.js";
12
+ import "../key-Cce78zFE.js";
13
+ import { verifyRequest } from "../http-vc__YpPz.js";
14
+ import { doesActorOwnKey } from "../owner-BdiuD-G1.js";
15
+ import { extractInboxes, sendActivity } from "../send-BZ31cSu1.js";
16
+ import { mockDocumentLoader, test } from "../testing-B1BQega8.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-DyFTVvdg.js";
23
+ import { esm_default } from "../esm-C7PWYVnn.js";
24
24
 
25
25
  //#region federation/send.test.ts
26
26
  test("extractInboxes()", () => {
@@ -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-oaVj9AVA.js";
6
+ import { CryptographicKey } from "./actor-D6O35chv.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-CRxCwmeR.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,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-TcjBlJJ1.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-Cce78zFE.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";
@@ -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-TcjBlJJ1.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
9
9
 
@@ -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-TcjBlJJ1.js";
7
+ import "./actor-T9Hsc-zg.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-Cce78zFE.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -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-oaVj9AVA.js";
6
+ import "./actor-D6O35chv.js";
7
+ import "./lookup-ssxf3fFY.js";
8
+ import { exportJwk, fetchKey, generateCryptoKeyPair, importJwk, validateCryptoKey } from "./key-CRxCwmeR.js";
9
9
 
10
10
  export { validateCryptoKey };
@@ -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-oaVj9AVA.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-D6O35chv.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
 
@@ -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-TcjBlJJ1.js";
7
+ import { isActor } from "./actor-T9Hsc-zg.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
10
10
 
@@ -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-TcjBlJJ1.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-TcjBlJJ1.js";
7
7
 
8
8
  //#region testing/keys.ts
9
9
  const rsaPublicKey1 = new CryptographicKey({
@@ -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-TcjBlJJ1.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-Cce78zFE.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 { 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-TcjBlJJ1.js";
7
7
  import { cloneDeep, delay } from "es-toolkit";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -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-oaVj9AVA.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
 
@@ -0,0 +1,17 @@
1
+
2
+ import { Temporal } from "@js-temporal/polyfill";
3
+ import { URLPattern } from "urlpattern-polyfill";
4
+
5
+ import "./transformers-ghwJuzGY.js";
6
+ import "./docloader-oaVj9AVA.js";
7
+ import "./actor-D6O35chv.js";
8
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-uxtesvlQ.js";
9
+ import "./lookup-ssxf3fFY.js";
10
+ import "./key-CRxCwmeR.js";
11
+ import "./http-DAfZt0YC.js";
12
+ import "./proof-DGzSTm0i.js";
13
+ import "./types-DTFhOxvI.js";
14
+ import "./authdocloader-Bk6lZ8Ac.js";
15
+ import "./vocab-YYPCIl0U.js";
16
+
17
+ export { FederationImpl };
@@ -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-TcjBlJJ1.js";
7
+ import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-Dgt63xgu.js";
8
+ import "./semver-DCqorrj5.js";
9
+ import "./client-BtE58B4g.js";
10
+ import "./lookup-BfDjnc5q.js";
11
+ import "./types-n7HI7VFr.js";
12
+ import "./actor-T9Hsc-zg.js";
13
+ import "./key-Cce78zFE.js";
14
+ import "./http-vc__YpPz.js";
15
+ import "./authdocloader-Be4dT7EP.js";
16
+ import "./ld-TTQ84IRa.js";
17
+ import "./owner-BdiuD-G1.js";
18
+ import "./proof-CJV0jQHE.js";
19
+ import "./inbox-ClTTIj5D.js";
20
+ import "./builder-CgMvNTTw.js";
21
+ import "./collection-D5V3UzU3.js";
22
+ import "./keycache-Dpt22wcN.js";
23
+ import "./retry-BnpVRGFC.js";
24
+ import "./send-BZ31cSu1.js";
25
+
26
+ export { FederationImpl };