tezx 4.0.4 → 4.0.6
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/cjs/index.js +1 -1
- package/cjs/registry/RadixRouter.js +2 -5
- package/index.js +1 -1
- package/package.json +1 -1
- package/registry/RadixRouter.js +2 -5
package/cjs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const router_js_1 = require("./core/router.js");
|
|
|
5
5
|
Object.defineProperty(exports, "Router", { enumerable: true, get: function () { return router_js_1.Router; } });
|
|
6
6
|
const server_js_1 = require("./core/server.js");
|
|
7
7
|
Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_js_1.TezX; } });
|
|
8
|
-
exports.version = "4.0.
|
|
8
|
+
exports.version = "4.0.6";
|
|
9
9
|
exports.default = {
|
|
10
10
|
Router: router_js_1.Router,
|
|
11
11
|
TezX: server_js_1.TezX,
|
|
@@ -41,11 +41,8 @@ class RadixRouter {
|
|
|
41
41
|
let middlewares = [];
|
|
42
42
|
const segments = path?.split("/")?.filter(Boolean);
|
|
43
43
|
const { success, node } = this._match(method, this.root, segments, 0, params, middlewares);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
const list = node.handlers?.[method];
|
|
48
|
-
if (list) {
|
|
44
|
+
const list = node?.handlers?.[method];
|
|
45
|
+
if (success && list) {
|
|
49
46
|
for (let i = 0; i < list.length; i++) {
|
|
50
47
|
middlewares.push(list[i]);
|
|
51
48
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tezx",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "TezX is a modern, ultra-lightweight, and high-performance JavaScript framework built specifically for Bun. It provides a minimal yet powerful API, seamless environment management, and a high-concurrency HTTP engine for building fast, scalable web applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cjs/index.js",
|
package/registry/RadixRouter.js
CHANGED
|
@@ -38,11 +38,8 @@ export class RadixRouter {
|
|
|
38
38
|
let middlewares = [];
|
|
39
39
|
const segments = path?.split("/")?.filter(Boolean);
|
|
40
40
|
const { success, node } = this._match(method, this.root, segments, 0, params, middlewares);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
const list = node.handlers?.[method];
|
|
45
|
-
if (list) {
|
|
41
|
+
const list = node?.handlers?.[method];
|
|
42
|
+
if (success && list) {
|
|
46
43
|
for (let i = 0; i < list.length; i++) {
|
|
47
44
|
middlewares.push(list[i]);
|
|
48
45
|
}
|