@fedify/fedify 1.6.1-dev.869 → 1.6.1-dev.871

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 (457) hide show
  1. package/dist/actor-CM3gfkH6.js +36173 -0
  2. package/dist/{vocab/actor.js → actor-D7NMuy45.js} +5 -4
  3. package/dist/{vocab/actor.d.ts → actor-lFlm8FYo.d.ts} +2 -2
  4. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js → assert-Dv75vaGI.js} +2 -1
  5. package/dist/assert_equals-ClvzlhZu.js +1020 -0
  6. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js → assert_instance_of--9UCVKsi.js} +2 -1
  7. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js → assert_is_error-D162gXcM.js} +2 -2
  8. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js → assert_not_equals-Cyf5m9Ke.js} +2 -2
  9. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_rejects.js → assert_rejects-FOHCtlD2.js} +23 -3
  10. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js → assert_throws-CRfQJvVx.js} +3 -2
  11. package/dist/{runtime/authdocloader.js → authdocloader-BKZDAq91.js} +5 -4
  12. package/dist/authdocloader-OfYZlI31.js +51 -0
  13. package/dist/{federation/builder.js → builder-DSTiU6ue.js} +6 -5
  14. package/dist/{_virtual/rolldown_runtime.js → chunk-HsBuZ-b2.js} +1 -0
  15. package/dist/client-Dw1pCSIt.d.ts +299 -0
  16. package/dist/{nodeinfo/client.js → client-RN5A1Qgw.js} +3 -2
  17. package/dist/{federation/collection.js → collection-QaGK9TVn.js} +1 -0
  18. package/dist/compat/mod.d.ts +12 -2
  19. package/dist/compat/mod.js +2 -1
  20. package/dist/compat/transformers.test.d.ts +2 -1
  21. package/dist/compat/transformers.test.js +32 -8
  22. package/dist/context-CzJXjNR8.d.ts +2034 -0
  23. package/dist/{testing/context.js → context-DZKXS0DV.js} +5 -4
  24. package/dist/{x/denokv.js → denokv-iB_ggPGm.js} +3 -1
  25. package/dist/{testing/docloader.js → docloader-09nVWLAZ.js} +1 -0
  26. package/dist/{runtime/contexts.js → docloader-BcMxZ9JH.js} +420 -1
  27. package/dist/docloader-DDFam5Xn.js +4594 -0
  28. package/dist/{runtime/docloader.d.ts → docloader-DTRsVZPo.d.ts} +1 -1
  29. package/dist/esm-BxIKwi-M.js +1221 -0
  30. package/dist/federation/builder.test.d.ts +2 -1
  31. package/dist/federation/builder.test.js +21 -7
  32. package/dist/federation/collection.test.d.ts +2 -1
  33. package/dist/federation/collection.test.js +11 -3
  34. package/dist/federation/handler.test.d.ts +2 -1
  35. package/dist/federation/handler.test.js +40 -12
  36. package/dist/federation/inbox.test.d.ts +2 -1
  37. package/dist/federation/inbox.test.js +12 -5
  38. package/dist/federation/keycache.test.d.ts +2 -1
  39. package/dist/federation/keycache.test.js +12 -7
  40. package/dist/federation/kv.test.d.ts +2 -1
  41. package/dist/federation/kv.test.js +11 -3
  42. package/dist/federation/middleware.test.d.ts +2 -1
  43. package/dist/federation/middleware.test.js +107 -26
  44. package/dist/federation/mod.d.ts +13 -13
  45. package/dist/federation/mod.js +12 -8
  46. package/dist/federation/mq.test.d.ts +2 -1
  47. package/dist/federation/mq.test.js +153 -6
  48. package/dist/federation/retry.test.d.ts +2 -1
  49. package/dist/federation/retry.test.js +5 -5
  50. package/dist/federation/router.test.d.ts +2 -1
  51. package/dist/federation/router.test.js +11 -6
  52. package/dist/federation/send.test.d.ts +2 -1
  53. package/dist/federation/send.test.js +25 -13
  54. package/dist/{federation/mq.js → federation-Bmj7soSg.js} +47 -1
  55. package/dist/{node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/router.js → hongminhee__deno-mock-fetch-DJKLj_H-.js} +96 -1
  56. package/dist/{sig/http.js → http-BFvv3ZId.js} +5 -4
  57. package/dist/http-BImJcLfv.d.ts +258 -0
  58. package/dist/http-v1TqJ9Qa.js +720 -0
  59. package/dist/{federation/inbox.js → inbox-XV_W1qfB.js} +4 -3
  60. package/dist/key-BNM-ickE.js +16 -0
  61. package/dist/key-CVIQ7iUB.js +262 -0
  62. package/dist/{sig/key.js → key-DIk4Rloj.js} +2 -4
  63. package/dist/key-DiVhk5ik.js +10 -0
  64. package/dist/{federation/keycache.js → keycache-uTxsh7dt.js} +2 -1
  65. package/dist/{testing/keys.js → keys-D7lJqunm.js} +2 -2
  66. package/dist/{federation/kv.js → kv-DohFOP2C.js} +1 -0
  67. package/dist/{runtime/langstr.js → langstr-DbWheeIS.js} +1 -0
  68. package/dist/{sig/ld.js → ld-bOhcKpmk.js} +6 -6
  69. package/dist/{webfinger/lookup.js → lookup-B5KVF6HM.js} +1 -3
  70. package/dist/lookup-D3xTID-6.js +131 -0
  71. package/dist/{webfinger/jrd.d.ts → lookup-DAfStZtI.d.ts} +41 -1
  72. package/dist/{vocab/lookup.js → lookup-D_v0FFGL.js} +5 -5
  73. package/dist/middleware-BFedQWFA.js +33 -0
  74. package/dist/middleware-BiYIqI0b.js +3525 -0
  75. package/dist/{federation/middleware.js → middleware-CPAfRtS5.js} +957 -105
  76. package/dist/middleware-pAGwVkRf.js +17 -0
  77. package/dist/mod-1pDWKvUL.d.ts +2 -0
  78. package/dist/{runtime/key.d.ts → mod-BxwG4X3V.d.ts} +52 -7
  79. package/dist/{compat/transformers.d.ts → mod-CeLnlsqE.d.ts} +3 -4
  80. package/dist/{vocab/lookup.d.ts → mod-DysVoXOu.d.ts} +98 -3
  81. package/dist/mod-GIh5OYxW.d.ts +2 -0
  82. package/dist/{sig/ld.d.ts → mod-XT0mRthe.d.ts} +126 -4
  83. package/dist/mod-g0xFzAP9.d.ts +2 -0
  84. package/dist/mod.d.ts +18 -34
  85. package/dist/mod.js +17 -27
  86. package/dist/multibase-DeCHcK8L.js +316 -0
  87. package/dist/nodeinfo/client.test.d.ts +2 -1
  88. package/dist/nodeinfo/client.test.js +15 -4
  89. package/dist/nodeinfo/handler.test.d.ts +2 -1
  90. package/dist/nodeinfo/handler.test.js +39 -7
  91. package/dist/nodeinfo/mod.d.ts +4 -3
  92. package/dist/nodeinfo/mod.js +3 -3
  93. package/dist/nodeinfo/semver.test.d.ts +2 -1
  94. package/dist/nodeinfo/semver.test.js +11 -4
  95. package/dist/nodeinfo/types.test.d.ts +2 -1
  96. package/dist/nodeinfo/types.test.js +12 -4
  97. package/dist/{sig/owner.d.ts → owner-BjpObx-L.d.ts} +4 -6
  98. package/dist/{sig/owner.js → owner-tYPzPLFs.js} +4 -4
  99. package/dist/proof-D0cf4R25.js +595 -0
  100. package/dist/{sig/proof.js → proof-DIsZ1VTb.js} +5 -4
  101. package/dist/{federation/retry.js → retry-BiIhZWgD.js} +1 -0
  102. package/dist/{federation/router.js → router-D_aVZZUc.js} +1 -0
  103. package/dist/runtime/authdocloader.test.d.ts +2 -1
  104. package/dist/runtime/authdocloader.test.js +24 -9
  105. package/dist/runtime/docloader.test.d.ts +2 -1
  106. package/dist/runtime/docloader.test.js +15 -11
  107. package/dist/runtime/key.test.d.ts +2 -1
  108. package/dist/runtime/key.test.js +19 -4
  109. package/dist/runtime/langstr.test.d.ts +2 -1
  110. package/dist/runtime/langstr.test.js +11 -3
  111. package/dist/runtime/mod.d.ts +5 -4
  112. package/dist/runtime/mod.js +7 -4
  113. package/dist/runtime/multibase/multibase.test.d.ts +2 -1
  114. package/dist/runtime/multibase/multibase.test.js +11 -5
  115. package/dist/runtime/url.test.d.ts +2 -1
  116. package/dist/runtime/url.test.js +7 -6
  117. package/dist/{nodeinfo/semver.js → semver-CbbIgUsa.js} +1 -0
  118. package/dist/{federation/send.js → send-CFBOnY61.js} +3 -2
  119. package/dist/sig/http.test.d.ts +2 -1
  120. package/dist/sig/http.test.js +23 -12
  121. package/dist/sig/key.test.d.ts +2 -1
  122. package/dist/sig/key.test.js +21 -8
  123. package/dist/sig/ld.test.d.ts +2 -1
  124. package/dist/sig/ld.test.js +19 -11
  125. package/dist/sig/mod.d.ts +7 -5
  126. package/dist/sig/mod.js +7 -5
  127. package/dist/sig/owner.test.d.ts +2 -1
  128. package/dist/sig/owner.test.js +23 -9
  129. package/dist/sig/proof.test.d.ts +2 -1
  130. package/dist/sig/proof.test.js +22 -10
  131. package/dist/std__assert-CaBUULmX.js +151 -0
  132. package/dist/testing/docloader.test.d.ts +2 -1
  133. package/dist/testing/docloader.test.js +11 -3
  134. package/dist/testing/mod.d.ts +1 -0
  135. package/dist/testing/mod.js +2 -136
  136. package/dist/testing-jcGLO9Lp.js +143 -0
  137. package/dist/{compat/transformers.js → transformers-jxj-4o2K.js} +1 -1
  138. package/dist/{vocab/type.js → type-D2s5lmbZ.js} +1 -0
  139. package/dist/{nodeinfo/types.js → types-CqoqWDkp.js} +2 -1
  140. package/dist/types-D4p7qK8A.js +457 -0
  141. package/dist/{runtime/url.js → url-kTAI6_KP.js} +1 -0
  142. package/dist/vocab/actor.test.d.ts +2 -1
  143. package/dist/vocab/actor.test.js +5853 -14
  144. package/dist/vocab/lookup.test.d.ts +2 -1
  145. package/dist/vocab/lookup.test.js +20 -7
  146. package/dist/vocab/mod.d.ts +5 -5
  147. package/dist/vocab/mod.js +4 -5
  148. package/dist/vocab/type.test.d.ts +2 -1
  149. package/dist/vocab/type.test.js +9 -4
  150. package/dist/vocab/vocab.test.d.ts +2 -1
  151. package/dist/vocab/vocab.test.js +2440 -15
  152. package/dist/vocab-BSNlVPPE.js +172 -0
  153. package/dist/{vocab/vocab.js → vocab-BxrrllKY.js} +331 -182
  154. package/dist/{vocab/vocab.d.ts → vocab-CLWdoo7y.d.ts} +21 -9
  155. package/dist/webfinger/handler.test.d.ts +2 -1
  156. package/dist/webfinger/handler.test.js +39 -7
  157. package/dist/webfinger/lookup.test.d.ts +2 -1
  158. package/dist/webfinger/lookup.test.js +14 -4
  159. package/dist/webfinger/mod.d.ts +4 -2
  160. package/dist/webfinger/mod.js +3 -1
  161. package/dist/x/cfworkers.d.ts +49 -0
  162. package/dist/x/cfworkers.js +73 -0
  163. package/dist/x/cfworkers.test.d.ts +3 -0
  164. package/dist/x/cfworkers.test.js +153 -0
  165. package/dist/x/hono.d.ts +11 -2
  166. package/dist/x/sveltekit.d.ts +11 -2
  167. package/package.json +6 -1
  168. package/dist/codegen/fs.js +0 -23
  169. package/dist/codegen/schema.js +0 -88
  170. package/dist/codegen/type.js +0 -392
  171. package/dist/compat/types.d.ts +0 -18
  172. package/dist/deno.js +0 -137
  173. package/dist/federation/builder.d.ts +0 -19
  174. package/dist/federation/callback.d.ts +0 -211
  175. package/dist/federation/collection.d.ts +0 -36
  176. package/dist/federation/context.d.ts +0 -757
  177. package/dist/federation/federation.d.ts +0 -689
  178. package/dist/federation/handler.d.ts +0 -44
  179. package/dist/federation/handler.js +0 -543
  180. package/dist/federation/middleware.d.ts +0 -101
  181. package/dist/federation/negotiation.js +0 -63
  182. package/dist/federation/retry.d.ts +0 -71
  183. package/dist/federation/router.d.ts +0 -92
  184. package/dist/federation/send.d.ts +0 -29
  185. package/dist/node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/mod.js +0 -101
  186. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js +0 -49
  187. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js +0 -32
  188. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js +0 -26
  189. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js +0 -34
  190. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js +0 -34
  191. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js +0 -53
  192. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js +0 -32
  193. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js +0 -33
  194. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/equal.js +0 -79
  195. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/mod.js +0 -19
  196. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/assertion_state.js +0 -177
  197. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js +0 -101
  198. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js +0 -274
  199. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js +0 -148
  200. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js +0 -37
  201. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/mod.js +0 -10
  202. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js +0 -172
  203. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/assert_path.js +0 -11
  204. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/constants.js +0 -10
  205. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +0 -14
  206. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +0 -13
  207. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js +0 -14
  208. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize_string.js +0 -60
  209. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/strip_trailing_separators.js +0 -15
  210. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_os.js +0 -9
  211. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/extname.js +0 -4
  212. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/format.js +0 -4
  213. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js +0 -34
  214. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/glob_to_regexp.js +0 -4
  215. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/is_absolute.js +0 -4
  216. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join.js +0 -4
  217. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join_globs.js +0 -4
  218. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/mod.js +0 -5
  219. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize.js +0 -4
  220. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize_glob.js +0 -4
  221. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/parse.js +0 -4
  222. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/_util.js +0 -13
  223. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +0 -54
  224. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +0 -27
  225. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/join.js +0 -47
  226. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js +0 -59
  227. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/relative.js +0 -4
  228. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/resolve.js +0 -4
  229. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_file_url.js +0 -4
  230. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_namespaced_path.js +0 -4
  231. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +0 -31
  232. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js +0 -17
  233. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +0 -38
  234. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js +0 -36
  235. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_chars.js +0 -47
  236. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_dumper_state.js +0 -4
  237. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js +0 -884
  238. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_schema.js +0 -120
  239. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/binary.js +0 -92
  240. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/bool.js +0 -41
  241. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/float.js +0 -58
  242. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/int.js +0 -118
  243. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/map.js +0 -18
  244. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/merge.js +0 -14
  245. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/nil.js +0 -23
  246. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/omap.js +0 -31
  247. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/pairs.js +0 -22
  248. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/regexp.js +0 -29
  249. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/seq.js +0 -14
  250. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/set.js +0 -17
  251. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/str.js +0 -14
  252. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/timestamp.js +0 -57
  253. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/undefined.js +0 -24
  254. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_utils.js +0 -17
  255. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/mod.js +0 -5
  256. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js +0 -54
  257. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/stringify.js +0 -4
  258. package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.js +0 -68
  259. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/AlwaysShrinkableArbitrary.js +0 -30
  260. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayArbitrary.js +0 -203
  261. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayInt64Arbitrary.js +0 -122
  262. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/BigIntArbitrary.js +0 -63
  263. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ConstantArbitrary.js +0 -58
  264. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/FrequencyArbitrary.js +0 -136
  265. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/IntegerArbitrary.js +0 -64
  266. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/LazyArbitrary.js +0 -29
  267. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/StringUnitArbitrary.js +0 -45
  268. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/TupleArbitrary.js +0 -74
  269. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/WithShrinkFromOtherArbitrary.js +0 -40
  270. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/AnyArbitraryBuilder.js +0 -97
  271. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/BoxedArbitraryBuilder.js +0 -13
  272. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/CharacterArbitraryBuilder.js +0 -17
  273. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js +0 -23
  274. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/TypedIntArrayArbitraryBuilder.js +0 -32
  275. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/data/GraphemeRanges.js +0 -990
  276. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ArrayInt64.js +0 -98
  277. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BiasNumericRange.js +0 -53
  278. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BuildSlicedGenerator.js +0 -15
  279. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/CustomEqualSet.js +0 -27
  280. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js +0 -24
  281. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleHelpers.js +0 -96
  282. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleOnlyHelpers.js +0 -25
  283. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatHelpers.js +0 -57
  284. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatOnlyHelpers.js +0 -26
  285. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatingOnlyHelpers.js +0 -26
  286. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/GraphemeRangesHelpers.js +0 -58
  287. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/MaxLengthFromMinLength.js +0 -72
  288. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/NoUndefinedAsContext.js +0 -16
  289. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/QualifiedObjectConstraints.js +0 -58
  290. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueSet.js +0 -41
  291. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueZeroSet.js +0 -33
  292. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js +0 -37
  293. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkInteger.js +0 -41
  294. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SlicesForStringBuilder.js +0 -74
  295. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/StrictlyEqualSet.js +0 -38
  296. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js +0 -47
  297. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/NoopSlicedGenerator.js +0 -21
  298. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/SlicedBasedGenerator.js +0 -53
  299. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToMap.js +0 -16
  300. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToSet.js +0 -16
  301. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/CodePointsToString.js +0 -17
  302. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToCharString.js +0 -20
  303. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToMappedConstant.js +0 -69
  304. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToPrintableIndex.js +0 -18
  305. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/KeyValuePairsToObject.js +0 -42
  306. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/PatternsToString.js +0 -32
  307. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js +0 -30
  308. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/UnboxedToBoxed.js +0 -22
  309. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/anything.js +0 -14
  310. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/array.js +0 -22
  311. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js +0 -38
  312. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/boolean.js +0 -24
  313. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constant.js +0 -13
  314. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js +0 -14
  315. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/date.js +0 -30
  316. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/dictionary.js +0 -27
  317. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/double.js +0 -54
  318. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float.js +0 -60
  319. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float32Array.js +0 -22
  320. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float64Array.js +0 -22
  321. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicode.js +0 -24
  322. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js +0 -20
  323. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int16Array.js +0 -15
  324. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int32Array.js +0 -15
  325. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int8Array.js +0 -15
  326. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js +0 -26
  327. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/letrec.js +0 -28
  328. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/mapToConstant.js +0 -26
  329. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/maxSafeInteger.js +0 -15
  330. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/nat.js +0 -17
  331. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/noBias.js +0 -11
  332. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/oneof.js +0 -31
  333. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/sparseArray.js +0 -68
  334. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/string.js +0 -32
  335. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/tuple.js +0 -13
  336. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint16Array.js +0 -15
  337. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint32Array.js +0 -15
  338. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8Array.js +0 -15
  339. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8ClampedArray.js +0 -15
  340. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uniqueArray.js +0 -47
  341. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Arbitrary.js +0 -184
  342. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Value.js +0 -31
  343. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js +0 -19
  344. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IRawProperty.js +0 -12
  345. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IgnoreEqualValuesProperty.js +0 -52
  346. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.generic.js +0 -77
  347. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.js +0 -22
  348. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js +0 -61
  349. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js +0 -52
  350. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js +0 -29
  351. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/DecorateProperty.js +0 -26
  352. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Runner.js +0 -61
  353. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/RunnerIterator.js +0 -47
  354. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/SourceValuesIterator.js +0 -35
  355. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Tosser.js +0 -33
  356. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/GlobalParameters.js +0 -12
  357. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/QualifiedParameters.js +0 -121
  358. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/VerbosityLevel.js +0 -14
  359. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/ExecutionStatus.js +0 -14
  360. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/RunExecution.js +0 -116
  361. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/PathWalker.js +0 -24
  362. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js +0 -135
  363. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/symbols.js +0 -15
  364. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/random/generator/Random.js +0 -48
  365. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/LazyIterableIterator.js +0 -24
  366. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/Stream.js +0 -84
  367. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/StreamHelpers.js +0 -50
  368. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/apply.js +0 -28
  369. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js +0 -309
  370. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/stringify.js +0 -217
  371. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/CallHistory.js +0 -94
  372. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/FetchMock.js +0 -143
  373. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/IsSubsetOf.js +0 -103
  374. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js +0 -195
  375. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js +0 -83
  376. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js +0 -137
  377. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js +0 -181
  378. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js +0 -73
  379. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/TypeDescriptor.js +0 -97
  380. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/index.js +0 -11
  381. package/dist/node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js +0 -87
  382. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js +0 -20
  383. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformBigIntDistribution.js +0 -20
  384. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformIntDistribution.js +0 -20
  385. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js +0 -20
  386. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js +0 -32
  387. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformIntDistribution.js +0 -43
  388. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/ArrayInt.js +0 -139
  389. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformArrayIntDistributionInternal.js +0 -26
  390. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformIntDistributionInternal.js +0 -14
  391. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/LinearCongruential.js +0 -53
  392. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/MersenneTwister.js +0 -114
  393. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/RandomGenerator.js +0 -26
  394. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XorShift.js +0 -83
  395. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XoroShiro.js +0 -83
  396. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js +0 -44
  397. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand.js +0 -22
  398. package/dist/node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.js +0 -37
  399. package/dist/nodeinfo/client.d.ts +0 -96
  400. package/dist/nodeinfo/handler.js +0 -46
  401. package/dist/nodeinfo/semver.d.ts +0 -78
  402. package/dist/nodeinfo/types.d.ts +0 -140
  403. package/dist/runtime/authdocloader.d.ts +0 -56
  404. package/dist/runtime/docloader.js +0 -291
  405. package/dist/runtime/key.js +0 -156
  406. package/dist/runtime/langstr.d.ts +0 -24
  407. package/dist/runtime/multibase/base.js +0 -32
  408. package/dist/runtime/multibase/constants.js +0 -172
  409. package/dist/runtime/multibase/index.js +0 -57
  410. package/dist/runtime/multibase/rfc4648.js +0 -61
  411. package/dist/runtime/multibase/util.js +0 -21
  412. package/dist/sig/http.d.ts +0 -143
  413. package/dist/sig/key.d.ts +0 -125
  414. package/dist/sig/proof.d.ts +0 -134
  415. package/dist/testing/fixtures/example.com/person.js +0 -29
  416. package/dist/testing/fixtures/example.com/person2.js +0 -48
  417. package/dist/vocab/constants.d.ts +0 -24
  418. package/dist/vocab/constants.js +0 -17
  419. package/dist/vocab/type.d.ts +0 -107
  420. package/dist/webfinger/handler.js +0 -140
  421. package/dist/webfinger/lookup.d.ts +0 -47
  422. /package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_object_match.js → compat-Bb5myD13.js} +0 -0
  423. /package/dist/{testing/fixtures → fixtures}/activitypub.academy/users/brauca_darradiul.json +0 -0
  424. /package/dist/{testing/fixtures → fixtures}/example.com/announce.json +0 -0
  425. /package/dist/{testing/fixtures → fixtures}/example.com/collection.json +0 -0
  426. /package/dist/{testing/fixtures → fixtures}/example.com/create.json +0 -0
  427. /package/dist/{testing/fixtures → fixtures}/example.com/cross-origin-actor.json +0 -0
  428. /package/dist/{testing/fixtures → fixtures}/example.com/hong-gildong.json +0 -0
  429. /package/dist/{testing/fixtures → fixtures}/example.com/invite.json +0 -0
  430. /package/dist/{testing/fixtures → fixtures}/example.com/key.json +0 -0
  431. /package/dist/{testing/fixtures → fixtures}/example.com/key2.json +0 -0
  432. /package/dist/{testing/fixtures → fixtures}/example.com/object.json +0 -0
  433. /package/dist/{testing/fixtures → fixtures}/example.com/orderedcollectionpage.json +0 -0
  434. /package/dist/{testing/fixtures → fixtures}/example.com/paged/a.json +0 -0
  435. /package/dist/{testing/fixtures → fixtures}/example.com/paged/b.json +0 -0
  436. /package/dist/{testing/fixtures → fixtures}/example.com/paged-collection.json +0 -0
  437. /package/dist/{testing/fixtures → fixtures}/example.com/person.json +0 -0
  438. /package/dist/{testing/fixtures → fixtures}/example.com/person2.json +0 -0
  439. /package/dist/{testing/fixtures → fixtures}/example.com/test.json +0 -0
  440. /package/dist/{testing/fixtures → fixtures}/example.com/users/handle.json +0 -0
  441. /package/dist/{testing/fixtures → fixtures}/example.com/wrong-type.json +0 -0
  442. /package/dist/{testing/fixtures → fixtures}/remote.domain/users/bob.json +0 -0
  443. /package/dist/{testing/fixtures → fixtures}/server.example/users/alice.json +0 -0
  444. /package/dist/{testing/fixtures → fixtures}/w3id.org/identity/v1.json +0 -0
  445. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/data-integrity/v1.json +0 -0
  446. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/multikey/v1.json +0 -0
  447. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/v1.json +0 -0
  448. /package/dist/{testing/fixtures → fixtures}/wizard.casa/users/hongminhee.json +0 -0
  449. /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/activitystreams.json +0 -0
  450. /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/did/v1.json +0 -0
  451. /package/dist/{federation/kv.d.ts → kv-BmsWxOQ2.d.ts} +0 -0
  452. /package/dist/{federation/mq.d.ts → mq-Bue016Tz.d.ts} +0 -0
  453. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/basename.js → nodeinfo-CyEbLjHs.js} +0 -0
  454. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/common.js → runtime-BSkOVUWM.js} +0 -0
  455. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/constants.js → sig-BXJO--F9.js} +0 -0
  456. /package/dist/{codegen → vocab}/schema.yaml +0 -0
  457. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js → webfinger-C3GIyXIg.js} +0 -0
