@suveren/gateway 0.39.0 → 0.40.0

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 (751) hide show
  1. package/dist/mcp-server/http.mjs +1 -1
  2. package/dist/ui/assets/index-C-lA_7Lt.js +123 -0
  3. package/dist/ui/assets/index-DM9WXky8.css +1 -0
  4. package/dist/ui/index.html +2 -2
  5. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
  6. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
  7. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
  8. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
  9. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
  10. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
  11. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
  12. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  13. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
  14. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
  15. package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
  16. package/node_modules/follow-redirects/README.md +27 -1
  17. package/node_modules/follow-redirects/index.js +1 -5
  18. package/node_modules/follow-redirects/package.json +1 -1
  19. package/node_modules/hono/README.md +2 -3
  20. package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
  21. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  22. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  23. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  24. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
  25. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  26. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  27. package/node_modules/hono/dist/cjs/utils/url.js +11 -6
  28. package/node_modules/hono/dist/helper/css/common.js +8 -3
  29. package/node_modules/hono/dist/helper/css/index.js +1 -1
  30. package/node_modules/hono/dist/helper/route/index.js +3 -1
  31. package/node_modules/hono/dist/jsx/base.js +1 -1
  32. package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
  33. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  34. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  35. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  36. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  37. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  38. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  39. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  40. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  41. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  42. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  43. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  44. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  45. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  46. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  47. package/node_modules/hono/dist/types/index.d.ts +1 -1
  48. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  49. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  50. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  51. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  52. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  53. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  54. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  55. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  56. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  57. package/node_modules/hono/dist/utils/url.js +11 -6
  58. package/node_modules/hono/package.json +1 -1
  59. package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +2 -2
  60. package/node_modules/http-proxy-middleware/package.json +1 -1
  61. package/node_modules/ip-address/dist/common.js +2 -2
  62. package/node_modules/ip-address/dist/common.js.map +1 -1
  63. package/node_modules/ip-address/package.json +2 -2
  64. package/node_modules/postcss/lib/input.js +1 -1
  65. package/node_modules/postcss/lib/lazy-result.js +1 -1
  66. package/node_modules/postcss/lib/no-work-result.js +1 -1
  67. package/node_modules/postcss/lib/node.js +2 -2
  68. package/node_modules/postcss/lib/processor.js +1 -1
  69. package/node_modules/postcss/lib/warning.js +1 -0
  70. package/node_modules/postcss/package.json +1 -1
  71. package/node_modules/zod/README.md +34 -24
  72. package/node_modules/zod/compile.cjs +96 -0
  73. package/node_modules/zod/compile.d.cts +1 -0
  74. package/node_modules/zod/compile.d.ts +1 -0
  75. package/node_modules/zod/compile.js +52 -0
  76. package/node_modules/zod/index.cjs +22 -3
  77. package/node_modules/zod/index.d.cts +3 -4
  78. package/node_modules/zod/index.d.ts +3 -4
  79. package/node_modules/zod/index.js +7 -4
  80. package/node_modules/zod/locales/index.cjs +36 -0
  81. package/node_modules/zod/locales/index.d.cts +1 -0
  82. package/node_modules/zod/locales/index.d.ts +1 -0
  83. package/node_modules/zod/locales/index.js +1 -0
  84. package/node_modules/zod/locales/package.json +7 -0
  85. package/node_modules/zod/mini/index.cjs +51 -0
  86. package/node_modules/zod/mini/index.d.cts +3 -0
  87. package/node_modules/zod/mini/index.d.ts +3 -0
  88. package/node_modules/zod/mini/index.js +3 -0
  89. package/node_modules/zod/mini/package.json +7 -0
  90. package/node_modules/zod/package.json +44 -15
  91. package/node_modules/zod/src/compile.ts +56 -0
  92. package/node_modules/zod/src/index.ts +7 -4
  93. package/node_modules/zod/src/locales/index.ts +1 -0
  94. package/node_modules/zod/src/mini/index.ts +3 -0
  95. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  96. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  97. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  98. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  99. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  100. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  101. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  102. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  103. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  104. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  105. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  106. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  107. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  108. package/node_modules/zod/src/v3/types.ts +8 -6
  109. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  110. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  111. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  112. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  113. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  114. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  115. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  116. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  117. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  118. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  119. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  120. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  121. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  122. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  123. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  124. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  125. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  126. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  127. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  128. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  129. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  130. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  131. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  132. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  133. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  134. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  135. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  136. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  137. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  138. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  139. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  140. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  141. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  142. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  143. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  144. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  145. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  146. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  147. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  148. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  149. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  150. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  151. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  152. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  153. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  154. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  155. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  156. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  157. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  158. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  159. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  160. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  161. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  162. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  163. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  164. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  165. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  166. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  167. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  168. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  169. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  170. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  171. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  172. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  173. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  174. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  175. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  176. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  177. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  178. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  179. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  180. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  181. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  182. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  183. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  184. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  185. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  186. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  187. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  188. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  189. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  190. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  191. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  192. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  193. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  194. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  195. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  196. package/node_modules/zod/src/v4/core/api.ts +442 -161
  197. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  198. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  199. package/node_modules/zod/src/v4/core/core.ts +146 -50
  200. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  201. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  202. package/node_modules/zod/src/v4/core/index.ts +5 -1
  203. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  204. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  205. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  206. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  207. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  208. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  209. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  210. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  211. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  212. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  213. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  214. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  215. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  216. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  217. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  218. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  219. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  220. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  221. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  222. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  223. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  224. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  225. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  226. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  227. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  228. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  229. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  230. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  231. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  232. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  233. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  234. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  235. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  236. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  237. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  238. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  239. package/node_modules/zod/src/v4/core/util.ts +675 -157
  240. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  241. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  242. package/node_modules/zod/src/v4/index.ts +3 -3
  243. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  244. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  245. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  246. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  247. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  248. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  249. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  250. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  251. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  252. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  253. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  254. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  255. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  256. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  257. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  258. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  259. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  260. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  261. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  262. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  263. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  264. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  265. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  266. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  267. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  268. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  269. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  270. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  271. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  272. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  273. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  274. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  275. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  276. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  277. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  278. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  279. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  280. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  281. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  282. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  283. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  284. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  285. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  286. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  287. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  288. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  289. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  290. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  291. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  292. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  293. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  294. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  295. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  296. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  297. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  298. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  299. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  300. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  301. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  302. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  303. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  304. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  305. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  306. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  307. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  308. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  309. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  310. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  311. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  312. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  313. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  314. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  315. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  316. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  317. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  318. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  319. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  320. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  321. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  322. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  323. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  324. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  325. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  326. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  327. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  328. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  329. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  330. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  331. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  332. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  333. package/node_modules/zod/v3/ZodError.cjs +42 -13
  334. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  335. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  336. package/node_modules/zod/v3/ZodError.js +23 -13
  337. package/node_modules/zod/v3/errors.cjs +19 -0
  338. package/node_modules/zod/v3/external.cjs +19 -0
  339. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  340. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  341. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  342. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  343. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  344. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  345. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  346. package/node_modules/zod/v3/index.cjs +19 -0
  347. package/node_modules/zod/v3/locales/en.cjs +1 -0
  348. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  349. package/node_modules/zod/v3/package.json +7 -0
  350. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  351. package/node_modules/zod/v3/types.cjs +28 -5
  352. package/node_modules/zod/v3/types.d.cts +4 -1
  353. package/node_modules/zod/v3/types.d.ts +4 -1
  354. package/node_modules/zod/v3/types.js +9 -5
  355. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  356. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  357. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  358. package/node_modules/zod/v4/classic/checks.js +1 -1
  359. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  360. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  361. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  362. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  363. package/node_modules/zod/v4/classic/compat.js +4 -0
  364. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  365. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  366. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  367. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  368. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  369. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  370. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  371. package/node_modules/zod/v4/classic/errors.js +45 -29
  372. package/node_modules/zod/v4/classic/external.cjs +55 -28
  373. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  374. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  375. package/node_modules/zod/v4/classic/external.js +7 -8
  376. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  377. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  378. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  379. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  380. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  381. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  382. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  383. package/node_modules/zod/v4/classic/in-out.js +36 -0
  384. package/node_modules/zod/v4/classic/index.cjs +21 -2
  385. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  386. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  387. package/node_modules/zod/v4/classic/index.js +2 -2
  388. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  389. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  390. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  391. package/node_modules/zod/v4/classic/iso.js +2 -17
  392. package/node_modules/zod/v4/classic/package.json +7 -0
  393. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  394. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  395. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  396. package/node_modules/zod/v4/classic/parse.js +10 -0
  397. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  398. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  399. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  400. package/node_modules/zod/v4/classic/schemas.js +766 -237
  401. package/node_modules/zod/v4/core/api.cjs +284 -54
  402. package/node_modules/zod/v4/core/api.d.cts +133 -82
  403. package/node_modules/zod/v4/core/api.d.ts +133 -82
  404. package/node_modules/zod/v4/core/api.js +255 -54
  405. package/node_modules/zod/v4/core/checks.cjs +100 -130
  406. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  407. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  408. package/node_modules/zod/v4/core/checks.js +80 -129
  409. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  410. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  411. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  412. package/node_modules/zod/v4/core/compile.js +1866 -0
  413. package/node_modules/zod/v4/core/core.cjs +120 -20
  414. package/node_modules/zod/v4/core/core.d.cts +40 -7
  415. package/node_modules/zod/v4/core/core.d.ts +40 -7
  416. package/node_modules/zod/v4/core/core.js +101 -21
  417. package/node_modules/zod/v4/core/doc.cjs +31 -9
  418. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  419. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  420. package/node_modules/zod/v4/core/doc.js +12 -9
  421. package/node_modules/zod/v4/core/errors.cjs +151 -60
  422. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  423. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  424. package/node_modules/zod/v4/core/errors.js +132 -60
  425. package/node_modules/zod/v4/core/index.cjs +28 -2
  426. package/node_modules/zod/v4/core/index.d.cts +5 -1
  427. package/node_modules/zod/v4/core/index.d.ts +5 -1
  428. package/node_modules/zod/v4/core/index.js +5 -1
  429. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  430. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  431. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  432. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  433. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  434. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  435. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  436. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  437. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  438. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  439. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  440. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  441. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  442. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  443. package/node_modules/zod/v4/core/memoizer.js +311 -0
  444. package/node_modules/zod/v4/core/package.json +7 -0
  445. package/node_modules/zod/v4/core/parse.cjs +183 -37
  446. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  447. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  448. package/node_modules/zod/v4/core/parse.js +154 -36
  449. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  450. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  451. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  452. package/node_modules/zod/v4/core/regexes.js +90 -29
  453. package/node_modules/zod/v4/core/registries.cjs +26 -7
  454. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  455. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  456. package/node_modules/zod/v4/core/registries.js +9 -9
  457. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  458. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  459. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  460. package/node_modules/zod/v4/core/schemas.js +1341 -422
  461. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  462. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  463. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  464. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  465. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  466. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  467. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  468. package/node_modules/zod/v4/core/util.cjs +580 -155
  469. package/node_modules/zod/v4/core/util.d.cts +98 -1
  470. package/node_modules/zod/v4/core/util.d.ts +98 -1
  471. package/node_modules/zod/v4/core/util.js +536 -156
  472. package/node_modules/zod/v4/core/versions.cjs +21 -2
  473. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  474. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  475. package/node_modules/zod/v4/core/versions.js +2 -2
  476. package/node_modules/zod/v4/core/visit.cjs +214 -0
  477. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  478. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  479. package/node_modules/zod/v4/core/visit.js +169 -0
  480. package/node_modules/zod/v4/index.cjs +34 -5
  481. package/node_modules/zod/v4/index.d.cts +2 -2
  482. package/node_modules/zod/v4/index.d.ts +2 -2
  483. package/node_modules/zod/v4/index.js +3 -2
  484. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  485. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  486. package/node_modules/zod/v4/locales/ar.js +19 -24
  487. package/node_modules/zod/v4/locales/az.cjs +20 -24
  488. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  489. package/node_modules/zod/v4/locales/az.js +19 -24
  490. package/node_modules/zod/v4/locales/be.cjs +29 -24
  491. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  492. package/node_modules/zod/v4/locales/be.js +28 -24
  493. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  494. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  495. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  496. package/node_modules/zod/v4/locales/bg.js +125 -0
  497. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  498. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  499. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  500. package/node_modules/zod/v4/locales/bn.js +113 -0
  501. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  502. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  503. package/node_modules/zod/v4/locales/ca.js +19 -25
  504. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  505. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  506. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  507. package/node_modules/zod/v4/locales/ckb.js +133 -0
  508. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  509. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  510. package/node_modules/zod/v4/locales/cs.js +23 -42
  511. package/node_modules/zod/v4/locales/da.cjs +147 -0
  512. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  513. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  514. package/node_modules/zod/v4/locales/da.js +120 -0
  515. package/node_modules/zod/v4/locales/de.cjs +22 -24
  516. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  517. package/node_modules/zod/v4/locales/de.js +21 -24
  518. package/node_modules/zod/v4/locales/el.cjs +139 -0
  519. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  520. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  521. package/node_modules/zod/v4/locales/el.js +112 -0
  522. package/node_modules/zod/v4/locales/en.cjs +35 -28
  523. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  524. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  525. package/node_modules/zod/v4/locales/en.js +34 -26
  526. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  527. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  528. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  529. package/node_modules/zod/v4/locales/eo.js +22 -24
  530. package/node_modules/zod/v4/locales/es.cjs +51 -31
  531. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  532. package/node_modules/zod/v4/locales/es.js +50 -31
  533. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  534. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  535. package/node_modules/zod/v4/locales/fa.js +21 -24
  536. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  537. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  538. package/node_modules/zod/v4/locales/fi.js +19 -24
  539. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  540. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  541. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  542. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  543. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  544. package/node_modules/zod/v4/locales/fr.js +52 -39
  545. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  546. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  547. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  548. package/node_modules/zod/v4/locales/gu.js +113 -0
  549. package/node_modules/zod/v4/locales/he.cjs +183 -78
  550. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  551. package/node_modules/zod/v4/locales/he.js +182 -78
  552. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  553. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  554. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  555. package/node_modules/zod/v4/locales/hi.js +111 -0
  556. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  557. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  558. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  559. package/node_modules/zod/v4/locales/hr.js +126 -0
  560. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  561. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  562. package/node_modules/zod/v4/locales/hu.js +21 -25
  563. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  564. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  565. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  566. package/node_modules/zod/v4/locales/hy.js +158 -0
  567. package/node_modules/zod/v4/locales/id.cjs +20 -24
  568. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  569. package/node_modules/zod/v4/locales/id.js +19 -24
  570. package/node_modules/zod/v4/locales/index.cjs +69 -1
  571. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  572. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  573. package/node_modules/zod/v4/locales/index.js +24 -0
  574. package/node_modules/zod/v4/locales/is.cjs +141 -0
  575. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  576. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  577. package/node_modules/zod/v4/locales/is.js +114 -0
  578. package/node_modules/zod/v4/locales/it.cjs +22 -25
  579. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  580. package/node_modules/zod/v4/locales/it.js +21 -25
  581. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  582. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  583. package/node_modules/zod/v4/locales/ja.js +21 -24
  584. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  585. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  586. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  587. package/node_modules/zod/v4/locales/ka.js +117 -0
  588. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  589. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  590. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  591. package/node_modules/zod/v4/locales/kh.js +3 -115
  592. package/node_modules/zod/v4/locales/km.cjs +142 -0
  593. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  594. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  595. package/node_modules/zod/v4/locales/km.js +115 -0
  596. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  597. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  598. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  599. package/node_modules/zod/v4/locales/kn.js +116 -0
  600. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  601. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  602. package/node_modules/zod/v4/locales/ko.js +19 -24
  603. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  604. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  605. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  606. package/node_modules/zod/v4/locales/lt.js +207 -0
  607. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  608. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  609. package/node_modules/zod/v4/locales/mk.js +21 -25
  610. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  611. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  612. package/node_modules/zod/v4/locales/ms.js +20 -24
  613. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  614. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  615. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  616. package/node_modules/zod/v4/locales/ne.js +111 -0
  617. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  618. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  619. package/node_modules/zod/v4/locales/nl.js +30 -32
  620. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  621. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  622. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  623. package/node_modules/zod/v4/locales/nn.js +113 -0
  624. package/node_modules/zod/v4/locales/no.cjs +24 -26
  625. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  626. package/node_modules/zod/v4/locales/no.js +23 -26
  627. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  628. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  629. package/node_modules/zod/v4/locales/ota.js +22 -25
  630. package/node_modules/zod/v4/locales/package.json +7 -0
  631. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  632. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  633. package/node_modules/zod/v4/locales/pl.js +21 -24
  634. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  635. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  636. package/node_modules/zod/v4/locales/ps.js +21 -24
  637. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  638. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  639. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  640. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  641. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  642. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  643. package/node_modules/zod/v4/locales/pt.js +94 -68
  644. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  645. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  646. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  647. package/node_modules/zod/v4/locales/ro.js +122 -0
  648. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  649. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  650. package/node_modules/zod/v4/locales/ru.js +28 -24
  651. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  652. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  653. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  654. package/node_modules/zod/v4/locales/sk.js +116 -0
  655. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  656. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  657. package/node_modules/zod/v4/locales/sl.js +21 -24
  658. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  659. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  660. package/node_modules/zod/v4/locales/sv.js +23 -26
  661. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  662. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  663. package/node_modules/zod/v4/locales/ta.js +22 -24
  664. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  665. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  666. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  667. package/node_modules/zod/v4/locales/tg.js +117 -0
  668. package/node_modules/zod/v4/locales/th.cjs +23 -24
  669. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  670. package/node_modules/zod/v4/locales/th.js +22 -24
  671. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  672. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  673. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  674. package/node_modules/zod/v4/locales/tk.js +107 -0
  675. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  676. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  677. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  678. package/node_modules/zod/v4/locales/tr.js +19 -24
  679. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  680. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  681. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  682. package/node_modules/zod/v4/locales/ua.js +3 -115
  683. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  684. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  685. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  686. package/node_modules/zod/v4/locales/uk.js +113 -0
  687. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  688. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  689. package/node_modules/zod/v4/locales/ur.js +22 -24
  690. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  691. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/uz.js +113 -0
  694. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  695. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  696. package/node_modules/zod/v4/locales/vi.js +21 -24
  697. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  698. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  699. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  700. package/node_modules/zod/v4/locales/yo.js +112 -0
  701. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  702. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  703. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  704. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  705. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  706. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  707. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  708. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  709. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  710. package/node_modules/zod/v4/mini/checks.js +1 -1
  711. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  712. package/node_modules/zod/v4/mini/coerce.js +5 -0
  713. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  714. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  715. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  716. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  717. package/node_modules/zod/v4/mini/external.cjs +36 -3
  718. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  719. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  720. package/node_modules/zod/v4/mini/external.js +4 -1
  721. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  722. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  723. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  724. package/node_modules/zod/v4/mini/in-out.js +36 -0
  725. package/node_modules/zod/v4/mini/index.cjs +19 -0
  726. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  727. package/node_modules/zod/v4/mini/iso.js +8 -4
  728. package/node_modules/zod/v4/mini/package.json +7 -0
  729. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  730. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  731. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  732. package/node_modules/zod/v4/mini/parse.js +1 -1
  733. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  734. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  735. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  736. package/node_modules/zod/v4/mini/schemas.js +329 -59
  737. package/node_modules/zod/v4/package.json +7 -0
  738. package/node_modules/zod/v4-mini/index.cjs +35 -1
  739. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  740. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  741. package/node_modules/zod/v4-mini/index.js +3 -1
  742. package/node_modules/zod/v4-mini/package.json +7 -0
  743. package/package.json +3 -3
  744. package/dist/ui/assets/index-DNNXeRpZ.js +0 -123
  745. package/dist/ui/assets/index-Osk4E49r.css +0 -1
  746. package/node_modules/zod/src/v4/core/config.ts +0 -15
  747. package/node_modules/zod/src/v4/core/function.ts +0 -176
  748. package/node_modules/zod/v4/core/function.cjs +0 -102
  749. package/node_modules/zod/v4/core/function.d.cts +0 -52
  750. package/node_modules/zod/v4/core/function.d.ts +0 -52
  751. package/node_modules/zod/v4/core/function.js +0 -75
