clear-router 2.3.2 → 2.3.3

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.
package/dist/h3/index.cjs CHANGED
@@ -204,7 +204,7 @@ var Router = class Router extends require_router.CoreRouter {
204
204
  try {
205
205
  const ctx = event;
206
206
  const reqBody = await Router.readBodyCached(ctx);
207
- if (Router.resolveMethodOverride(ctx.req.method, ctx.req.headers, reqBody) !== method) return;
207
+ if (Router.resolveMethodOverride(ctx.req.method, ctx.req.headers, reqBody) !== method) return Symbol.for("h3.notFound");
208
208
  const inst = instance ?? route;
209
209
  Router.bindRequestToInstance(ctx, inst, route, {
210
210
  body: reqBody,
package/dist/h3/index.mjs CHANGED
@@ -203,7 +203,7 @@ var Router = class Router extends CoreRouter {
203
203
  try {
204
204
  const ctx = event;
205
205
  const reqBody = await Router.readBodyCached(ctx);
206
- if (Router.resolveMethodOverride(ctx.req.method, ctx.req.headers, reqBody) !== method) return;
206
+ if (Router.resolveMethodOverride(ctx.req.method, ctx.req.headers, reqBody) !== method) return Symbol.for("h3.notFound");
207
207
  const inst = instance ?? route;
208
208
  Router.bindRequestToInstance(ctx, inst, route, {
209
209
  body: reqBody,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, and Hono, including CommonJS, ESM, and TypeScript support.",
5
5
  "keywords": [
6
6
  "h3",