@nuxt/devtools-nightly 4.0.0-beta.3-29854471.6521d26 → 4.0.0-beta.3-29854535.ff0512e
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/module-main.mjs +27 -23
- package/dist/module.json +1 -1
- package/package.json +4 -4
|
@@ -31,9 +31,9 @@ import { createRequire } from 'node:module';
|
|
|
31
31
|
import { DEVTOOLS_TERMINALS_DOCK_ID } from '@vitejs/devtools-kit/constants';
|
|
32
32
|
import { normalizeBaseKey, normalizeKey, createStorage, builtinDrivers } from 'unstorage';
|
|
33
33
|
|
|
34
|
-
const version = "4.0.0-beta.3-
|
|
34
|
+
const version = "4.0.0-beta.3-29854535.ff0512e";
|
|
35
35
|
const peerDependencies = {
|
|
36
|
-
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.3-
|
|
36
|
+
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.3-29854535.ff0512e",
|
|
37
37
|
"@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
|
|
38
38
|
nitro: "*",
|
|
39
39
|
nitropack: "^2.0.0",
|
|
@@ -1903,7 +1903,8 @@ const AGENTS = [
|
|
|
1903
1903
|
"bun",
|
|
1904
1904
|
"deno",
|
|
1905
1905
|
"nub",
|
|
1906
|
-
"aube"
|
|
1906
|
+
"aube",
|
|
1907
|
+
"upm"
|
|
1907
1908
|
];
|
|
1908
1909
|
const LOCKS = {
|
|
1909
1910
|
"aube-lock.yaml": "aube",
|
|
@@ -1912,6 +1913,7 @@ const LOCKS = {
|
|
|
1912
1913
|
"bun.lockb": "bun",
|
|
1913
1914
|
"deno.lock": "deno",
|
|
1914
1915
|
"nub.lock": "nub",
|
|
1916
|
+
"upm.lock": "upm",
|
|
1915
1917
|
"pnpm-lock.yaml": "pnpm",
|
|
1916
1918
|
"pnpm-workspace.yaml": "pnpm",
|
|
1917
1919
|
"yarn.lock": "yarn",
|
|
@@ -1922,6 +1924,7 @@ const INSTALL_METADATA = {
|
|
|
1922
1924
|
"node_modules/.aube/": "aube",
|
|
1923
1925
|
"node_modules/.deno/": "deno",
|
|
1924
1926
|
"node_modules/.pnpm/": "pnpm",
|
|
1927
|
+
"node_modules/.upm/": "upm",
|
|
1925
1928
|
"node_modules/.yarn-state.yml": "yarn",
|
|
1926
1929
|
// yarn v2+ (node-modules)
|
|
1927
1930
|
"node_modules/.yarn_integrity": "yarn",
|
|
@@ -2012,16 +2015,18 @@ async function detect(options = {}) {
|
|
|
2012
2015
|
}
|
|
2013
2016
|
return null;
|
|
2014
2017
|
}
|
|
2018
|
+
function normalizeAgentVersion(version) {
|
|
2019
|
+
return version?.match(/\d+(\.\d+){0,2}/)?.[0] ?? version;
|
|
2020
|
+
}
|
|
2015
2021
|
function getNameAndVer(pkg) {
|
|
2016
|
-
const handelVer = (version) => version?.match(/\d+(\.\d+){0,2}/)?.[0] ?? version;
|
|
2017
2022
|
if (typeof pkg.packageManager === "string") {
|
|
2018
2023
|
const [name, ver] = pkg.packageManager.replace(/^\^/, "").split("@");
|
|
2019
|
-
return { name, ver:
|
|
2024
|
+
return { name, ver: normalizeAgentVersion(ver) };
|
|
2020
2025
|
}
|
|
2021
2026
|
if (typeof pkg.devEngines?.packageManager?.name === "string") {
|
|
2022
2027
|
return {
|
|
2023
2028
|
name: pkg.devEngines.packageManager.name,
|
|
2024
|
-
ver:
|
|
2029
|
+
ver: normalizeAgentVersion(pkg.devEngines.packageManager.version)
|
|
2025
2030
|
};
|
|
2026
2031
|
}
|
|
2027
2032
|
return void 0;
|
|
@@ -2030,30 +2035,29 @@ async function handlePackageManager(filepath, options) {
|
|
|
2030
2035
|
try {
|
|
2031
2036
|
const content = await fsp.readFile(filepath, "utf8");
|
|
2032
2037
|
const pkg = options.packageJsonParser ? await options.packageJsonParser(content, filepath) : JSON.parse(content);
|
|
2033
|
-
let agent;
|
|
2034
2038
|
const nameAndVer = getNameAndVer(pkg);
|
|
2035
2039
|
if (nameAndVer) {
|
|
2036
|
-
|
|
2037
|
-
const ver = nameAndVer.ver;
|
|
2038
|
-
let version = ver;
|
|
2039
|
-
if (name === "yarn" && ver && Number.parseInt(ver) > 1) {
|
|
2040
|
-
agent = "yarn@berry";
|
|
2041
|
-
version = "berry";
|
|
2042
|
-
return { name, agent, version };
|
|
2043
|
-
} else if (name === "pnpm" && ver && Number.parseInt(ver) < 7) {
|
|
2044
|
-
agent = "pnpm@6";
|
|
2045
|
-
return { name, agent, version };
|
|
2046
|
-
} else if (AGENTS.includes(name)) {
|
|
2047
|
-
agent = name;
|
|
2048
|
-
return { name, agent, version };
|
|
2049
|
-
} else {
|
|
2050
|
-
return options.onUnknown?.(pkg.packageManager) ?? null;
|
|
2051
|
-
}
|
|
2040
|
+
return resolveAgent(nameAndVer.name, nameAndVer.ver) ?? options.onUnknown?.(pkg.packageManager) ?? null;
|
|
2052
2041
|
}
|
|
2053
2042
|
} catch {
|
|
2054
2043
|
}
|
|
2055
2044
|
return null;
|
|
2056
2045
|
}
|
|
2046
|
+
function resolveAgent(name, ver) {
|
|
2047
|
+
let agent;
|
|
2048
|
+
let version = ver;
|
|
2049
|
+
if (name === "yarn" && ver && Number.parseInt(ver) > 1) {
|
|
2050
|
+
agent = "yarn@berry";
|
|
2051
|
+
version = "berry";
|
|
2052
|
+
return { name, agent, version };
|
|
2053
|
+
} else if (name === "pnpm" && ver && Number.parseInt(ver) < 7) {
|
|
2054
|
+
agent = "pnpm@6";
|
|
2055
|
+
return { name, agent, version };
|
|
2056
|
+
} else if (AGENTS.includes(name)) {
|
|
2057
|
+
agent = name;
|
|
2058
|
+
return { name, agent, version };
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2057
2061
|
function isMetadataYarnClassic(metadataPath) {
|
|
2058
2062
|
return metadataPath.endsWith(".yarn_integrity");
|
|
2059
2063
|
}
|
package/dist/module.json
CHANGED
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.3-
|
|
4
|
+
"version": "4.0.0-beta.3-29854535.ff0512e",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.3-
|
|
24
|
+
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.3-29854535.ff0512e",
|
|
25
25
|
"@nuxt/kit": "^4.0.0-0 || ^5.0.0-0",
|
|
26
26
|
"nitro": "*",
|
|
27
27
|
"nitropack": "^2.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@devframes/hub": "^1.2.0",
|
|
47
47
|
"@devframes/plugin-code-server": "^1.2.0",
|
|
48
48
|
"@devframes/plugin-data-inspector": "^1.2.0",
|
|
49
|
-
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-beta.3-
|
|
49
|
+
"@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@4.0.0-beta.3-29854535.ff0512e",
|
|
50
50
|
"@vitejs/devtools": "^0.7.6",
|
|
51
51
|
"@vitejs/devtools-kit": "^0.7.6",
|
|
52
52
|
"consola": "^3.4.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@iconify-json/ri": "^1.2.10",
|
|
81
81
|
"@iconify-json/simple-icons": "^1.2.98",
|
|
82
82
|
"@iconify-json/tabler": "^1.2.41",
|
|
83
|
-
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.3-
|
|
83
|
+
"@nuxt/devtools-assets": "npm:@nuxt/devtools-assets-nightly@4.0.0-beta.3-29854535.ff0512e",
|
|
84
84
|
"@nuxt/kit": "npm:@nuxt/kit-nightly@5.0.0-2610052343-36eafab",
|
|
85
85
|
"@nuxt/schema": "npm:@nuxt/schema-nightly@5.0.0-2610052343-36eafab",
|
|
86
86
|
"@parcel/watcher": "^2.6.0",
|