aimakeall-mcp 0.14.5 → 0.14.6

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 (590) hide show
  1. package/lib/config.mjs +1 -1
  2. package/node_modules/fast-uri/index.js +10 -6
  3. package/node_modules/fast-uri/package.json +1 -1
  4. package/node_modules/fast-uri/test/security-normalization.test.js +38 -0
  5. package/node_modules/hono/README.md +1 -1
  6. package/node_modules/hono/dist/_virtual/_rolldown/runtime.js +13 -0
  7. package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +42 -23
  8. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +320 -342
  9. package/node_modules/hono/dist/adapter/aws-lambda/index.js +2 -8
  10. package/node_modules/hono/dist/adapter/aws-lambda/types.js +1 -0
  11. package/node_modules/hono/dist/adapter/bun/conninfo.js +20 -25
  12. package/node_modules/hono/dist/adapter/bun/index.js +3 -13
  13. package/node_modules/hono/dist/adapter/bun/serve-static.js +27 -27
  14. package/node_modules/hono/dist/adapter/bun/server.js +11 -5
  15. package/node_modules/hono/dist/adapter/bun/ssg.js +25 -15
  16. package/node_modules/hono/dist/adapter/bun/websocket.js +61 -68
  17. package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +24 -9
  18. package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +59 -62
  19. package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +2 -8
  20. package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +7 -9
  21. package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +3 -8
  22. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +5 -6
  23. package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +26 -20
  24. package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +21 -34
  25. package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +31 -39
  26. package/node_modules/hono/dist/adapter/deno/conninfo.js +16 -13
  27. package/node_modules/hono/dist/adapter/deno/deno.d.js +1 -0
  28. package/node_modules/hono/dist/adapter/deno/index.js +3 -10
  29. package/node_modules/hono/dist/adapter/deno/serve-static.js +33 -38
  30. package/node_modules/hono/dist/adapter/deno/ssg.js +27 -16
  31. package/node_modules/hono/dist/adapter/deno/websocket.js +30 -30
  32. package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +7 -9
  33. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +102 -87
  34. package/node_modules/hono/dist/adapter/lambda-edge/index.js +2 -6
  35. package/node_modules/hono/dist/adapter/netlify/conninfo.js +24 -9
  36. package/node_modules/hono/dist/adapter/netlify/handler.js +10 -8
  37. package/node_modules/hono/dist/adapter/netlify/index.js +3 -2
  38. package/node_modules/hono/dist/adapter/netlify/mod.js +2 -6
  39. package/node_modules/hono/dist/adapter/service-worker/handler.js +15 -19
  40. package/node_modules/hono/dist/adapter/service-worker/index.js +23 -7
  41. package/node_modules/hono/dist/adapter/service-worker/types.js +1 -0
  42. package/node_modules/hono/dist/adapter/vercel/conninfo.js +7 -10
  43. package/node_modules/hono/dist/adapter/vercel/handler.js +8 -6
  44. package/node_modules/hono/dist/adapter/vercel/index.js +2 -6
  45. package/node_modules/hono/dist/cjs/_virtual/_rolldown/runtime.js +33 -0
  46. package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +42 -44
  47. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +328 -371
  48. package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +7 -34
  49. package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +0 -15
  50. package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +21 -47
  51. package/node_modules/hono/dist/cjs/adapter/bun/index.js +14 -45
  52. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +29 -50
  53. package/node_modules/hono/dist/cjs/adapter/bun/server.js +11 -26
  54. package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +24 -35
  55. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +63 -91
  56. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +25 -31
  57. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +61 -85
  58. package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +7 -34
  59. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +8 -31
  60. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +7 -33
  61. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +7 -29
  62. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +27 -42
  63. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +21 -55
  64. package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +33 -62
  65. package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +16 -34
  66. package/node_modules/hono/dist/cjs/adapter/deno/index.js +10 -38
  67. package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +33 -59
  68. package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +27 -37
  69. package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +32 -53
  70. package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +8 -31
  71. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +105 -119
  72. package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +5 -30
  73. package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +25 -31
  74. package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +10 -29
  75. package/node_modules/hono/dist/cjs/adapter/netlify/index.js +5 -21
  76. package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +5 -30
  77. package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +16 -41
  78. package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +25 -30
  79. package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +0 -15
  80. package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +8 -32
  81. package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +8 -27
  82. package/node_modules/hono/dist/cjs/adapter/vercel/index.js +5 -30
  83. package/node_modules/hono/dist/cjs/client/client.js +139 -212
  84. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +62 -80
  85. package/node_modules/hono/dist/cjs/client/index.js +7 -32
  86. package/node_modules/hono/dist/cjs/client/types.js +0 -15
  87. package/node_modules/hono/dist/cjs/client/utils.js +54 -92
  88. package/node_modules/hono/dist/cjs/compose.js +49 -66
  89. package/node_modules/hono/dist/cjs/context.js +379 -450
  90. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +47 -70
  91. package/node_modules/hono/dist/cjs/helper/accepts/index.js +3 -27
  92. package/node_modules/hono/dist/cjs/helper/adapter/index.js +33 -73
  93. package/node_modules/hono/dist/cjs/helper/conninfo/index.js +0 -15
  94. package/node_modules/hono/dist/cjs/helper/conninfo/types.js +0 -15
  95. package/node_modules/hono/dist/cjs/helper/cookie/index.js +75 -116
  96. package/node_modules/hono/dist/cjs/helper/css/common.js +165 -244
  97. package/node_modules/hono/dist/cjs/helper/css/index.js +136 -151
  98. package/node_modules/hono/dist/cjs/helper/dev/index.js +45 -71
  99. package/node_modules/hono/dist/cjs/helper/factory/index.js +30 -51
  100. package/node_modules/hono/dist/cjs/helper/html/index.js +32 -62
  101. package/node_modules/hono/dist/cjs/helper/proxy/index.js +113 -106
  102. package/node_modules/hono/dist/cjs/helper/route/index.js +123 -66
  103. package/node_modules/hono/dist/cjs/helper/ssg/index.js +19 -43
  104. package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +56 -64
  105. package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +55 -57
  106. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +196 -296
  107. package/node_modules/hono/dist/cjs/helper/ssg/utils.js +47 -90
  108. package/node_modules/hono/dist/cjs/helper/streaming/index.js +8 -35
  109. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +53 -85
  110. package/node_modules/hono/dist/cjs/helper/streaming/stream.js +23 -53
  111. package/node_modules/hono/dist/cjs/helper/streaming/text.js +10 -32
  112. package/node_modules/hono/dist/cjs/helper/streaming/utils.js +13 -32
  113. package/node_modules/hono/dist/cjs/helper/testing/index.js +16 -31
  114. package/node_modules/hono/dist/cjs/helper/websocket/index.js +51 -76
  115. package/node_modules/hono/dist/cjs/hono-base.js +347 -402
  116. package/node_modules/hono/dist/cjs/hono.js +28 -42
  117. package/node_modules/hono/dist/cjs/http-exception.js +55 -56
  118. package/node_modules/hono/dist/cjs/index.js +22 -30
  119. package/node_modules/hono/dist/cjs/jsx/base.js +241 -353
  120. package/node_modules/hono/dist/cjs/jsx/children.js +16 -41
  121. package/node_modules/hono/dist/cjs/jsx/components.js +120 -194
  122. package/node_modules/hono/dist/cjs/jsx/constants.js +15 -42
  123. package/node_modules/hono/dist/cjs/jsx/context.js +144 -162
  124. package/node_modules/hono/dist/cjs/jsx/dom/client.js +49 -69
  125. package/node_modules/hono/dist/cjs/jsx/dom/components.js +23 -52
  126. package/node_modules/hono/dist/cjs/jsx/dom/context.js +39 -67
  127. package/node_modules/hono/dist/cjs/jsx/dom/css.js +143 -158
  128. package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +55 -64
  129. package/node_modules/hono/dist/cjs/jsx/dom/index.js +114 -173
  130. package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +282 -375
  131. package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +14 -49
  132. package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +5 -32
  133. package/node_modules/hono/dist/cjs/jsx/dom/render.js +471 -589
  134. package/node_modules/hono/dist/cjs/jsx/dom/server.js +37 -60
  135. package/node_modules/hono/dist/cjs/jsx/dom/utils.js +7 -30
  136. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +225 -318
  137. package/node_modules/hono/dist/cjs/jsx/index.js +86 -135
  138. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +20 -43
  139. package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +117 -168
  140. package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +0 -15
  141. package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +14 -39
  142. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +34 -68
  143. package/node_modules/hono/dist/cjs/jsx/streaming.js +123 -167
  144. package/node_modules/hono/dist/cjs/jsx/types.js +0 -15
  145. package/node_modules/hono/dist/cjs/jsx/utils.js +91 -175
  146. package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +98 -86
  147. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +92 -109
  148. package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +66 -72
  149. package/node_modules/hono/dist/cjs/middleware/cache/index.js +153 -199
  150. package/node_modules/hono/dist/cjs/middleware/combine/index.js +135 -95
  151. package/node_modules/hono/dist/cjs/middleware/compress/index.js +73 -88
  152. package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +49 -41
  153. package/node_modules/hono/dist/cjs/middleware/cors/index.js +107 -107
  154. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +101 -72
  155. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +58 -97
  156. package/node_modules/hono/dist/cjs/middleware/etag/index.js +71 -91
  157. package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +161 -169
  158. package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +99 -77
  159. package/node_modules/hono/dist/cjs/middleware/jwk/index.js +3 -27
  160. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +118 -135
  161. package/node_modules/hono/dist/cjs/middleware/jwt/index.js +9 -38
  162. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +120 -141
  163. package/node_modules/hono/dist/cjs/middleware/language/index.js +7 -35
  164. package/node_modules/hono/dist/cjs/middleware/language/language.js +184 -179
  165. package/node_modules/hono/dist/cjs/middleware/logger/index.js +41 -62
  166. package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +82 -88
  167. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +101 -102
  168. package/node_modules/hono/dist/cjs/middleware/mount/index.js +71 -0
  169. package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +23 -30
  170. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +38 -36
  171. package/node_modules/hono/dist/cjs/middleware/request-id/index.js +3 -27
  172. package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +34 -42
  173. package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +4 -29
  174. package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +0 -15
  175. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +142 -174
  176. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +56 -93
  177. package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +15 -38
  178. package/node_modules/hono/dist/cjs/middleware/timeout/index.js +40 -45
  179. package/node_modules/hono/dist/cjs/middleware/timing/index.js +7 -35
  180. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +177 -118
  181. package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +85 -58
  182. package/node_modules/hono/dist/cjs/preset/quick.js +18 -37
  183. package/node_modules/hono/dist/cjs/preset/tiny.js +15 -33
  184. package/node_modules/hono/dist/cjs/request/constants.js +5 -27
  185. package/node_modules/hono/dist/cjs/request.js +334 -343
  186. package/node_modules/hono/dist/cjs/router/linear-router/index.js +3 -27
  187. package/node_modules/hono/dist/cjs/router/linear-router/router.js +95 -143
  188. package/node_modules/hono/dist/cjs/router/pattern-router/index.js +3 -27
  189. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +41 -63
  190. package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +7 -34
  191. package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +18 -45
  192. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +91 -135
  193. package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +92 -161
  194. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +98 -147
  195. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +73 -89
  196. package/node_modules/hono/dist/cjs/router/smart-router/index.js +3 -27
  197. package/node_modules/hono/dist/cjs/router/smart-router/router.js +49 -79
  198. package/node_modules/hono/dist/cjs/router/trie-router/index.js +3 -27
  199. package/node_modules/hono/dist/cjs/router/trie-router/node.js +134 -186
  200. package/node_modules/hono/dist/cjs/router/trie-router/router.js +15 -39
  201. package/node_modules/hono/dist/cjs/router/utils.js +5 -27
  202. package/node_modules/hono/dist/cjs/router.js +37 -37
  203. package/node_modules/hono/dist/cjs/types.js +5 -28
  204. package/node_modules/hono/dist/cjs/utils/accept.js +177 -228
  205. package/node_modules/hono/dist/cjs/utils/basic-auth.js +16 -40
  206. package/node_modules/hono/dist/cjs/utils/body.js +84 -110
  207. package/node_modules/hono/dist/cjs/utils/buffer.js +43 -91
  208. package/node_modules/hono/dist/cjs/utils/color.js +35 -44
  209. package/node_modules/hono/dist/cjs/utils/compress.js +11 -26
  210. package/node_modules/hono/dist/cjs/utils/concurrent.js +29 -59
  211. package/node_modules/hono/dist/cjs/utils/constants.js +7 -26
  212. package/node_modules/hono/dist/cjs/utils/cookie.js +107 -177
  213. package/node_modules/hono/dist/cjs/utils/crypto.js +30 -61
  214. package/node_modules/hono/dist/cjs/utils/encode.js +31 -48
  215. package/node_modules/hono/dist/cjs/utils/filepath.js +23 -54
  216. package/node_modules/hono/dist/cjs/utils/handler.js +11 -33
  217. package/node_modules/hono/dist/cjs/utils/headers.js +0 -15
  218. package/node_modules/hono/dist/cjs/utils/html.js +96 -137
  219. package/node_modules/hono/dist/cjs/utils/http-status.js +0 -15
  220. package/node_modules/hono/dist/cjs/utils/ipaddr.js +213 -286
  221. package/node_modules/hono/dist/cjs/utils/jwt/index.js +14 -27
  222. package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +25 -42
  223. package/node_modules/hono/dist/cjs/utils/jwt/jws.js +119 -199
  224. package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +122 -205
  225. package/node_modules/hono/dist/cjs/utils/jwt/types.js +122 -159
  226. package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +9 -28
  227. package/node_modules/hono/dist/cjs/utils/mime.js +75 -101
  228. package/node_modules/hono/dist/cjs/utils/stream.js +88 -111
  229. package/node_modules/hono/dist/cjs/utils/types.js +0 -15
  230. package/node_modules/hono/dist/cjs/utils/url.js +185 -234
  231. package/node_modules/hono/dist/cjs/validator/index.js +3 -27
  232. package/node_modules/hono/dist/cjs/validator/utils.js +0 -15
  233. package/node_modules/hono/dist/cjs/validator/validator.js +60 -103
  234. package/node_modules/hono/dist/client/client.js +138 -197
  235. package/node_modules/hono/dist/client/fetch-result-please.js +59 -56
  236. package/node_modules/hono/dist/client/index.js +3 -7
  237. package/node_modules/hono/dist/client/types.js +1 -0
  238. package/node_modules/hono/dist/client/utils.js +51 -68
  239. package/node_modules/hono/dist/compose.js +49 -45
  240. package/node_modules/hono/dist/context.js +376 -426
  241. package/node_modules/hono/dist/helper/accepts/accepts.js +47 -49
  242. package/node_modules/hono/dist/helper/accepts/index.js +1 -4
  243. package/node_modules/hono/dist/helper/adapter/index.js +33 -52
  244. package/node_modules/hono/dist/helper/conninfo/index.js +1 -0
  245. package/node_modules/hono/dist/helper/conninfo/types.js +1 -0
  246. package/node_modules/hono/dist/helper/cookie/index.js +74 -94
  247. package/node_modules/hono/dist/helper/css/common.js +167 -225
  248. package/node_modules/hono/dist/helper/css/index.js +132 -137
  249. package/node_modules/hono/dist/helper/dev/index.js +44 -49
  250. package/node_modules/hono/dist/helper/factory/index.js +27 -27
  251. package/node_modules/hono/dist/helper/html/index.js +30 -39
  252. package/node_modules/hono/dist/helper/proxy/index.js +116 -88
  253. package/node_modules/hono/dist/helper/route/index.js +121 -43
  254. package/node_modules/hono/dist/helper/ssg/index.js +3 -18
  255. package/node_modules/hono/dist/helper/ssg/middleware.js +53 -40
  256. package/node_modules/hono/dist/helper/ssg/plugins.js +55 -36
  257. package/node_modules/hono/dist/helper/ssg/ssg.js +198 -283
  258. package/node_modules/hono/dist/helper/ssg/utils.js +53 -75
  259. package/node_modules/hono/dist/helper/streaming/index.js +2 -8
  260. package/node_modules/hono/dist/helper/streaming/sse.js +50 -61
  261. package/node_modules/hono/dist/helper/streaming/stream.js +22 -31
  262. package/node_modules/hono/dist/helper/streaming/text.js +9 -10
  263. package/node_modules/hono/dist/helper/streaming/utils.js +9 -12
  264. package/node_modules/hono/dist/helper/testing/index.js +16 -10
  265. package/node_modules/hono/dist/helper/websocket/index.js +49 -53
  266. package/node_modules/hono/dist/hono-base.js +344 -378
  267. package/node_modules/hono/dist/hono.js +27 -20
  268. package/node_modules/hono/dist/http-exception.js +53 -33
  269. package/node_modules/hono/dist/index.js +19 -6
  270. package/node_modules/hono/dist/jsx/base.js +233 -328
  271. package/node_modules/hono/dist/jsx/children.js +16 -20
  272. package/node_modules/hono/dist/jsx/components.js +118 -171
  273. package/node_modules/hono/dist/jsx/constants.js +9 -15
  274. package/node_modules/hono/dist/jsx/context.js +153 -150
  275. package/node_modules/hono/dist/jsx/dom/client.js +45 -48
  276. package/node_modules/hono/dist/jsx/dom/components.js +21 -29
  277. package/node_modules/hono/dist/jsx/dom/context.js +37 -44
  278. package/node_modules/hono/dist/jsx/dom/css.js +142 -147
  279. package/node_modules/hono/dist/jsx/dom/hooks/index.js +52 -40
  280. package/node_modules/hono/dist/jsx/dom/index.js +71 -134
  281. package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +275 -359
  282. package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +14 -18
  283. package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +2 -8
  284. package/node_modules/hono/dist/jsx/dom/render.js +492 -595
  285. package/node_modules/hono/dist/jsx/dom/server.js +33 -29
  286. package/node_modules/hono/dist/jsx/dom/utils.js +6 -8
  287. package/node_modules/hono/dist/jsx/hooks/index.js +236 -308
  288. package/node_modules/hono/dist/jsx/index.js +45 -98
  289. package/node_modules/hono/dist/jsx/intrinsic-element/common.js +20 -22
  290. package/node_modules/hono/dist/jsx/intrinsic-element/components.js +113 -154
  291. package/node_modules/hono/dist/jsx/intrinsic-elements.js +1 -0
  292. package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +12 -16
  293. package/node_modules/hono/dist/jsx/jsx-runtime.js +29 -42
  294. package/node_modules/hono/dist/jsx/streaming.js +120 -143
  295. package/node_modules/hono/dist/jsx/types.js +1 -0
  296. package/node_modules/hono/dist/jsx/utils.js +105 -168
  297. package/node_modules/hono/dist/middleware/basic-auth/index.js +96 -63
  298. package/node_modules/hono/dist/middleware/bearer-auth/index.js +93 -89
  299. package/node_modules/hono/dist/middleware/body-limit/index.js +66 -51
  300. package/node_modules/hono/dist/middleware/cache/index.js +165 -190
  301. package/node_modules/hono/dist/middleware/combine/index.js +134 -73
  302. package/node_modules/hono/dist/middleware/compress/index.js +75 -69
  303. package/node_modules/hono/dist/middleware/context-storage/index.js +49 -19
  304. package/node_modules/hono/dist/middleware/cors/index.js +107 -86
  305. package/node_modules/hono/dist/middleware/csrf/index.js +103 -53
  306. package/node_modules/hono/dist/middleware/etag/digest.js +59 -77
  307. package/node_modules/hono/dist/middleware/etag/index.js +71 -70
  308. package/node_modules/hono/dist/middleware/ip-restriction/index.js +163 -158
  309. package/node_modules/hono/dist/middleware/jsx-renderer/index.js +97 -54
  310. package/node_modules/hono/dist/middleware/jwk/index.js +1 -4
  311. package/node_modules/hono/dist/middleware/jwk/jwk.js +116 -112
  312. package/node_modules/hono/dist/middleware/jwt/index.js +2 -10
  313. package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -114
  314. package/node_modules/hono/dist/middleware/language/index.js +2 -15
  315. package/node_modules/hono/dist/middleware/language/language.js +180 -154
  316. package/node_modules/hono/dist/middleware/logger/index.js +43 -37
  317. package/node_modules/hono/dist/middleware/method-not-allowed/index.js +81 -66
  318. package/node_modules/hono/dist/middleware/method-override/index.js +101 -81
  319. package/node_modules/hono/dist/middleware/mount/index.js +70 -0
  320. package/node_modules/hono/dist/middleware/powered-by/index.js +23 -9
  321. package/node_modules/hono/dist/middleware/pretty-json/index.js +39 -16
  322. package/node_modules/hono/dist/middleware/request-id/index.js +1 -4
  323. package/node_modules/hono/dist/middleware/request-id/request-id.js +33 -20
  324. package/node_modules/hono/dist/middleware/secure-headers/index.js +1 -5
  325. package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +1 -0
  326. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +144 -155
  327. package/node_modules/hono/dist/middleware/serve-static/index.js +56 -72
  328. package/node_modules/hono/dist/middleware/serve-static/path.js +15 -17
  329. package/node_modules/hono/dist/middleware/timeout/index.js +40 -23
  330. package/node_modules/hono/dist/middleware/timing/index.js +2 -9
  331. package/node_modules/hono/dist/middleware/timing/timing.js +177 -97
  332. package/node_modules/hono/dist/middleware/trailing-slash/index.js +85 -37
  333. package/node_modules/hono/dist/preset/quick.js +17 -15
  334. package/node_modules/hono/dist/preset/tiny.js +14 -11
  335. package/node_modules/hono/dist/request/constants.js +4 -5
  336. package/node_modules/hono/dist/request.js +328 -316
  337. package/node_modules/hono/dist/router/linear-router/index.js +1 -4
  338. package/node_modules/hono/dist/router/linear-router/router.js +93 -120
  339. package/node_modules/hono/dist/router/pattern-router/index.js +1 -4
  340. package/node_modules/hono/dist/router/pattern-router/router.js +39 -40
  341. package/node_modules/hono/dist/router/reg-exp-router/index.js +1 -7
  342. package/node_modules/hono/dist/router/reg-exp-router/matcher.js +17 -23
  343. package/node_modules/hono/dist/router/reg-exp-router/node.js +87 -110
  344. package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +89 -137
  345. package/node_modules/hono/dist/router/reg-exp-router/router.js +92 -129
  346. package/node_modules/hono/dist/router/reg-exp-router/trie.js +69 -64
  347. package/node_modules/hono/dist/router/smart-router/index.js +1 -4
  348. package/node_modules/hono/dist/router/smart-router/router.js +46 -55
  349. package/node_modules/hono/dist/router/trie-router/index.js +1 -4
  350. package/node_modules/hono/dist/router/trie-router/node.js +131 -162
  351. package/node_modules/hono/dist/router/trie-router/router.js +11 -14
  352. package/node_modules/hono/dist/router/utils.js +4 -5
  353. package/node_modules/hono/dist/router.js +35 -14
  354. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +4 -1
  355. package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +150 -104
  356. package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +4 -8
  357. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +152 -122
  358. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +4 -1
  359. package/node_modules/hono/dist/types/adapter/bun/index.d.ts +6 -10
  360. package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +7 -2
  361. package/node_modules/hono/dist/types/adapter/bun/server.d.ts +4 -5
  362. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +5 -1
  363. package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +31 -16
  364. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +4 -1
  365. package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +29 -17
  366. package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +3 -7
  367. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +6 -1
  368. package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +4 -7
  369. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +5 -2
  370. package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +10 -5
  371. package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +10 -2
  372. package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +6 -1
  373. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +4 -1
  374. package/node_modules/hono/dist/types/adapter/deno/deno.d.ts +1 -0
  375. package/node_modules/hono/dist/types/adapter/deno/index.d.ts +5 -8
  376. package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +7 -2
  377. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +5 -1
  378. package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +6 -1
  379. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +6 -1
  380. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +83 -57
  381. package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +3 -7
  382. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +4 -1
  383. package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +6 -1
  384. package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +3 -5
  385. package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +3 -2
  386. package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +9 -7
  387. package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +7 -9
  388. package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -7
  389. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +6 -1
  390. package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +6 -1
  391. package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +3 -6
  392. package/node_modules/hono/dist/types/client/client.d.ts +5 -3
  393. package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +21 -19
  394. package/node_modules/hono/dist/types/client/index.d.ts +5 -7
  395. package/node_modules/hono/dist/types/client/types.d.ts +134 -159
  396. package/node_modules/hono/dist/types/client/utils.d.ts +6 -4
  397. package/node_modules/hono/dist/types/compose.d.ts +4 -2
  398. package/node_modules/hono/dist/types/context.d.ts +335 -335
  399. package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +11 -9
  400. package/node_modules/hono/dist/types/helper/accepts/index.d.ts +2 -5
  401. package/node_modules/hono/dist/types/helper/adapter/index.d.ts +4 -6
  402. package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +2 -5
  403. package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +25 -23
  404. package/node_modules/hono/dist/types/helper/cookie/index.d.ts +10 -12
  405. package/node_modules/hono/dist/types/helper/css/common.d.ts +11 -9
  406. package/node_modules/hono/dist/types/helper/css/index.d.ts +26 -28
  407. package/node_modules/hono/dist/types/helper/dev/index.d.ts +10 -12
  408. package/node_modules/hono/dist/types/helper/factory/index.d.ts +26 -73
  409. package/node_modules/hono/dist/types/helper/html/index.d.ts +4 -7
  410. package/node_modules/hono/dist/types/helper/proxy/index.d.ts +20 -22
  411. package/node_modules/hono/dist/types/helper/route/index.d.ts +6 -4
  412. package/node_modules/hono/dist/types/helper/ssg/index.d.ts +4 -7
  413. package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +8 -6
  414. package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +3 -1
  415. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +38 -36
  416. package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +5 -3
  417. package/node_modules/hono/dist/types/helper/streaming/index.d.ts +4 -8
  418. package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +10 -8
  419. package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +4 -2
  420. package/node_modules/hono/dist/types/helper/streaming/text.d.ts +4 -2
  421. package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +2 -0
  422. package/node_modules/hono/dist/types/helper/testing/index.d.ts +7 -9
  423. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +30 -33
  424. package/node_modules/hono/dist/types/hono-base.d.ts +210 -210
  425. package/node_modules/hono/dist/types/hono.d.ts +11 -10
  426. package/node_modules/hono/dist/types/http-exception.d.ts +20 -22
  427. package/node_modules/hono/dist/types/index.d.ts +6 -37
  428. package/node_modules/hono/dist/types/jsx/base.d.ts +40 -35
  429. package/node_modules/hono/dist/types/jsx/children.d.ts +8 -6
  430. package/node_modules/hono/dist/types/jsx/components.d.ts +8 -5
  431. package/node_modules/hono/dist/types/jsx/constants.d.ts +2 -0
  432. package/node_modules/hono/dist/types/jsx/context.d.ts +9 -6
  433. package/node_modules/hono/dist/types/jsx/dom/client.d.ts +9 -10
  434. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +9 -6
  435. package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -1
  436. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +27 -30
  437. package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +11 -12
  438. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +79 -83
  439. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +9 -5
  440. package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +4 -6
  441. package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +3 -7
  442. package/node_modules/hono/dist/types/jsx/dom/render.d.ts +32 -50
  443. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +87 -85
  444. package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +2 -0
  445. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +16 -16
  446. package/node_modules/hono/dist/types/jsx/index.d.ts +71 -73
  447. package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +3 -1
  448. package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +7 -4
  449. package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +708 -708
  450. package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +4 -7
  451. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +7 -10
  452. package/node_modules/hono/dist/types/jsx/streaming.d.ts +9 -10
  453. package/node_modules/hono/dist/types/jsx/types.d.ts +12 -13
  454. package/node_modules/hono/dist/types/jsx/utils.d.ts +2 -0
  455. package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +17 -19
  456. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +46 -48
  457. package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +6 -8
  458. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +13 -15
  459. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +7 -7
  460. package/node_modules/hono/dist/types/middleware/compress/index.d.ts +9 -10
  461. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +4 -6
  462. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +10 -12
  463. package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +6 -8
  464. package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +2 -0
  465. package/node_modules/hono/dist/types/middleware/etag/index.d.ts +6 -8
  466. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +11 -12
  467. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +11 -11
  468. package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +2 -1
  469. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +20 -23
  470. package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +7 -6
  471. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +28 -30
  472. package/node_modules/hono/dist/types/middleware/language/index.d.ts +6 -5
  473. package/node_modules/hono/dist/types/middleware/language/language.d.ts +42 -44
  474. package/node_modules/hono/dist/types/middleware/logger/index.d.ts +3 -5
  475. package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +7 -9
  476. package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +14 -16
  477. package/node_modules/hono/dist/types/middleware/mount/index.d.ts +46 -0
  478. package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +8 -10
  479. package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +18 -20
  480. package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +6 -5
  481. package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +9 -11
  482. package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +6 -6
  483. package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +2 -0
  484. package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +55 -57
  485. package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +24 -24
  486. package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +2 -0
  487. package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +5 -7
  488. package/node_modules/hono/dist/types/middleware/timing/index.d.ts +6 -5
  489. package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +17 -20
  490. package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +35 -37
  491. package/node_modules/hono/dist/types/preset/quick.d.ts +6 -9
  492. package/node_modules/hono/dist/types/preset/tiny.d.ts +6 -9
  493. package/node_modules/hono/dist/types/request/constants.d.ts +2 -0
  494. package/node_modules/hono/dist/types/request.d.ts +288 -286
  495. package/node_modules/hono/dist/types/router/linear-router/index.d.ts +2 -5
  496. package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -5
  497. package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +2 -5
  498. package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -5
  499. package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +3 -6
  500. package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +3 -1
  501. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +6 -4
  502. package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +11 -10
  503. package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +10 -9
  504. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -5
  505. package/node_modules/hono/dist/types/router/smart-router/index.d.ts +2 -5
  506. package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -9
  507. package/node_modules/hono/dist/types/router/trie-router/index.d.ts +2 -5
  508. package/node_modules/hono/dist/types/router/trie-router/node.d.ts +6 -4
  509. package/node_modules/hono/dist/types/router/trie-router/router.d.ts +7 -5
  510. package/node_modules/hono/dist/types/router/utils.d.ts +2 -0
  511. package/node_modules/hono/dist/types/router.d.ts +23 -22
  512. package/node_modules/hono/dist/types/types.d.ts +146 -505
  513. package/node_modules/hono/dist/types/utils/accept.d.ts +5 -3
  514. package/node_modules/hono/dist/types/utils/basic-auth.d.ts +4 -2
  515. package/node_modules/hono/dist/types/utils/body.d.ts +46 -50
  516. package/node_modules/hono/dist/types/utils/buffer.d.ts +7 -5
  517. package/node_modules/hono/dist/types/utils/color.d.ts +2 -0
  518. package/node_modules/hono/dist/types/utils/compress.d.ts +2 -0
  519. package/node_modules/hono/dist/types/utils/concurrent.d.ts +6 -4
  520. package/node_modules/hono/dist/types/utils/constants.d.ts +2 -0
  521. package/node_modules/hono/dist/types/utils/cookie.d.ts +20 -18
  522. package/node_modules/hono/dist/types/utils/crypto.d.ts +5 -7
  523. package/node_modules/hono/dist/types/utils/encode.d.ts +2 -0
  524. package/node_modules/hono/dist/types/utils/filepath.d.ts +5 -3
  525. package/node_modules/hono/dist/types/utils/handler.d.ts +2 -0
  526. package/node_modules/hono/dist/types/utils/headers.d.ts +2 -0
  527. package/node_modules/hono/dist/types/utils/html.d.ts +11 -9
  528. package/node_modules/hono/dist/types/utils/http-status.d.ts +2 -0
  529. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +4 -6
  530. package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -12
  531. package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +15 -13
  532. package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +4 -7
  533. package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +26 -29
  534. package/node_modules/hono/dist/types/utils/jwt/types.d.ts +48 -45
  535. package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +2 -0
  536. package/node_modules/hono/dist/types/utils/mime.d.ts +60 -57
  537. package/node_modules/hono/dist/types/utils/stream.d.ts +27 -25
  538. package/node_modules/hono/dist/types/utils/types.d.ts +15 -27
  539. package/node_modules/hono/dist/types/utils/url.d.ts +2 -0
  540. package/node_modules/hono/dist/types/validator/index.d.ts +3 -7
  541. package/node_modules/hono/dist/types/validator/utils.d.ts +6 -8
  542. package/node_modules/hono/dist/types/validator/validator.d.ts +11 -9
  543. package/node_modules/hono/dist/types.js +4 -6
  544. package/node_modules/hono/dist/utils/accept.js +185 -215
  545. package/node_modules/hono/dist/utils/basic-auth.js +18 -21
  546. package/node_modules/hono/dist/utils/body.js +87 -92
  547. package/node_modules/hono/dist/utils/buffer.js +44 -71
  548. package/node_modules/hono/dist/utils/color.js +33 -21
  549. package/node_modules/hono/dist/utils/compress.js +11 -5
  550. package/node_modules/hono/dist/utils/concurrent.js +29 -38
  551. package/node_modules/hono/dist/utils/constants.js +7 -5
  552. package/node_modules/hono/dist/utils/cookie.js +114 -163
  553. package/node_modules/hono/dist/utils/crypto.js +30 -40
  554. package/node_modules/hono/dist/utils/encode.js +30 -26
  555. package/node_modules/hono/dist/utils/filepath.js +23 -33
  556. package/node_modules/hono/dist/utils/handler.js +10 -11
  557. package/node_modules/hono/dist/utils/headers.js +1 -0
  558. package/node_modules/hono/dist/utils/html.js +97 -117
  559. package/node_modules/hono/dist/utils/http-status.js +1 -0
  560. package/node_modules/hono/dist/utils/ipaddr.js +227 -279
  561. package/node_modules/hono/dist/utils/jwt/index.js +12 -4
  562. package/node_modules/hono/dist/utils/jwt/jwa.js +24 -20
  563. package/node_modules/hono/dist/utils/jwt/jws.js +115 -174
  564. package/node_modules/hono/dist/utils/jwt/jwt.js +120 -197
  565. package/node_modules/hono/dist/utils/jwt/types.js +79 -95
  566. package/node_modules/hono/dist/utils/jwt/utf8.js +9 -7
  567. package/node_modules/hono/dist/utils/mime.js +74 -79
  568. package/node_modules/hono/dist/utils/stream.js +86 -88
  569. package/node_modules/hono/dist/utils/types.js +1 -0
  570. package/node_modules/hono/dist/utils/url.js +187 -215
  571. package/node_modules/hono/dist/validator/index.js +1 -4
  572. package/node_modules/hono/dist/validator/utils.js +1 -0
  573. package/node_modules/hono/dist/validator/validator.js +61 -83
  574. package/node_modules/hono/package.json +36 -28
  575. package/node_modules/ip-address/README.md +114 -114
  576. package/node_modules/ip-address/dist/common.d.ts +5 -0
  577. package/node_modules/ip-address/dist/common.js +12 -0
  578. package/node_modules/ip-address/dist/common.js.map +1 -1
  579. package/node_modules/ip-address/dist/ipv4.d.ts +10 -3
  580. package/node_modules/ip-address/dist/ipv4.js +27 -5
  581. package/node_modules/ip-address/dist/ipv4.js.map +1 -1
  582. package/node_modules/ip-address/dist/ipv6.d.ts +5 -1
  583. package/node_modules/ip-address/dist/ipv6.js +18 -3
  584. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  585. package/node_modules/ip-address/package.json +1 -1
  586. package/node_modules/proxy-addr/HISTORY.md +60 -54
  587. package/node_modules/proxy-addr/README.md +1 -1
  588. package/node_modules/proxy-addr/index.js +32 -0
  589. package/node_modules/proxy-addr/package.json +8 -4
  590. package/package.json +1 -1
