@nuxt/devtools-nightly 4.0.0-beta.7-29884488.82eef12 → 4.0.0-beta.7-29884672.be3fa3f
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/dist/chunks/analyze-build.mjs +5 -2
- package/dist/chunks/assets.mjs +1 -1
- package/dist/chunks/module-main.mjs +34 -8
- package/dist/chunks/timeline.mjs +4 -2
- package/dist/chunks/vite-inspect.mjs +4 -2
- package/dist/chunks/vue-devtools.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/shared/{devtools-nightly.C3s9ubDZ.mjs → devtools-nightly.DnJkSJYB.mjs} +8 -1
- package/package.json +14 -14
|
@@ -11,7 +11,7 @@ import 'consola/utils';
|
|
|
11
11
|
import 'devframe/utils/serve-static';
|
|
12
12
|
import 'verkit';
|
|
13
13
|
import 'vite';
|
|
14
|
-
import '../shared/devtools-nightly.
|
|
14
|
+
import '../shared/devtools-nightly.DnJkSJYB.mjs';
|
|
15
15
|
import '../dirs.mjs';
|
|
16
16
|
import 'node:path';
|
|
17
17
|
import 'node:url';
|
|
@@ -73,7 +73,10 @@ async function setup(nuxt, options) {
|
|
|
73
73
|
nuxt.hook("build:analyze:done", async (meta) => {
|
|
74
74
|
const _meta = meta;
|
|
75
75
|
_meta.size = _meta.size || {};
|
|
76
|
-
const dirs = [
|
|
76
|
+
const dirs = [
|
|
77
|
+
join(meta.buildDir, "dist/client"),
|
|
78
|
+
meta.outDir
|
|
79
|
+
];
|
|
77
80
|
const [clientBundleSize, nitroBundleSize] = await Promise.all(dirs.map(getFolderSize));
|
|
78
81
|
_meta.size.clientBundle = clientBundleSize;
|
|
79
82
|
_meta.size.nitroBundle = nitroBundleSize;
|
package/dist/chunks/assets.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAssetsDevframe } from '@devframes/plugin-assets';
|
|
2
2
|
import { onDevtoolsReady, NUXT_DEVTOOLS_GROUP_ID } from '@nuxt/devtools-kit';
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
|
-
import { d as defaultAllowedExtensions } from '../shared/devtools-nightly.
|
|
4
|
+
import { d as defaultAllowedExtensions } from '../shared/devtools-nightly.DnJkSJYB.mjs';
|
|
5
5
|
import '@nuxt/kit';
|
|
6
6
|
|
|
7
7
|
function setup({ nuxt, options }) {
|
|
@@ -6,7 +6,7 @@ import { serveStaticNodeMiddleware } from 'devframe/utils/serve-static';
|
|
|
6
6
|
import { join, dirname, resolve } from 'pathe';
|
|
7
7
|
import { isLessThan, isGreaterThanOrEqual } from 'verkit';
|
|
8
8
|
import { version as version$1, searchForWorkspaceRoot } from 'vite';
|
|
9
|
-
import { c as createDefaultTabOptions, s as setServerTasksEnabledByDefault } from '../shared/devtools-nightly.
|
|
9
|
+
import { c as createDefaultTabOptions, s as setServerTasksEnabledByDefault } from '../shared/devtools-nightly.DnJkSJYB.mjs';
|
|
10
10
|
import { runtimeDir, packageDir } from '../dirs.mjs';
|
|
11
11
|
import { execFile } from 'node:child_process';
|
|
12
12
|
import fs$1, { existsSync } from 'node:fs';
|
|
@@ -25,7 +25,7 @@ import { getPackageInfo } from 'local-pkg';
|
|
|
25
25
|
import { DEVTOOLS_TERMINALS_DOCK_ID } from '@vitejs/devtools-kit/constants';
|
|
26
26
|
import { debounce } from 'perfect-debounce';
|
|
27
27
|
|
|
28
|
-
const version = "4.0.0-beta.7-
|
|
28
|
+
const version = "4.0.0-beta.7-29884672.be3fa3f";
|
|
29
29
|
const peerDependencies = {
|
|
30
30
|
"@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
|
|
31
31
|
nitro: "*",
|
|
@@ -80,7 +80,13 @@ function setupAnalyzeBuildRPC(ctx) {
|
|
|
80
80
|
activeSessionId = sessionId;
|
|
81
81
|
const session = await kit.terminals.startChildProcess({
|
|
82
82
|
command: "npx",
|
|
83
|
-
args: [
|
|
83
|
+
args: [
|
|
84
|
+
"nuxi",
|
|
85
|
+
"analyze",
|
|
86
|
+
"--no-serve",
|
|
87
|
+
"--name",
|
|
88
|
+
name
|
|
89
|
+
],
|
|
84
90
|
cwd: nuxt.options.rootDir
|
|
85
91
|
}, {
|
|
86
92
|
id: sessionId,
|
|
@@ -574,8 +580,12 @@ function setupGeneralRPC({
|
|
|
574
580
|
const subKey = parentKey ? `${parentKey}_${key}` : key;
|
|
575
581
|
const envValue = _getEnv(subKey);
|
|
576
582
|
if (_isObject(obj[key])) {
|
|
577
|
-
if (_isObject(envValue))
|
|
578
|
-
obj[key] = {
|
|
583
|
+
if (_isObject(envValue)) {
|
|
584
|
+
obj[key] = {
|
|
585
|
+
...obj[key],
|
|
586
|
+
...envValue
|
|
587
|
+
};
|
|
588
|
+
}
|
|
579
589
|
_applyEnv(obj[key], subKey);
|
|
580
590
|
} else {
|
|
581
591
|
obj[key] = envValue ?? obj[key];
|
|
@@ -624,7 +634,13 @@ function setupGeneralRPC({
|
|
|
624
634
|
input = match[1];
|
|
625
635
|
suffix = match[2];
|
|
626
636
|
}
|
|
627
|
-
const candidates = isRelative ? [
|
|
637
|
+
const candidates = isRelative ? [
|
|
638
|
+
...new Set([
|
|
639
|
+
process.cwd(),
|
|
640
|
+
nuxt.options.rootDir,
|
|
641
|
+
nuxt.options.workspaceDir
|
|
642
|
+
].filter(Boolean))
|
|
643
|
+
].map((dir) => resolve(dir, input)) : [input];
|
|
628
644
|
const path = candidates.flatMap((i) => [i, `${i}.js`, `${i}.mjs`, `${i}.ts`]).find((i) => existsSync(i));
|
|
629
645
|
if (!path) {
|
|
630
646
|
console.error("File not found:", candidates[0]);
|
|
@@ -963,7 +979,13 @@ function removeNuxtModuleFromCode(source, name, filepath) {
|
|
|
963
979
|
}
|
|
964
980
|
|
|
965
981
|
function broadcastTerminalExit(ctx, id, code) {
|
|
966
|
-
ctx.devtoolsKit?.rpc.broadcast({
|
|
982
|
+
ctx.devtoolsKit?.rpc.broadcast({
|
|
983
|
+
method: "onTerminalExit",
|
|
984
|
+
args: [
|
|
985
|
+
{ id, code }
|
|
986
|
+
],
|
|
987
|
+
event: true
|
|
988
|
+
});
|
|
967
989
|
}
|
|
968
990
|
function statusForExit(code) {
|
|
969
991
|
return code == null || code === 0 ? "stopped" : "error";
|
|
@@ -1464,7 +1486,11 @@ function setupStorageRPC(ctx) {
|
|
|
1464
1486
|
return;
|
|
1465
1487
|
await Promise.all(unwatchStorageMounts.map((unwatch) => unwatch()));
|
|
1466
1488
|
unwatchStorageMounts = await Promise.all(Object.keys(storageMounts).map((mountName) => watchStorageMount(activeStorage, mountName, (event, key) => {
|
|
1467
|
-
ctx.devtoolsKit?.rpc.broadcast({
|
|
1489
|
+
ctx.devtoolsKit?.rpc.broadcast({
|
|
1490
|
+
method: "callHook",
|
|
1491
|
+
args: ["storage:key:update", key, event],
|
|
1492
|
+
event: true
|
|
1493
|
+
});
|
|
1468
1494
|
})));
|
|
1469
1495
|
});
|
|
1470
1496
|
nuxt.hook("close", async () => {
|
package/dist/chunks/timeline.mjs
CHANGED
|
@@ -103,10 +103,12 @@ function setup({ nuxt, options }) {
|
|
|
103
103
|
if (item.type)
|
|
104
104
|
return false;
|
|
105
105
|
const name = item.as || item.name;
|
|
106
|
-
if (!include.some((f) => typeof f === "function" ? f(item) : typeof f === "string" ? name === f : f.test(name)))
|
|
106
|
+
if (!include.some((f) => typeof f === "function" ? f(item) : typeof f === "string" ? name === f : f.test(name))) {
|
|
107
107
|
return false;
|
|
108
|
-
|
|
108
|
+
}
|
|
109
|
+
if (exclude.some((f) => typeof f === "function" ? f(item) : typeof f === "string" ? name === f : f.test(name))) {
|
|
109
110
|
return false;
|
|
111
|
+
}
|
|
110
112
|
return true;
|
|
111
113
|
}
|
|
112
114
|
let unimport;
|
|
@@ -9,7 +9,7 @@ import 'devframe/utils/serve-static';
|
|
|
9
9
|
import 'pathe';
|
|
10
10
|
import 'verkit';
|
|
11
11
|
import 'vite';
|
|
12
|
-
import '../shared/devtools-nightly.
|
|
12
|
+
import '../shared/devtools-nightly.DnJkSJYB.mjs';
|
|
13
13
|
import '../dirs.mjs';
|
|
14
14
|
import 'node:path';
|
|
15
15
|
import 'node:url';
|
|
@@ -34,7 +34,9 @@ const INSPECT_DOCK_ID = "vite-plugin-inspect";
|
|
|
34
34
|
const INSPECT_DOCK_TITLE = "Inspect";
|
|
35
35
|
const INSPECT_DOCK_ICON = "ph:magnifying-glass-duotone";
|
|
36
36
|
function isVitePluginInspectAvailable(rootDir) {
|
|
37
|
-
return isPackageExists("vite-plugin-inspect", {
|
|
37
|
+
return isPackageExists("vite-plugin-inspect", {
|
|
38
|
+
paths: [rootDir]
|
|
39
|
+
});
|
|
38
40
|
}
|
|
39
41
|
async function createVitePluginInspect(options) {
|
|
40
42
|
return await import('vite-plugin-inspect').then((r) => r.default(options));
|
|
@@ -8,7 +8,7 @@ import 'devframe/utils/serve-static';
|
|
|
8
8
|
import 'pathe';
|
|
9
9
|
import 'verkit';
|
|
10
10
|
import 'vite';
|
|
11
|
-
import '../shared/devtools-nightly.
|
|
11
|
+
import '../shared/devtools-nightly.DnJkSJYB.mjs';
|
|
12
12
|
import '../dirs.mjs';
|
|
13
13
|
import 'node:path';
|
|
14
14
|
import 'node:url';
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '@nuxt/kit';
|
|
2
|
-
export { m as default } from './shared/devtools-nightly.
|
|
2
|
+
export { m as default } from './shared/devtools-nightly.DnJkSJYB.mjs';
|
|
@@ -56,7 +56,14 @@ function createDefaultTabOptions() {
|
|
|
56
56
|
inputDefaults: {
|
|
57
57
|
query: [],
|
|
58
58
|
body: [],
|
|
59
|
-
headers: [
|
|
59
|
+
headers: [
|
|
60
|
+
{
|
|
61
|
+
active: true,
|
|
62
|
+
key: "Content-Type",
|
|
63
|
+
value: "application/json",
|
|
64
|
+
type: "string"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
60
67
|
}
|
|
61
68
|
},
|
|
62
69
|
assets: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.7-
|
|
4
|
+
"version": "4.0.0-beta.7-29884672.be3fa3f",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@devframes/plugin-code-server": "^1.2.6",
|
|
49
49
|
"@devframes/plugin-data-inspector": "^1.2.6",
|
|
50
50
|
"@devframes/plugin-og": "^1.2.6",
|
|
51
|
-
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.7-
|
|
52
|
-
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-beta.7-
|
|
51
|
+
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.7-29884672.be3fa3f",
|
|
52
|
+
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-beta.7-29884672.be3fa3f",
|
|
53
53
|
"@vitejs/devtools": "^0.8.0",
|
|
54
54
|
"@vitejs/devtools-kit": "^0.8.0",
|
|
55
55
|
"consola": "^3.4.2",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"fast-npm-meta": "^2.2.0",
|
|
61
61
|
"hookable": "^6.1.2",
|
|
62
62
|
"local-pkg": "^1.2.1",
|
|
63
|
-
"magic-string": "^1.4.
|
|
63
|
+
"magic-string": "^1.4.5",
|
|
64
64
|
"magicast": "^0.5.5",
|
|
65
65
|
"mlly": "^1.8.2",
|
|
66
66
|
"pathe": "^2.0.3",
|
|
67
67
|
"perfect-debounce": "^2.1.0",
|
|
68
68
|
"tinyglobby": "^0.2.17",
|
|
69
|
-
"unplugin": "^3.
|
|
69
|
+
"unplugin": "^3.5.0",
|
|
70
70
|
"verkit": "^0.5.0",
|
|
71
71
|
"vite-plugin-vue-devtools": "^9.0.0-beta.1",
|
|
72
72
|
"vite-plugin-vue-tracer": "^1.6.0"
|
|
@@ -74,19 +74,19 @@
|
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@antfu/utils": "^9.3.0",
|
|
76
76
|
"@iconify-json/bxl": "^1.2.4",
|
|
77
|
-
"@iconify-json/carbon": "^1.2.
|
|
78
|
-
"@iconify-json/logos": "^1.2.
|
|
77
|
+
"@iconify-json/carbon": "^1.2.29",
|
|
78
|
+
"@iconify-json/logos": "^1.2.18",
|
|
79
79
|
"@iconify-json/ph": "^1.2.2",
|
|
80
80
|
"@iconify-json/ri": "^1.2.10",
|
|
81
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
81
|
+
"@iconify-json/simple-icons": "^1.2.101",
|
|
82
82
|
"@iconify-json/tabler": "^1.2.42",
|
|
83
83
|
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-2610052343-36eafab",
|
|
84
84
|
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2610052343-36eafab",
|
|
85
85
|
"@parcel/watcher": "^2.6.0",
|
|
86
86
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
87
|
-
"@unocss/nuxt": "^66.
|
|
88
|
-
"@unocss/preset-icons": "^66.
|
|
89
|
-
"@unocss/preset-uno": "^66.
|
|
87
|
+
"@unocss/nuxt": "^66.12.0",
|
|
88
|
+
"@unocss/preset-icons": "^66.12.0",
|
|
89
|
+
"@unocss/preset-uno": "^66.12.0",
|
|
90
90
|
"@vueuse/nuxt": "^15.0.0",
|
|
91
91
|
"cronstrue": "^3.38.0",
|
|
92
92
|
"diff": "^9.0.0",
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
"ua-parser-modern": "^0.1.1",
|
|
114
114
|
"unbuild": "^3.6.1",
|
|
115
115
|
"unimport": "^7.0.2",
|
|
116
|
-
"unocss": "^66.
|
|
116
|
+
"unocss": "^66.12.0",
|
|
117
117
|
"unplugin-vue": "^8.0.0",
|
|
118
118
|
"unplugin-vue-markdown": "^32.1.1",
|
|
119
119
|
"unstorage": "^1.17.6",
|
|
120
120
|
"vanilla-jsoneditor": "^3.13.0",
|
|
121
|
-
"vis-data": "^8.0.
|
|
122
|
-
"vis-network": "^10.1.
|
|
121
|
+
"vis-data": "^8.0.6",
|
|
122
|
+
"vis-network": "^10.1.3",
|
|
123
123
|
"vite-plugin-inspect": "^12.1.0",
|
|
124
124
|
"vue-tsc": "^3.3.13",
|
|
125
125
|
"vue-virtual-scroller": "^3.0.5"
|