tezx 3.0.12-beta → 3.0.13-beta
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/middleware/cors.js +0 -4
- package/index.js +1 -1
- package/middleware/cors.js +0 -4
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const router_js_1 = require("./core/router.js");
|
|
|
7
7
|
Object.defineProperty(exports, "Router", { enumerable: true, get: function () { return router_js_1.Router; } });
|
|
8
8
|
const server_js_1 = require("./core/server.js");
|
|
9
9
|
Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_js_1.TezX; } });
|
|
10
|
-
exports.version = "3.0.
|
|
10
|
+
exports.version = "3.0.13-beta";
|
|
11
11
|
exports.default = {
|
|
12
12
|
Router: router_js_1.Router,
|
|
13
13
|
TezX: server_js_1.TezX,
|
package/cjs/middleware/cors.js
CHANGED
|
@@ -31,10 +31,6 @@ function cors(option = {}) {
|
|
|
31
31
|
if (maxAge) {
|
|
32
32
|
ctx.headers.set("Access-Control-Max-Age", maxAge.toString());
|
|
33
33
|
}
|
|
34
|
-
if (ctx.method === "OPTIONS") {
|
|
35
|
-
ctx.setStatus = 204;
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
34
|
if (ctx.req.method === "OPTIONS") {
|
|
39
35
|
return new Response(null, { status: 204, headers: ctx.header });
|
|
40
36
|
}
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { TezXError } from "./core/error.js";
|
|
|
2
2
|
import { Router } from "./core/router.js";
|
|
3
3
|
import { TezX } from "./core/server.js";
|
|
4
4
|
export { Router, TezX, TezXError };
|
|
5
|
-
export let version = "3.0.
|
|
5
|
+
export let version = "3.0.13-beta";
|
|
6
6
|
export default {
|
|
7
7
|
Router,
|
|
8
8
|
TezX,
|
package/middleware/cors.js
CHANGED
|
@@ -27,10 +27,6 @@ function cors(option = {}) {
|
|
|
27
27
|
if (maxAge) {
|
|
28
28
|
ctx.headers.set("Access-Control-Max-Age", maxAge.toString());
|
|
29
29
|
}
|
|
30
|
-
if (ctx.method === "OPTIONS") {
|
|
31
|
-
ctx.setStatus = 204;
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
30
|
if (ctx.req.method === "OPTIONS") {
|
|
35
31
|
return new Response(null, { status: 204, headers: ctx.header });
|
|
36
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tezx",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13-beta",
|
|
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
|
"type": "module",
|
|
6
6
|
"main": "cjs/index.js",
|