package/lib/config.mjs CHANGED
@@ -2,7 +2,7 @@ import { homedir } from "node:os";
2
2
  import path from "node:path";
3
3
 
4
4
  // 프록시 버전 — 서버가 X-AImakeAll-MCP-Version 으로 하한을 강제(426)할 수 있다.
5
- export const MCP_PROXY_VERSION = "0.14.5";
5
+ export const MCP_PROXY_VERSION = "0.14.6";
6
6
 
7
7
  export const DEFAULT_API_BASE = "https://aimakeall.com";
8
8
  export const DEFAULT_COMPANION_URL = "http://127.0.0.1:9876";
@@ -526,13 +526,17 @@ function parseWithStatus (uri, opts) {
526
526
  malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP)
527
527
  }
528
528
 
529
- if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {
530
- if (uri.indexOf('%') !== -1) {
531
- if (parsed.host !== undefined && !malformedIPLiteral) {
532
- const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true)
533
- parsed.host = reescapeHostDelimiters(host, isIP)
534
- }
529
+ if (uri.indexOf('%') !== -1 && parsed.host !== undefined && !malformedIPLiteral) {
530
+ let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true)
531
+ if (!isIP) {
532
+ // Fold reg-name case after decoding unreserved octets. The second
533
+ // pass only restores uppercase hex in escapes that remain encoded.
534
+ host = normalizePercentEncoding(host.toLowerCase())
535
535
  }
536
+ parsed.host = reescapeHostDelimiters(host, isIP)
537
+ }
538
+
539
+ if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {
536
540
  if (parsed.path) {
537
541
  parsed.path = normalizePathEncoding(parsed.path)
538
542
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fast-uri",
3
3
  "description": "Dependency-free RFC 3986 URI toolbox",
4
- "version": "3.1.7",
4
+ "version": "3.1.8",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
7
7
  "types": "types/index.d.ts",
@@ -126,6 +126,44 @@ test('hostname normalization decodes only current unreserved escapes', (t) => {
126
126
  t.end()
127
127
  })
128
128
 
129
+ test('scheme-relative hostname normalization folds decoded ASCII case', (t) => {
130
+ const encodedHost = '//%41.com'
131
+ const normalizedHost = fastURI.normalize(encodedHost)
132
+ const encodedMetadata = '//%4Detadata.internal/private'
133
+ const literalMetadata = '//metadata.internal/private'
134
+
135
+ t.equal(fastURI.parse(encodedHost).host, 'a.com', 'parse folds an encoded uppercase host letter')
136
+ t.equal(normalizedHost, '//a.com', 'normalize emits a lowercase host')
137
+ t.equal(fastURI.normalize(normalizedHost), normalizedHost, 'host normalization is idempotent')
138
+ t.equal(fastURI.equal(encodedHost, '//a.com'), true, 'encoded and literal host spellings compare equal')
139
+ t.equal(fastURI.equal(encodedMetadata, literalMetadata), true, 'encoded metadata host compares equal')
140
+ t.equal(
141
+ fastURI.resolve('x://trusted.example/', encodedMetadata),
142
+ fastURI.resolve('x://trusted.example/', literalMetadata),
143
+ 'encoded and literal metadata hosts resolve identically'
144
+ )
145
+ t.equal(
146
+ fastURI.normalize('//example.com%2fpath'),
147
+ '//example.com%2Fpath',
148
+ 'reserved host escapes remain encoded with uppercase hex'
149
+ )
150
+ t.equal(fastURI.normalize('//%2541.com'), '//%2541.com', 'nested host escapes are not decoded twice')
151
+ t.equal(fastURI.equal('//User@%41.com/path', '//user@a.com/path'), false, 'userinfo remains case-sensitive')
152
+ t.equal(fastURI.equal('//%41.com/Path', '//a.com/path'), false, 'path remains case-sensitive')
153
+ t.equal(fastURI.equal('//%41.com/?Token=Value', '//a.com/?token=value'), false, 'query remains case-sensitive')
154
+ t.end()
155
+ })
156
+
157
+ test('host normalization applies to schemes that skip path normalization', (t) => {
158
+ const encodedHost = 'mailto://%41.com'
159
+ const literalHost = 'mailto://a.com'
160
+
161
+ t.equal(fastURI.parse(encodedHost).host, fastURI.parse(literalHost).host, 'parse results have consistent hosts')
162
+ t.equal(fastURI.normalize(encodedHost), fastURI.normalize(literalHost), 'normalize results are consistent')
163
+ t.equal(fastURI.equal(encodedHost, literalHost), true, 'encoded and literal hosts compare equal')
164
+ t.end()
165
+ })
166
+
129
167
  test('host conversion failures are not treated as comparable URLs', (t) => {
130
168
  const malformedHost = 'http://trusted.test%2540evil.test/'
131
169
 
@@ -64,7 +64,7 @@ Contributions Welcome! You can contribute in the following ways.
64
64
 
65
65
  - Create an Issue - Propose a new feature. Report a bug.
66
66
  - Pull Request - Fix a bug or typo. Refactor the code.
67
- - Create third-party middleware - See instructions below.
67
+ - Create third-party middleware - See [Third-party middleware](docs/CONTRIBUTING.md#third-party-middleware).
68
68
  - Share - Share your thoughts on the Blog, X, and others.
69
69
  - Make your application - Please try to use Hono.
70
70
 
@@ -0,0 +1,13 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true
8
+ });
9
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
+ return target;
11
+ };
12
+ //#endregion
13
+ export { __exportAll };
@@ -1,24 +1,43 @@
1
- // src/adapter/aws-lambda/conninfo.ts
2
- var getConnInfo = (c) => {
3
- const requestContext = c.env.requestContext;
4
- let address;
5
- if ("identity" in requestContext && requestContext.identity?.sourceIp) {
6
- address = requestContext.identity.sourceIp;
7
- } else if ("http" in requestContext && requestContext.http?.sourceIp) {
8
- address = requestContext.http.sourceIp;
9
- } else {
10
- const xff = c.req.header("x-forwarded-for");
11
- if (xff) {
12
- const ips = xff.split(",");
13
- address = ips[ips.length - 1].trim();
14
- }
15
- }
16
- return {
17
- remote: {
18
- address
19
- }
20
- };
21
- };
22
- export {
23
- getConnInfo
1
+ //#region src/adapter/aws-lambda/conninfo.ts
2
+ /**
3
+ * Get connection information from AWS Lambda
4
+ *
5
+ * Extracts client IP from various Lambda event sources:
6
+ * - API Gateway v1 (REST API): requestContext.identity.sourceIp
7
+ * - API Gateway v2 (HTTP API/Function URLs): requestContext.http.sourceIp
8
+ * - ALB: Falls back to x-forwarded-for header
9
+ *
10
+ * @param c - Context
11
+ * @returns Connection information including remote address
12
+ * @example
13
+ * ```ts
14
+ * import { Hono } from 'hono'
15
+ * import { handle, getConnInfo } from 'hono/aws-lambda'
16
+ *
17
+ * const app = new Hono()
18
+ *
19
+ * app.get('/', (c) => {
20
+ * const info = getConnInfo(c)
21
+ * return c.text(`Your IP: ${info.remote.address}`)
22
+ * })
23
+ *
24
+ * export const handler = handle(app)
25
+ * ```
26
+ * @deprecated `hono/aws-lambda` will be removed in v5. Install `@hono/aws-lambda` and import from there instead.
27
+ */
28
+ const getConnInfo = (c) => {
29
+ const requestContext = c.env.requestContext;
30
+ let address;
31
+ if ("identity" in requestContext && requestContext.identity?.sourceIp) address = requestContext.identity.sourceIp;
32
+ else if ("http" in requestContext && requestContext.http?.sourceIp) address = requestContext.http.sourceIp;
33
+ else {
34
+ const xff = c.req.header("x-forwarded-for");
35
+ if (xff) {
36
+ const ips = xff.split(",");
37
+ address = ips[ips.length - 1].trim();
38
+ }
39
+ }
40
+ return { remote: { address } };
24
41
  };
42
+ //#endregion
43
+ export { getConnInfo };