@@ -1,195 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { __toESM } from "../../../../../../../_virtual/rolldown_runtime.js";
6
- import { require_glob_to_regexp } from "../../../../../glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js";
7
- import { parse$1 as parse } from "../../../../../regexparam@3.0.0/node_modules/regexparam/dist/index.js";
8
- import { isSubsetOf } from "./IsSubsetOf.js";
9
- import { dequal } from "../../../../../dequal@2.0.3/node_modules/dequal/dist/index.js";
10
- import { getPath, normalizeHeaders, normalizeUrl } from "./RequestUtils.js";
11
-
12
- //#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js
13
- var import_glob_to_regexp = __toESM(require_glob_to_regexp(), 1);
14
- const isUrlMatcher = (matcher) => matcher instanceof RegExp || typeof matcher === "string" || typeof matcher === "object" && "href" in matcher;
15
- const isFunctionMatcher = (matcher) => typeof matcher === "function";
16
- const stringMatchers = {
17
- begin: (targetString) => ({ url }) => url.startsWith(targetString),
18
- end: (targetString) => ({ url }) => url.endsWith(targetString),
19
- include: (targetString) => ({ url }) => url.includes(targetString),
20
- glob: (targetString) => {
21
- const urlRX = (0, import_glob_to_regexp.default)(targetString);
22
- return ({ url }) => urlRX.test(url);
23
- },
24
- express: (targetString) => {
25
- const urlRX = parse(targetString);
26
- return (callLog) => {
27
- const vals = urlRX.pattern.exec(getPath(callLog.url));
28
- if (!vals) {
29
- callLog.expressParams = {};
30
- return false;
31
- }
32
- vals.shift();
33
- callLog.expressParams = urlRX.keys.reduce((map, paramName, i) => vals[i] ? Object.assign(map, { [paramName]: vals[i] }) : map, {});
34
- return true;
35
- };
36
- },
37
- path: (targetString) => {
38
- const dotlessTargetString = getPath(targetString);
39
- return ({ url }) => {
40
- const path = getPath(url);
41
- return path === targetString || path === dotlessTargetString;
42
- };
43
- }
44
- };
45
- const getHeaderMatcher = ({ headers: expectedHeaders }) => {
46
- if (!expectedHeaders) return;
47
- const expectation = normalizeHeaders(expectedHeaders);
48
- return ({ options: { headers = {} } }) => {
49
- const lowerCaseHeaders = normalizeHeaders(headers);
50
- return Object.keys(expectation).every((headerName) => lowerCaseHeaders[headerName] === expectation[headerName]);
51
- };
52
- };
53
- const getMissingHeaderMatcher = ({ missingHeaders: expectedMissingHeaders }) => {
54
- if (!expectedMissingHeaders) return;
55
- const expectation = expectedMissingHeaders.map((header) => header.toLowerCase());
56
- return ({ options: { headers = {} } }) => {
57
- const lowerCaseHeaders = normalizeHeaders(headers);
58
- return expectation.every((headerName) => !(headerName in lowerCaseHeaders));
59
- };
60
- };
61
- const getMethodMatcher = ({ method: expectedMethod }) => {
62
- if (!expectedMethod) return;
63
- return ({ options: { method } = {} }) => {
64
- const actualMethod = method ? method.toLowerCase() : "get";
65
- return expectedMethod === actualMethod;
66
- };
67
- };
68
- const getQueryParamsMatcher = ({ query: passedQuery }) => {
69
- if (!passedQuery) return;
70
- const expectedQuery = new URLSearchParams();
71
- for (const [key, value] of Object.entries(passedQuery)) if (Array.isArray(value)) for (const item of value) expectedQuery.append(key, typeof item === "object" || typeof item === "undefined" ? "" : item.toString());
72
- else expectedQuery.append(key, typeof value === "object" || typeof value === "undefined" ? "" : value.toString());
73
- const keys = Array.from(expectedQuery.keys());
74
- return ({ queryParams }) => {
75
- return keys.every((key) => {
76
- const expectedValues = expectedQuery.getAll(key).sort();
77
- const actualValues = queryParams.getAll(key).sort();
78
- if (expectedValues.length !== actualValues.length) return false;
79
- if (Array.isArray(passedQuery[key])) return expectedValues.every((expected, index) => expected === actualValues[index]);
80
- return dequal(actualValues, expectedValues);
81
- });
82
- };
83
- };
84
- const getExpressParamsMatcher = ({ params: expectedParams, url }) => {
85
- if (!expectedParams) return;
86
- if (!(typeof url === "string" && /express:/.test(url))) throw new Error("fetch-mock: matching on params is only possible when using an express: matcher");
87
- const expectedKeys = Object.keys(expectedParams);
88
- return ({ expressParams = {} }) => {
89
- return expectedKeys.every((key) => expressParams[key] === expectedParams[key]);
90
- };
91
- };
92
- const formDataToObject = (formData) => {
93
- const fields = [...formData];
94
- const result = {};
95
- fields.forEach(([key, value]) => {
96
- result[key] = result[key] || [];
97
- result[key].push(value);
98
- });
99
- return result;
100
- };
101
- const getBodyMatcher = (route) => {
102
- let { body: expectedBody } = route;
103
- let expectedBodyType = "json";
104
- if (!expectedBody) return;
105
- if (expectedBody instanceof FormData) {
106
- expectedBodyType = "formData";
107
- expectedBody = formDataToObject(expectedBody);
108
- }
109
- return ({ options: { body, method = "get" } }) => {
110
- if (["get", "head"].includes(method.toLowerCase())) return false;
111
- let sentBody;
112
- try {
113
- if (typeof body === "string") {
114
- sentBody = JSON.parse(body);
115
- if (expectedBodyType !== "json") return false;
116
- }
117
- } catch {}
118
- if (body instanceof FormData) {
119
- if (expectedBodyType !== "formData") return false;
120
- sentBody = formDataToObject(body);
121
- }
122
- return sentBody && (route.matchPartialBody ? isSubsetOf(expectedBody, sentBody) : dequal(expectedBody, sentBody));
123
- };
124
- };
125
- const getFunctionMatcher = ({ matcherFunction }) => matcherFunction;
126
- const getRegexpMatcher = (regexp) => ({ url }) => regexp.test(url);
127
- const getFullUrlMatcher = (route, matcherUrl, query) => {
128
- const expectedUrl = normalizeUrl(matcherUrl, route.allowRelativeUrls);
129
- if (route.url === matcherUrl) route.url = expectedUrl;
130
- return ({ url }) => {
131
- if (query && expectedUrl.indexOf("?")) return getPath(url) === getPath(expectedUrl);
132
- return normalizeUrl(url, true) === expectedUrl;
133
- };
134
- };
135
- const getUrlMatcher = (route) => {
136
- const { url: matcherUrl, query } = route;
137
- if (matcherUrl === "*") return () => true;
138
- if (matcherUrl instanceof RegExp) return getRegexpMatcher(matcherUrl);
139
- if (matcherUrl instanceof URL) {
140
- if (matcherUrl.href) return getFullUrlMatcher(route, matcherUrl.href, query);
141
- }
142
- if (typeof matcherUrl === "string") {
143
- for (const shorthand in stringMatchers) if (matcherUrl.indexOf(`${shorthand}:`) === 0) {
144
- const urlFragment = matcherUrl.replace(new RegExp(`^${shorthand}:`), "");
145
- return stringMatchers[shorthand](urlFragment);
146
- }
147
- return getFullUrlMatcher(route, matcherUrl, query);
148
- }
149
- if (typeof matcherUrl === "object") {
150
- const matchers = Object.entries(matcherUrl).map(([key, pattern]) => {
151
- if (key === "regexp") return getRegexpMatcher(pattern);
152
- else if (key in stringMatchers) return stringMatchers[key](pattern);
153
- else throw new Error(`unrecognised url matching pattern: ${key}`);
154
- });
155
- return (route$1) => matchers.every((matcher) => matcher(route$1));
156
- }
157
- };
158
- const builtInMatchers = [
159
- {
160
- name: "url",
161
- matcher: getUrlMatcher
162
- },
163
- {
164
- name: "query",
165
- matcher: getQueryParamsMatcher
166
- },
167
- {
168
- name: "method",
169
- matcher: getMethodMatcher
170
- },
171
- {
172
- name: "headers",
173
- matcher: getHeaderMatcher
174
- },
175
- {
176
- name: "missingHeaders",
177
- matcher: getMissingHeaderMatcher
178
- },
179
- {
180
- name: "params",
181
- matcher: getExpressParamsMatcher
182
- },
183
- {
184
- name: "body",
185
- matcher: getBodyMatcher,
186
- usesBody: true
187
- },
188
- {
189
- name: "matcherFunction",
190
- matcher: getFunctionMatcher
191
- }
192
- ];
193
-
194
- //#endregion
195
- export { builtInMatchers, isFunctionMatcher, isUrlMatcher };
@@ -1,83 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- //#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js
6
- const absoluteUrlRX = new RegExp("^[a-z]+://|^data:", "i");
7
- const protocolRelativeUrlRX = new RegExp("^//", "i");
8
- function hasCredentialsInUrl(url) {
9
- const urlObject = new URL(url, !absoluteUrlRX.test(url) ? "http://dummy" : void 0);
10
- return Boolean(urlObject.username || urlObject.password);
11
- }
12
- function normalizeUrl(url, allowRelativeUrls) {
13
- if (url instanceof URL) return url.href;
14
- const primitiveUrl = String(url).valueOf();
15
- if (absoluteUrlRX.test(primitiveUrl)) return new URL(primitiveUrl).href;
16
- if (protocolRelativeUrlRX.test(primitiveUrl)) return new URL(primitiveUrl, "http://dummy").href.replace(/^[a-z]+:/, "");
17
- if ("location" in globalThis) if (primitiveUrl.startsWith("/")) return `${globalThis.location.origin}${primitiveUrl}`;
18
- else return `${globalThis.location.href}/${primitiveUrl}`;
19
- else if (allowRelativeUrls) {
20
- const urlInstance = new URL(primitiveUrl, "http://dummy");
21
- return urlInstance.pathname + urlInstance.search;
22
- } else throw new Error("Relative urls are not support by default in node.js tests. Either use a utility such as jsdom to define globalThis.location or set `fetchMock.config.allowRelativeUrls = true`");
23
- }
24
- function createCallLogFromUrlAndOptions(url, options) {
25
- const pendingPromises = [];
26
- if (typeof url === "string" || url instanceof String || url instanceof URL) {
27
- const normalizedUrl = normalizeUrl(url, true);
28
- const derivedOptions = options ? { ...options } : {};
29
- if (derivedOptions.headers) derivedOptions.headers = normalizeHeaders(derivedOptions.headers);
30
- derivedOptions.method = derivedOptions.method ? derivedOptions.method.toLowerCase() : "get";
31
- return {
32
- args: [url, options],
33
- url: normalizedUrl,
34
- queryParams: new URLSearchParams(getQuery(normalizedUrl)),
35
- options: derivedOptions,
36
- signal: derivedOptions.signal,
37
- pendingPromises
38
- };
39
- }
40
- if (typeof url === "object") throw new TypeError("fetch-mock: Unrecognised Request object. Read the Config and Installation sections of the docs");
41
- else throw new TypeError("fetch-mock: Invalid arguments passed to fetch");
42
- }
43
- async function createCallLogFromRequest(request, options) {
44
- const pendingPromises = [];
45
- const derivedOptions = { method: request.method };
46
- try {
47
- try {
48
- derivedOptions.body = await request.clone().formData();
49
- } catch {
50
- derivedOptions.body = await request.clone().text();
51
- }
52
- } catch {}
53
- if (request.headers) derivedOptions.headers = normalizeHeaders(request.headers);
54
- const url = normalizeUrl(request.url, true);
55
- const callLog = {
56
- args: [request, options],
57
- url,
58
- queryParams: new URLSearchParams(getQuery(url)),
59
- options: Object.assign(derivedOptions, options || {}),
60
- request,
61
- signal: options && options.signal || request.signal,
62
- pendingPromises
63
- };
64
- return callLog;
65
- }
66
- function getPath(url) {
67
- const u = absoluteUrlRX.test(url) ? new URL(url) : new URL(url, "http://dummy");
68
- return u.pathname;
69
- }
70
- function getQuery(url) {
71
- const u = absoluteUrlRX.test(url) ? new URL(url) : new URL(url, "http://dummy");
72
- return u.search ? u.search.substr(1) : "";
73
- }
74
- function normalizeHeaders(headers) {
75
- let entries;
76
- if (headers instanceof Headers) entries = [...headers.entries()];
77
- else if (Array.isArray(headers)) entries = headers;
78
- else entries = Object.entries(headers);
79
- return Object.fromEntries(entries.map(([key, val]) => [key.toLowerCase(), String(val).valueOf()]));
80
- }
81
-
82
- //#endregion
83
- export { createCallLogFromRequest, createCallLogFromUrlAndOptions, getPath, hasCredentialsInUrl, normalizeHeaders, normalizeUrl };
@@ -1,137 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { builtInMatchers } from "./Matchers.js";
6
- import { StatusTextMap_default } from "./StatusTextMap.js";
7
-
8
- //#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js
9
- var __classPrivateFieldSet = void 0 && (void 0).__classPrivateFieldSet || function(receiver, state, value, kind, f) {
10
- if (kind === "m") throw new TypeError("Private method is not writable");
11
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
12
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
13
- return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
14
- };
15
- var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f) {
16
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
17
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
18
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
19
- };
20
- var _Route_instances, _a, _Route_responseSubscriptions, _Route_validate, _Route_sanitize, _Route_generateMatcher, _Route_limit, _Route_delayResponse;
21
- function isBodyInit(body) {
22
- return body instanceof Blob || body instanceof ArrayBuffer || ArrayBuffer.isView(body) || body instanceof DataView || body instanceof FormData || body instanceof ReadableStream || body instanceof URLSearchParams || body instanceof String || typeof body === "string" || body === null;
23
- }
24
- function sanitizeStatus(status) {
25
- if (status === 0) return 200;
26
- if (!status) return 200;
27
- if (typeof status === "number" && parseInt(String(status), 10) !== status && status >= 200 || status < 600) return status;
28
- throw new TypeError(`fetch-mock: Invalid status ${status} passed on response object.
29
- To respond with a JSON object that has status as a property assign the object to body
30
- e.g. {"body": {"status: "registered"}}`);
31
- }
32
- var Route = class {
33
- constructor(config) {
34
- _Route_instances.add(this);
35
- _Route_responseSubscriptions.set(this, void 0);
36
- this.init(config);
37
- }
38
- init(config) {
39
- this.config = config;
40
- __classPrivateFieldSet(this, _Route_responseSubscriptions, [], "f");
41
- __classPrivateFieldGet(this, _Route_instances, "m", _Route_sanitize).call(this);
42
- __classPrivateFieldGet(this, _Route_instances, "m", _Route_validate).call(this);
43
- __classPrivateFieldGet(this, _Route_instances, "m", _Route_generateMatcher).call(this);
44
- __classPrivateFieldGet(this, _Route_instances, "m", _Route_limit).call(this);
45
- __classPrivateFieldGet(this, _Route_instances, "m", _Route_delayResponse).call(this);
46
- }
47
- reset() {}
48
- waitFor(awaitedRoutes) {
49
- const { response } = this.config;
50
- this.config.response = Promise.all(awaitedRoutes.map((awaitedRoute) => new Promise((res) => awaitedRoute.onRespond(() => {
51
- res(void 0);
52
- })))).then(() => response);
53
- }
54
- onRespond(func) {
55
- __classPrivateFieldGet(this, _Route_responseSubscriptions, "f").push(func);
56
- }
57
- constructResponse(responseInput) {
58
- const responseOptions = this.constructResponseOptions(responseInput);
59
- const body = this.constructResponseBody(responseInput, responseOptions);
60
- const responsePackage = {
61
- response: new this.config.Response(body, responseOptions),
62
- responseOptions,
63
- responseInput
64
- };
65
- __classPrivateFieldGet(this, _Route_responseSubscriptions, "f").forEach((func) => func());
66
- return responsePackage;
67
- }
68
- constructResponseOptions(responseInput) {
69
- const options = responseInput.options || {};
70
- options.status = sanitizeStatus(responseInput.status);
71
- options.statusText = StatusTextMap_default[options.status];
72
- options.headers = new this.config.Headers(responseInput.headers);
73
- return options;
74
- }
75
- constructResponseBody(responseInput, responseOptions) {
76
- let body = responseInput.body;
77
- const bodyIsBodyInit = isBodyInit(body);
78
- if (!bodyIsBodyInit) if (typeof body === "undefined") body = null;
79
- else if (typeof body === "object") {
80
- body = JSON.stringify(body);
81
- if (!responseOptions.headers.has("Content-Type")) responseOptions.headers.set("Content-Type", "application/json");
82
- } else throw new TypeError("Invalid body provided to construct response");
83
- if (this.config.includeContentLength && !responseOptions.headers.has("Content-Length") && !(body instanceof ReadableStream) && !(body instanceof FormData)) {
84
- let length = 0;
85
- if (body instanceof Blob) length = body.size;
86
- else if (body instanceof ArrayBuffer || ArrayBuffer.isView(body) || body instanceof DataView) length = body.byteLength;
87
- else if (body instanceof URLSearchParams) length = body.toString().length;
88
- else if (typeof body === "string" || body instanceof String) length = body.length;
89
- responseOptions.headers.set("Content-Length", length.toString());
90
- }
91
- return body;
92
- }
93
- static defineMatcher(matcher) {
94
- _a.registeredMatchers.push(matcher);
95
- }
96
- };
97
- _a = Route, _Route_responseSubscriptions = new WeakMap(), _Route_instances = new WeakSet(), _Route_validate = function _Route_validate$1() {
98
- if (["matched", "unmatched"].includes(this.config.name)) throw new Error(`fetch-mock: Routes cannot use the reserved name \`${this.config.name}\``);
99
- if (!("response" in this.config)) throw new Error("fetch-mock: Each route must define a response");
100
- if (!_a.registeredMatchers.some(({ name }) => name in this.config)) throw new Error("fetch-mock: Each route must specify some criteria for matching calls to fetch. To match all calls use '*'");
101
- }, _Route_sanitize = function _Route_sanitize$1() {
102
- if (this.config.method) this.config.method = this.config.method.toLowerCase();
103
- }, _Route_generateMatcher = function _Route_generateMatcher$1() {
104
- const activeMatchers = _a.registeredMatchers.filter(({ name }) => name in this.config).map(({ matcher, usesBody }) => ({
105
- matcher: matcher(this.config),
106
- usesBody
107
- }));
108
- this.config.usesBody = activeMatchers.some(({ usesBody }) => usesBody);
109
- this.matcher = (normalizedRequest) => activeMatchers.every(({ matcher }) => matcher(normalizedRequest));
110
- }, _Route_limit = function _Route_limit$1() {
111
- if (!this.config.repeat) return;
112
- const originalMatcher = this.matcher;
113
- let timesLeft = this.config.repeat;
114
- this.matcher = (callLog) => {
115
- const match = timesLeft && originalMatcher(callLog);
116
- if (match) {
117
- timesLeft--;
118
- return true;
119
- }
120
- };
121
- this.reset = () => {
122
- timesLeft = this.config.repeat;
123
- };
124
- }, _Route_delayResponse = function _Route_delayResponse$1() {
125
- if (this.config.delay) {
126
- const { response } = this.config;
127
- this.config.response = () => {
128
- return new Promise((res) => setTimeout(() => res(response), this.config.delay));
129
- };
130
- }
131
- };
132
- Route.registeredMatchers = [];
133
- builtInMatchers.forEach(Route.defineMatcher);
134
- var Route_default = Route;
135
-
136
- //#endregion
137
- export { Route_default };
@@ -1,181 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { hasCredentialsInUrl } from "./RequestUtils.js";
6
- import { isFunctionMatcher, isUrlMatcher } from "./Matchers.js";
7
- import { Route_default } from "./Route.js";
8
-
9
- //#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js
10
- const responseConfigProps = [
11
- "body",
12
- "headers",
13
- "throws",
14
- "status",
15
- "redirectUrl"
16
- ];
17
- function nameToOptions(options) {
18
- return typeof options === "string" ? { name: options } : options;
19
- }
20
- function isPromise(response) {
21
- return typeof response.then === "function";
22
- }
23
- function normalizeResponseInput(responseInput) {
24
- if (typeof responseInput === "number") return { status: responseInput };
25
- else if (typeof responseInput === "string" || shouldSendAsObject(responseInput)) return { body: responseInput };
26
- return responseInput;
27
- }
28
- function shouldSendAsObject(responseInput) {
29
- if (responseConfigProps.some((prop) => prop in responseInput)) {
30
- if (Object.keys(responseInput).every((key) => responseConfigProps.includes(key))) return false;
31
- return true;
32
- }
33
- return true;
34
- }
35
- function throwSpecExceptions({ url, options: { headers, method, body } }) {
36
- if (headers) Object.entries(headers).forEach(([key]) => {
37
- if (/\s/.test(key)) throw new TypeError("Invalid name");
38
- });
39
- if (hasCredentialsInUrl(url)) throw new TypeError(`Request cannot be constructed from a URL that includes credentials: ${url}`);
40
- if (["get", "head"].includes(method) && body) throw new TypeError("Request with GET/HEAD method cannot have body.");
41
- }
42
- const resolveUntilResponseConfig = async (callLog) => {
43
- let response = callLog.route.config.response;
44
- while (true) if (typeof response === "function") response = response(callLog);
45
- else if (isPromise(response)) response = await response;
46
- else return response;
47
- };
48
- var Router = class {
49
- constructor(fetchMockConfig, { routes, fallbackRoute } = {}) {
50
- this.config = fetchMockConfig;
51
- this.routes = routes || [];
52
- this.fallbackRoute = fallbackRoute;
53
- }
54
- needsToReadBody(request) {
55
- return Boolean(request && this.routes.some((route) => route.config.usesBody));
56
- }
57
- execute(callLog) {
58
- throwSpecExceptions(callLog);
59
- return new Promise(async (resolve, reject) => {
60
- const { url, options, request, pendingPromises } = callLog;
61
- if (callLog.signal) {
62
- const abort = () => {
63
- const error = new DOMException("The operation was aborted.", "AbortError");
64
- const requestBody = request?.body || options?.body;
65
- if (requestBody instanceof ReadableStream) if (requestBody.locked) requestBody.getReader().cancel(error);
66
- else requestBody.cancel(error);
67
- if (callLog?.response?.body) if (callLog.response.body.locked) callLog.response.body.getReader().cancel(error);
68
- else callLog.response.body.cancel(error);
69
- reject(error);
70
- };
71
- if (callLog.signal.aborted) abort();
72
- callLog.signal.addEventListener("abort", abort);
73
- }
74
- if (this.needsToReadBody(request)) options.body = await options.body;
75
- const routesToTry = this.fallbackRoute ? [...this.routes, this.fallbackRoute] : this.routes;
76
- const route = routesToTry.find((route$1) => route$1.matcher(callLog));
77
- if (route) try {
78
- callLog.route = route;
79
- const { response, responseOptions, responseInput } = await this.generateResponse(callLog);
80
- const observableResponse = this.createObservableResponse(response, responseOptions, responseInput, url, pendingPromises);
81
- callLog.response = response;
82
- resolve(observableResponse);
83
- } catch (err) {
84
- reject(err);
85
- }
86
- else reject(new Error(`fetch-mock: No response or fallback rule to cover ${options && options.method || "GET"} to ${url}`));
87
- });
88
- }
89
- async generateResponse(callLog) {
90
- const responseInput = await resolveUntilResponseConfig(callLog);
91
- if (responseInput instanceof Response) return {
92
- response: responseInput.clone(),
93
- responseOptions: {},
94
- responseInput: {}
95
- };
96
- const responseConfig = normalizeResponseInput(responseInput);
97
- if (responseConfig.throws) throw responseConfig.throws;
98
- return callLog.route.constructResponse(responseConfig);
99
- }
100
- createObservableResponse(response, responseConfig, responseInput, responseUrl, pendingPromises) {
101
- return new Proxy(response, { get: (originalResponse, name) => {
102
- if (responseInput.redirectUrl) {
103
- if (name === "url") return responseInput.redirectUrl;
104
- if (name === "redirected") return true;
105
- } else {
106
- if (name === "url") return responseUrl;
107
- if (name === "redirected") return false;
108
- }
109
- if (responseInput.status === 0) {
110
- if (name === "status") return 0;
111
- if (name === "statusText") return "";
112
- }
113
- if (typeof response[name] === "function") return new Proxy(response[name], { apply: (func, thisArg, args) => {
114
- const result = func.apply(response, args);
115
- if (result.then) pendingPromises.push(result.catch(() => void 0));
116
- return result;
117
- } });
118
- return originalResponse[name];
119
- } });
120
- }
121
- addRoute(matcher, response, nameOrOptions) {
122
- const config = {};
123
- if (isUrlMatcher(matcher)) config.url = matcher;
124
- else if (isFunctionMatcher(matcher)) config.matcherFunction = matcher;
125
- else Object.assign(config, matcher);
126
- if (typeof response !== "undefined") config.response = response;
127
- if (nameOrOptions) Object.assign(config, typeof nameOrOptions === "string" ? nameToOptions(nameOrOptions) : nameOrOptions);
128
- const route = new Route_default({
129
- ...this.config,
130
- ...config
131
- });
132
- if (route.config.name && this.routes.some(({ config: { name: existingName } }) => route.config.name === existingName)) throw new Error("fetch-mock: Adding route with same name as existing route.");
133
- if (route.config.waitFor) {
134
- const routeNamesToWaitFor = Array.isArray(route.config.waitFor) ? route.config.waitFor : [route.config.waitFor];
135
- const routesToAwait = [];
136
- routeNamesToWaitFor.forEach((routeName) => {
137
- const routeToAwait = this.routes.find(({ config: { name: existingName } }) => routeName === existingName);
138
- if (routeToAwait) routesToAwait.push(routeToAwait);
139
- else throw new Error(`Cannot wait for route \`${routeName}\`: route of that name does not exist`);
140
- });
141
- route.waitFor(routesToAwait);
142
- }
143
- this.routes.push(route);
144
- }
145
- setFallback(response) {
146
- if (this.fallbackRoute) console.warn("calling fetchMock.catch() twice - are you sure you want to overwrite the previous fallback response");
147
- this.fallbackRoute = new Route_default({
148
- matcherFunction: () => true,
149
- response: response || "ok",
150
- ...this.config
151
- });
152
- this.fallbackRoute.config.isFallback = true;
153
- }
154
- removeRoutes({ names, includeSticky, includeFallback } = {}) {
155
- includeFallback = includeFallback ?? true;
156
- this.routes = this.routes.filter(({ config: { sticky, name } }) => {
157
- if (sticky && !includeSticky) return true;
158
- if (!names) return false;
159
- return !names.includes(name);
160
- });
161
- if (includeFallback) delete this.fallbackRoute;
162
- }
163
- modifyRoute(routeName, options) {
164
- const route = this.routes.find(({ config: { name } }) => name === routeName);
165
- if (!route) throw new Error(`Cannot call modifyRoute() on route \`${routeName}\`: route of that name not found`);
166
- if (route.config.sticky) throw new Error(`Cannot call modifyRoute() on route \`${routeName}\`: route is sticky and cannot be modified`);
167
- if ("name" in options) throw new Error(`Cannot rename the route \`${routeName}\` as \`${options.name}\`: renaming routes is not supported`);
168
- if ("sticky" in options) throw new Error(`Altering the stickiness of route \`${routeName}\` is not supported`);
169
- const newConfig = {
170
- ...route.config,
171
- ...options
172
- };
173
- Object.entries(options).forEach(([key, value]) => {
174
- if (value === null) delete newConfig[key];
175
- });
176
- route.init(newConfig);
177
- }
178
- };
179
-
180
- //#endregion
181
- export { Router as Router$2 };
@@ -1,73 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- //#region node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js
6
- const statusTextMap = {
7
- 100: "Continue",
8
- 101: "Switching Protocols",
9
- 102: "Processing",
10
- 200: "OK",
11
- 201: "Created",
12
- 202: "Accepted",
13
- 203: "Non-Authoritative Information",
14
- 204: "No Content",
15
- 205: "Reset Content",
16
- 206: "Partial Content",
17
- 207: "Multi-Status",
18
- 208: "Already Reported",
19
- 226: "IM Used",
20
- 300: "Multiple Choices",
21
- 301: "Moved Permanently",
22
- 302: "Found",
23
- 303: "See Other",
24
- 304: "Not Modified",
25
- 305: "Use Proxy",
26
- 307: "Temporary Redirect",
27
- 308: "Permanent Redirect",
28
- 400: "Bad Request",
29
- 401: "Unauthorized",
30
- 402: "Payment Required",
31
- 403: "Forbidden",
32
- 404: "Not Found",
33
- 405: "Method Not Allowed",
34
- 406: "Not Acceptable",
35
- 407: "Proxy Authentication Required",
36
- 408: "Request Timeout",
37
- 409: "Conflict",
38
- 410: "Gone",
39
- 411: "Length Required",
40
- 412: "Precondition Failed",
41
- 413: "Payload Too Large",
42
- 414: "URI Too Long",
43
- 415: "Unsupported Media Type",
44
- 416: "Range Not Satisfiable",
45
- 417: "Expectation Failed",
46
- 418: "I'm a teapot",
47
- 421: "Misdirected Request",
48
- 422: "Unprocessable Entity",
49
- 423: "Locked",
50
- 424: "Failed Dependency",
51
- 425: "Unordered Collection",
52
- 426: "Upgrade Required",
53
- 428: "Precondition Required",
54
- 429: "Too Many Requests",
55
- 431: "Request Header Fields Too Large",
56
- 451: "Unavailable For Legal Reasons",
57
- 500: "Internal Server Error",
58
- 501: "Not Implemented",
59
- 502: "Bad Gateway",
60
- 503: "Service Unavailable",
61
- 504: "Gateway Timeout",
62
- 505: "HTTP Version Not Supported",
63
- 506: "Variant Also Negotiates",
64
- 507: "Insufficient Storage",
65
- 508: "Loop Detected",
66
- 509: "Bandwidth Limit Exceeded",
67
- 510: "Not Extended",
68
- 511: "Network Authentication Required"
69
- };
70
- var StatusTextMap_default = statusTextMap;
71
-
72
- //#endregion
73
- export { StatusTextMap_default };