tezx 1.0.25 → 1.0.26
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/adapter/index.js +4 -1
- package/cjs/adapter/index.js +4 -1
- package/cjs/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/adapter/index.js
CHANGED
|
@@ -136,7 +136,10 @@ export function nodeAdapter(TezX) {
|
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
138
|
const body = await response.arrayBuffer();
|
|
139
|
-
|
|
139
|
+
if (body.byteLength > 0) {
|
|
140
|
+
return res.end(Buffer.from(body));
|
|
141
|
+
}
|
|
142
|
+
res.end();
|
|
140
143
|
}
|
|
141
144
|
});
|
|
142
145
|
server.listen(port, () => {
|
package/cjs/adapter/index.js
CHANGED
|
@@ -140,7 +140,10 @@ function nodeAdapter(TezX) {
|
|
|
140
140
|
}
|
|
141
141
|
else {
|
|
142
142
|
const body = await response.arrayBuffer();
|
|
143
|
-
|
|
143
|
+
if (body.byteLength > 0) {
|
|
144
|
+
return res.end(Buffer.from(body));
|
|
145
|
+
}
|
|
146
|
+
res.end();
|
|
144
147
|
}
|
|
145
148
|
});
|
|
146
149
|
server.listen(port, () => {
|
package/cjs/index.js
CHANGED
|
@@ -7,4 +7,4 @@ var server_1 = require("./core/server");
|
|
|
7
7
|
Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_1.TezX; } });
|
|
8
8
|
var params_1 = require("./utils/params");
|
|
9
9
|
Object.defineProperty(exports, "useParams", { enumerable: true, get: function () { return params_1.useParams; } });
|
|
10
|
-
exports.version = "1.0.
|
|
10
|
+
exports.version = "1.0.26";
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tezx",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
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",
|