tezx 4.0.6 → 4.0.7
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/utils/response.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/utils/response.js +1 -1
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.7";
|
|
9
9
|
exports.default = {
|
|
10
10
|
Router: router_js_1.Router,
|
|
11
11
|
TezX: server_js_1.TezX,
|
package/cjs/utils/response.js
CHANGED
|
@@ -29,7 +29,7 @@ function mergeHeaders(existing, init) {
|
|
|
29
29
|
}
|
|
30
30
|
async function handleErrorResponse(err = new Error("Internal Server Error"), ctx) {
|
|
31
31
|
if (err instanceof Error) {
|
|
32
|
-
return ctx.status(500).
|
|
32
|
+
return ctx.status(500).text(err.message ?? "Internal Server Error");
|
|
33
33
|
}
|
|
34
34
|
return await handleErrorResponse(new Error(err), ctx);
|
|
35
35
|
}
|
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.7",
|
|
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/utils/response.js
CHANGED
|
@@ -23,7 +23,7 @@ export function mergeHeaders(existing, init) {
|
|
|
23
23
|
}
|
|
24
24
|
export async function handleErrorResponse(err = new Error("Internal Server Error"), ctx) {
|
|
25
25
|
if (err instanceof Error) {
|
|
26
|
-
return ctx.status(500).
|
|
26
|
+
return ctx.status(500).text(err.message ?? "Internal Server Error");
|
|
27
27
|
}
|
|
28
28
|
return await handleErrorResponse(new Error(err), ctx);
|
|
29
29
|
}
|