@hazeljs/core 0.2.0-beta.17 → 0.2.0-beta.19
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/router.js +1 -1
- 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.
|
|
3
|
+
"version": "0.2.0-beta.19",
|
|
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": "
|
|
64
|
+
"gitHead": "defe5664fa7985bfea5a1be1265dfe96607711bd"
|
|
65
65
|
}
|