@tezx/devtools 1.0.11 → 1.0.13
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/html/StaticFile.js +1 -1
- package/cjs/html/env.js +0 -33
- package/cjs/html/routes.js +0 -2
- package/cjs/index.js +1 -1
- package/html/StaticFile.js +1 -1
- package/html/env.js +0 -33
- package/html/routes.js +0 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/cjs/html/StaticFile.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StaticFile = StaticFile;
|
|
4
4
|
function StaticFile(ctx, app) {
|
|
5
|
-
const staticMap = Object.keys(app.staticFile);
|
|
5
|
+
const staticMap = Object.keys(app.staticFile || {});
|
|
6
6
|
const rawJSON = JSON.stringify(staticMap.map(r => {
|
|
7
7
|
const [method, path] = r.split(" ");
|
|
8
8
|
return {
|
package/cjs/html/env.js
CHANGED
|
@@ -42,39 +42,6 @@ export const app = new TezX({
|
|
|
42
42
|
</tr>`;
|
|
43
43
|
return `
|
|
44
44
|
<style>
|
|
45
|
-
.tabs {
|
|
46
|
-
margin-bottom: 1rem;
|
|
47
|
-
}
|
|
48
|
-
.tabs a {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
margin-right: 1rem;
|
|
51
|
-
text-decoration: none;
|
|
52
|
-
font-weight: 500;
|
|
53
|
-
color: #0f172a;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
table {
|
|
58
|
-
width: 100%;
|
|
59
|
-
border-collapse: collapse;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
table th, table td {
|
|
63
|
-
padding: 0.5rem;
|
|
64
|
-
border: 1px solid #e2e8f0;
|
|
65
|
-
text-align: left;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
table td button.copy-btn {
|
|
69
|
-
background: #f8fafc;
|
|
70
|
-
border: none;
|
|
71
|
-
padding: 0.3rem 0.4rem;
|
|
72
|
-
border-radius: 0.375rem;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
color: #334155;
|
|
75
|
-
transition: background 0.2s ease;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
45
|
.search-container {
|
|
79
46
|
margin-bottom: 1rem;
|
|
80
47
|
}
|
package/cjs/html/routes.js
CHANGED
|
@@ -68,7 +68,6 @@ function Routes(ctx, app) {
|
|
|
68
68
|
font-size: 1.25rem;
|
|
69
69
|
margin-bottom: 0.5rem;
|
|
70
70
|
font-weight: 600;
|
|
71
|
-
color: #334155;
|
|
72
71
|
}
|
|
73
72
|
</style>
|
|
74
73
|
|
|
@@ -111,7 +110,6 @@ function Routes(ctx, app) {
|
|
|
111
110
|
">${hn.method} <small style="opacity: 0.8;">(middleware)</small></span>`
|
|
112
111
|
: `<span style="
|
|
113
112
|
font-size: 14px;
|
|
114
|
-
color: #333;
|
|
115
113
|
">${hn.method}</span>`}
|
|
116
114
|
</td>
|
|
117
115
|
<td>${hn.handlerNames.join(", ")}</td>
|
package/cjs/index.js
CHANGED
package/html/StaticFile.js
CHANGED
package/html/env.js
CHANGED
|
@@ -39,39 +39,6 @@ export const app = new TezX({
|
|
|
39
39
|
</tr>`;
|
|
40
40
|
return `
|
|
41
41
|
<style>
|
|
42
|
-
.tabs {
|
|
43
|
-
margin-bottom: 1rem;
|
|
44
|
-
}
|
|
45
|
-
.tabs a {
|
|
46
|
-
display: inline-block;
|
|
47
|
-
margin-right: 1rem;
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
color: #0f172a;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
table {
|
|
55
|
-
width: 100%;
|
|
56
|
-
border-collapse: collapse;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
table th, table td {
|
|
60
|
-
padding: 0.5rem;
|
|
61
|
-
border: 1px solid #e2e8f0;
|
|
62
|
-
text-align: left;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
table td button.copy-btn {
|
|
66
|
-
background: #f8fafc;
|
|
67
|
-
border: none;
|
|
68
|
-
padding: 0.3rem 0.4rem;
|
|
69
|
-
border-radius: 0.375rem;
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
color: #334155;
|
|
72
|
-
transition: background 0.2s ease;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
42
|
.search-container {
|
|
76
43
|
margin-bottom: 1rem;
|
|
77
44
|
}
|
package/html/routes.js
CHANGED
|
@@ -65,7 +65,6 @@ export function Routes(ctx, app) {
|
|
|
65
65
|
font-size: 1.25rem;
|
|
66
66
|
margin-bottom: 0.5rem;
|
|
67
67
|
font-weight: 600;
|
|
68
|
-
color: #334155;
|
|
69
68
|
}
|
|
70
69
|
</style>
|
|
71
70
|
|
|
@@ -108,7 +107,6 @@ export function Routes(ctx, app) {
|
|
|
108
107
|
">${hn.method} <small style="opacity: 0.8;">(middleware)</small></span>`
|
|
109
108
|
: `<span style="
|
|
110
109
|
font-size: 14px;
|
|
111
|
-
color: #333;
|
|
112
110
|
">${hn.method}</span>`}
|
|
113
111
|
</td>
|
|
114
112
|
<td>${hn.handlerNames.join(", ")}</td>
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tezx/devtools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Developer tools for the TezX framework, including route inspector, cookie manager, and real-time diagnostics. Lightweight and plug-and-play compatible with Node.js, Bun, and Deno.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "cjs/index.cjs",
|