@zudojs/http 1.4.4 → 1.5.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 (838) hide show
  1. package/dist/httpAdapter/errorResponse/httpAdapterError.headers.d.ts +46 -0
  2. package/dist/httpAdapter/errorResponse/httpAdapterError.headers.js +68 -0
  3. package/dist/httpAdapter/errorResponse/httpAdapterError.issues.d.ts +11 -0
  4. package/dist/httpAdapter/errorResponse/httpAdapterError.issues.js +37 -0
  5. package/dist/httpAdapter/errorResponse/httpAdapterError.locate.d.ts +29 -0
  6. package/dist/httpAdapter/errorResponse/httpAdapterError.locate.js +74 -0
  7. package/dist/httpAdapter/{httpAdapter.errorResponse.d.ts → errorResponse/httpAdapterError.response.d.ts} +10 -5
  8. package/dist/httpAdapter/errorResponse/httpAdapterError.response.js +83 -0
  9. package/dist/httpAdapter/errorResponse/index.d.ts +10 -0
  10. package/dist/httpAdapter/errorResponse/index.js +10 -0
  11. package/dist/httpAdapter/fetch/httpFetch.body.d.ts +0 -1
  12. package/dist/httpAdapter/fetch/httpFetch.body.js +0 -1
  13. package/dist/httpAdapter/fetch/httpFetch.helper.d.ts +0 -1
  14. package/dist/httpAdapter/fetch/httpFetch.helper.js +0 -1
  15. package/dist/httpAdapter/fetch/httpFetch.requestContext.d.ts +0 -1
  16. package/dist/httpAdapter/fetch/httpFetch.requestContext.js +0 -1
  17. package/dist/httpAdapter/fetch/httpFetch.responseWriter.d.ts +0 -1
  18. package/dist/httpAdapter/fetch/httpFetch.responseWriter.js +0 -1
  19. package/dist/httpAdapter/fetch/httpFetch.type.d.ts +2 -2
  20. package/dist/httpAdapter/fetch/httpFetch.type.js +2 -2
  21. package/dist/httpAdapter/fetch/index.d.ts +0 -1
  22. package/dist/httpAdapter/fetch/index.js +0 -1
  23. package/dist/httpAdapter/http.adapter.d.ts +12 -1
  24. package/dist/httpAdapter/http.adapter.js +5 -3
  25. package/dist/httpAdapter/http.adapters.d.ts +0 -1
  26. package/dist/httpAdapter/http.adapters.js +0 -1
  27. package/dist/httpAdapter/httpAdapter.logger.d.ts +0 -1
  28. package/dist/httpAdapter/httpAdapter.logger.js +0 -1
  29. package/dist/httpAdapter/httpFetch.adapter.d.ts +0 -1
  30. package/dist/httpAdapter/httpFetch.adapter.js +0 -1
  31. package/dist/httpAdapter/index.d.ts +1 -1
  32. package/dist/httpAdapter/index.js +0 -1
  33. package/dist/httpAdapter/node/httpNode.adapter.d.ts +6 -2
  34. package/dist/httpAdapter/node/httpNode.adapter.js +33 -10
  35. package/dist/httpAdapter/node/httpNode.request.d.ts +0 -1
  36. package/dist/httpAdapter/node/httpNode.request.js +0 -1
  37. package/dist/httpAdapter/node/httpNode.response.d.ts +0 -1
  38. package/dist/httpAdapter/node/httpNode.response.js +0 -1
  39. package/dist/httpAdapter/node/httpNode.server.d.ts +0 -1
  40. package/dist/httpAdapter/node/httpNode.server.js +0 -1
  41. package/dist/httpAdapter/node/httpNode.type.d.ts +2 -2
  42. package/dist/httpAdapter/node/httpNode.type.js +2 -2
  43. package/dist/httpAdapter/node/index.d.ts +0 -1
  44. package/dist/httpAdapter/node/index.js +0 -1
  45. package/dist/httpAgent/http.agent.d.ts +0 -1
  46. package/dist/httpAgent/http.agent.js +0 -1
  47. package/dist/httpAgent/index.d.ts +0 -1
  48. package/dist/httpAgent/index.js +0 -1
  49. package/dist/httpBody/http.body.d.ts +0 -1
  50. package/dist/httpBody/http.body.js +0 -1
  51. package/dist/httpBody/httpBody.formData.d.ts +5 -2
  52. package/dist/httpBody/httpBody.formData.js +5 -2
  53. package/dist/httpBody/httpBody.parser.d.ts +0 -1
  54. package/dist/httpBody/httpBody.parser.js +0 -1
  55. package/dist/httpBody/index.d.ts +0 -1
  56. package/dist/httpBody/index.js +0 -1
  57. package/dist/httpCacheControl/core/httpCacheControl.parse.d.ts +0 -1
  58. package/dist/httpCacheControl/core/httpCacheControl.parse.js +0 -1
  59. package/dist/httpCacheControl/core/httpCacheControl.type.d.ts +0 -1
  60. package/dist/httpCacheControl/core/httpCacheControl.type.js +0 -1
  61. package/dist/httpCacheControl/core/httpCacheControl.validation.d.ts +0 -1
  62. package/dist/httpCacheControl/core/httpCacheControl.validation.js +0 -1
  63. package/dist/httpCacheControl/core/index.d.ts +0 -1
  64. package/dist/httpCacheControl/core/index.js +0 -1
  65. package/dist/httpCacheControl/httpCacheControl.core.d.ts +0 -1
  66. package/dist/httpCacheControl/httpCacheControl.core.js +0 -1
  67. package/dist/httpCacheControl/httpCacheControl.factory.d.ts +0 -1
  68. package/dist/httpCacheControl/httpCacheControl.factory.js +0 -1
  69. package/dist/httpCacheControl/httpCacheControl.freshness.d.ts +0 -1
  70. package/dist/httpCacheControl/httpCacheControl.freshness.js +0 -1
  71. package/dist/httpCacheControl/httpCacheControl.requestHelper.d.ts +0 -1
  72. package/dist/httpCacheControl/httpCacheControl.requestHelper.js +0 -1
  73. package/dist/httpCacheControl/httpCacheControl.responseHelper.d.ts +0 -1
  74. package/dist/httpCacheControl/httpCacheControl.responseHelper.js +0 -1
  75. package/dist/httpCacheControl/index.d.ts +0 -1
  76. package/dist/httpCacheControl/index.js +0 -1
  77. package/dist/httpClient/httpClient.abort.d.ts +0 -1
  78. package/dist/httpClient/httpClient.abort.js +0 -1
  79. package/dist/httpClient/httpClient.body.d.ts +0 -1
  80. package/dist/httpClient/httpClient.body.js +0 -1
  81. package/dist/httpClient/httpClient.client.d.ts +0 -1
  82. package/dist/httpClient/httpClient.client.js +0 -1
  83. package/dist/httpClient/httpClient.context.d.ts +0 -1
  84. package/dist/httpClient/httpClient.context.js +0 -1
  85. package/dist/httpClient/httpClient.error.d.ts +0 -1
  86. package/dist/httpClient/httpClient.error.js +0 -1
  87. package/dist/httpClient/httpClient.errorNormalizer.d.ts +0 -1
  88. package/dist/httpClient/httpClient.errorNormalizer.js +0 -1
  89. package/dist/httpClient/httpClient.executor.d.ts +0 -1
  90. package/dist/httpClient/httpClient.executor.js +0 -1
  91. package/dist/httpClient/httpClient.factory.d.ts +0 -1
  92. package/dist/httpClient/httpClient.factory.js +0 -1
  93. package/dist/httpClient/httpClient.headers.d.ts +0 -1
  94. package/dist/httpClient/httpClient.headers.js +0 -1
  95. package/dist/httpClient/httpClient.helpers.d.ts +0 -1
  96. package/dist/httpClient/httpClient.helpers.js +0 -1
  97. package/dist/httpClient/httpClient.interceptors.d.ts +0 -1
  98. package/dist/httpClient/httpClient.interceptors.js +0 -1
  99. package/dist/httpClient/httpClient.methods.d.ts +0 -1
  100. package/dist/httpClient/httpClient.methods.js +0 -1
  101. package/dist/httpClient/httpClient.response.d.ts +0 -1
  102. package/dist/httpClient/httpClient.response.js +0 -1
  103. package/dist/httpClient/httpClient.retry.d.ts +0 -1
  104. package/dist/httpClient/httpClient.retry.js +0 -1
  105. package/dist/httpClient/httpClient.type.d.ts +0 -1
  106. package/dist/httpClient/httpClient.type.js +0 -1
  107. package/dist/httpClient/httpClient.typeGuards.d.ts +0 -1
  108. package/dist/httpClient/httpClient.typeGuards.js +0 -1
  109. package/dist/httpClient/httpClient.url.d.ts +0 -1
  110. package/dist/httpClient/httpClient.url.js +0 -1
  111. package/dist/httpClient/index.d.ts +2 -1
  112. package/dist/httpClient/index.js +2 -1
  113. package/dist/httpCompression/http.compression.d.ts +0 -1
  114. package/dist/httpCompression/http.compression.js +0 -1
  115. package/dist/httpCompression/index.d.ts +0 -1
  116. package/dist/httpCompression/index.js +0 -1
  117. package/dist/httpConditional/httpConditional.core.d.ts +0 -1
  118. package/dist/httpConditional/httpConditional.core.js +0 -1
  119. package/dist/httpConditional/index.d.ts +0 -1
  120. package/dist/httpConditional/index.js +0 -1
  121. package/dist/httpConstants/http.constants.d.ts +0 -1
  122. package/dist/httpConstants/http.constants.js +0 -1
  123. package/dist/httpConstants/index.d.ts +0 -1
  124. package/dist/httpConstants/index.js +0 -1
  125. package/dist/httpContentDisposition/httpContentDisposition.core.d.ts +0 -1
  126. package/dist/httpContentDisposition/httpContentDisposition.core.js +0 -1
  127. package/dist/httpContentDisposition/index.d.ts +0 -1
  128. package/dist/httpContentDisposition/index.js +0 -1
  129. package/dist/httpContentType/httpContentType.boundary.d.ts +0 -1
  130. package/dist/httpContentType/httpContentType.boundary.js +0 -1
  131. package/dist/httpContentType/httpContentType.category.d.ts +0 -1
  132. package/dist/httpContentType/httpContentType.category.js +0 -1
  133. package/dist/httpContentType/httpContentType.categoryBinary.d.ts +0 -1
  134. package/dist/httpContentType/httpContentType.categoryBinary.js +0 -1
  135. package/dist/httpContentType/httpContentType.charset.d.ts +0 -1
  136. package/dist/httpContentType/httpContentType.charset.js +0 -1
  137. package/dist/httpContentType/httpContentType.constructors.d.ts +0 -1
  138. package/dist/httpContentType/httpContentType.constructors.js +0 -1
  139. package/dist/httpContentType/httpContentType.formatter.d.ts +0 -1
  140. package/dist/httpContentType/httpContentType.formatter.js +0 -1
  141. package/dist/httpContentType/httpContentType.matcher.d.ts +0 -1
  142. package/dist/httpContentType/httpContentType.matcher.js +0 -1
  143. package/dist/httpContentType/httpContentType.mediaTypes.d.ts +0 -1
  144. package/dist/httpContentType/httpContentType.mediaTypes.js +0 -1
  145. package/dist/httpContentType/httpContentType.normalizer.d.ts +0 -1
  146. package/dist/httpContentType/httpContentType.normalizer.js +0 -1
  147. package/dist/httpContentType/httpContentType.parameter.d.ts +0 -1
  148. package/dist/httpContentType/httpContentType.parameter.js +0 -1
  149. package/dist/httpContentType/httpContentType.parser.d.ts +0 -1
  150. package/dist/httpContentType/httpContentType.parser.js +0 -1
  151. package/dist/httpContentType/httpContentType.parserHelpers.d.ts +0 -1
  152. package/dist/httpContentType/httpContentType.parserHelpers.js +0 -1
  153. package/dist/httpContentType/httpContentType.type.d.ts +0 -1
  154. package/dist/httpContentType/httpContentType.type.js +0 -1
  155. package/dist/httpContentType/index.d.ts +0 -1
  156. package/dist/httpContentType/index.js +0 -1
  157. package/dist/httpContext/http.context.d.ts +0 -1
  158. package/dist/httpContext/http.context.js +0 -1
  159. package/dist/httpContext/index.d.ts +0 -1
  160. package/dist/httpContext/index.js +0 -1
  161. package/dist/httpCookies/http.cookies.d.ts +0 -1
  162. package/dist/httpCookies/http.cookies.js +0 -1
  163. package/dist/httpCookies/httpCookies.defaults.d.ts +0 -1
  164. package/dist/httpCookies/httpCookies.defaults.js +0 -1
  165. package/dist/httpCookies/index.d.ts +0 -1
  166. package/dist/httpCookies/index.js +0 -1
  167. package/dist/httpCors/http.cors.d.ts +0 -1
  168. package/dist/httpCors/http.cors.js +0 -1
  169. package/dist/httpCors/index.d.ts +0 -1
  170. package/dist/httpCors/index.js +0 -1
  171. package/dist/httpCsp/checks/httpCsp.checks.d.ts +0 -1
  172. package/dist/httpCsp/checks/httpCsp.checks.js +0 -1
  173. package/dist/httpCsp/checks/index.d.ts +0 -1
  174. package/dist/httpCsp/checks/index.js +0 -1
  175. package/dist/httpCsp/formatting/httpCsp.formatting.d.ts +0 -1
  176. package/dist/httpCsp/formatting/httpCsp.formatting.js +0 -1
  177. package/dist/httpCsp/formatting/index.d.ts +0 -1
  178. package/dist/httpCsp/formatting/index.js +0 -1
  179. package/dist/httpCsp/index.d.ts +0 -1
  180. package/dist/httpCsp/index.js +0 -1
  181. package/dist/httpCsp/internal/httpCsp.internal.d.ts +0 -1
  182. package/dist/httpCsp/internal/httpCsp.internal.js +0 -1
  183. package/dist/httpCsp/internal/index.d.ts +0 -1
  184. package/dist/httpCsp/internal/index.js +0 -1
  185. package/dist/httpCsp/nonce/httpCsp.nonce.d.ts +0 -1
  186. package/dist/httpCsp/nonce/httpCsp.nonce.js +0 -1
  187. package/dist/httpCsp/nonce/index.d.ts +0 -1
  188. package/dist/httpCsp/nonce/index.js +0 -1
  189. package/dist/httpCsp/parsing/httpCsp.parsing.d.ts +0 -1
  190. package/dist/httpCsp/parsing/httpCsp.parsing.js +0 -1
  191. package/dist/httpCsp/parsing/index.d.ts +0 -1
  192. package/dist/httpCsp/parsing/index.js +0 -1
  193. package/dist/httpCsp/policies/httpCsp.policies.d.ts +0 -1
  194. package/dist/httpCsp/policies/httpCsp.policies.js +0 -1
  195. package/dist/httpCsp/policies/index.d.ts +0 -1
  196. package/dist/httpCsp/policies/index.js +0 -1
  197. package/dist/httpCsp/reportOnly/httpCsp.reportOnly.d.ts +0 -1
  198. package/dist/httpCsp/reportOnly/httpCsp.reportOnly.js +0 -1
  199. package/dist/httpCsp/reportOnly/index.d.ts +0 -1
  200. package/dist/httpCsp/reportOnly/index.js +0 -1
  201. package/dist/httpCsp/sources/httpCsp.sources.d.ts +0 -1
  202. package/dist/httpCsp/sources/httpCsp.sources.js +0 -1
  203. package/dist/httpCsp/sources/index.d.ts +0 -1
  204. package/dist/httpCsp/sources/index.js +0 -1
  205. package/dist/httpCsp/types/httpCsp.constant.d.ts +0 -1
  206. package/dist/httpCsp/types/httpCsp.constant.js +0 -1
  207. package/dist/httpCsp/types/httpCsp.type.d.ts +0 -1
  208. package/dist/httpCsp/types/httpCsp.type.js +0 -1
  209. package/dist/httpCsp/types/index.d.ts +0 -1
  210. package/dist/httpCsp/types/index.js +0 -1
  211. package/dist/httpCsp/validation/httpCsp.validate.d.ts +0 -1
  212. package/dist/httpCsp/validation/httpCsp.validate.js +0 -1
  213. package/dist/httpCsp/validation/httpCsp.validation.d.ts +0 -1
  214. package/dist/httpCsp/validation/httpCsp.validation.js +0 -1
  215. package/dist/httpCsp/validation/index.d.ts +0 -1
  216. package/dist/httpCsp/validation/index.js +0 -1
  217. package/dist/httpErrors/factories/httpError.clientError.d.ts +0 -1
  218. package/dist/httpErrors/factories/httpError.clientError.js +0 -1
  219. package/dist/httpErrors/factories/httpError.serverError.d.ts +10 -6
  220. package/dist/httpErrors/factories/httpError.serverError.js +22 -6
  221. package/dist/httpErrors/httpError.base.d.ts +0 -1
  222. package/dist/httpErrors/httpError.base.js +0 -1
  223. package/dist/httpErrors/httpError.helper.d.ts +0 -1
  224. package/dist/httpErrors/httpError.helper.js +0 -1
  225. package/dist/httpErrors/httpError.invalidJson.d.ts +0 -1
  226. package/dist/httpErrors/httpError.invalidJson.js +0 -1
  227. package/dist/httpErrors/httpError.type.d.ts +0 -1
  228. package/dist/httpErrors/httpError.type.js +0 -1
  229. package/dist/httpErrors/httpError.typeGuard.d.ts +0 -1
  230. package/dist/httpErrors/httpError.typeGuard.js +0 -1
  231. package/dist/httpErrors/httpError.util.d.ts +0 -1
  232. package/dist/httpErrors/httpError.util.js +0 -1
  233. package/dist/httpErrors/index.d.ts +0 -1
  234. package/dist/httpErrors/index.js +0 -1
  235. package/dist/httpFetchMount/httpFetchMount.core.d.ts +0 -1
  236. package/dist/httpFetchMount/httpFetchMount.core.js +0 -1
  237. package/dist/httpFetchMount/httpFetchMount.request.d.ts +0 -1
  238. package/dist/httpFetchMount/httpFetchMount.request.js +0 -1
  239. package/dist/httpFetchMount/httpFetchMount.type.d.ts +0 -1
  240. package/dist/httpFetchMount/httpFetchMount.type.js +0 -1
  241. package/dist/httpFetchMount/index.d.ts +0 -1
  242. package/dist/httpFetchMount/index.js +0 -1
  243. package/dist/httpFormData/index.d.ts +0 -1
  244. package/dist/httpFormData/index.js +0 -1
  245. package/dist/httpHeaders/authorization/httpHeaders.authorization.d.ts +0 -1
  246. package/dist/httpHeaders/authorization/httpHeaders.authorization.js +0 -1
  247. package/dist/httpHeaders/authorization/index.d.ts +0 -1
  248. package/dist/httpHeaders/authorization/index.js +0 -1
  249. package/dist/httpHeaders/basic/httpHeaders.basic.d.ts +0 -1
  250. package/dist/httpHeaders/basic/httpHeaders.basic.js +0 -1
  251. package/dist/httpHeaders/basic/httpHeaders.basicMatch.d.ts +0 -1
  252. package/dist/httpHeaders/basic/httpHeaders.basicMatch.js +0 -1
  253. package/dist/httpHeaders/basic/index.d.ts +0 -1
  254. package/dist/httpHeaders/basic/index.js +0 -1
  255. package/dist/httpHeaders/conversion/httpHeaders.conversion.d.ts +0 -1
  256. package/dist/httpHeaders/conversion/httpHeaders.conversion.js +0 -1
  257. package/dist/httpHeaders/conversion/httpHeaders.conversionObject.d.ts +0 -1
  258. package/dist/httpHeaders/conversion/httpHeaders.conversionObject.js +0 -1
  259. package/dist/httpHeaders/conversion/index.d.ts +0 -1
  260. package/dist/httpHeaders/conversion/index.js +0 -1
  261. package/dist/httpHeaders/etag/httpHeaders.etag.d.ts +0 -1
  262. package/dist/httpHeaders/etag/httpHeaders.etag.js +0 -1
  263. package/dist/httpHeaders/etag/httpHeaders.etagMatch.d.ts +0 -1
  264. package/dist/httpHeaders/etag/httpHeaders.etagMatch.js +0 -1
  265. package/dist/httpHeaders/etag/index.d.ts +0 -1
  266. package/dist/httpHeaders/etag/index.js +0 -1
  267. package/dist/httpHeaders/forwarded/httpHeaders.forwarded.d.ts +0 -1
  268. package/dist/httpHeaders/forwarded/httpHeaders.forwarded.js +0 -1
  269. package/dist/httpHeaders/forwarded/index.d.ts +0 -1
  270. package/dist/httpHeaders/forwarded/index.js +0 -1
  271. package/dist/httpHeaders/http.headers.d.ts +0 -1
  272. package/dist/httpHeaders/http.headers.js +0 -1
  273. package/dist/httpHeaders/index.d.ts +0 -1
  274. package/dist/httpHeaders/index.js +0 -1
  275. package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.d.ts +0 -1
  276. package/dist/httpHeaders/internal/httpHeaders.internal.typeGuards.js +0 -1
  277. package/dist/httpHeaders/internal/index.d.ts +0 -1
  278. package/dist/httpHeaders/internal/index.js +0 -1
  279. package/dist/httpHeaders/list/httpHeaders.list.d.ts +0 -1
  280. package/dist/httpHeaders/list/httpHeaders.list.js +0 -1
  281. package/dist/httpHeaders/list/httpHeaders.listMutation.d.ts +0 -1
  282. package/dist/httpHeaders/list/httpHeaders.listMutation.js +0 -1
  283. package/dist/httpHeaders/list/index.d.ts +0 -1
  284. package/dist/httpHeaders/list/index.js +0 -1
  285. package/dist/httpHeaders/security/httpHeaders.security.d.ts +0 -1
  286. package/dist/httpHeaders/security/httpHeaders.security.js +0 -1
  287. package/dist/httpHeaders/security/index.d.ts +0 -1
  288. package/dist/httpHeaders/security/index.js +0 -1
  289. package/dist/httpHeaders/types/httpHeaders.type.d.ts +0 -1
  290. package/dist/httpHeaders/types/httpHeaders.type.js +0 -1
  291. package/dist/httpHeaders/types/index.d.ts +0 -1
  292. package/dist/httpHeaders/types/index.js +0 -1
  293. package/dist/httpHsts/http.hsts.d.ts +0 -1
  294. package/dist/httpHsts/http.hsts.js +0 -1
  295. package/dist/httpHsts/index.d.ts +0 -1
  296. package/dist/httpHsts/index.js +0 -1
  297. package/dist/httpInterceptors/builtin/httpInterceptor.request.d.ts +0 -1
  298. package/dist/httpInterceptors/builtin/httpInterceptor.request.js +0 -1
  299. package/dist/httpInterceptors/builtin/httpInterceptor.response.d.ts +0 -1
  300. package/dist/httpInterceptors/builtin/httpInterceptor.response.js +0 -1
  301. package/dist/httpInterceptors/builtin/index.d.ts +0 -1
  302. package/dist/httpInterceptors/builtin/index.js +0 -1
  303. package/dist/httpInterceptors/http.interceptors.d.ts +0 -1
  304. package/dist/httpInterceptors/http.interceptors.js +0 -1
  305. package/dist/httpInterceptors/httpInterceptor.helper.d.ts +0 -1
  306. package/dist/httpInterceptors/httpInterceptor.helper.js +0 -1
  307. package/dist/httpInterceptors/httpInterceptor.type.d.ts +0 -1
  308. package/dist/httpInterceptors/httpInterceptor.type.js +0 -1
  309. package/dist/httpInterceptors/index.d.ts +0 -1
  310. package/dist/httpInterceptors/index.js +0 -1
  311. package/dist/httpInterceptors/manager/httpInterceptor.lookup.d.ts +0 -1
  312. package/dist/httpInterceptors/manager/httpInterceptor.lookup.js +0 -1
  313. package/dist/httpInterceptors/manager/httpInterceptor.manager.d.ts +0 -1
  314. package/dist/httpInterceptors/manager/httpInterceptor.manager.js +0 -1
  315. package/dist/httpInterceptors/manager/httpInterceptor.registration.d.ts +0 -1
  316. package/dist/httpInterceptors/manager/httpInterceptor.registration.js +0 -1
  317. package/dist/httpInterceptors/manager/httpInterceptor.snapshot.d.ts +0 -1
  318. package/dist/httpInterceptors/manager/httpInterceptor.snapshot.js +0 -1
  319. package/dist/httpInterceptors/manager/index.d.ts +0 -1
  320. package/dist/httpInterceptors/manager/index.js +0 -1
  321. package/dist/httpKeepAlive/httpKeepAlive.core.d.ts +0 -1
  322. package/dist/httpKeepAlive/httpKeepAlive.core.js +0 -1
  323. package/dist/httpKeepAlive/index.d.ts +0 -1
  324. package/dist/httpKeepAlive/index.js +0 -1
  325. package/dist/httpMethods/http.methods.d.ts +0 -1
  326. package/dist/httpMethods/http.methods.js +0 -1
  327. package/dist/httpMethods/index.d.ts +0 -1
  328. package/dist/httpMethods/index.js +0 -1
  329. package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.d.ts +0 -1
  330. package/dist/httpMiddleware/builtin/compose/httpMiddleware.compose.js +0 -1
  331. package/dist/httpMiddleware/builtin/compose/index.d.ts +0 -1
  332. package/dist/httpMiddleware/builtin/compose/index.js +0 -1
  333. package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.d.ts +0 -1
  334. package/dist/httpMiddleware/builtin/conditional/httpMiddleware.conditional.js +0 -1
  335. package/dist/httpMiddleware/builtin/conditional/index.d.ts +0 -1
  336. package/dist/httpMiddleware/builtin/conditional/index.js +0 -1
  337. package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.d.ts +0 -1
  338. package/dist/httpMiddleware/builtin/cors/httpMiddleware.cors.js +0 -1
  339. package/dist/httpMiddleware/builtin/cors/index.d.ts +0 -1
  340. package/dist/httpMiddleware/builtin/cors/index.js +0 -1
  341. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.d.ts +0 -1
  342. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.accessor.js +0 -1
  343. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.d.ts +0 -1
  344. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.contextHelper.js +0 -1
  345. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.media.d.ts +0 -1
  346. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.media.js +0 -1
  347. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.d.ts +0 -1
  348. package/dist/httpMiddleware/builtin/helpers/httpMiddleware.response.js +0 -1
  349. package/dist/httpMiddleware/builtin/helpers/index.d.ts +0 -1
  350. package/dist/httpMiddleware/builtin/helpers/index.js +0 -1
  351. package/dist/httpMiddleware/builtin/image/httpMiddleware.image.d.ts +0 -1
  352. package/dist/httpMiddleware/builtin/image/httpMiddleware.image.js +0 -1
  353. package/dist/httpMiddleware/builtin/image/index.d.ts +0 -1
  354. package/dist/httpMiddleware/builtin/image/index.js +0 -1
  355. package/dist/httpMiddleware/builtin/index.d.ts +0 -1
  356. package/dist/httpMiddleware/builtin/index.js +0 -1
  357. package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.d.ts +0 -1
  358. package/dist/httpMiddleware/builtin/logging/httpMiddleware.logging.js +0 -1
  359. package/dist/httpMiddleware/builtin/logging/index.d.ts +0 -1
  360. package/dist/httpMiddleware/builtin/logging/index.js +0 -1
  361. package/dist/httpMiddleware/builtin/rateLimit/httpMiddleware.rateLimit.d.ts +3 -3
  362. package/dist/httpMiddleware/builtin/rateLimit/httpMiddleware.rateLimit.js +33 -4
  363. package/dist/httpMiddleware/builtin/rateLimit/index.d.ts +0 -1
  364. package/dist/httpMiddleware/builtin/rateLimit/index.js +0 -1
  365. package/dist/httpMiddleware/builtin/security/httpMiddleware.security.d.ts +0 -1
  366. package/dist/httpMiddleware/builtin/security/httpMiddleware.security.js +0 -1
  367. package/dist/httpMiddleware/builtin/security/index.d.ts +0 -1
  368. package/dist/httpMiddleware/builtin/security/index.js +0 -1
  369. package/dist/httpMiddleware/builtin/static/httpMiddleware.static.d.ts +0 -1
  370. package/dist/httpMiddleware/builtin/static/httpMiddleware.static.js +0 -1
  371. package/dist/httpMiddleware/builtin/static/index.d.ts +0 -1
  372. package/dist/httpMiddleware/builtin/static/index.js +0 -1
  373. package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.d.ts +0 -1
  374. package/dist/httpMiddleware/builtin/timing/httpMiddleware.timing.js +0 -1
  375. package/dist/httpMiddleware/builtin/timing/index.d.ts +0 -1
  376. package/dist/httpMiddleware/builtin/timing/index.js +0 -1
  377. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.d.ts +0 -1
  378. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.js +0 -1
  379. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.options.d.ts +0 -1
  380. package/dist/httpMiddleware/builtin/video/httpMiddleware.video.options.js +0 -1
  381. package/dist/httpMiddleware/builtin/video/index.d.ts +0 -1
  382. package/dist/httpMiddleware/builtin/video/index.js +0 -1
  383. package/dist/httpMiddleware/httpMiddleware.error.d.ts +0 -1
  384. package/dist/httpMiddleware/httpMiddleware.error.js +0 -1
  385. package/dist/httpMiddleware/httpMiddleware.state.d.ts +0 -1
  386. package/dist/httpMiddleware/httpMiddleware.state.js +0 -1
  387. package/dist/httpMiddleware/httpMiddleware.type.d.ts +0 -1
  388. package/dist/httpMiddleware/httpMiddleware.type.js +0 -1
  389. package/dist/httpMiddleware/index.d.ts +0 -1
  390. package/dist/httpMiddleware/index.js +0 -1
  391. package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.d.ts +0 -1
  392. package/dist/httpMiddleware/pipeline/httpMiddleware.pipeline.js +0 -1
  393. package/dist/httpMiddleware/pipeline/httpPipeline.execution.d.ts +0 -1
  394. package/dist/httpMiddleware/pipeline/httpPipeline.execution.js +0 -1
  395. package/dist/httpMiddleware/pipeline/httpPipeline.guardResponse.d.ts +0 -1
  396. package/dist/httpMiddleware/pipeline/httpPipeline.guardResponse.js +0 -1
  397. package/dist/httpMiddleware/pipeline/httpPipeline.helper.d.ts +0 -1
  398. package/dist/httpMiddleware/pipeline/httpPipeline.helper.js +0 -1
  399. package/dist/httpMiddleware/pipeline/httpPipeline.registration.d.ts +0 -1
  400. package/dist/httpMiddleware/pipeline/httpPipeline.registration.js +0 -1
  401. package/dist/httpMiddleware/pipeline/index.d.ts +0 -1
  402. package/dist/httpMiddleware/pipeline/index.js +0 -1
  403. package/dist/httpMime/http.mime.d.ts +0 -1
  404. package/dist/httpMime/http.mime.js +0 -1
  405. package/dist/httpMime/httpMime.sniff.d.ts +31 -0
  406. package/dist/httpMime/httpMime.sniff.js +90 -0
  407. package/dist/httpMime/index.d.ts +1 -1
  408. package/dist/httpMime/index.js +1 -1
  409. package/dist/httpMultipart/http.multipart.d.ts +0 -1
  410. package/dist/httpMultipart/http.multipart.js +0 -1
  411. package/dist/httpMultipart/index.d.ts +0 -1
  412. package/dist/httpMultipart/index.js +0 -1
  413. package/dist/httpNegotiation/httpNegotiation.core.d.ts +0 -1
  414. package/dist/httpNegotiation/httpNegotiation.core.js +0 -1
  415. package/dist/httpNegotiation/index.d.ts +0 -1
  416. package/dist/httpNegotiation/index.js +0 -1
  417. package/dist/httpOpenApi/httpOpenApi.document.d.ts +0 -1
  418. package/dist/httpOpenApi/httpOpenApi.document.js +0 -1
  419. package/dist/httpOpenApi/httpOpenApi.mount.d.ts +2 -2
  420. package/dist/httpOpenApi/httpOpenApi.mount.js +7 -3
  421. package/dist/httpOpenApi/httpOpenApi.type.d.ts +5 -2
  422. package/dist/httpOpenApi/httpOpenApi.type.js +0 -1
  423. package/dist/httpOpenApi/index.d.ts +0 -1
  424. package/dist/httpOpenApi/index.js +0 -1
  425. package/dist/httpOpenApi/routeTable/index.d.ts +0 -1
  426. package/dist/httpOpenApi/routeTable/index.js +0 -1
  427. package/dist/httpOpenApi/routeTable/routeTable.collect.d.ts +0 -1
  428. package/dist/httpOpenApi/routeTable/routeTable.collect.js +0 -1
  429. package/dist/httpOpenApi/routeTable/routeTable.merge.d.ts +0 -1
  430. package/dist/httpOpenApi/routeTable/routeTable.merge.js +0 -1
  431. package/dist/httpOpenApi/routeTable/routeTable.template.d.ts +0 -1
  432. package/dist/httpOpenApi/routeTable/routeTable.template.js +0 -1
  433. package/dist/httpProtocol/http.protocol.d.ts +0 -1
  434. package/dist/httpProtocol/http.protocol.js +0 -1
  435. package/dist/httpProtocol/index.d.ts +0 -1
  436. package/dist/httpProtocol/index.js +0 -1
  437. package/dist/httpProxy/http.proxy.d.ts +0 -1
  438. package/dist/httpProxy/http.proxy.js +0 -1
  439. package/dist/httpProxy/httpProxy.pathGuard.d.ts +0 -1
  440. package/dist/httpProxy/httpProxy.pathGuard.js +0 -1
  441. package/dist/httpProxy/index.d.ts +0 -1
  442. package/dist/httpProxy/index.js +0 -1
  443. package/dist/httpQuery/index.d.ts +0 -1
  444. package/dist/httpQuery/index.js +0 -1
  445. package/dist/httpQuery/queryParse/index.d.ts +0 -1
  446. package/dist/httpQuery/queryParse/index.js +0 -1
  447. package/dist/httpQuery/queryParse/queryParse.flat.d.ts +0 -1
  448. package/dist/httpQuery/queryParse/queryParse.flat.js +0 -1
  449. package/dist/httpQuery/queryParse/queryParse.nested.d.ts +0 -1
  450. package/dist/httpQuery/queryParse/queryParse.nested.js +0 -1
  451. package/dist/httpQuery/queryParse/queryParse.tokenizer.d.ts +0 -1
  452. package/dist/httpQuery/queryParse/queryParse.tokenizer.js +0 -1
  453. package/dist/httpQuery/queryRequest/index.d.ts +0 -1
  454. package/dist/httpQuery/queryRequest/index.js +0 -1
  455. package/dist/httpQuery/queryRequest/query.request.d.ts +0 -1
  456. package/dist/httpQuery/queryRequest/query.request.js +0 -1
  457. package/dist/httpQuery/querySerialize/index.d.ts +0 -1
  458. package/dist/httpQuery/querySerialize/index.js +0 -1
  459. package/dist/httpQuery/querySerialize/query.util.d.ts +0 -1
  460. package/dist/httpQuery/querySerialize/query.util.js +0 -1
  461. package/dist/httpQuery/querySerialize/querySerialize.core.d.ts +0 -1
  462. package/dist/httpQuery/querySerialize/querySerialize.core.js +0 -1
  463. package/dist/httpQuery/queryTypes/index.d.ts +0 -1
  464. package/dist/httpQuery/queryTypes/index.js +0 -1
  465. package/dist/httpQuery/queryTypes/query.container.d.ts +0 -1
  466. package/dist/httpQuery/queryTypes/query.container.js +0 -1
  467. package/dist/httpQuery/queryTypes/query.limit.d.ts +0 -1
  468. package/dist/httpQuery/queryTypes/query.limit.js +0 -1
  469. package/dist/httpQuery/queryTypes/query.type.d.ts +0 -1
  470. package/dist/httpQuery/queryTypes/query.type.js +0 -1
  471. package/dist/httpRange/http.range.d.ts +0 -1
  472. package/dist/httpRange/http.range.js +0 -1
  473. package/dist/httpRange/index.d.ts +0 -1
  474. package/dist/httpRange/index.js +0 -1
  475. package/dist/httpRedirect/http.redirect.d.ts +0 -1
  476. package/dist/httpRedirect/http.redirect.js +0 -1
  477. package/dist/httpRedirect/index.d.ts +0 -1
  478. package/dist/httpRedirect/index.js +0 -1
  479. package/dist/httpRequest/http.request.d.ts +0 -1
  480. package/dist/httpRequest/http.request.js +12 -2
  481. package/dist/httpRequest/httpRequest.context.constant.d.ts +0 -1
  482. package/dist/httpRequest/httpRequest.context.constant.js +0 -1
  483. package/dist/httpRequest/httpRequest.context.d.ts +0 -1
  484. package/dist/httpRequest/httpRequest.context.id.d.ts +0 -1
  485. package/dist/httpRequest/httpRequest.context.id.js +0 -1
  486. package/dist/httpRequest/httpRequest.context.js +15 -2
  487. package/dist/httpRequest/httpRequest.context.type.d.ts +0 -1
  488. package/dist/httpRequest/httpRequest.context.type.js +0 -1
  489. package/dist/httpRequest/index.d.ts +0 -1
  490. package/dist/httpRequest/index.js +0 -1
  491. package/dist/httpRequest/requestId/httpRequest.requestId.d.ts +0 -1
  492. package/dist/httpRequest/requestId/httpRequest.requestId.js +0 -1
  493. package/dist/httpRequest/requestId/index.d.ts +0 -1
  494. package/dist/httpRequest/requestId/index.js +0 -1
  495. package/dist/httpRequest/target/httpRequest.target.d.ts +0 -1
  496. package/dist/httpRequest/target/httpRequest.target.js +0 -1
  497. package/dist/httpRequest/target/index.d.ts +0 -1
  498. package/dist/httpRequest/target/index.js +0 -1
  499. package/dist/httpResponse/core/httpResponse.statusText.d.ts +0 -1
  500. package/dist/httpResponse/core/httpResponse.statusText.js +0 -1
  501. package/dist/httpResponse/core/httpResponse.type.d.ts +0 -1
  502. package/dist/httpResponse/core/httpResponse.type.js +0 -1
  503. package/dist/httpResponse/core/index.d.ts +0 -1
  504. package/dist/httpResponse/core/index.js +0 -1
  505. package/dist/httpResponse/http.response.d.ts +0 -1
  506. package/dist/httpResponse/http.response.js +0 -1
  507. package/dist/httpResponse/httpResponse.context.d.ts +0 -1
  508. package/dist/httpResponse/httpResponse.context.js +0 -1
  509. package/dist/httpResponse/httpResponse.fromWeb.d.ts +0 -1
  510. package/dist/httpResponse/httpResponse.fromWeb.js +0 -1
  511. package/dist/httpResponse/httpResponse.helper.d.ts +0 -1
  512. package/dist/httpResponse/httpResponse.helper.js +0 -1
  513. package/dist/httpResponse/httpResponse.writer.d.ts +0 -1
  514. package/dist/httpResponse/httpResponse.writer.js +0 -1
  515. package/dist/httpResponse/index.d.ts +0 -1
  516. package/dist/httpResponse/index.js +0 -1
  517. package/dist/httpRouter/core/error/httpRouter.error.d.ts +0 -1
  518. package/dist/httpRouter/core/error/httpRouter.error.js +0 -1
  519. package/dist/httpRouter/core/error/index.d.ts +0 -1
  520. package/dist/httpRouter/core/error/index.js +0 -1
  521. package/dist/httpRouter/core/factory/httpRoute.factory.base.d.ts +0 -1
  522. package/dist/httpRouter/core/factory/httpRoute.factory.base.js +24 -22
  523. package/dist/httpRouter/core/factory/httpRoute.factory.d.ts +7 -1
  524. package/dist/httpRouter/core/factory/httpRoute.factory.js +36 -13
  525. package/dist/httpRouter/core/factory/index.d.ts +0 -1
  526. package/dist/httpRouter/core/factory/index.js +0 -1
  527. package/dist/httpRouter/core/group/httpRouterGroup.core.d.ts +0 -1
  528. package/dist/httpRouter/core/group/httpRouterGroup.core.js +0 -1
  529. package/dist/httpRouter/core/group/index.d.ts +0 -1
  530. package/dist/httpRouter/core/group/index.js +0 -1
  531. package/dist/httpRouter/core/index.d.ts +0 -1
  532. package/dist/httpRouter/core/index.js +0 -1
  533. package/dist/httpRouter/core/register/httpRouter.register.d.ts +15 -1
  534. package/dist/httpRouter/core/register/httpRouter.register.js +124 -26
  535. package/dist/httpRouter/core/register/httpRouter.shadow.d.ts +18 -0
  536. package/dist/httpRouter/core/register/httpRouter.shadow.js +91 -0
  537. package/dist/httpRouter/core/register/index.d.ts +1 -1
  538. package/dist/httpRouter/core/register/index.js +1 -1
  539. package/dist/httpRouter/core/registry/core/httpRegistry.helper.d.ts +0 -1
  540. package/dist/httpRouter/core/registry/core/httpRegistry.helper.js +0 -1
  541. package/dist/httpRouter/core/registry/core/httpRegistry.type.d.ts +0 -1
  542. package/dist/httpRouter/core/registry/core/httpRegistry.type.js +0 -1
  543. package/dist/httpRouter/core/registry/core/index.d.ts +0 -1
  544. package/dist/httpRouter/core/registry/core/index.js +0 -1
  545. package/dist/httpRouter/core/registry/httpRegistry.core.d.ts +0 -1
  546. package/dist/httpRouter/core/registry/httpRegistry.core.js +0 -1
  547. package/dist/httpRouter/core/registry/httpRegistry.factory.d.ts +0 -1
  548. package/dist/httpRouter/core/registry/httpRegistry.factory.js +0 -1
  549. package/dist/httpRouter/core/registry/httpRegistry.group.d.ts +0 -1
  550. package/dist/httpRouter/core/registry/httpRegistry.group.js +0 -1
  551. package/dist/httpRouter/core/registry/index.d.ts +0 -1
  552. package/dist/httpRouter/core/registry/index.js +0 -1
  553. package/dist/httpRouter/core/types/httpRouter.type.d.ts +27 -1
  554. package/dist/httpRouter/core/types/httpRouter.type.js +0 -1
  555. package/dist/httpRouter/core/types/index.d.ts +0 -1
  556. package/dist/httpRouter/core/types/index.js +0 -1
  557. package/dist/httpRouter/core/util/httpRoute.util.d.ts +0 -1
  558. package/dist/httpRouter/core/util/httpRoute.util.js +0 -1
  559. package/dist/httpRouter/core/util/index.d.ts +0 -1
  560. package/dist/httpRouter/core/util/index.js +0 -1
  561. package/dist/httpRouter/dispatch/httpRoute.dispatcher.d.ts +0 -1
  562. package/dist/httpRouter/dispatch/httpRoute.dispatcher.js +0 -1
  563. package/dist/httpRouter/dispatch/httpRoute.stack.d.ts +0 -1
  564. package/dist/httpRouter/dispatch/httpRoute.stack.js +0 -1
  565. package/dist/httpRouter/dispatch/index.d.ts +0 -1
  566. package/dist/httpRouter/dispatch/index.js +0 -1
  567. package/dist/httpRouter/httpRouter.context.d.ts +0 -1
  568. package/dist/httpRouter/httpRouter.context.js +0 -1
  569. package/dist/httpRouter/httpRouter.state.d.ts +0 -1
  570. package/dist/httpRouter/httpRouter.state.js +0 -1
  571. package/dist/httpRouter/index.d.ts +0 -1
  572. package/dist/httpRouter/index.js +0 -1
  573. package/dist/httpRouter/matching/httpRoute.matcher.core.d.ts +0 -1
  574. package/dist/httpRouter/matching/httpRoute.matcher.core.js +0 -1
  575. package/dist/httpRouter/matching/httpRoute.matcher.d.ts +0 -1
  576. package/dist/httpRouter/matching/httpRoute.matcher.js +0 -1
  577. package/dist/httpRouter/matching/index.d.ts +0 -1
  578. package/dist/httpRouter/matching/index.js +0 -1
  579. package/dist/httpRouter/pattern/core/httpPattern.compilation.d.ts +0 -1
  580. package/dist/httpRouter/pattern/core/httpPattern.compilation.js +0 -1
  581. package/dist/httpRouter/pattern/core/httpPattern.matching.d.ts +0 -1
  582. package/dist/httpRouter/pattern/core/httpPattern.matching.js +0 -1
  583. package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.d.ts +0 -1
  584. package/dist/httpRouter/pattern/core/httpPattern.regexBuilding.js +0 -1
  585. package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.d.ts +0 -1
  586. package/dist/httpRouter/pattern/core/httpPattern.segmentParsing.js +0 -1
  587. package/dist/httpRouter/pattern/core/httpPattern.type.d.ts +0 -1
  588. package/dist/httpRouter/pattern/core/httpPattern.type.js +0 -1
  589. package/dist/httpRouter/pattern/core/index.d.ts +0 -1
  590. package/dist/httpRouter/pattern/core/index.js +0 -1
  591. package/dist/httpRouter/pattern/httpPattern.factory.d.ts +0 -1
  592. package/dist/httpRouter/pattern/httpPattern.factory.js +0 -1
  593. package/dist/httpRouter/pattern/httpRoute.pattern.parse.d.ts +18 -1
  594. package/dist/httpRouter/pattern/httpRoute.pattern.parse.js +51 -13
  595. package/dist/httpRouter/pattern/index.d.ts +0 -1
  596. package/dist/httpRouter/pattern/index.js +0 -1
  597. package/dist/httpRouter/result/httpRoute.result.builder.d.ts +0 -1
  598. package/dist/httpRouter/result/httpRoute.result.builder.js +0 -1
  599. package/dist/httpRouter/result/httpRoute.result.class.d.ts +0 -1
  600. package/dist/httpRouter/result/httpRoute.result.class.js +0 -1
  601. package/dist/httpRouter/result/httpRoute.result.d.ts +0 -1
  602. package/dist/httpRouter/result/httpRoute.result.error.4xx.d.ts +0 -1
  603. package/dist/httpRouter/result/httpRoute.result.error.4xx.js +0 -1
  604. package/dist/httpRouter/result/httpRoute.result.error.5xx.d.ts +0 -1
  605. package/dist/httpRouter/result/httpRoute.result.error.5xx.js +0 -1
  606. package/dist/httpRouter/result/httpRoute.result.factory.d.ts +0 -1
  607. package/dist/httpRouter/result/httpRoute.result.factory.js +0 -1
  608. package/dist/httpRouter/result/httpRoute.result.guard.d.ts +0 -1
  609. package/dist/httpRouter/result/httpRoute.result.guard.js +0 -1
  610. package/dist/httpRouter/result/httpRoute.result.js +0 -1
  611. package/dist/httpRouter/result/httpRoute.result.normalize.d.ts +0 -1
  612. package/dist/httpRouter/result/httpRoute.result.normalize.js +0 -1
  613. package/dist/httpRouter/result/httpRoute.result.output.d.ts +0 -1
  614. package/dist/httpRouter/result/httpRoute.result.output.js +0 -1
  615. package/dist/httpRouter/result/httpRoute.result.serialize.d.ts +0 -1
  616. package/dist/httpRouter/result/httpRoute.result.serialize.js +0 -1
  617. package/dist/httpRouter/result/httpRoute.result.type.d.ts +0 -1
  618. package/dist/httpRouter/result/httpRoute.result.type.js +0 -1
  619. package/dist/httpRouter/result/httpRoute.result.util.d.ts +0 -1
  620. package/dist/httpRouter/result/httpRoute.result.util.js +0 -1
  621. package/dist/httpRouter/result/index.d.ts +0 -1
  622. package/dist/httpRouter/result/index.js +0 -1
  623. package/dist/httpRouter/tree/core/httpTree.enumerate.d.ts +21 -0
  624. package/dist/httpRouter/tree/core/httpTree.enumerate.js +43 -0
  625. package/dist/httpRouter/tree/core/httpTree.helper.d.ts +2 -3
  626. package/dist/httpRouter/tree/core/httpTree.helper.js +11 -10
  627. package/dist/httpRouter/tree/core/httpTree.nodeCreation.d.ts +15 -1
  628. package/dist/httpRouter/tree/core/httpTree.nodeCreation.js +58 -34
  629. package/dist/httpRouter/tree/core/httpTree.traversal.d.ts +15 -14
  630. package/dist/httpRouter/tree/core/httpTree.traversal.js +46 -48
  631. package/dist/httpRouter/tree/core/httpTree.type.d.ts +7 -6
  632. package/dist/httpRouter/tree/core/httpTree.type.js +0 -1
  633. package/dist/httpRouter/tree/core/index.d.ts +1 -1
  634. package/dist/httpRouter/tree/core/index.js +1 -1
  635. package/dist/httpRouter/tree/httpTree.core.d.ts +7 -3
  636. package/dist/httpRouter/tree/httpTree.core.js +17 -19
  637. package/dist/httpRouter/tree/httpTree.factory.d.ts +0 -1
  638. package/dist/httpRouter/tree/httpTree.factory.js +0 -1
  639. package/dist/httpRouter/tree/index.d.ts +0 -1
  640. package/dist/httpRouter/tree/index.js +0 -1
  641. package/dist/httpSecurity/httpSecurity.config.d.ts +10 -2
  642. package/dist/httpSecurity/httpSecurity.config.js +10 -2
  643. package/dist/httpSecurity/httpSecurity.guard.d.ts +0 -1
  644. package/dist/httpSecurity/httpSecurity.guard.js +14 -2
  645. package/dist/httpSecurity/httpSecurity.nodeGuard.d.ts +0 -1
  646. package/dist/httpSecurity/httpSecurity.nodeGuard.js +0 -1
  647. package/dist/httpSecurity/httpSecurity.validator.d.ts +0 -1
  648. package/dist/httpSecurity/httpSecurity.validator.js +0 -1
  649. package/dist/httpSecurity/index.d.ts +1 -2
  650. package/dist/httpSecurity/index.js +1 -2
  651. package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.d.ts +0 -1
  652. package/dist/httpSecurityHeaders/core/httpSecurityHeader.type.js +0 -1
  653. package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.d.ts +0 -1
  654. package/dist/httpSecurityHeaders/core/httpSecurityHeader.validation.js +0 -1
  655. package/dist/httpSecurityHeaders/core/index.d.ts +0 -1
  656. package/dist/httpSecurityHeaders/core/index.js +0 -1
  657. package/dist/httpSecurityHeaders/httpSecurity.headers.d.ts +0 -1
  658. package/dist/httpSecurityHeaders/httpSecurity.headers.js +0 -1
  659. package/dist/httpSecurityHeaders/httpSecurityHeader.factory.d.ts +0 -1
  660. package/dist/httpSecurityHeaders/httpSecurityHeader.factory.js +0 -1
  661. package/dist/httpSecurityHeaders/httpSecurityHeader.individual.d.ts +0 -1
  662. package/dist/httpSecurityHeaders/httpSecurityHeader.individual.js +0 -1
  663. package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.d.ts +0 -1
  664. package/dist/httpSecurityHeaders/httpSecurityHeader.permissionsPolicy.js +0 -1
  665. package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.d.ts +8 -2
  666. package/dist/httpSecurityHeaders/httpSecurityHeader.recommended.js +11 -4
  667. package/dist/httpSecurityHeaders/index.d.ts +0 -1
  668. package/dist/httpSecurityHeaders/index.js +0 -1
  669. package/dist/httpServer/core/httpServer.core.d.ts +0 -1
  670. package/dist/httpServer/core/httpServer.core.js +0 -1
  671. package/dist/httpServer/core/index.d.ts +0 -1
  672. package/dist/httpServer/core/index.js +0 -1
  673. package/dist/httpServer/factory/httpServer.factory.d.ts +0 -1
  674. package/dist/httpServer/factory/httpServer.factory.js +0 -1
  675. package/dist/httpServer/factory/index.d.ts +0 -1
  676. package/dist/httpServer/factory/index.js +0 -1
  677. package/dist/httpServer/index.d.ts +0 -1
  678. package/dist/httpServer/index.js +0 -1
  679. package/dist/httpServer/manager/httpServer.manager.d.ts +0 -1
  680. package/dist/httpServer/manager/httpServer.manager.js +0 -1
  681. package/dist/httpServer/manager/index.d.ts +0 -1
  682. package/dist/httpServer/manager/index.js +0 -1
  683. package/dist/httpServer/types/httpServer.type.d.ts +0 -1
  684. package/dist/httpServer/types/httpServer.type.js +0 -1
  685. package/dist/httpStatus/httpStatus.categoryPredicate.d.ts +0 -1
  686. package/dist/httpStatus/httpStatus.categoryPredicate.js +0 -1
  687. package/dist/httpStatus/httpStatus.clientErrorConstant.d.ts +0 -1
  688. package/dist/httpStatus/httpStatus.clientErrorConstant.js +0 -1
  689. package/dist/httpStatus/httpStatus.clientErrorTextConstant.d.ts +0 -1
  690. package/dist/httpStatus/httpStatus.clientErrorTextConstant.js +0 -1
  691. package/dist/httpStatus/httpStatus.collection.d.ts +0 -1
  692. package/dist/httpStatus/httpStatus.collection.js +0 -1
  693. package/dist/httpStatus/httpStatus.commonPredicate.d.ts +0 -1
  694. package/dist/httpStatus/httpStatus.commonPredicate.js +0 -1
  695. package/dist/httpStatus/httpStatus.constant.d.ts +0 -1
  696. package/dist/httpStatus/httpStatus.constant.js +0 -1
  697. package/dist/httpStatus/httpStatus.errorPredicate.d.ts +0 -1
  698. package/dist/httpStatus/httpStatus.errorPredicate.js +0 -1
  699. package/dist/httpStatus/httpStatus.info.d.ts +0 -1
  700. package/dist/httpStatus/httpStatus.info.js +0 -1
  701. package/dist/httpStatus/httpStatus.informationalSuccessConstant.d.ts +0 -1
  702. package/dist/httpStatus/httpStatus.informationalSuccessConstant.js +0 -1
  703. package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.d.ts +0 -1
  704. package/dist/httpStatus/httpStatus.informationalSuccessTextConstant.js +0 -1
  705. package/dist/httpStatus/httpStatus.lookup.d.ts +0 -1
  706. package/dist/httpStatus/httpStatus.lookup.js +0 -1
  707. package/dist/httpStatus/httpStatus.name.d.ts +0 -1
  708. package/dist/httpStatus/httpStatus.name.js +0 -1
  709. package/dist/httpStatus/httpStatus.predicate.d.ts +0 -1
  710. package/dist/httpStatus/httpStatus.predicate.js +0 -1
  711. package/dist/httpStatus/httpStatus.redirectErrorConstant.d.ts +0 -1
  712. package/dist/httpStatus/httpStatus.redirectErrorConstant.js +0 -1
  713. package/dist/httpStatus/httpStatus.redirectErrorTextConstant.d.ts +0 -1
  714. package/dist/httpStatus/httpStatus.redirectErrorTextConstant.js +0 -1
  715. package/dist/httpStatus/httpStatus.redirectPredicate.d.ts +0 -1
  716. package/dist/httpStatus/httpStatus.redirectPredicate.js +0 -1
  717. package/dist/httpStatus/httpStatus.redirectionConstant.d.ts +0 -1
  718. package/dist/httpStatus/httpStatus.redirectionConstant.js +0 -1
  719. package/dist/httpStatus/httpStatus.redirectionTextConstant.d.ts +0 -1
  720. package/dist/httpStatus/httpStatus.redirectionTextConstant.js +0 -1
  721. package/dist/httpStatus/httpStatus.semantics.d.ts +0 -1
  722. package/dist/httpStatus/httpStatus.semantics.js +0 -1
  723. package/dist/httpStatus/httpStatus.serverErrorConstant.d.ts +0 -1
  724. package/dist/httpStatus/httpStatus.serverErrorConstant.js +0 -1
  725. package/dist/httpStatus/httpStatus.serverErrorTextConstant.d.ts +0 -1
  726. package/dist/httpStatus/httpStatus.serverErrorTextConstant.js +0 -1
  727. package/dist/httpStatus/httpStatus.statusConstant.d.ts +0 -1
  728. package/dist/httpStatus/httpStatus.statusConstant.js +0 -1
  729. package/dist/httpStatus/httpStatus.statusTextConstant.d.ts +0 -1
  730. package/dist/httpStatus/httpStatus.statusTextConstant.js +0 -1
  731. package/dist/httpStatus/httpStatus.type.d.ts +0 -1
  732. package/dist/httpStatus/httpStatus.type.js +0 -1
  733. package/dist/httpStatus/httpStatus.validator.d.ts +0 -1
  734. package/dist/httpStatus/httpStatus.validator.js +0 -1
  735. package/dist/httpStatus/httpStatusCodes.constant.d.ts +0 -1
  736. package/dist/httpStatus/httpStatusCodes.constant.js +0 -1
  737. package/dist/httpStatus/index.d.ts +0 -1
  738. package/dist/httpStatus/index.js +0 -1
  739. package/dist/httpStream/httpStream.backpressure.d.ts +0 -1
  740. package/dist/httpStream/httpStream.backpressure.js +0 -1
  741. package/dist/httpStream/httpStream.constants.d.ts +0 -1
  742. package/dist/httpStream/httpStream.constants.js +0 -1
  743. package/dist/httpStream/httpStream.consume.d.ts +0 -1
  744. package/dist/httpStream/httpStream.consume.js +0 -1
  745. package/dist/httpStream/httpStream.destroy.d.ts +0 -1
  746. package/dist/httpStream/httpStream.destroy.js +0 -1
  747. package/dist/httpStream/httpStream.error.d.ts +0 -1
  748. package/dist/httpStream/httpStream.error.js +0 -1
  749. package/dist/httpStream/httpStream.eventHelper.d.ts +0 -1
  750. package/dist/httpStream/httpStream.eventHelper.js +0 -1
  751. package/dist/httpStream/httpStream.helper.d.ts +0 -1
  752. package/dist/httpStream/httpStream.helper.js +0 -1
  753. package/dist/httpStream/httpStream.pipe.d.ts +0 -1
  754. package/dist/httpStream/httpStream.pipe.js +0 -1
  755. package/dist/httpStream/httpStream.progress.d.ts +0 -1
  756. package/dist/httpStream/httpStream.progress.js +0 -1
  757. package/dist/httpStream/httpStream.read.d.ts +0 -1
  758. package/dist/httpStream/httpStream.read.js +0 -1
  759. package/dist/httpStream/httpStream.request.d.ts +0 -1
  760. package/dist/httpStream/httpStream.request.js +0 -1
  761. package/dist/httpStream/httpStream.state.d.ts +0 -1
  762. package/dist/httpStream/httpStream.state.js +0 -1
  763. package/dist/httpStream/httpStream.transform.d.ts +0 -1
  764. package/dist/httpStream/httpStream.transform.js +0 -1
  765. package/dist/httpStream/httpStream.types.d.ts +0 -1
  766. package/dist/httpStream/httpStream.types.js +0 -1
  767. package/dist/httpStream/index.d.ts +0 -1
  768. package/dist/httpStream/index.js +0 -1
  769. package/dist/httpTrustProxy/httpTrustProxy.compilation.d.ts +0 -1
  770. package/dist/httpTrustProxy/httpTrustProxy.compilation.js +0 -1
  771. package/dist/httpTrustProxy/httpTrustProxy.core.d.ts +0 -1
  772. package/dist/httpTrustProxy/httpTrustProxy.core.js +0 -1
  773. package/dist/httpTrustProxy/httpTrustProxy.helper.d.ts +0 -1
  774. package/dist/httpTrustProxy/httpTrustProxy.helper.js +0 -1
  775. package/dist/httpTrustProxy/httpTrustProxy.ip.d.ts +0 -1
  776. package/dist/httpTrustProxy/httpTrustProxy.ip.js +0 -1
  777. package/dist/httpTrustProxy/httpTrustProxy.parsing.d.ts +0 -1
  778. package/dist/httpTrustProxy/httpTrustProxy.parsing.js +0 -1
  779. package/dist/httpTrustProxy/httpTrustProxy.type.d.ts +0 -1
  780. package/dist/httpTrustProxy/httpTrustProxy.type.js +0 -1
  781. package/dist/httpTrustProxy/index.d.ts +0 -1
  782. package/dist/httpTrustProxy/index.js +0 -1
  783. package/dist/httpTypes/http.types.d.ts +0 -1
  784. package/dist/httpTypes/http.types.js +0 -1
  785. package/dist/httpTypes/index.d.ts +0 -1
  786. package/dist/httpTypes/index.js +0 -1
  787. package/dist/httpUrl/http.url.d.ts +0 -1
  788. package/dist/httpUrl/http.url.js +0 -1
  789. package/dist/httpUrl/index.d.ts +0 -1
  790. package/dist/httpUrl/index.js +0 -1
  791. package/dist/httpValidation/httpValidationAssertion.d.ts +0 -1
  792. package/dist/httpValidation/httpValidationAssertion.js +0 -1
  793. package/dist/httpValidation/httpValidationAuthority.d.ts +0 -1
  794. package/dist/httpValidation/httpValidationAuthority.js +0 -1
  795. package/dist/httpValidation/httpValidationAuthorization.d.ts +0 -1
  796. package/dist/httpValidation/httpValidationAuthorization.js +0 -1
  797. package/dist/httpValidation/httpValidationCacheControl.d.ts +0 -1
  798. package/dist/httpValidation/httpValidationCacheControl.js +0 -1
  799. package/dist/httpValidation/httpValidationContentLength.d.ts +0 -1
  800. package/dist/httpValidation/httpValidationContentLength.js +0 -1
  801. package/dist/httpValidation/httpValidationContentType.d.ts +0 -1
  802. package/dist/httpValidation/httpValidationContentType.js +0 -1
  803. package/dist/httpValidation/httpValidationCookie.d.ts +0 -1
  804. package/dist/httpValidation/httpValidationCookie.js +0 -1
  805. package/dist/httpValidation/httpValidationDate.d.ts +0 -1
  806. package/dist/httpValidation/httpValidationDate.js +0 -1
  807. package/dist/httpValidation/httpValidationETag.d.ts +0 -1
  808. package/dist/httpValidation/httpValidationETag.js +0 -1
  809. package/dist/httpValidation/httpValidationHeader.d.ts +0 -1
  810. package/dist/httpValidation/httpValidationHeader.js +0 -1
  811. package/dist/httpValidation/httpValidationHostname.d.ts +0 -1
  812. package/dist/httpValidation/httpValidationHostname.js +0 -1
  813. package/dist/httpValidation/httpValidationMessage.d.ts +0 -1
  814. package/dist/httpValidation/httpValidationMessage.js +0 -1
  815. package/dist/httpValidation/httpValidationMethod.d.ts +0 -1
  816. package/dist/httpValidation/httpValidationMethod.js +0 -1
  817. package/dist/httpValidation/httpValidationPort.d.ts +0 -1
  818. package/dist/httpValidation/httpValidationPort.js +0 -1
  819. package/dist/httpValidation/httpValidationRange.d.ts +0 -1
  820. package/dist/httpValidation/httpValidationRange.js +0 -1
  821. package/dist/httpValidation/httpValidationRequestTarget.d.ts +0 -1
  822. package/dist/httpValidation/httpValidationRequestTarget.js +0 -1
  823. package/dist/httpValidation/httpValidationStatusCode.d.ts +0 -1
  824. package/dist/httpValidation/httpValidationStatusCode.js +0 -1
  825. package/dist/httpValidation/httpValidationToken.d.ts +0 -1
  826. package/dist/httpValidation/httpValidationToken.js +0 -1
  827. package/dist/httpValidation/httpValidationTypes.type.d.ts +0 -1
  828. package/dist/httpValidation/httpValidationTypes.type.js +0 -1
  829. package/dist/httpValidation/httpValidationUrl.d.ts +0 -1
  830. package/dist/httpValidation/httpValidationUrl.js +0 -1
  831. package/dist/httpValidation/index.d.ts +0 -1
  832. package/dist/httpValidation/index.js +0 -1
  833. package/dist/index.d.ts +0 -1
  834. package/dist/index.js +0 -1
  835. package/package.json +8 -8
  836. package/dist/httpAdapter/httpAdapter.errorResponse.js +0 -137
  837. package/dist/httpQuery/http.query.d.ts +0 -110
  838. package/dist/httpQuery/http.query.js +0 -484
