@tezx/devtools 1.0.0 → 1.0.1
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 +2 -2
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -275,14 +275,14 @@ function DevTools(app, options = { disableTabs: [], extraTabs: [] }) {
|
|
|
275
275
|
${find?.doc_title}
|
|
276
276
|
</h1>
|
|
277
277
|
${find?.content}
|
|
278
|
-
|
|
278
|
+
</section>
|
|
279
279
|
<script>
|
|
280
280
|
|
|
281
281
|
const themeCookieName = "tezx-theme";
|
|
282
282
|
|
|
283
283
|
function setCookie(name, value, days = 30) {
|
|
284
284
|
const expires = new Date(Date.now() + days * 864e5).toUTCString();
|
|
285
|
-
document.cookie =
|
|
285
|
+
document.cookie = name +"="+ value +"; expires = "+ expires +"; path =/";
|
|
286
286
|
}
|
|
287
287
|
function getCookie(name) {
|
|
288
288
|
return document.cookie.split('; ').reduce((acc, cookie) => {
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -272,14 +272,14 @@ export function DevTools(app, options = { disableTabs: [], extraTabs: [] }) {
|
|
|
272
272
|
${find?.doc_title}
|
|
273
273
|
</h1>
|
|
274
274
|
${find?.content}
|
|
275
|
-
|
|
275
|
+
</section>
|
|
276
276
|
<script>
|
|
277
277
|
|
|
278
278
|
const themeCookieName = "tezx-theme";
|
|
279
279
|
|
|
280
280
|
function setCookie(name, value, days = 30) {
|
|
281
281
|
const expires = new Date(Date.now() + days * 864e5).toUTCString();
|
|
282
|
-
document.cookie =
|
|
282
|
+
document.cookie = name +"="+ value +"; expires = "+ expires +"; path =/";
|
|
283
283
|
}
|
|
284
284
|
function getCookie(name) {
|
|
285
285
|
return document.cookie.split('; ').reduce((acc, cookie) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tezx/devtools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "index.js",
|