@fedify/fedify 1.7.12 → 1.7.14

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 (182) hide show
  1. package/dist/{actor-CPpvuBKU.d.ts → actor-Dx5YX74F.d.ts} +3 -3
  2. package/dist/{actor-GZRoTRqg.js → actor-OYVgkiZG.js} +329 -465
  3. package/dist/{actor-TYqJGdVq.js → actor-y7shp0CR.js} +6 -6
  4. package/dist/{assert-LOEeCUK5.js → assert-C-mZuSQl.js} +2 -2
  5. package/dist/{assert_equals-B44MxcIj.js → assert_equals-Dy0MG_Zw.js} +16 -16
  6. package/dist/{assert_instance_of-XtuFevV_.js → assert_instance_of-lS0Jr2iu.js} +2 -2
  7. package/dist/{assert_is_error-BTlryvT0.js → assert_is_error-CIYFACrT.js} +2 -2
  8. package/dist/{assert_not_equals-C685gKx6.js → assert_not_equals-C1azCAB0.js} +3 -6
  9. package/dist/{assert_rejects-DWQ4jaf9.js → assert_rejects-Bkh5lA1a.js} +3 -3
  10. package/dist/{assert_throws-YetpVSc-.js → assert_throws-CmpfkWEM.js} +3 -3
  11. package/dist/{authdocloader-hiFSyM7V.js → authdocloader-C0JcfxUs.js} +7 -9
  12. package/dist/{authdocloader-BopfyipD.js → authdocloader-C2krvRo1.js} +6 -8
  13. package/dist/{builder-mi6RdzNE.js → builder-DaECqbbT.js} +7 -7
  14. package/dist/{chunk-Cx8LTkjm.js → chunk-DvTpRkcT.js} +22 -15
  15. package/dist/{client-DuUKk4pk.js → client-dfu57WLy.js} +3 -3
  16. package/dist/{client-DvtwXO7t.d.ts → client-wKLuY12i.d.ts} +2 -2
  17. package/dist/{collection-Dfb0TPno.js → collection-XNLQhehO.js} +2 -3
  18. package/dist/{mod-DFncUgcE.d.ts → compat/mod-Bwqav33K.d.ts} +3 -3
  19. package/dist/compat/mod.js +1 -2
  20. package/dist/compat/transformers.test.js +34 -38
  21. package/dist/{context-OBWjptjU.d.ts → context-CW_8R4BH.d.ts} +11 -11
  22. package/dist/{context-RMU32mk4.js → context-nxDPfAiA.js} +5 -5
  23. package/dist/{docloader-09nVWLAZ.js → docloader-BDSHZfTJ.js} +1 -1
  24. package/dist/{docloader-DJxET2fN.js → docloader-BU25UQLB.js} +31 -151
  25. package/dist/{docloader-Q42SMRIB.d.ts → docloader-D_MGP37Q.d.ts} +2 -2
  26. package/dist/{docloader-bgBm1Hd1.js → docloader-sGz4vcrK.js} +32 -152
  27. package/dist/{esm-DO9PrujO.js → esm-BRXvTSrx.js} +36 -22
  28. package/dist/federation/builder.test.js +20 -26
  29. package/dist/federation/collection.test.js +11 -16
  30. package/dist/federation/handler.test.js +41 -48
  31. package/dist/federation/inbox.test.js +11 -11
  32. package/dist/federation/keycache.test.js +12 -11
  33. package/dist/federation/kv.test.js +8 -10
  34. package/dist/federation/middleware.test.js +105 -134
  35. package/dist/federation/mod-DvlLc8Ru.d.ts +6 -0
  36. package/dist/federation/mod.js +206 -12
  37. package/dist/federation/mq.test.js +12 -17
  38. package/dist/federation/retry.test.js +5 -4
  39. package/dist/federation/router.test.js +9 -10
  40. package/dist/federation/send.test.js +23 -24
  41. package/dist/{http-D2DkwsjA.js → http-BhES0Sg9.js} +23 -30
  42. package/dist/{http-DMTrO3Ye.d.ts → http-DFZRNfDP.d.ts} +3 -3
  43. package/dist/{http-vqMAvOVs.js → http-DRePVWfE.js} +23 -30
  44. package/dist/{inbox-DAAZZl2k.js → inbox-Z_QlSGYN.js} +5 -5
  45. package/dist/key-CJuc1GE1.js +10 -0
  46. package/dist/{key-DmqJj57e.js → key-D2HZrCxh.js} +4 -4
  47. package/dist/{key-KVhaUM92.js → key-bMrDyA2T.js} +5 -5
  48. package/dist/key-eP5Yk7hl.js +16 -0
  49. package/dist/{keycache-C1pEuRyQ.js → keycache-B5Rr8Lbc.js} +2 -2
  50. package/dist/{keys-C4XQHW5_.js → keys-DK4k1R8e.js} +2 -2
  51. package/dist/{kv-DRaeSXco.d.ts → kv-CKqSUxHd.d.ts} +1 -1
  52. package/dist/{kv-BMY6Qf_A.js → kv-QeuZ51go.js} +1 -1
  53. package/dist/{langstr-DbWheeIS.js → langstr-pFHBDU4y.js} +1 -1
  54. package/dist/{ld-DzlJ_IpT.js → ld--auFISy7.js} +9 -12
  55. package/dist/{lookup-CSngxuWm.js → lookup-4uc2jh52.js} +3 -3
  56. package/dist/{lookup-DL62q3Xh.js → lookup-Bq8vhIG4.js} +4 -4
  57. package/dist/{lookup-Bf-K85bV.d.ts → lookup-CqI9jhXo.d.ts} +2 -2
  58. package/dist/{lookup-D0je8AqR.js → lookup-cHV4n1IB.js} +6 -6
  59. package/dist/middleware-72Tuh6Iw.js +17 -0
  60. package/dist/{middleware-3wVT6S9E.js → middleware-B7p-onxQ.js} +35 -39
  61. package/dist/middleware-DB3BUysJ.js +32 -0
  62. package/dist/{middleware-DlDXugwZ.js → middleware-QJjRfjjc.js} +38 -43
  63. package/dist/{mod-CCL2cvnI.d.ts → mod-BEZy4WHZ.d.ts} +4 -4
  64. package/dist/mod-DMn4Bxyg.d.ts +20 -0
  65. package/dist/{mod-CDzlVCUF.d.ts → mod-DjGYGrBd.d.ts} +3 -3
  66. package/dist/mod.js +17 -17
  67. package/dist/{mq-DYKDDJmp.d.ts → mq-Cgfbl44M.d.ts} +1 -1
  68. package/dist/{multibase-CnLHszip.js → multibase-DBcKTV2a.js} +1 -1
  69. package/dist/nodeinfo/client.test.js +19 -28
  70. package/dist/nodeinfo/handler.test.js +37 -44
  71. package/dist/nodeinfo/mod--upgPcaX.d.ts +4 -0
  72. package/dist/nodeinfo/mod.js +2 -3
  73. package/dist/nodeinfo/semver.test.js +13 -21
  74. package/dist/nodeinfo/types.test.js +9 -11
  75. package/dist/{owner-D0cOz8R5.d.ts → owner-CewLNqWO.d.ts} +4 -4
  76. package/dist/{owner-81ey_76X.js → owner-DkTRLQAV.js} +4 -4
  77. package/dist/{proof-DlI7QNdn.js → proof-D4HXHDPz.js} +14 -19
  78. package/dist/{proof-BlULDH4H.js → proof-DT_xxRPF.js} +11 -13
  79. package/dist/{retry-BiIhZWgD.js → retry-BQet39_l.js} +1 -1
  80. package/dist/{router-D_aVZZUc.js → router-BuDkN4RQ.js} +1 -1
  81. package/dist/runtime/authdocloader.test.js +22 -26
  82. package/dist/runtime/docloader.test.js +56 -56
  83. package/dist/runtime/key.test.js +31 -53
  84. package/dist/runtime/langstr.test.js +8 -10
  85. package/dist/{mod-qFMzZ3iF.d.ts → runtime/mod-BaH1vtHp.d.ts} +4 -3
  86. package/dist/runtime/mod.js +6 -7
  87. package/dist/runtime/multibase/multibase.test.js +12 -18
  88. package/dist/runtime/url.test.js +7 -6
  89. package/dist/{semver-BNrOOAs9.js → semver-D9d-VO-_.js} +7 -17
  90. package/dist/{send-DdxfTHo6.js → send-axIyQX2p.js} +4 -4
  91. package/dist/sig/http.test.js +104 -168
  92. package/dist/sig/key.test.js +17 -20
  93. package/dist/sig/ld.test.js +28 -35
  94. package/dist/sig/mod-BmJQTnPT.d.ts +6 -0
  95. package/dist/sig/mod.js +6 -7
  96. package/dist/sig/owner.test.js +24 -30
  97. package/dist/sig/proof.test.js +24 -29
  98. package/dist/{std__assert-o_r9vqm1.js → std__assert-BdP_WkD-.js} +7 -13
  99. package/dist/testing/docloader.test.js +9 -12
  100. package/dist/testing/mod.js +2 -1
  101. package/dist/{testing-DLyvtiiW.js → testing-qaAD4B0t.js} +2 -2
  102. package/dist/{transformers-ghwJuzGY.js → transformers-CFSWUhNi.js} +1 -1
  103. package/dist/{type-CFuiGLz9.js → type-DFsmi-p1.js} +1 -1
  104. package/dist/{types-CmVV9LT1.js → types-Bk4b1bGc.js} +8 -18
  105. package/dist/{types-CJHS5pXl.js → types-CB_2uuCA.js} +2 -2
  106. package/dist/{url-C2xuoQD1.js → url-BdNvnK9P.js} +1 -1
  107. package/dist/vocab/actor.test.js +76 -128
  108. package/dist/vocab/lookup.test.js +19 -23
  109. package/dist/vocab/mod-BkXGAYkx.d.ts +6 -0
  110. package/dist/vocab/mod.js +4 -4
  111. package/dist/vocab/type.test.js +10 -10
  112. package/dist/vocab/vocab.test.js +109 -105
  113. package/dist/{vocab-DFlq4Wa6.js → vocab-DCHRuBGF.js} +328 -464
  114. package/dist/{vocab-CzEfWQk2.d.ts → vocab-DoBcp8ow.d.ts} +2 -2
  115. package/dist/{vocab-BebR0kAy.js → vocab-sMuiKIWm.js} +5 -5
  116. package/dist/webfinger/handler.test.js +40 -48
  117. package/dist/webfinger/lookup.test.js +12 -15
  118. package/dist/webfinger/mod-B1UhCvlL.d.ts +4 -0
  119. package/dist/webfinger/mod.js +2 -3
  120. package/dist/x/{cfworkers.d.ts → cfworkers-BIcR64Sf.d.ts} +2 -2
  121. package/dist/x/cfworkers.test.js +7 -9
  122. package/dist/x/{hono.d.ts → hono-DmQmp8wi.d.ts} +2 -11
  123. package/dist/x/{sveltekit.d.ts → sveltekit-Cvh0XnN4.d.ts} +2 -11
  124. package/package.json +1 -1
  125. package/dist/compat/mod.d.ts +0 -15
  126. package/dist/compat-Bb5myD13.js +0 -4
  127. package/dist/federation/mod.d.ts +0 -15
  128. package/dist/federation-B0aljx0V.js +0 -203
  129. package/dist/key-5ssHQ67E.js +0 -16
  130. package/dist/key-DSJGnD10.js +0 -10
  131. package/dist/middleware-CxFoFBD8.js +0 -33
  132. package/dist/middleware-w7_U3fFi.js +0 -17
  133. package/dist/mod-1pDWKvUL.d.ts +0 -2
  134. package/dist/mod-GIh5OYxW.d.ts +0 -2
  135. package/dist/mod-g0xFzAP9.d.ts +0 -2
  136. package/dist/mod.d.ts +0 -20
  137. package/dist/nodeinfo/mod.d.ts +0 -7
  138. package/dist/nodeinfo-CyEbLjHs.js +0 -4
  139. package/dist/runtime/mod.d.ts +0 -8
  140. package/dist/runtime-BSkOVUWM.js +0 -4
  141. package/dist/sig/mod.d.ts +0 -10
  142. package/dist/sig-BXJO--F9.js +0 -4
  143. package/dist/vocab/mod.d.ts +0 -8
  144. package/dist/webfinger/mod.d.ts +0 -7
  145. package/dist/webfinger-C3GIyXIg.js +0 -4
  146. /package/dist/compat/{transformers.test.d.ts → transformers.test-DnJbd34u.d.ts} +0 -0
  147. /package/dist/{denokv-CvROlGYX.js → denokv-NcJeZ6rP.js} +0 -0
  148. /package/dist/federation/{builder.test.d.ts → builder.test-Bpt6NOZ6.d.ts} +0 -0
  149. /package/dist/federation/{collection.test.d.ts → collection.test-DKJ6JOZz.d.ts} +0 -0
  150. /package/dist/federation/{handler.test.d.ts → handler.test-BMT7uLC0.d.ts} +0 -0
  151. /package/dist/federation/{inbox.test.d.ts → inbox.test-Do6i02Qp.d.ts} +0 -0
  152. /package/dist/federation/{keycache.test.d.ts → keycache.test-BT83IPZY.d.ts} +0 -0
  153. /package/dist/federation/{kv.test.d.ts → kv.test-kFzzF2VN.d.ts} +0 -0
  154. /package/dist/federation/{middleware.test.d.ts → middleware.test-B1R4_e3-.d.ts} +0 -0
  155. /package/dist/federation/{mq.test.d.ts → mq.test-l79EQQOe.d.ts} +0 -0
  156. /package/dist/federation/{retry.test.d.ts → retry.test-BqS50VCX.d.ts} +0 -0
  157. /package/dist/federation/{router.test.d.ts → router.test-CYQl4po-.d.ts} +0 -0
  158. /package/dist/federation/{send.test.d.ts → send.test-COUnNUzv.d.ts} +0 -0
  159. /package/dist/nodeinfo/{client.test.d.ts → client.test-CZLe79hL.d.ts} +0 -0
  160. /package/dist/nodeinfo/{handler.test.d.ts → handler.test-B-EDZ_hK.d.ts} +0 -0
  161. /package/dist/nodeinfo/{semver.test.d.ts → semver.test-BEuuQSEM.d.ts} +0 -0
  162. /package/dist/nodeinfo/{types.test.d.ts → types.test-B5AT89WV.d.ts} +0 -0
  163. /package/dist/runtime/{authdocloader.test.d.ts → authdocloader.test-hCRKzn9v.d.ts} +0 -0
  164. /package/dist/runtime/{docloader.test.d.ts → docloader.test-CVd7i_5h.d.ts} +0 -0
  165. /package/dist/runtime/{key.test.d.ts → key.test-DBsILYSD.d.ts} +0 -0
  166. /package/dist/runtime/{langstr.test.d.ts → langstr.test-CiKxuuRY.d.ts} +0 -0
  167. /package/dist/runtime/multibase/{multibase.test.d.ts → multibase.test-Brh6gPBP.d.ts} +0 -0
  168. /package/dist/runtime/{url.test.d.ts → url.test-DlRqkU2j.d.ts} +0 -0
  169. /package/dist/sig/{http.test.d.ts → http.test-BpXNAWNI.d.ts} +0 -0
  170. /package/dist/sig/{key.test.d.ts → key.test-B2iLIugy.d.ts} +0 -0
  171. /package/dist/sig/{ld.test.d.ts → ld.test-D-cI70Gw.d.ts} +0 -0
  172. /package/dist/sig/{owner.test.d.ts → owner.test-B_YRjMPj.d.ts} +0 -0
  173. /package/dist/sig/{proof.test.d.ts → proof.test-BagEM_-4.d.ts} +0 -0
  174. /package/dist/testing/{docloader.test.d.ts → docloader.test-lrzf6sDZ.d.ts} +0 -0
  175. /package/dist/testing/{mod.d.ts → mod-3uM8ZvS7.d.ts} +0 -0
  176. /package/dist/vocab/{actor.test.d.ts → actor.test-ClC-iVWk.d.ts} +0 -0
  177. /package/dist/vocab/{lookup.test.d.ts → lookup.test-Cq1I-27w.d.ts} +0 -0
  178. /package/dist/vocab/{type.test.d.ts → type.test-bfFiYGcs.d.ts} +0 -0
  179. /package/dist/vocab/{vocab.test.d.ts → vocab.test-h-ZTisfu.d.ts} +0 -0
  180. /package/dist/webfinger/{handler.test.d.ts → handler.test-DiUeEDDD.d.ts} +0 -0
  181. /package/dist/webfinger/{lookup.test.d.ts → lookup.test-D9onm3U3.d.ts} +0 -0
  182. /package/dist/x/{cfworkers.test.d.ts → cfworkers.test-KXHlJ29z.d.ts} +0 -0
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-bgBm1Hd1.js";
7
- import { Application, Group, Organization, Person, Service } from "./vocab-DFlq4Wa6.js";
8
- import { lookupWebFinger } from "./lookup-DL62q3Xh.js";
9
- import { getTypeId } from "./type-CFuiGLz9.js";
6
+ import { d as version, u as name } from "./docloader-sGz4vcrK.js";
7
+ import { S as Person, T as Service, r as Application, u as Group, x as Organization } from "./vocab-DCHRuBGF.js";
8
+ import { t as lookupWebFinger } from "./lookup-Bq8vhIG4.js";
9
+ import { t as getTypeId } from "./type-DFsmi-p1.js";
10
10
  import { SpanStatusCode, trace } from "@opentelemetry/api";
