@fuzionx/core 0.1.21 → 0.1.23

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/lib/app.js +2 -3
  2. package/package.json +2 -2
package/lib/app.js CHANGED
@@ -317,9 +317,8 @@ export class FuzionXApp {
317
317
  for (const route of this._router._routes) {
318
318
  const chain = [...globalMw];
319
319
  for (const m of pathMw) {
320
- if (route.path.startsWith(m.path) ||
321
- route.path === m.path ||
322
- (m.path.endsWith('/') && route.path.startsWith(m.path))) {
320
+ if (route.path === m.path ||
321
+ route.path.startsWith(m.path.endsWith('/') ? m.path : m.path + '/')) {
323
322
  chain.push(m.handler);
324
323
  }
325
324
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzionx/core",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "description": "Express-style Node.js framework powered by FuzionX native bridge — 167K RPS single process",
6
6
  "main": "index.js",
@@ -18,7 +18,7 @@
18
18
  "url": "https://github.com/saytohenry/fuzionx"
19
19
  },
20
20
  "dependencies": {
21
- "@fuzionx/bridge": "^0.1.21"
21
+ "@fuzionx/bridge": "^0.1.23"
22
22
  },
23
23
  "files": [
24
24
  "index.js",