@@ -22,4 +22,3 @@ export declare function isRouteRegistry(value: unknown): value is RouteRegistry;
22
22
  * Type guard for RouteRegistryGroup.
23
23
  */
24
24
  export declare function isRouteRegistryGroup(value: unknown): value is RouteRegistryGroup;
25
- //# sourceMappingURL=httpRegistry.factory.d.ts.map
@@ -29,4 +29,3 @@ export function isRouteRegistry(value) {
29
29
  export function isRouteRegistryGroup(value) {
30
30
  return value instanceof RouteRegistryGroup;
31
31
  }
32
- //# sourceMappingURL=httpRegistry.factory.js.map
@@ -20,4 +20,3 @@ export declare class RouteRegistryGroup {
20
20
  get groupCount(): number;
21
21
  get groupNames(): readonly string[];
22
22
  }
23
- //# sourceMappingURL=httpRegistry.group.d.ts.map
@@ -69,4 +69,3 @@ export class RouteRegistryGroup {
69
69
  return Array.from(this.registries.keys());
70
70
  }
71
71
  }
72
- //# sourceMappingURL=httpRegistry.group.js.map
@@ -13,4 +13,3 @@ export { matchesLookup, extractSequence } from "./core/httpRegistry.helper.js";
13
13
  export { RouteRegistry } from "./httpRegistry.core.js";