@@ -52,6 +52,14 @@ const bearerAuth = (options) => {
52
52
  const wwwAuthenticateHeaderValue = typeof wwwAuthenticateHeader === "function" ? await wwwAuthenticateHeader(c) : wwwAuthenticateHeader;
53
53
  const headers = { "WWW-Authenticate": typeof wwwAuthenticateHeaderValue === "string" ? wwwAuthenticateHeaderValue : `${wwwAuthenticatePrefix}${Object.entries(wwwAuthenticateHeaderValue).map(([key, value]) => `${key}="${value}"`).join(",")}` };
54
54
  const responseMessage = typeof messageOption === "function" ? await messageOption(c) : messageOption;
55
+ if (responseMessage instanceof Response) {
56
+ const resHeaders = new Headers(responseMessage.headers);
57
+ if (!resHeaders.has("WWW-Authenticate")) resHeaders.set("WWW-Authenticate", headers["WWW-Authenticate"]);
58
+ throw new HTTPException(responseMessage.status, { res: new Response(responseMessage.body, {
59
+ status: responseMessage.status,
60
+ headers: resHeaders
61
+ }) });
62
+ }
55
63
  const res = typeof responseMessage === "string" ? new Response(responseMessage, {
56
64
  status,
57
65
  headers
@@ -1,4 +1,5 @@
1
1
  import { tryDecodeURI } from "../../utils/url.js";
2
+ import { parseAccept } from "../../utils/accept.js";
2
3
  import { COMPRESSIBLE_CONTENT_TYPE_REGEX } from "../../utils/compress.js";
3
4
  import { getMimeType } from "../../utils/mime.js";
4
5
  import { defaultJoin } from "./path.js";
@@ -19,6 +20,7 @@ const serveStatic = (options) => {
19
20
  const join = options.join ?? defaultJoin;
20
21
  return async (c, next) => {
21
22
  if (c.finalized) return next();
23
+ if (c.req.method !== "GET" && c.req.method !== "HEAD") return next();
22
24
  let filename;
23
25
  if (options.path) filename = options.path;
24
26
  else try {
@@ -38,7 +40,7 @@ const serveStatic = (options) => {
38
40
  const mimeType = options.mimes && getMimeType(path, options.mimes) || getMimeType(path);
39
41
  c.header("Content-Type", mimeType || "application/octet-stream");
40
42
  if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) {
41
- const acceptEncodingSet = new Set(c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()));
43
+ const acceptEncodingSet = new Set(parseAccept(c.req.header("Accept-Encoding") ?? "").filter((encoding) => encoding.q > 0).map((encoding) => encoding.type));
42
44
  for (const encoding of ENCODINGS_ORDERED_KEYS) {
43
45
  if (!acceptEncodingSet.has(encoding)) continue;
44
46
  const compressedContent = await getContent(path + ENCODINGS[encoding], c);
@@ -97,7 +97,7 @@ var Node = class Node {
97
97
  const restPathString = path.slice(partOffsets[i]);
98
98
  const m = matcher.exec(restPathString);
99
99
  if (m) {
100
- params[name] = m[0];
100
+ if (!Object.hasOwn(params, name)) params[name] = m[0];
101
101
  this.#pushHandlerSets(handlerSets, child, method, node.#params, params);
102
102
  if (m[0].length === restPathString.length && child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, node.#params, params);
103
103
  for (const _ in child.#children) {
@@ -110,7 +110,7 @@ var Node = class Node {
110
110
  }
111
111
  }
112
112
  if (matcher === true || matcher.test(part)) {
113
- params[name] = part;
113
+ if (!Object.hasOwn(params, name)) params[name] = part;
114
114
  if (isLast) {
115
115
  this.#pushHandlerSets(handlerSets, child, method, params, node.#params);
116
116
  if (child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, params, node.#params);
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/aws-lambda/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from AWS Lambda
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/bun/conninfo.d.ts
3
3
  /**
4
4
  * Get ConnInfo with Bun
@@ -1,4 +1,4 @@
1
- import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/ssg.js";
1
+ import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/index.js";
2
2
  //#region src/adapter/bun/ssg.d.ts
3
3
  /**
4
4
  * @experimental
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/cloudflare-pages/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from Cloudflare Pages
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/cloudflare-workers/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/cloudflare-workers` will be removed in v5. Install `@hono/cloudflare-workers` and import from there instead.
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/deno/conninfo.d.ts
3
3
  /**
4
4
  * Get conninfo with Deno
@@ -1,4 +1,4 @@
1
- import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/ssg.js";
1
+ import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/index.js";
2
2
  //#region src/adapter/deno/ssg.d.ts
3
3
  /**
4
4
  * @experimental
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/lambda-edge/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/lambda-edge` will be removed in v5. Install `@hono/lambda-edge` and import from there instead.
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/netlify/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from Netlify
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/vercel/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/vercel` will be removed in v5. Install `@hono/vercel` and import from there instead.
@@ -2,7 +2,8 @@ import { UnionToIntersection } from "../../utils/types.js";
2
2
  import { Schema } from "../../types.js";
3
3
  import { ExecutionContext } from "../../context.js";
4
4
  import { Hono } from "../../hono.js";
5
- import { Client, ClientRequestOptions } from "../../client/types.js";
5
+ import { ClientRequestOptions } from "../../client/index.js";
6
+ import { Client } from "../../client/types.js";
6
7
  //#region src/helper/testing/index.d.ts
7
8
  type ExtractEnv<T> = T extends Hono<infer E, Schema, string> ? E : never;
8
9
  export declare const testClient: <T extends Hono<any, Schema, string>>(app: T, Env?: ExtractEnv<T>["Bindings"] | {}, executionCtx?: ExecutionContext, options?: Omit<ClientRequestOptions, "fetch">) => UnionToIntersection<Client<T, "http://localhost">>;
@@ -6,14 +6,6 @@ type GetPath<E extends Env> = (request: Request, options?: {
6
6
  env?: E['Bindings'];
7
7
  }) => string;
8
8
  export type HonoOptions<E extends Env> = {
9
- /**
10
- * `strict` option specifies whether to distinguish whether the last path is a directory or not.
11
- *
12
- * @see {@link https://hono.dev/docs/api/hono#strict-mode}
13
- *
14
- * @default true
15
- */
16
- strict?: boolean;
17
9
  /**
18
10
  * `router` option specifies which router to use.
19
11
  *
@@ -25,6 +17,15 @@ export type HonoOptions<E extends Env> = {
25
17
  * ```
26
18
  */
27
19
  router?: Router<[H, RouterRoute]>;
20
+ } & ({
21
+ /**
22
+ * `strict` option specifies whether to distinguish whether the last path is a directory or not.
23
+ *
24
+ * @see {@link https://hono.dev/docs/api/hono#strict-mode}
25
+ *
26
+ * @default true
27
+ */
28
+ strict?: true;
28
29
  /**
29
30
  * `getPath` can handle the host header value.
30
31
  *
@@ -46,7 +47,18 @@ export type HonoOptions<E extends Env> = {
46
47
  * ```
47
48
  */
48
49
  getPath?: GetPath<E>;
49
- };
50
+ } | {
51
+ /**
52
+ * `strict` option specifies whether to distinguish whether the last path is a directory or not.
53
+ * When `strict` is `false`, `getPath` is not used.
54
+ *
55
+ * @see {@link https://hono.dev/docs/api/hono#strict-mode}
56
+ *
57
+ * @default true
58
+ */
59
+ strict: false;
60
+ getPath?: never;
61
+ });
50
62
  type MountOptionHandler = (c: Context) => unknown;
51
63
  type MountReplaceRequest = (originalRequest: Request) => Request;
52
64
  type MountOptions = MountOptionHandler | {
@@ -2,5 +2,5 @@ import { Env, ErrorHandler, Handler, Input, MiddlewareHandler, Next, NotFoundHan
2
2
  import { HonoRequest } from "./request.js";
3
3
  import { Context, ContextRenderer, ContextVariableMap, ExecutionContext } from "./context.js";
4
4
  import { Hono } from "./hono.js";
5
- import { ClientRequestOptions, InferRequestType, InferResponseType } from "./client/types.js";
5
+ import { ClientRequestOptions, InferRequestType, InferResponseType } from "./client/index.js";
6
6
  export { type ClientRequestOptions, Context, type ContextRenderer, type ContextVariableMap, type Env, type ErrorHandler, type ExecutionContext, type Handler, Hono, type HonoRequest, type InferRequestType, type InferResponseType, type Input, type MiddlewareHandler, type Next, type NotFoundHandler, type NotFoundResponse, type Schema, type ToSchema, type TypedResponse, type ValidationTargets };
@@ -1,6 +1,6 @@
1
1
  import { HtmlEscapedString } from "../utils/html.js";
2
- import { PropsWithChildren } from "./types.js";
3
- import { Child, FC } from "./base.js";
2
+ import { PropsWithChildren } from "./index.js";
3
+ import { Child, FC } from "./index.js";
4
4
  //#region src/jsx/components.d.ts
5
5
  export declare const childrenToString: (children: Child[]) => Promise<HtmlEscapedString[]>;
6
6
  export type ErrorHandler = (error: Error) => void;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from "./types.js";
2
- import { FC } from "./base.js";
1
+ import { PropsWithChildren } from "./index.js";
2
+ import { FC } from "./index.js";
3
3
  //#region src/jsx/context.d.ts
4
4
  export interface Context<T> extends FC<PropsWithChildren<{
5
5
  value: T;
@@ -1,6 +1,6 @@
1
1
  import { ErrorHandler, FallbackRender } from "../components.js";
2
- import { PropsWithChildren } from "../types.js";
3
- import { Child, FC } from "../base.js";
2
+ import { PropsWithChildren } from "../index.js";
3
+ import { Child, FC } from "../index.js";
4
4
  //#region src/jsx/dom/components.d.ts
5
5
  export declare const ErrorBoundary: FC<PropsWithChildren<{
6
6
  fallback?: Child;
@@ -1,6 +1,6 @@
1
1
  import { ClassNameSlug, CssClassName, CssVariableType, OnInvalidSlug, rawCssString } from "../../helper/css/common.js";
2
- import { PropsWithChildren } from "../types.js";
3
- import { FC } from "../base.js";
2
+ import { PropsWithChildren } from "../index.js";
3
+ import { FC } from "../index.js";
4
4
  //#region src/jsx/dom/css.d.ts
5
5
  interface CreateCssJsxDomObjectsType {
6
6
  (args: {
@@ -1,7 +1,8 @@
1
1
  import { HtmlEscapedString } from "../utils/html.js";
2
- import { PropsWithChildren } from "./types.js";
3
- import { Context } from "./context.js";
4
- import { FC, JSXNode } from "./base.js";
2
+ import { PropsWithChildren } from "./index.js";
3
+ import { Context } from "./index.js";
4
+ import { FC } from "./index.js";
5
+ import { JSXNode } from "./base.js";
5
6
  //#region src/jsx/streaming.d.ts
6
7
  /**
7
8
  * Used to specify nonce for scripts generated by `Suspense` and `ErrorBoundary`.
@@ -1,7 +1,8 @@
1
1
  import { Env, MiddlewareHandler } from "../../types.js";
2
2
  import { Context } from "../../context.js";
3
3
  //#region src/middleware/bearer-auth/index.d.ts
4
- type MessageFunction = (c: Context) => string | object | Promise<string | object>;
4
+ type MessageValue = string | object | Response;
5
+ type MessageFunction = (c: Context) => MessageValue | Promise<MessageValue>;
5
6
  type CustomizedErrorResponseOptions = {
6
7
  wwwAuthenticateHeader?: string | object | MessageFunction;
7
8
  message?: string | object | MessageFunction;
@@ -1,6 +1,6 @@
1
- import { MiddlewareHandler } from "../../types.js";
2
- import { Context } from "../../context.js";
3
- import { AddressType, GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { MiddlewareHandler } from "../../index.js";
2
+ import { Context } from "../../index.js";
3
+ import { AddressType, GetConnInfo } from "../../helper/conninfo/index.js";
4
4
  //#region src/middleware/ip-restriction/index.d.ts
5
5
  /**
6
6
  * Function to get IP Address
@@ -1,8 +1,8 @@
1
1
  import { Env, Input, MiddlewareHandler } from "../../types.js";
2
2
  import { Context, PropsForRenderer } from "../../context.js";
3
- import { PropsWithChildren } from "../../jsx/types.js";
4
- import { Context as Context$1 } from "../../jsx/context.js";
5
- import { FC } from "../../jsx/base.js";
3
+ import { PropsWithChildren } from "../../jsx/index.js";
4
+ import { Context as Context$1 } from "../../jsx/index.js";
5
+ import { FC } from "../../jsx/index.js";
6
6
  //#region src/middleware/jsx-renderer/index.d.ts
7
7
  export declare const RequestContext: Context$1<Context<any, any, {}> | null>;
8
8
  type RendererOptions = {
@@ -1,4 +1,4 @@
1
- import { AddressType } from "../helper/conninfo/types.js";
1
+ import { AddressType } from "../helper/conninfo/index.js";
2
2
  //#region src/utils/ipaddr.d.ts
3
3
  /**
4
4
  * Expand IPv6 Address
@@ -153,16 +153,21 @@ const _getQueryParam = (url, key, multiple) => {
153
153
  if (hashIndex !== -1) url = url.slice(0, hashIndex);
154
154
  let encoded;
155
155
  if (!multiple && key && key.indexOf("%") === -1 && key.indexOf("+") === -1) {
156
- let keyIndex = url.indexOf("?", 8);
156
+ const queryIndex = url.indexOf("?", 8);
157
+ let keyIndex = queryIndex;
157
158
  if (keyIndex === -1) return;
158
159
  if (!url.startsWith(key, keyIndex + 1)) keyIndex = url.indexOf(`&${key}`, keyIndex + 1);
159
160
  while (keyIndex !== -1) {
160
161
  const trailingKeyCode = url.charCodeAt(keyIndex + key.length + 1);
161
- if (trailingKeyCode === 61) {
162
- const valueIndex = keyIndex + key.length + 2;
163
- const endIndex = url.indexOf("&", valueIndex);
164
- return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex));
165
- } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) return "";
162
+ if (trailingKeyCode === 61 || trailingKeyCode === 38 || isNaN(trailingKeyCode)) {
163
+ if (keyIndex > queryIndex && /(?:^|&)[^=&]*[%+]/.test(url.slice(queryIndex + 1, keyIndex))) break;
164
+ if (trailingKeyCode === 61) {
165
+ const valueIndex = keyIndex + key.length + 2;
166
+ const endIndex = url.indexOf("&", valueIndex);
167
+ return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex));
168
+ }
169
+ return "";
170
+ }
166
171
  keyIndex = url.indexOf(`&${key}`, keyIndex + 1);
167
172
  }
168
173
  encoded = /[%+]/.test(url);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.13.13",
3
+ "version": "4.13.14",
4
4
  "description": "Web framework built on Web Standards",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",
@@ -7,8 +7,8 @@ const stringify_form_data_1 = require("./fix-request-body-utils/stringify-form-d
7
7
  * Fix proxied body if bodyParser is involved.
8
8
  */
9
9
  function fixRequestBody(proxyReq, req) {
10
- // skip fixRequestBody() when req.readableLength not 0 (bodyParser failure)
11
- if (req.readableLength !== 0) {
10
+ // Only reconstruct a body after the original request stream has ended.
11
+ if (!req.readableEnded) {
12
12
  return;
13
13
  }
14
14
  const requestBody = req.body;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "http-proxy-middleware",
3
3
  "type": "commonjs",
4
- "version": "3.0.7",
4
+ "version": "3.0.10",
5
5
  "description": "The one-liner node.js proxy middleware for connect, express, next.js and more",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -145,10 +145,10 @@ function stringToPaddedHex(numberString) {
145
145
  */
146
146
  function testBit(binaryValue, position) {
147
147
  const { length } = binaryValue;
148
- if (position > length) {
148
+ if (position >= length) {
149
149
  return false;
150
150
  }
151
- const positionInString = length - position;
151
+ const positionInString = length - position - 1;
152
152
  return binaryValue.substring(positionInString, positionInString + 1) === '1';
153
153
  }
154
154
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;AAkBA,gCAMC;AAmBD,wCAUC;AAiBD,kDAmBC;AAMD,oCAqBC;AAED,8BAYC;AAOD,oDAkBC;AAOD,0CAeC;AAED,8CAEC;AAED,8CAEC;AAMD,0BASC;AAtMD,mDAA+C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AAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,iBAAiB,CAAC,YAAoB;IACpD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,WAAmB,EAAE,QAAgB;IAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAE/B,IAAI,QAAQ,GAAG,MAAM,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC3C,OAAO,WAAW,CAAC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;AAC/E,CAAC","sourcesContent":["import { Address4 } from './ipv4';\nimport { Address6 } from './ipv6';\nimport { AddressError } from './address-error';\n\nexport interface ReverseFormOptions {\n omitSuffix?: boolean;\n}\n\n/**\n * Returns whether this address's *network* is contained within `address`,\n * i.e. whether every address this one can represent also falls inside\n * `address`. A network wider than `address` is not contained in it, so\n * `10.0.0.0/8` is not in `10.0.0.0/16`.\n *\n * To ask whether the address itself falls inside a range, ignoring any CIDR\n * suffix it was written with, use {@link isHostInSubnet} instead. That is the\n * question the special-use classifiers ask.\n */\nexport function isInSubnet(this: Address4 | Address6, address: Address4 | Address6) {\n if (this.subnetMask < address.subnetMask) {\n return false;\n }\n\n return isHostInSubnet.call(this, address);\n}\n\n/**\n * Returns whether this address's host bits fall inside `address`, ignoring\n * this address's own subnet mask.\n *\n * This is the primitive the special-use classifiers (`isLoopback`,\n * `isPrivate`, `isLinkLocal`, `getType`, …) are built on: they answer a\n * question about the address, so the answer must not change with the CIDR\n * suffix the caller happened to write. Use this rather than\n * {@link isInSubnet} when classifying a single address — notably when the\n * address came from untrusted input and the result backs a trust-boundary\n * decision such as an SSRF allow/deny filter.\n *\n * An address of one family is never inside a network of the other, so an\n * `Address4` against an `Address6` (or the reverse) is `false`. To compare\n * across families, convert first: `Address6.fromAddress4()`, `to4()`, or\n * `toAddress4Nat64()`.\n */\nexport function isHostInSubnet(this: Address4 | Address6, address: Address4 | Address6) {\n // mask() is a bit string of the family's width, and the leading bits of a\n // 32-bit string can coincide with those of a 128-bit one (a00::1 and\n // 10.0.0.0/8 both mask to 00001010), so the widths must agree before the\n // strings are compared.\n if (this.binaryZeroPad().length !== address.binaryZeroPad().length) {\n return false;\n }\n\n return this.mask(address.subnetMask) === address.mask();\n}\n\n/**\n * One parsed row of an IANA special-purpose address registry: the block, and\n * whether the registry marks it globally reachable (`null` when the column is\n * blank, in which case the containing block answers).\n */\nexport interface SpecialPurposeEntry<A extends Address4 | Address6> {\n subnet: A;\n reachable: boolean | null;\n}\n\n/**\n * Returns whether the registry marks this address globally reachable: the\n * answer of the most specific entry containing it that has one, or `true`\n * when no entry contains it.\n */\nexport function isGloballyReachable<A extends Address4 | Address6>(\n this: A,\n entries: ReadonlyArray<SpecialPurposeEntry<A>>,\n): boolean {\n let best: SpecialPurposeEntry<A> | null = null;\n\n for (let i = 0; i < entries.length; i++) {\n const entry = entries[i];\n\n if (\n entry.reachable !== null &&\n isHostInSubnet.call(this, entry.subnet) &&\n (best === null || entry.subnet.subnetMask > best.subnet.subnetMask)\n ) {\n best = entry;\n }\n }\n\n return best === null ? true : (best.reachable as boolean);\n}\n\n/**\n * Adds `n` to `value` and returns the result, throwing `AddressError` unless\n * `n` is an integer and the result stays within `[0, 2**bits - 1]`.\n */\nexport function offsetBigInt(\n value: bigint,\n n: number | bigint,\n bits: number,\n family: string,\n): bigint {\n if (typeof n === 'number' && !Number.isSafeInteger(n)) {\n throw new AddressError(`${family} offset must be an integer`);\n }\n\n if (typeof n !== 'number' && typeof n !== 'bigint') {\n throw new AddressError(`${family} offset must be an integer`);\n }\n\n const result = value + BigInt(n);\n\n if (result < BigInt(0) || result > (BigInt(1) << BigInt(bits)) - BigInt(1)) {\n throw new AddressError(`${family} offset leaves the address space`);\n }\n\n return result;\n}\n\nexport function isCorrect(defaultBits: number) {\n return function isCorrectForm(this: Address4 | Address6) {\n if (this.addressMinusSuffix !== this.correctForm()) {\n return false;\n }\n\n if (this.subnetMask === defaultBits && !this.parsedSubnet) {\n return true;\n }\n\n return this.parsedSubnet === String(this.subnetMask);\n };\n}\n\n/**\n * Returns the prefix length (number of leading 1 bits) of a contiguous\n * subnet mask. Throws `AddressError` if the mask is non-contiguous (e.g.\n * `255.0.255.0`).\n */\nexport function prefixLengthFromMask(value: bigint, totalBits: number): number {\n const binary = value.toString(2).padStart(totalBits, '0');\n\n if (binary.length > totalBits) {\n throw new AddressError('Invalid subnet mask.');\n }\n\n const firstZero = binary.indexOf('0');\n\n if (firstZero === -1) {\n return totalBits;\n }\n\n if (binary.slice(firstZero).includes('1')) {\n throw new AddressError('Invalid subnet mask.');\n }\n\n return firstZero;\n}\n\n/**\n * Throws `AddressError` unless `bytes` holds exactly `byteCount` integers,\n * each from `minimum` to 255. Pass a `minimum` of `-128` where signed bytes\n * are accepted and folded to unsigned, and `0` where they are not.\n */\nexport function assertByteArray(\n bytes: number[],\n byteCount: number,\n family: 'IPv4' | 'IPv6',\n minimum: number,\n): void {\n if (bytes.length !== byteCount) {\n throw new AddressError(`${family} addresses require exactly ${byteCount} bytes`);\n }\n\n for (let i = 0; i < bytes.length; i++) {\n if (!Number.isInteger(bytes[i]) || bytes[i] < minimum || bytes[i] > 255) {\n throw new AddressError(`All bytes must be integers between ${minimum} and 255`);\n }\n }\n}\n\nexport function numberToPaddedHex(number: number) {\n return number.toString(16).padStart(2, '0');\n}\n\nexport function stringToPaddedHex(numberString: string) {\n return numberToPaddedHex(parseInt(numberString, 10));\n}\n\n/**\n * @param binaryValue Binary representation of a value (e.g. `10`)\n * @param position Byte position, where 0 is the least significant bit\n */\nexport function testBit(binaryValue: string, position: number): boolean {\n const { length } = binaryValue;\n\n if (position > length) {\n return false;\n }\n\n const positionInString = length - position;\n return binaryValue.substring(positionInString, positionInString + 1) === '1';\n}\n"]}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;AAkBA,gCAMC;AAmBD,wCAUC;AAiBD,kDAmBC;AAMD,oCAqBC;AAED,8BAYC;AAOD,oDAkBC;AAOD,0CAeC;AAED,8CAEC;AAED,8CAEC;AAMD,0BASC;AAtMD,mDAA+C;AAM/C;;;;;;;;;GASG;AACH,SAAgB,UAAU,CAA4B,OAA4B;IAChF,IAAI,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,cAAc,CAA4B,OAA4B;IACpF,0EAA0E;IAC1E,qEAAqE;IACrE,yEAAyE;IACzE,wBAAwB;IACxB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,CAAC;QACnE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;AAC1D,CAAC;AAYD;;;;GAIG;AACH,SAAgB,mBAAmB,CAEjC,OAA8C;IAE9C,IAAI,IAAI,GAAkC,IAAI,CAAC;IAE/C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACxC,MAAM,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QAEzB,IACE,KAAK,CAAC,SAAS,KAAK,IAAI;YACxB,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC;YACv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IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC;YACxE,MAAM,IAAI,4BAAY,CAAC,sCAAsC,OAAO,UAAU,CAAC,CAAC;QAClF,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,OAAO,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,iBAAiB,CAAC,YAAoB;IACpD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,WAAmB,EAAE,QAAgB;IAC3D,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAE/B,IAAI,QAAQ,IAAI,MAAM,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,CAAC,CAAC;IAC/C,OAAO,WAAW,CAAC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;AAC/E,CAAC","sourcesContent":["import { Address4 } from './ipv4';\nimport { Address6 } from './ipv6';\nimport { AddressError } from './address-error';\n\nexport interface ReverseFormOptions {\n omitSuffix?: boolean;\n}\n\n/**\n * Returns whether this address's *network* is contained within `address`,\n * i.e. whether every address this one can represent also falls inside\n * `address`. A network wider than `address` is not contained in it, so\n * `10.0.0.0/8` is not in `10.0.0.0/16`.\n *\n * To ask whether the address itself falls inside a range, ignoring any CIDR\n * suffix it was written with, use {@link isHostInSubnet} instead. That is the\n * question the special-use classifiers ask.\n */\nexport function isInSubnet(this: Address4 | Address6, address: Address4 | Address6) {\n if (this.subnetMask < address.subnetMask) {\n return false;\n }\n\n return isHostInSubnet.call(this, address);\n}\n\n/**\n * Returns whether this address's host bits fall inside `address`, ignoring\n * this address's own subnet mask.\n *\n * This is the primitive the special-use classifiers (`isLoopback`,\n * `isPrivate`, `isLinkLocal`, `getType`, …) are built on: they answer a\n * question about the address, so the answer must not change with the CIDR\n * suffix the caller happened to write. Use this rather than\n * {@link isInSubnet} when classifying a single address — notably when the\n * address came from untrusted input and the result backs a trust-boundary\n * decision such as an SSRF allow/deny filter.\n *\n * An address of one family is never inside a network of the other, so an\n * `Address4` against an `Address6` (or the reverse) is `false`. To compare\n * across families, convert first: `Address6.fromAddress4()`, `to4()`, or\n * `toAddress4Nat64()`.\n */\nexport function isHostInSubnet(this: Address4 | Address6, address: Address4 | Address6) {\n // mask() is a bit string of the family's width, and the leading bits of a\n // 32-bit string can coincide with those of a 128-bit one (a00::1 and\n // 10.0.0.0/8 both mask to 00001010), so the widths must agree before the\n // strings are compared.\n if (this.binaryZeroPad().length !== address.binaryZeroPad().length) {\n return false;\n }\n\n return this.mask(address.subnetMask) === address.mask();\n}\n\n/**\n * One parsed row of an IANA special-purpose address registry: the block, and\n * whether the registry marks it globally reachable (`null` when the column is\n * blank, in which case the containing block answers).\n */\nexport interface SpecialPurposeEntry<A extends Address4 | Address6> {\n subnet: A;\n reachable: boolean | null;\n}\n\n/**\n * Returns whether the registry marks this address globally reachable: the\n * answer of the most specific entry containing it that has one, or `true`\n * when no entry contains it.\n */\nexport function isGloballyReachable<A extends Address4 | Address6>(\n this: A,\n entries: ReadonlyArray<SpecialPurposeEntry<A>>,\n): boolean {\n let best: SpecialPurposeEntry<A> | null = null;\n\n for (let i = 0; i < entries.length; i++) {\n const entry = entries[i];\n\n if (\n entry.reachable !== null &&\n isHostInSubnet.call(this, entry.subnet) &&\n (best === null || entry.subnet.subnetMask > best.subnet.subnetMask)\n ) {\n best = entry;\n }\n }\n\n return best === null ? true : (best.reachable as boolean);\n}\n\n/**\n * Adds `n` to `value` and returns the result, throwing `AddressError` unless\n * `n` is an integer and the result stays within `[0, 2**bits - 1]`.\n */\nexport function offsetBigInt(\n value: bigint,\n n: number | bigint,\n bits: number,\n family: string,\n): bigint {\n if (typeof n === 'number' && !Number.isSafeInteger(n)) {\n throw new AddressError(`${family} offset must be an integer`);\n }\n\n if (typeof n !== 'number' && typeof n !== 'bigint') {\n throw new AddressError(`${family} offset must be an integer`);\n }\n\n const result = value + BigInt(n);\n\n if (result < BigInt(0) || result > (BigInt(1) << BigInt(bits)) - BigInt(1)) {\n throw new AddressError(`${family} offset leaves the address space`);\n }\n\n return result;\n}\n\nexport function isCorrect(defaultBits: number) {\n return function isCorrectForm(this: Address4 | Address6) {\n if (this.addressMinusSuffix !== this.correctForm()) {\n return false;\n }\n\n if (this.subnetMask === defaultBits && !this.parsedSubnet) {\n return true;\n }\n\n return this.parsedSubnet === String(this.subnetMask);\n };\n}\n\n/**\n * Returns the prefix length (number of leading 1 bits) of a contiguous\n * subnet mask. Throws `AddressError` if the mask is non-contiguous (e.g.\n * `255.0.255.0`).\n */\nexport function prefixLengthFromMask(value: bigint, totalBits: number): number {\n const binary = value.toString(2).padStart(totalBits, '0');\n\n if (binary.length > totalBits) {\n throw new AddressError('Invalid subnet mask.');\n }\n\n const firstZero = binary.indexOf('0');\n\n if (firstZero === -1) {\n return totalBits;\n }\n\n if (binary.slice(firstZero).includes('1')) {\n throw new AddressError('Invalid subnet mask.');\n }\n\n return firstZero;\n}\n\n/**\n * Throws `AddressError` unless `bytes` holds exactly `byteCount` integers,\n * each from `minimum` to 255. Pass a `minimum` of `-128` where signed bytes\n * are accepted and folded to unsigned, and `0` where they are not.\n */\nexport function assertByteArray(\n bytes: number[],\n byteCount: number,\n family: 'IPv4' | 'IPv6',\n minimum: number,\n): void {\n if (bytes.length !== byteCount) {\n throw new AddressError(`${family} addresses require exactly ${byteCount} bytes`);\n }\n\n for (let i = 0; i < bytes.length; i++) {\n if (!Number.isInteger(bytes[i]) || bytes[i] < minimum || bytes[i] > 255) {\n throw new AddressError(`All bytes must be integers between ${minimum} and 255`);\n }\n }\n}\n\nexport function numberToPaddedHex(number: number) {\n return number.toString(16).padStart(2, '0');\n}\n\nexport function stringToPaddedHex(numberString: string) {\n return numberToPaddedHex(parseInt(numberString, 10));\n}\n\n/**\n * @param binaryValue Binary representation of a value (e.g. `10`)\n * @param position Byte position, where 0 is the least significant bit\n */\nexport function testBit(binaryValue: string, position: number): boolean {\n const { length } = binaryValue;\n\n if (position >= length) {\n return false;\n }\n\n const positionInString = length - position - 1;\n return binaryValue.substring(positionInString, positionInString + 1) === '1';\n}\n"]}
@@ -16,7 +16,7 @@
16
16
  "bigint",
17
17
  "browser"
18
18
  ],
19
- "version": "10.7.4",
19
+ "version": "10.7.5",
20
20
  "author": "Beau Gunderson <beau@beaugunderson.com> (https://beaugunderson.com/)",
21
21
  "license": "MIT",
22
22
  "main": "dist/ip-address.js",
@@ -80,7 +80,7 @@
80
80
  "eslint-plugin-import": "^2.32.0",
81
81
  "eslint-plugin-prettier": "^5.5.5",
82
82
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
83
- "mocha": "^11.7.5",
83
+ "mocha": "^12.0.3",
84
84
  "monocart-coverage-reports": "^2.12.11",
85
85
  "prettier": "^3.8.3",
86
86
  "source-map-support": "^0.5.21",
@@ -230,7 +230,7 @@ class Input {
230
230
  } else {
231
231
  fromUrl = new URL(
232
232
  from.source,
233
- this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile)
233
+ pathToFileURL(this.map.mapFile || resolve('.') + '/')
234
234
  )
235
235
  }
236
236
 
@@ -205,7 +205,7 @@ class LazyResult {
205
205
  }
206
206
 
207
207
  finally(onFinally) {
208
- return this.async().then(onFinally, onFinally)
208
+ return this.async().finally(onFinally)
209
209
  }
210
210
 
211
211
  getAsyncError() {
@@ -102,7 +102,7 @@ class NoWorkResult {
102
102
  }
103
103
 
104
104
  finally(onFinally) {
105
- return this.async().then(onFinally, onFinally)
105
+ return this.async().finally(onFinally)
106
106
  }
107
107
 
108
108
  sync() {
@@ -240,7 +240,7 @@ class Node {
240
240
  } else if (opts.word) {
241
241
  let stringRepresentation = inputString.slice(
242
242
  sourceOffset(inputString, this.source.start),
243
- sourceOffset(inputString, this.source.end)
243
+ this.rangeBy().end.offset
244
244
  )
245
245
  let index = stringRepresentation.indexOf(opts.word)
246
246
  if (index !== -1) pos = this.positionInside(index)
@@ -308,7 +308,7 @@ class Node {
308
308
  if (opts.word) {
309
309
  let stringRepresentation = inputString.slice(
310
310
  sourceOffset(inputString, this.source.start),
311
- sourceOffset(inputString, this.source.end)
311
+ end.offset
312
312
  )
313
313
  let index = stringRepresentation.indexOf(opts.word)
314
314
  if (index !== -1) {
@@ -7,7 +7,7 @@ let Root = require('./root')
7
7
 
8
8
  class Processor {
9
9
  constructor(plugins = []) {
10
- this.version = '8.5.31'
10
+ this.version = '8.5.32'
11
11
  this.plugins = this.normalize(plugins)
12
12
  }
13
13
 
@@ -31,6 +31,7 @@ class Warning {
31
31
  return this.node.error(this.text, {
32
32
  index: this.index,
33
33
  plugin: this.plugin,
34
+ start: this.start,
34
35
  word: this.word
35
36
  }).message
36
37
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.5.31",
3
+ "version": "8.5.32",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "keywords": [
6
6
  "css",