11
11
  import { domainToASCII, domainToUnicode } from "node:url";
12
12
 
@@ -72,7 +72,7 @@ function getActorClassByTypeName(typeName) {
72
72
  * @since 0.4.0
73
73
  */
74
74
  async function getActorHandle(actor, options = {}) {
75
- return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer(deno_default.name, deno_default.version).startActiveSpan("activitypub.get_actor_handle", async (span) => {
75
+ return await (options.tracerProvider ?? trace.getTracerProvider()).getTracer(name, version).startActiveSpan("activitypub.get_actor_handle", async (span) => {
76
76
  if (isActor(actor)) {
77
77
  if (actor.id != null) span.setAttribute("activitypub.actor.id", actor.id.href);
78
78
  span.setAttribute("activitypub.actor.type", getTypeId(actor).href);
@@ -143,4 +143,4 @@ function normalizeActorHandle(handle, options = {}) {
143
143
  }
144
144
 
145
145
  //#endregion
146
- export { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle };
146
+ export { normalizeActorHandle as a, isActor as i, getActorHandle as n, getActorTypeName as r, getActorClassByTypeName as t };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-B44MxcIj.js";
6
+ import { u as AssertionError } from "./assert_equals-Dy0MG_Zw.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js
9
9
  /**
@@ -24,4 +24,4 @@ import { AssertionError } from "./assert_equals-B44MxcIj.js";
24
24
  }
25
25
 
26
26
  //#endregion
27
- export { assert };
27
+ export { assert as t };
@@ -105,7 +105,7 @@ function constructorsEqual(a, b) {
105
105
  }
106
106
 
107
107
  //#endregion
108
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/assertion_state.js
108
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/assertion_state.js
109
109
  /**
110
110
  * Check the test suite internal state
111
111
  *
@@ -284,7 +284,7 @@ function constructorsEqual(a, b) {
284
284
  const assertionState = new AssertionState();
285
285
 
286
286
  //#endregion
287
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/styles.js
287
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/styles.js
288
288
  const { Deno } = globalThis;
289
289
  const enabled = !(typeof Deno?.noColor === "boolean" ? Deno.noColor : false);
290
290
  function code(open, close) {
@@ -450,7 +450,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
450
450
  }
451
451
 
452
452
  //#endregion
453
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/build_message.js
453
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/build_message.js
454
454
  /**
455
455
  * Colors the output of assertion diffs.
456
456
  *
@@ -473,6 +473,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
473
473
  switch (diffType) {
474
474
  case "added": return (s) => background ? bgGreen(white(s)) : green(bold(s));
475
475
  case "removed": return (s) => background ? bgRed(white(s)) : red(bold(s));
476
+ case "truncation": return gray;
476
477
  default: return white;
477
478
  }
478
479
  }
@@ -504,6 +505,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
504
505
  *
505
506
  * @param diffResult The diff result array.
506
507
  * @param options Optional parameters for customizing the message.
508
+ * @param truncateDiff Function to truncate the diff (default is no truncation).
507
509
  *
508
510
  * @returns An array of strings representing the built message.
509
511
  *
@@ -511,9 +513,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
511
513
  * ```ts no-assert
512
514
  * import { diffStr, buildMessage } from "@std/internal";
513
515
  *
514
- * const diffResult = diffStr("Hello, world!", "Hello, world");
515
- *
516
- * console.log(buildMessage(diffResult));
516
+ * diffStr("Hello, world!", "Hello, world");
517
517
  * // [
518
518
  * // "",
519
519
  * // "",
@@ -525,7 +525,8 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
525
525
  * // "",
526
526
  * // ]
527
527
  * ```
528
- */ function buildMessage(diffResult, options = {}) {
528
+ */ function buildMessage(diffResult, options = {}, truncateDiff) {
529
+ if (truncateDiff != null) diffResult = truncateDiff(diffResult, options.stringDiff ?? false);
529
530
  const { stringDiff = false } = options;
530
531
  const messages = [
531
532
  "",
@@ -536,7 +537,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
536
537
  ];
537
538
  const diffMessages = diffResult.map((result) => {
538
539
  const color = createColor(result.type);
539
- const line = result.details?.map((detail) => detail.type !== "common" ? createColor(detail.type, true)(detail.value) : detail.value).join("") ?? result.value;
540
+ const line = result.type === "added" || result.type === "removed" ? result.details?.map((detail) => detail.type !== "common" ? createColor(detail.type, true)(detail.value) : detail.value).join("") ?? result.value : result.value;
540
541
  return color(`${createSign(result.type)}${line}`);
541
542
  });
542
543
  messages.push(...stringDiff ? [diffMessages.join("")] : diffMessages, "");
@@ -544,7 +545,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
544
545
  }
545
546
 
546
547
  //#endregion
547
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/diff.js
548
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/diff.js
548
549
  const REMOVED = 1;
549
550
  const COMMON = 2;
550
551
  const ADDED = 3;
@@ -813,7 +814,7 @@ const ADDED = 3;
813
814
  }
814
815
 
815
816
  //#endregion
816
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/diff_str.js
817
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/diff_str.js
817
818
  /**
818
819
  * Unescape invisible characters.
819
820
  *
@@ -954,7 +955,7 @@ const NON_WHITESPACE_REGEXP = /\S/;
954
955
  }
955
956
 
956
957
  //#endregion
957
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/format.js
958
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/format.js
958
959
  /** An inspect function conforming to the shape of `Deno.inspect` and `node:util`'s `inspect` */
959
960
  /**
960
961
  * Converts the input into a string. Objects, Sets and Maps are sorted so as to
@@ -1004,7 +1005,7 @@ function basicInspect(v) {
1004
1005
  }
1005
1006
 
1006
1007
  //#endregion
1007
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/_os.js
1008
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/_os.js
1008
1009
  function checkWindows() {
1009
1010
  const global = globalThis;
1010
1011
  const os = global.Deno?.build?.os;
@@ -1012,7 +1013,7 @@ function checkWindows() {
1012
1013
  }
1013
1014
 
1014
1015
  //#endregion
1015
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.10/node_modules/@jsr/std__internal/os.js
1016
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.12/node_modules/@jsr/std__internal/os.js
1016
1017
  /** Whether the current platform is Windows */ const isWindows = checkWindows();
1017
1018
 
1018
1019
  //#endregion
@@ -1045,11 +1046,10 @@ function checkWindows() {
1045
1046
  const actualString = format(actual);
1046
1047
  const expectedString = format(expected);
1047
1048
  const stringDiff = typeof actual === "string" && typeof expected === "string";
1048
- const diffResult = stringDiff ? diffStr(actual, expected) : diff(actualString.split("\n"), expectedString.split("\n"));
1049
- const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
1049
+ const diffMsg = buildMessage(stringDiff ? diffStr(actual, expected) : diff(actualString.split("\n"), expectedString.split("\n")), { stringDiff }).join("\n");
1050
1050
  message = `${message}\n${diffMsg}`;
1051
1051
  throw new AssertionError(message);
1052
1052
  }
1053
1053
 
1054
1054
  //#endregion
1055
- export { AssertionError, assertEquals, buildMessage, diff, diffStr, equal, format, isWindows, red, stripAnsiCode };
1055
+ export { diff as a, stripAnsiCode as c, diffStr as i, equal as l, isWindows as n, buildMessage as o, format as r, red as s, assertEquals as t, AssertionError as u };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-B44MxcIj.js";
6
+ import { u as AssertionError } from "./assert_equals-Dy0MG_Zw.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js
9
9
  /**
@@ -38,4 +38,4 @@ import { AssertionError } from "./assert_equals-B44MxcIj.js";
38
38
  }
39
39
 
40
40
  //#endregion
41
- export { assertInstanceOf };
41
+ export { assertInstanceOf as t };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError, stripAnsiCode } from "./assert_equals-B44MxcIj.js";
6
+ import { c as stripAnsiCode, u as AssertionError } from "./assert_equals-Dy0MG_Zw.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js
9
9
  /**
@@ -45,4 +45,4 @@ import { AssertionError, stripAnsiCode } from "./assert_equals-B44MxcIj.js";
45
45
  }
46
46
 
47
47
  //#endregion
48
- export { assertIsError };
48
+ export { assertIsError as t };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError, equal } from "./assert_equals-B44MxcIj.js";
6
+ import { l as equal, u as AssertionError } from "./assert_equals-Dy0MG_Zw.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js
9
9
  /**
@@ -26,11 +26,8 @@ import { AssertionError, equal } from "./assert_equals-B44MxcIj.js";
26
26
  * @param msg The optional message to display if the assertion fails.
27
27
  */ function assertNotEquals(actual, expected, msg) {
28
28
  if (!equal(actual, expected)) return;
29
- const actualString = String(actual);
30
- const expectedString = String(expected);
31
- const msgSuffix = msg ? `: ${msg}` : ".";
32
- throw new AssertionError(`Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`);
29
+ throw new AssertionError(`Expected actual: ${String(actual)} not to be: ${String(expected)}${msg ? `: ${msg}` : "."}`);
33
30
  }
34
31
 
35
32
  //#endregion
36
- export { assertNotEquals };
33
+ export { assertNotEquals as t };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-B44MxcIj.js";
7
- import { assertIsError } from "./assert_is_error-BTlryvT0.js";
6
+ import { u as AssertionError } from "./assert_equals-Dy0MG_Zw.js";
7
+ import { t as assertIsError } from "./assert_is_error-CIYFACrT.js";
8
8
 
9
9
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js
10
10
  /**
@@ -59,4 +59,4 @@ async function assertRejects(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
59
59
  }
60
60
 
61
61
  //#endregion
62
- export { assertFalse, assertRejects };
62
+ export { assertFalse as n, assertRejects as t };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-B44MxcIj.js";
7
- import { assertIsError } from "./assert_is_error-BTlryvT0.js";
6
+ import { u as AssertionError } from "./assert_equals-Dy0MG_Zw.js";
7
+ import { t as assertIsError } from "./assert_is_error-CIYFACrT.js";
8
8
 
9
9
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js
10
10
  function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
@@ -36,4 +36,4 @@ function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
36
36
  }
37
37
 
38
38
  //#endregion
39
- export { assertThrows };
39
+ export { assertThrows as t };
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { createRequest, getRemoteDocument, logRequest } from "./docloader-bgBm1Hd1.js";
7
- import { UrlError, validatePublicUrl } from "./url-C2xuoQD1.js";
8
- import { validateCryptoKey } from "./key-KVhaUM92.js";
9
- import { doubleKnock } from "./http-D2DkwsjA.js";
6
+ import { a as getRemoteDocument, c as logRequest, n as createRequest } from "./docloader-sGz4vcrK.js";
7
+ import { a as validatePublicUrl, t as UrlError } from "./url-BdNvnK9P.js";
8
+ import { a as validateCryptoKey } from "./key-bMrDyA2T.js";
9
+ import { n as doubleKnock } from "./http-BhES0Sg9.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
 
12
12
  //#region runtime/authdocloader.ts
@@ -38,16 +38,14 @@ function getAuthenticatedDocumentLoader(identity, { allowPrivateAddress, userAge
38
38
  });
39
39
  throw error;
40
40
  }
41
- const originalRequest = createRequest(url, { userAgent });
42
- const response = await doubleKnock(originalRequest, identity, {
41
+ return getRemoteDocument(url, await doubleKnock(createRequest(url, { userAgent }), identity, {
43
42
  specDeterminer,
44
43
  log: logRequest,
45
44
  tracerProvider
46
- });
47
- return getRemoteDocument(url, response, load);
45
+ }), load);
48
46
  }
49
47
  return load;
50
48
  }
51
49
 
52
50
  //#endregion
53
- export { getAuthenticatedDocumentLoader };
51
+ export { getAuthenticatedDocumentLoader as t };
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-DJxET2fN.js";
6
- import { validateCryptoKey } from "./key-DmqJj57e.js";
7
- import { doubleKnock } from "./http-vqMAvOVs.js";
5
+ import { a as getRemoteDocument, c as logRequest, l as UrlError, n as createRequest, u as validatePublicUrl } from "./docloader-BU25UQLB.js";
6
+ import { a as validateCryptoKey } from "./key-D2HZrCxh.js";
7
+ import { t as doubleKnock } from "./http-DRePVWfE.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
 
10
10
  //#region runtime/authdocloader.ts
@@ -36,16 +36,14 @@ function getAuthenticatedDocumentLoader(identity, { allowPrivateAddress, userAge
36
36
  });
37
37
  throw error;
38
38
  }
39
- const originalRequest = createRequest(url, { userAgent });
40
- const response = await doubleKnock(originalRequest, identity, {
39
+ return getRemoteDocument(url, await doubleKnock(createRequest(url, { userAgent }), identity, {
41
40
  specDeterminer,
42
41
  log: logRequest,
43
42
  tracerProvider
44
- });
45
- return getRemoteDocument(url, response, load);
43
+ }), load);
46
44
  }
47
45
  return load;
48
46
  }
49
47
 
50
48
  //#endregion
51
- export { getAuthenticatedDocumentLoader };
49
+ export { getAuthenticatedDocumentLoader as t };
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-bgBm1Hd1.js";
7
- import { Router, RouterError } from "./router-D_aVZZUc.js";
8
- import { getTypeId } from "./type-CFuiGLz9.js";
9
- import { InboxListenerSet } from "./inbox-DAAZZl2k.js";
6
+ import { d as version, u as name } from "./docloader-sGz4vcrK.js";
7
+ import { n as RouterError, t as Router } from "./router-BuDkN4RQ.js";
8
+ import { t as getTypeId } from "./type-DFsmi-p1.js";
9
+ import { t as InboxListenerSet } from "./inbox-Z_QlSGYN.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
12
12
 
@@ -34,7 +34,7 @@ var FederationBuilderImpl = class {
34
34
  this.objectTypeIds = {};
35
35
  }
36
36
  async build(options) {
37
- const { FederationImpl } = await import("./middleware-CxFoFBD8.js");
37
+ const { FederationImpl } = await import("./middleware-DB3BUysJ.js");
38
38
  const f = new FederationImpl(options);
39
39
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
40
40
  f.router = this.router.clone();
@@ -58,7 +58,7 @@ var FederationBuilderImpl = class {
58
58
  return f;
59
59
  }
60
60
  _getTracer() {
61
- return trace.getTracer(deno_default.name, deno_default.version);
61
+ return trace.getTracer(name, version);
62
62
  }
63
63
  setActorDispatcher(path, dispatcher) {
64
64
  if (this.router.has("actor")) throw new RouterError("Actor dispatcher already set.");
@@ -486,4 +486,4 @@ function createFederationBuilder() {
486
486
  }
487
487
 
488
488
  //#endregion
489
- export { FederationBuilderImpl, createFederationBuilder };
489
+ export { createFederationBuilder as n, FederationBuilderImpl as t };
@@ -12,24 +12,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
13
13
  var __getProtoOf = Object.getPrototypeOf;
14
14
  var __hasOwnProp = Object.prototype.hasOwnProperty;
15
- var __commonJS = (cb, mod) => function() {
16
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
- };
18
- var __export = (all) => {
15
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
16
+ var __export = (all, symbols) => {
19
17
  let target = {};
20
- for (var name in all) __defProp(target, name, {
21
- get: all[name],
22
- enumerable: true
23
- });
18
+ for (var name in all) {
19
+ __defProp(target, name, {
20
+ get: all[name],
21
+ enumerable: true
22
+ });
23
+ }
24
+ if (symbols) {
25
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
26
+ }
24
27
  return target;
25
28
  };
26
29
  var __copyProps = (to, from, except, desc) => {
27
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
28
- key = keys[i];
29
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
30
- get: ((k) => from[k]).bind(null, key),
31
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
32
- });
30
+ if (from && typeof from === "object" || typeof from === "function") {
31
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
32
+ key = keys[i];
33
+ if (!__hasOwnProp.call(to, key) && key !== except) {
34
+ __defProp(to, key, {
35
+ get: ((k) => from[k]).bind(null, key),
36
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
37
+ });
38
+ }
39
+ }
33
40
  }
34
41
  return to;
35
42
  };
@@ -40,4 +47,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
47
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
48
 
42
49
  //#endregion
43
- export { __commonJS, __export, __require, __toESM };
50
+ export { __toESM as i, __export as n, __require as r, __commonJSMin as t };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { getUserAgent } from "./docloader-bgBm1Hd1.js";
7
- import { parseSemVer } from "./semver-BNrOOAs9.js";
6
+ import { o as getUserAgent } from "./docloader-sGz4vcrK.js";
7
+ import { n as parseSemVer } from "./semver-D9d-VO-_.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
 
10
10
  //#region nodeinfo/client.ts
@@ -270,4 +270,4 @@ function parseUsage(data, options = {}) {
270
270
  }
271
271
 
272
272
  //#endregion
273
- export { getNodeInfo, parseInboundService, parseNodeInfo, parseOutboundService, parseProtocol, parseServices, parseSoftware, parseUsage };
273
+ export { parseProtocol as a, parseUsage as c, parseOutboundService as i, parseInboundService as n, parseServices as o, parseNodeInfo as r, parseSoftware as s, getNodeInfo as t };
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetUserAgentOptions } from "./docloader-Q42SMRIB.js";
3
+ import { s as GetUserAgentOptions } from "./docloader-D_MGP37Q.js";
4
4
 
5
5
  //#region nodeinfo/semver.d.ts
6
6
  /**
@@ -293,4 +293,4 @@ interface ParseNodeInfoOptions {
293
293
  */
294
294
  declare function parseNodeInfo(data: unknown, options?: ParseNodeInfoOptions): NodeInfo | null;
295
295
  //#endregion
296
- export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
296
+ export { InboundService as a, OutboundService as c, Software as d, Usage as f, parseSemVer as g, formatSemVer as h, parseNodeInfo as i, Protocol as l, SemVer as m, ParseNodeInfoOptions as n, JsonValue as o, nodeInfoToJson as p, getNodeInfo as r, NodeInfo as s, GetNodeInfoOptions as t, Services as u };
@@ -41,9 +41,8 @@ async function buildCollectionSynchronizationHeader(collectionId, actorIds) {
41
41
  const baseUrl = new URL(anyActorId);
42
42
  const url = new URL(collectionId);
43
43
  url.searchParams.set("base-url", `${baseUrl.origin}/`);
44
- const hash = encodeHex(await digest(actorIds));
45
- return `collectionId="${collectionId}", url="${url}", digest="${hash}"`;
44
+ return `collectionId="${collectionId}", url="${url}", digest="${encodeHex(await digest(actorIds))}"`;
46
45
  }
47
46
 
48
47
  //#endregion
49
- export { buildCollectionSynchronizationHeader, digest };
48
+ export { digest as n, buildCollectionSynchronizationHeader as t };
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { Activity } from "./vocab-CzEfWQk2.js";
4
- import { ActivityTransformer, Context } from "./context-OBWjptjU.js";
3
+ import { n as Activity } from "../vocab-DoBcp8ow.js";
4
+ import { it as ActivityTransformer, n as Context } from "../context-CW_8R4BH.js";
5
5
 
6
6
  //#region compat/transformers.d.ts
7
7
 
@@ -79,4 +79,4 @@ declare function actorDehydrator<TContextData>(activity: Activity, _context: Con
79
79
  */
80
80
  declare function getDefaultActivityTransformers<TContextData>(): readonly ActivityTransformer<TContextData>[];
81
81
  //#endregion
82
- export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
82
+ export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -2,7 +2,6 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-ghwJuzGY.js";
6
- import "../compat-Bb5myD13.js";
5
+ import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "../transformers-CFSWUhNi.js";
7
6
 
8
7
  export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -3,50 +3,48 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-B44MxcIj.js";
7
- import { assert } from "../assert-LOEeCUK5.js";
8
- import { assertInstanceOf } from "../assert_instance_of-XtuFevV_.js";
9
- import { MemoryKvStore } from "../kv-BMY6Qf_A.js";
10
- import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-3wVT6S9E.js";
11
- import "../docloader-bgBm1Hd1.js";
12
- import "../url-C2xuoQD1.js";
13
- import "../semver-BNrOOAs9.js";
14
- import "../client-DuUKk4pk.js";
15
- import "../router-D_aVZZUc.js";
16
- import "../types-CJHS5pXl.js";
17
- import "../multibase-CnLHszip.js";
18
- import { Follow, Person } from "../vocab-DFlq4Wa6.js";
19
- import "../langstr-DbWheeIS.js";
20
- import "../lookup-DL62q3Xh.js";
21
- import "../type-CFuiGLz9.js";
22
- import "../actor-TYqJGdVq.js";
23
- import "../key-KVhaUM92.js";
24
- import "../http-D2DkwsjA.js";
25
- import "../authdocloader-hiFSyM7V.js";
26
- import "../ld-DzlJ_IpT.js";
27
- import "../owner-81ey_76X.js";
28
- import "../proof-BlULDH4H.js";
29
- import "../lookup-D0je8AqR.js";
30
- import "../inbox-DAAZZl2k.js";
31
- import "../builder-mi6RdzNE.js";
32
- import "../collection-Dfb0TPno.js";
33
- import "../keycache-C1pEuRyQ.js";
34
- import "../retry-BiIhZWgD.js";
35
- import "../send-DdxfTHo6.js";
36
- import { test } from "../testing-DLyvtiiW.js";
6
+ import "../chunk-DvTpRkcT.js";
7
+ import { t as assertEquals } from "../assert_equals-Dy0MG_Zw.js";
8
+ import { t as assert } from "../assert-C-mZuSQl.js";
9
+ import { t as assertInstanceOf } from "../assert_instance_of-lS0Jr2iu.js";
10
+ import { t as MemoryKvStore } from "../kv-QeuZ51go.js";
11
+ import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-B7p-onxQ.js";
12
+ import "../docloader-sGz4vcrK.js";
13
+ import "../url-BdNvnK9P.js";
14
+ import "../semver-D9d-VO-_.js";
15
+ import "../client-dfu57WLy.js";
16
+ import "../router-BuDkN4RQ.js";
17
+ import "../types-CB_2uuCA.js";
18
+ import "../multibase-DBcKTV2a.js";
19
+ import { S as Person, l as Follow } from "../vocab-DCHRuBGF.js";
20
+ import "../langstr-pFHBDU4y.js";
21
+ import "../lookup-Bq8vhIG4.js";
22
+ import "../actor-y7shp0CR.js";
23
+ import "../key-bMrDyA2T.js";
24
+ import "../http-BhES0Sg9.js";
25
+ import "../authdocloader-C0JcfxUs.js";
26
+ import "../ld--auFISy7.js";
27
+ import "../owner-DkTRLQAV.js";
28
+ import "../proof-DT_xxRPF.js";
29
+ import "../lookup-cHV4n1IB.js";
30
+ import "../inbox-Z_QlSGYN.js";
31
+ import "../builder-DaECqbbT.js";
32
+ import "../collection-XNLQhehO.js";
33
+ import "../keycache-B5Rr8Lbc.js";
34
+ import "../send-axIyQX2p.js";
35
+ import { t as test } from "../testing-qaAD4B0t.js";
37
36
 
38
37
  //#region compat/transformers.test.ts
39
38
  const context = new FederationImpl({ kv: new MemoryKvStore() }).createContext(new URL("http://example.com/"));
40
39
  test("autoIdAssigner", async () => {
41
- const activity = new Follow({
40
+ const result = autoIdAssigner(new Follow({
42
41
  actor: new URL("http://example.com/actors/1"),
43
42
  object: new Person({
44
43
  id: new URL("http://example.com/actors/2"),
45
44
  name: "Bob",
46
45
  preferredUsername: "bob"
47
46
  })
48
- });
49
- const result = autoIdAssigner(activity, context);
47
+ }), context);
50
48
  const { id } = result;
51
49
  assertInstanceOf(id, URL);
52
50
  assertEquals(id.origin, "http://example.com");
@@ -64,7 +62,7 @@ test("autoIdAssigner", async () => {
64
62
  }).toJsonLd());
65
63
  });
66
64
  test("actorDehydrator()", async () => {
67
- const activity = new Follow({
65
+ assertEquals(await actorDehydrator(new Follow({
68
66
  id: new URL("http://example.com/activities/1"),
69
67
  actor: new Person({
70
68
  id: new URL("http://example.com/actors/1"),
@@ -76,9 +74,7 @@ test("actorDehydrator()", async () => {
76
74
  name: "Bob",
77
75
  preferredUsername: "bob"
78
76
  })
79
- });
80
- const result = actorDehydrator(activity, context);
81
- assertEquals(await result.toJsonLd(), await new Follow({
77
+ }), context).toJsonLd(), await new Follow({
82
78
  id: new URL("http://example.com/activities/1"),
83
79
  actor: new URL("http://example.com/actors/1"),
84
80
  object: new Person({