14
14
  export { RouteRegistryGroup } from "./httpRegistry.group.js";
15
15
  export { createRouteRegistry, createRouteRegistryGroup, isRouteRegistry, isRouteRegistryGroup, } from "./httpRegistry.factory.js";
16
- //# sourceMappingURL=index.d.ts.map
@@ -12,4 +12,3 @@ export { matchesLookup, extractSequence } from "./core/httpRegistry.helper.js";
12
12
  export { RouteRegistry } from "./httpRegistry.core.js";
13
13
  export { RouteRegistryGroup } from "./httpRegistry.group.js";
14
14
  export { createRouteRegistry, createRouteRegistryGroup, isRouteRegistry, isRouteRegistryGroup, } from "./httpRegistry.factory.js";
15
- //# sourceMappingURL=index.js.map
@@ -84,7 +84,18 @@ export interface RouterMatch {
84
84
  export interface RouterResult {
85
85
  readonly response: ResponseContext;
86
86
  readonly route: MatchedRoute | undefined;
87
+ /**
88
+ * The error a route handler threw, when {@link RouterOptions.onError}
89
+ * turned it into `response`. Absent when the handler succeeded.
90
+ */
91
+ readonly error?: unknown;
87
92
  }
93
+ /**
94
+ * What to do when a route is registered that another route, for the same
95
+ * method, makes unreachable: `"throw"` (default) refuses it with
96
+ * `RouteConflictError`; `"ignore"` registers it anyway.
97
+ */
98
+ export type RouterShadowedRoutePolicy = "throw" | "ignore";
88
99
  export interface RouterOptions {
89
100
  readonly caseSensitive?: boolean;
90
101
  readonly strictTrailingSlash?: boolean;
@@ -92,7 +103,23 @@ export interface RouterOptions {
92
103
  readonly automaticOptions?: boolean;
93
104
  readonly notFoundHandler?: RouterNotFoundHandler;
94
105
  readonly methodNotAllowedHandler?: RouterMethodNotAllowedHandler;
106
+ /** See {@link RouterShadowedRoutePolicy}. Defaults to `"throw"`. */
107
+ readonly shadowedRoutes?: RouterShadowedRoutePolicy;
108
+ /**
109
+ * Turns an error thrown by a route handler or route middleware into a
110
+ * response. Without it (the default) `dispatch()` rethrows, which is what
111
+ * lets an adapter map the error to a status. Returning `undefined`
112
+ * rethrows as well, so a handler can decline.
113
+ */
114
+ readonly onError?: RouterErrorHandler;
115
+ }
116
+ /**
117
+ * Context given to {@link RouterOptions.onError}.
118
+ */
119
+ export interface HttpRouterErrorContext extends HttpRouterRequestContext {
120
+ readonly route: MatchedRoute;
95
121
  }
122
+ export type RouterErrorHandler = (error: unknown, context: HttpRouterErrorContext) => ResponseContext | Response | RouterJsonValue | undefined | Promise<ResponseContext | Response | RouterJsonValue | undefined>;
96
123
  export type RouterNotFoundHandler = (context: HttpRouterRequestContext) => ResponseContext | Response | Promise<ResponseContext | Response>;
97
124
  export type RouterMethodNotAllowedHandler = (context: HttpRouterRequestContext, allowedMethods: readonly HttpMethod[]) => ResponseContext | Response | Promise<ResponseContext | Response>;
98
125
  export interface HttpRouterRequestContext {
@@ -142,4 +169,3 @@ export interface CompiledRoute {
142
169
  readonly expectsTrailingSlash?: boolean;
143
170
  }
144
171
  export { HttpRouterError, RouteConflictError, } from "../error/httpRouter.error.js";
145
- //# sourceMappingURL=httpRouter.type.d.ts.map
@@ -7,4 +7,3 @@
7
7
  /* Errors */
8
8
  /* -------------------------------------------------------------------------- */
9
9
  export { HttpRouterError, RouteConflictError, } from "../error/httpRouter.error.js";
10
- //# sourceMappingURL=httpRouter.type.js.map
@@ -4,4 +4,3 @@
4
4
  * HTTP router type definitions.
5
5
  */
6
6
  export * from "./httpRouter.type.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * HTTP router type definitions.
5
5
  */
6
6
  export * from "./httpRouter.type.js";
7
- //# sourceMappingURL=index.js.map
@@ -92,4 +92,3 @@ export declare function decodeRouteValue(value: string): string;
92
92
  * carries a traversal payload. `undefined` must fail the match.
93
93
  */
94
94
  export declare function decodeRouteSegment(value: string): string | undefined;
95
- //# sourceMappingURL=httpRoute.util.d.ts.map
@@ -211,4 +211,3 @@ export function decodeRouteSegment(value) {
211
211
  }
212
212
  return decoded;
213
213
  }
214
- //# sourceMappingURL=httpRoute.util.js.map
@@ -4,4 +4,3 @@
4
4
  * HTTP router utility functions.
5
5
  */
6
6
  export * from "./httpRoute.util.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * HTTP router utility functions.
5
5
  */
6
6
  export * from "./httpRoute.util.js";
7
- //# sourceMappingURL=index.js.map
@@ -74,4 +74,3 @@ export declare function composeRouteMiddleware(middleware: readonly RouteMiddlew
74
74
  export declare function createRouteHandler(handler: RouteDispatchHandler): RouterHandler;
75
75
  export declare function isRouteDispatcher(value: unknown): value is RouteDispatcher;
76
76
  export declare function isRouteDispatchResult(value: unknown): value is RouteDispatchResult;
77
- //# sourceMappingURL=httpRoute.dispatcher.d.ts.map
@@ -333,4 +333,3 @@ export function isRouteDispatchResult(value) {
333
333
  }
334
334
  return "matched" in value && "handled" in value;
335
335
  }
336
- //# sourceMappingURL=httpRoute.dispatcher.js.map
@@ -87,4 +87,3 @@ export declare function createRouteStackFromRoute(route: MatchedRoute, options?:
87
87
  export declare function composeRouteStack(layers: readonly RouteStackHandler[], options?: RouteStackOptions): RouteStack;
88
88
  export declare function isRouteStack(value: unknown): value is RouteStack;
89
89
  export declare function isRouteStackLayer(value: unknown): value is RouteStackLayer;
90
- //# sourceMappingURL=httpRoute.stack.d.ts.map
@@ -298,4 +298,3 @@ export function isRouteStackLayer(value) {
298
298
  }
299
299
  return ("id" in value && "type" in value && "handler" in value && "order" in value);
300
300
  }
301
- //# sourceMappingURL=httpRoute.stack.js.map
@@ -3,4 +3,3 @@
3
3
  */
4
4
  export { RouteDispatcher, dispatchRoute } from "./httpRoute.dispatcher.js";
5
5
  export { RouteStack, composeRouteStack } from "./httpRoute.stack.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@
3
3
  */
4
4
  export { RouteDispatcher, dispatchRoute } from "./httpRoute.dispatcher.js";
5
5
  export { RouteStack, composeRouteStack } from "./httpRoute.stack.js";
6
- //# sourceMappingURL=index.js.map
@@ -64,4 +64,3 @@ export declare function cloneRouterContext(context: HttpRouterContext, options?:
64
64
  */
65
65
  export declare function createRouterMiddlewareContext(request: RequestContext, signal: AbortSignal, state?: RouterContextState, metadata?: Readonly<Record<string, unknown>>): HttpRouterContext["middleware"];
66
66
  export declare function isResponseContext(value: unknown): value is ResponseContext;
67
- //# sourceMappingURL=httpRouter.context.d.ts.map
@@ -236,4 +236,3 @@ function createAbortError(reason) {
236
236
  export function isResponseContext(value) {
237
237
  return value instanceof HttpResponseContext;
238
238
  }
239
- //# sourceMappingURL=httpRouter.context.js.map
@@ -15,4 +15,3 @@ export declare class RouterMiddlewareState implements HttpMiddlewareState {
15
15
  clear(): void;
16
16
  entries(): IterableIterator<readonly [string, unknown]>;
17
17
  }
18
- //# sourceMappingURL=httpRouter.state.d.ts.map
@@ -28,4 +28,3 @@ export class RouterMiddlewareState {
28
28
  return this.store.entries();
29
29
  }
30
30
  }
31
- //# sourceMappingURL=httpRouter.state.js.map
@@ -10,4 +10,3 @@ export * from "./tree/index.js";
10
10
  export * from "./dispatch/index.js";
11
11
  export * from "./result/index.js";
12
12
  export * from "./httpRouter.context.js";
13
- //# sourceMappingURL=index.d.ts.map
@@ -10,4 +10,3 @@ export * from "./tree/index.js";
10
10
  export * from "./dispatch/index.js";
11
11
  export * from "./result/index.js";
12
12
  export * from "./httpRouter.context.js";
13
- //# sourceMappingURL=index.js.map
@@ -7,4 +7,3 @@
7
7
  */
8
8
  import type { CompiledRoute } from "../core/types/httpRouter.type.js";
9
9
  export declare function matchCompiledRoute(route: CompiledRoute, path: string, caseSensitive: boolean): Readonly<Record<string, string>> | undefined;
10
- //# sourceMappingURL=httpRoute.matcher.core.d.ts.map
@@ -114,4 +114,3 @@ function requiredSegments(segments, start) {
114
114
  }
115
115
  return required;
116
116
  }
117
- //# sourceMappingURL=httpRoute.matcher.core.js.map
@@ -59,4 +59,3 @@ export declare function getAllowedMethods(matcher: RouteMatcher, path: string):
59
59
  export declare function normalizeRequestPath(path: string): string;
60
60
  export declare function isRouteMatcher(value: unknown): value is RouteMatcher;
61
61
  export declare function isRouteMatcherResult(value: unknown): value is RouteMatcherResult;
62
- //# sourceMappingURL=httpRoute.matcher.d.ts.map
@@ -309,4 +309,3 @@ export function isRouteMatcherResult(value) {
309
309
  "method" in value &&
310
310
  "path" in value);
311
311
  }
312
- //# sourceMappingURL=httpRoute.matcher.js.map
@@ -4,4 +4,3 @@
4
4
  export { matchCompiledRoute } from "./httpRoute.matcher.core.js";
5
5
  export { RouteMatcher, createRouteMatcher, matchRoute, matchRoutePath, getAllowedMethods, normalizeRequestPath, isRouteMatcher, isRouteMatcherResult, } from "./httpRoute.matcher.js";
6
6
  export type { RouteMatcherOptions, RouteMatchRequest, RouteMatcherResult, RouteMethodResult, RouteMatcherStats, } from "./httpRoute.matcher.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@
3
3
  */
4
4
  export { matchCompiledRoute } from "./httpRoute.matcher.core.js";
5
5
  export { RouteMatcher, createRouteMatcher, matchRoute, matchRoutePath, getAllowedMethods, normalizeRequestPath, isRouteMatcher, isRouteMatcherResult, } from "./httpRoute.matcher.js";
6
- //# sourceMappingURL=index.js.map
@@ -8,4 +8,3 @@ import type { RoutePatternOptions, CompiledRoutePattern } from "./httpPattern.ty
8
8
  * Compiles a route pattern string into a CompiledRoutePattern.
9
9
  */
10
10
  export declare function compileRoutePattern(pattern: string, options?: RoutePatternOptions): CompiledRoutePattern;
11
- //# sourceMappingURL=httpPattern.compilation.d.ts.map
@@ -41,4 +41,3 @@ function validateNoDuplicateParams(paramNames, pattern) {
41
41
  seen.add(name);
42
42
  }
43
43
  }
