@hazeljs/core 0.2.0-beta.16 → 0.2.0-beta.18

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 (2) hide show
  1. package/dist/router.js +1 -1
  2. package/package.json +2 -2
package/dist/router.js CHANGED
@@ -376,7 +376,7 @@ class Router {
376
376
  return path.startsWith('/') ? path : `/${path}`;
377
377
  }
378
378
  async match(method, url, context) {
379
- const path = url.split('?')[0];
379
+ const path = this.normalizePath(url.split('?')[0] || '/');
380
380
  logger_1.default.debug(`Matching route: ${method} ${path}`);
381
381
  // Use method-specific cache for O(1) method lookup instead of O(n)
382
382
  const methodRoutes = this.routesByMethod.get(method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hazeljs/core",
3
- "version": "0.2.0-beta.16",
3
+ "version": "0.2.0-beta.18",
4
4
  "description": "Core HazelJS framework - Dependency injection, routing, decorators, and base functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -61,5 +61,5 @@
61
61
  "url": "https://github.com/hazeljs/hazel-js/issues"
62
62
  },
63
63
  "homepage": "https://hazeljs.com",
64
- "gitHead": "e022330edc869ed8dc8d9765aefd085438088297"
64
+ "gitHead": "22082c1277661421cd32b3c4371c2c9d0bdf0501"
65
65
  }