tezx 2.0.1 → 2.0.2
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/deno/env.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/node/env.js +1 -1
- package/deno/env.js +1 -1
- package/index.js +1 -1
- package/node/env.js +1 -1
- package/package.json +1 -1
package/cjs/deno/env.js
CHANGED
|
@@ -49,7 +49,7 @@ function loadEnv(basePath = "./") {
|
|
|
49
49
|
`.env.${process?.env?.NODE_ENV || "development"}.local`,
|
|
50
50
|
];
|
|
51
51
|
for (const envFile of envFiles) {
|
|
52
|
-
parseEnvFile(`${basePath}${envFile}`, result);
|
|
52
|
+
parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
|
|
53
53
|
}
|
|
54
54
|
return result;
|
|
55
55
|
}
|
package/cjs/index.js
CHANGED
|
@@ -7,4 +7,4 @@ var server_js_1 = require("./core/server.js");
|
|
|
7
7
|
Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_js_1.TezX; } });
|
|
8
8
|
var params_js_1 = require("./utils/params.js");
|
|
9
9
|
Object.defineProperty(exports, "useParams", { enumerable: true, get: function () { return params_js_1.useParams; } });
|
|
10
|
-
exports.version = "2.0.
|
|
10
|
+
exports.version = "2.0.2";
|
package/cjs/node/env.js
CHANGED
|
@@ -44,7 +44,7 @@ function loadEnv(basePath = "./") {
|
|
|
44
44
|
`.env.${process?.env?.NODE_ENV || "development"}.local`,
|
|
45
45
|
];
|
|
46
46
|
for (const envFile of envFiles) {
|
|
47
|
-
parseEnvFile(`${basePath}${envFile}`, result);
|
|
47
|
+
parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
|
|
48
48
|
}
|
|
49
49
|
return result;
|
|
50
50
|
}
|
package/deno/env.js
CHANGED
|
@@ -46,7 +46,7 @@ export function loadEnv(basePath = "./") {
|
|
|
46
46
|
`.env.${process?.env?.NODE_ENV || "development"}.local`,
|
|
47
47
|
];
|
|
48
48
|
for (const envFile of envFiles) {
|
|
49
|
-
parseEnvFile(`${basePath}${envFile}`, result);
|
|
49
|
+
parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
|
|
50
50
|
}
|
|
51
51
|
return result;
|
|
52
52
|
}
|
package/index.js
CHANGED
package/node/env.js
CHANGED
|
@@ -41,7 +41,7 @@ export function loadEnv(basePath = "./") {
|
|
|
41
41
|
`.env.${process?.env?.NODE_ENV || "development"}.local`,
|
|
42
42
|
];
|
|
43
43
|
for (const envFile of envFiles) {
|
|
44
|
-
parseEnvFile(`${basePath}${envFile}`, result);
|
|
44
|
+
parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
|
|
45
45
|
}
|
|
46
46
|
return result;
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tezx",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, and Bun.",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "index.js",
|