44
- //# sourceMappingURL=httpPattern.compilation.js.map
@@ -20,4 +20,3 @@ export declare function matchRoutePatterns(patterns: readonly CompiledRoutePatte
20
20
  * Tests if a path matches any of the compiled route patterns.
21
21
  */
22
22
  export declare function testRoutePatterns(patterns: readonly CompiledRoutePattern[], path: string): boolean;
23
- //# sourceMappingURL=httpPattern.matching.d.ts.map
@@ -90,4 +90,3 @@ export function matchRoutePatterns(patterns, path) {
90
90
  export function testRoutePatterns(patterns, path) {
91
91
  return patterns.some((p) => testRoutePattern(p, path));
92
92
  }
93
- //# sourceMappingURL=httpPattern.matching.js.map
@@ -8,4 +8,3 @@ import type { RouteSegment, RoutePatternOptions } from "./httpPattern.type.js";
8
8
  * Builds a regex from route segments.
9
9
  */
10
10
  export declare function buildRegex(segments: readonly RouteSegment[], options: RoutePatternOptions): RegExp;
11
- //# sourceMappingURL=httpPattern.regexBuilding.d.ts.map
@@ -46,4 +46,3 @@ function compileParameterExpression(segment) {
46
46
  }
47
47
  return `(?<${segment.name}>[^/]+)`;
48
48
  }
49
- //# sourceMappingURL=httpPattern.regexBuilding.js.map
@@ -8,4 +8,3 @@ import type { RouteSegment } from "./httpPattern.type.js";
8
8
  * Parses a route pattern string into segments.
9
9
  */
10
10
  export declare function parseSegments(pattern: string): readonly RouteSegment[];
11
- //# sourceMappingURL=httpPattern.segmentParsing.d.ts.map
@@ -114,4 +114,3 @@ function compileBraceParameter(pattern, startIndex) {
114
114
  function isValidParamChar(char) {
115
115
  return /[a-zA-Z0-9_]/.test(char);
116
116
  }
117
- //# sourceMappingURL=httpPattern.segmentParsing.js.map
@@ -37,4 +37,3 @@ export interface RouteMatch {
37
37
  }
38
38
  import { RoutePatternError as BaseRoutePatternError, DuplicateRouteParameterError as BaseDuplicateRouteParameterError } from "@zudojs/errors";
39
39
  export { BaseRoutePatternError as RoutePatternError, BaseDuplicateRouteParameterError as DuplicateRouteParameterError, };
40
- //# sourceMappingURL=httpPattern.type.d.ts.map
@@ -5,4 +5,3 @@
5
5
  */
6
6
  import { RoutePatternError as BaseRoutePatternError, DuplicateRouteParameterError as BaseDuplicateRouteParameterError, } from "@zudojs/errors";
7
7
  export { BaseRoutePatternError as RoutePatternError, BaseDuplicateRouteParameterError as DuplicateRouteParameterError, };
8
- //# sourceMappingURL=httpPattern.type.js.map
@@ -8,4 +8,3 @@ export * from "./httpPattern.compilation.js";
8
8
  export * from "./httpPattern.matching.js";
9
9
  export * from "./httpPattern.regexBuilding.js";
10
10
  export * from "./httpPattern.segmentParsing.js";
11
- //# sourceMappingURL=index.d.ts.map
@@ -8,4 +8,3 @@ export * from "./httpPattern.compilation.js";
8
8
  export * from "./httpPattern.matching.js";
9
9
  export * from "./httpPattern.regexBuilding.js";
10
10
  export * from "./httpPattern.segmentParsing.js";
11
- //# sourceMappingURL=index.js.map
@@ -16,4 +16,3 @@ export declare function createStrictRoutePattern(pattern: string): CompiledRoute
16
16
  * Creates a case-insensitive route pattern.
17
17
  */
18
18
  export declare function createCaseInsensitiveRoutePattern(pattern: string): CompiledRoutePattern;
19
- //# sourceMappingURL=httpPattern.factory.d.ts.map
@@ -22,4 +22,3 @@ export function createStrictRoutePattern(pattern) {
22
22
  export function createCaseInsensitiveRoutePattern(pattern) {
23
23
  return compileRoutePattern(pattern, { caseSensitive: false });
24
24
  }
25
- //# sourceMappingURL=httpPattern.factory.js.map
@@ -24,6 +24,12 @@ export interface CompiledRoutePath {
24
24
  }
25
25
  /**
26
26
  * Compiles a route path into its segments.
27
+ *
28
+ * Rejects a pattern that reuses a parameter or wildcard name
29
+ * ({@link DuplicateRouteParameterError}: `/bad/:a/:a` registered and the
30
+ * second value silently won) and a wildcard that is not the final segment
31
+ * ({@link InvalidRoutePatternError}: `/files/*rest/more` matched `/files/a/b`
32
+ * with `more` never checked).
27
33
  */
28
34
  export declare function compileRouteSegments(path: string): readonly CompiledSegment[];
29
35
  /**
@@ -36,6 +42,18 @@ export declare function compileRoute(path: string, strictTrailingSlash: boolean)
36
42
  * Scores compiled segments by specificity.
37
43
  */
38
44
  export declare function scoreSegments(segments: readonly CompiledSegment[]): number;
45
+ /**
46
+ * Scores one segment by how narrowly it matches: a literal, then a parameter
47
+ * with a regular expression constraint, then a plain parameter, then the end
48
+ * of the pattern, then an optional parameter, then a wildcard.
49
+ *
50
+ * A constrained parameter used to score the same as an unconstrained one, so
51
+ * `/x/:slug` registered before `/x/:id(\\d+)` left the id route unreachable.
52
+ * The end of a pattern used to score lowest of all, so `/files/*path` (whose
53
+ * wildcard matches an empty tail) and `/users/:id?` were tried before the
54
+ * exact `/files` and `/users` routes, which could then never answer.
55
+ */
56
+ export declare function segmentScore(segment: CompiledSegment | undefined): number;
39
57
  /**
40
58
  * Compares two compiled patterns by specificity, most specific first.
41
59
  *
@@ -51,4 +69,3 @@ export declare function scoreSegments(segments: readonly CompiledSegment[]): num
51
69
  * @returns A negative number when `left` is more specific.
52
70
  */
53
71
  export declare function compareSegmentSpecificity(left: readonly CompiledSegment[], right: readonly CompiledSegment[]): number;
54
- //# sourceMappingURL=httpRoute.pattern.parse.d.ts.map
@@ -12,29 +12,52 @@
12
12
  * - `/files/{name?:\\w+}` optional, constrained brace parameter
13
13
  * - `/assets/*path` trailing wildcard
14
14
  */
15
+ import { DuplicateRouteParameterError } from "@zudojs/errors";
15
16
  import { InvalidRoutePatternError } from "../core/error/httpRouter.error.js";
16
17
  import { hasTrailingSlash, splitRoutePattern, validateParameterName, } from "../core/util/httpRoute.util.js";
17
- const SEGMENT_SCORE_LITERAL = 3;
18
- const SEGMENT_SCORE_PARAMETER = 2;
18
+ const SEGMENT_SCORE_LITERAL = 6;
19
+ const SEGMENT_SCORE_CONSTRAINED_PARAMETER = 5;
20
+ const SEGMENT_SCORE_PARAMETER = 4;
21
+ const SEGMENT_SCORE_ABSENT = 3;
22
+ const SEGMENT_SCORE_OPTIONAL_PARAMETER = 2;
19
23
  const SEGMENT_SCORE_WILDCARD = 1;
20
24
  /**
21
25
  * Compiles a route path into its segments.
26
+ *
27
+ * Rejects a pattern that reuses a parameter or wildcard name
28
+ * ({@link DuplicateRouteParameterError}: `/bad/:a/:a` registered and the
29
+ * second value silently won) and a wildcard that is not the final segment
30
+ * ({@link InvalidRoutePatternError}: `/files/*rest/more` matched `/files/a/b`
31
+ * with `more` never checked).
22
32
  */
23
33
  export function compileRouteSegments(path) {
24
34
  const segments = [];
25
35
  const parts = splitRoutePattern(path);
26
- for (const part of parts) {
36
+ const names = new Set();
37
+ const claim = (name) => {
38
+ if (names.has(name)) {
39
+ throw new DuplicateRouteParameterError(path, name);
40
+ }
41
+ names.add(name);
42
+ };
43
+ for (const [index, part] of parts.entries()) {
27
44
  if (part.startsWith(":")) {
28
- segments.push(parseParameter(part, path));
45
+ const parameter = parseParameter(part, path);
46
+ claim(parameter.name);
47
+ segments.push(parameter);
29
48
  }
30
49
  else if (part.startsWith("{")) {
31
- segments.push(parseBraceParameter(part, path));
50
+ const parameter = parseBraceParameter(part, path);
51
+ claim(parameter.name);
52
+ segments.push(parameter);
32
53
  }
33
54
  else if (part.startsWith("*")) {
34
- segments.push({
35
- type: "wildcard",
36
- name: part.slice(1) || "*",
37
- });
55
+ if (index !== parts.length - 1) {
56
+ throw new InvalidRoutePatternError(path, `A wildcard segment "${part}" must be the last segment.`);
57
+ }
58
+ const name = part.slice(1) || "*";
59
+ claim(name);
60
+ segments.push({ type: "wildcard", name });
38
61
  }
39
62
  else {
40
63
  segments.push({
@@ -69,15 +92,31 @@ export function scoreSegments(segments) {
69
92
  }
70
93
  return score;
71
94
  }
72
- function segmentScore(segment) {
95
+ /**
96
+ * Scores one segment by how narrowly it matches: a literal, then a parameter
97
+ * with a regular expression constraint, then a plain parameter, then the end
98
+ * of the pattern, then an optional parameter, then a wildcard.
99
+ *
100
+ * A constrained parameter used to score the same as an unconstrained one, so
101
+ * `/x/:slug` registered before `/x/:id(\\d+)` left the id route unreachable.
102
+ * The end of a pattern used to score lowest of all, so `/files/*path` (whose
103
+ * wildcard matches an empty tail) and `/users/:id?` were tried before the
104
+ * exact `/files` and `/users` routes, which could then never answer.
105
+ */
106
+ export function segmentScore(segment) {
73
107
  if (segment === undefined) {
74
- return 0;
108
+ return SEGMENT_SCORE_ABSENT;
75
109
  }
76
110
  if (segment.type === "literal") {
77
111
  return SEGMENT_SCORE_LITERAL;
78
112
  }
79
113
  if (segment.type === "parameter") {
80
- return SEGMENT_SCORE_PARAMETER;
114
+ if (segment.pattern !== undefined) {
115
+ return SEGMENT_SCORE_CONSTRAINED_PARAMETER;
116
+ }
117
+ return segment.optional
118
+ ? SEGMENT_SCORE_OPTIONAL_PARAMETER
119
+ : SEGMENT_SCORE_PARAMETER;
81
120
  }
82
121
  return SEGMENT_SCORE_WILDCARD;
83
122
  }
@@ -160,4 +199,3 @@ function compileExpression(expression, path) {
160
199
  throw new InvalidRoutePatternError(path, `Invalid parameter expression: ${error instanceof Error ? error.message : String(error)}`);
161
200
  }
162
201
  }
163
- //# sourceMappingURL=httpRoute.pattern.parse.js.map
@@ -16,4 +16,3 @@ export { testRoutePattern, matchRoutePattern, matchRoutePatterns, testRoutePatte
16
16
  export { createRoutePattern, createStrictRoutePattern, createCaseInsensitiveRoutePattern, } from "./httpPattern.factory.js";
17
17
  export { compileRoute, compileRouteSegments, scoreSegments, compareSegmentSpecificity, } from "./httpRoute.pattern.parse.js";
18
18
  export type { CompiledRoutePath } from "./httpRoute.pattern.parse.js";
19
- //# sourceMappingURL=index.d.ts.map
@@ -14,4 +14,3 @@ export { buildRegex } from "./core/httpPattern.regexBuilding.js";
14
14
  export { testRoutePattern, matchRoutePattern, matchRoutePatterns, testRoutePatterns, } from "./core/httpPattern.matching.js";
15
15
  export { createRoutePattern, createStrictRoutePattern, createCaseInsensitiveRoutePattern, } from "./httpPattern.factory.js";
16
16
  export { compileRoute, compileRouteSegments, scoreSegments, compareSegmentSpecificity, } from "./httpRoute.pattern.parse.js";
17
- //# sourceMappingURL=index.js.map
@@ -4,4 +4,3 @@
4
4
  * Extends HttpRouteResult with immutable builder methods via prototype.
5
5
  */
6
6
  export {};
7
- //# sourceMappingURL=httpRoute.result.builder.d.ts.map
@@ -67,4 +67,3 @@ HttpRouteResult.prototype.withMetadata = function (metadata) {
67
67
  },
68
68
  });
69
69
  };
70
- //# sourceMappingURL=httpRoute.result.builder.js.map
@@ -18,4 +18,3 @@ export declare class HttpRouteResult {
18
18
  toResponse: (options?: RouteResultOptions) => Response;
19
19
  toJSON: () => Record<string, unknown>;
20
20
  }
21
- //# sourceMappingURL=httpRoute.result.class.d.ts.map
@@ -30,4 +30,3 @@ export class HttpRouteResult {
30
30
  });
31
31
  }
32
32
  }
33
- //# sourceMappingURL=httpRoute.result.class.js.map
@@ -14,4 +14,3 @@ export { badRequest, unauthorized, forbidden, notFound, methodNotAllowed, confli
14
14
  export { internalServerError, notImplemented, serviceUnavailable, } from "./httpRoute.result.error.5xx.js";
15
15
  export { normalizeRouteResult, resultFromContext, } from "./httpRoute.result.normalize.js";
16
16
  export { isRouteResult, isRouteResultInit, isRouteResultBody, } from "./httpRoute.result.guard.js";
17
- //# sourceMappingURL=httpRoute.result.d.ts.map
@@ -11,4 +11,3 @@ export declare function methodNotAllowed(methods: readonly string[], body?: Rout
11
11
  export declare function conflict(body?: RouteResultBody): HttpRouteResult;
12
12
  export declare function unprocessableEntity(body?: RouteResultBody): HttpRouteResult;
13
13
  export declare function tooManyRequests(body?: RouteResultBody): HttpRouteResult;
14
- //# sourceMappingURL=httpRoute.result.error.4xx.d.ts.map
@@ -73,4 +73,3 @@ export function tooManyRequests(body) {
73
73
  },
74
74
  });
75
75
  }
76
- //# sourceMappingURL=httpRoute.result.error.4xx.js.map
@@ -6,4 +6,3 @@ import type { RouteResultBody } from "./httpRoute.result.type.js";
6
6
  export declare function internalServerError(body?: RouteResultBody): HttpRouteResult;
7
7
  export declare function notImplemented(body?: RouteResultBody): HttpRouteResult;
8
8
  export declare function serviceUnavailable(body?: RouteResultBody): HttpRouteResult;
9
- //# sourceMappingURL=httpRoute.result.error.5xx.d.ts.map
@@ -29,4 +29,3 @@ export function serviceUnavailable(body) {
29
29
  },
30
30
  });
31
31
  }
32
- //# sourceMappingURL=httpRoute.result.error.5xx.js.map
@@ -10,4 +10,3 @@ export declare function created(body?: RouteResultBody, init?: Omit<RouteResultI
10
10
  export declare function accepted(body?: RouteResultBody, init?: Omit<RouteResultInit, "body" | "status">): HttpRouteResult;
11
11
  export declare function noContent(init?: Omit<RouteResultInit, "body" | "status">): HttpRouteResult;
12
12
  export declare function redirect(location: string, status?: number): HttpRouteResult;
13
- //# sourceMappingURL=httpRoute.result.factory.d.ts.map
@@ -51,4 +51,3 @@ export function redirect(location, status = 302) {
51
51
  body: null,
52
52
  });
53
53
  }
54
- //# sourceMappingURL=httpRoute.result.factory.js.map
@@ -6,4 +6,3 @@ import type { RouteResultInit, RouteResultBody } from "./httpRoute.result.type.j
6
6
  export declare function isRouteResult(value: unknown): value is HttpRouteResult;
7
7
  export declare function isRouteResultInit(value: unknown): value is RouteResultInit;
8
8
  export declare function isRouteResultBody(value: unknown): value is RouteResultBody;
9
- //# sourceMappingURL=httpRoute.result.guard.d.ts.map
@@ -30,4 +30,3 @@ export function isRouteResultBody(value) {
30
30
  }
31
31
  return typeof value === "object" && value !== null;
32
32
  }
33
- //# sourceMappingURL=httpRoute.result.guard.js.map
@@ -28,4 +28,3 @@ export { normalizeRouteResult, resultFromContext, } from "./httpRoute.result.nor
28
28
  /* Type Guards */
29
29
  /* -------------------------------------------------------------------------- */
30
30
  export { isRouteResult, isRouteResultInit, isRouteResultBody, } from "./httpRoute.result.guard.js";
31
- //# sourceMappingURL=httpRoute.result.js.map
@@ -5,4 +5,3 @@ import { HttpRouteResult } from "./httpRoute.result.class.js";
5
5
  import type { RouteResultValue, RouteResultOptions, RouteResultContext } from "./httpRoute.result.type.js";
6
6
  export declare function normalizeRouteResult(value: RouteResultValue, options?: RouteResultOptions): HttpRouteResult;
7
7
  export declare function resultFromContext(context: RouteResultContext, value: RouteResultValue): HttpRouteResult;
8
- //# sourceMappingURL=httpRoute.result.normalize.d.ts.map
@@ -70,4 +70,3 @@ export function resultFromContext(context, value) {
70
70
  }
71
71
  return result;
72
72
  }
73
- //# sourceMappingURL=httpRoute.result.normalize.js.map
@@ -4,4 +4,3 @@
4
4
  * Extends HttpRouteResult with serialization methods via prototype.
5
5
  */
6
6
  export {};
7
- //# sourceMappingURL=httpRoute.result.output.d.ts.map
@@ -31,4 +31,3 @@ HttpRouteResult.prototype.toJSON = function () {
31
31
  metadata: this.metadata,
32
32
  };
33
33
  };
34
- //# sourceMappingURL=httpRoute.result.output.js.map
@@ -5,4 +5,3 @@ import type { RouteResultBody } from "./httpRoute.result.type.js";
5
5
  export declare function serializeBody(body: RouteResultBody, contentType?: string): BodyInit | null;
6
6
  export declare function valueToJsonObject(value: number | boolean | bigint): Record<string, unknown>;
7
7
  export declare function isJsonSerializable(value: unknown): boolean;
8
- //# sourceMappingURL=httpRoute.result.serialize.d.ts.map
@@ -58,4 +58,3 @@ export function isJsonSerializable(value) {
58
58
  }
59
59
  return true;
60
60
  }
61
- //# sourceMappingURL=httpRoute.result.serialize.js.map