chrome-devtools-mcp 0.5.0 → 0.5.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/build/src/index.js +5 -1
- package/package.json +2 -2
package/build/src/index.js
CHANGED
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { version } from 'node:process';
|
|
8
8
|
const [major, minor] = version.substring(1).split('.').map(Number);
|
|
9
|
+
if (major === 20 && minor < 19) {
|
|
10
|
+
console.error(`ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 20.19.0 LTS or a newer LTS.`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
9
13
|
if (major === 22 && minor < 12) {
|
|
10
14
|
console.error(`ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 22.12.0 LTS or a newer LTS.`);
|
|
11
15
|
process.exit(1);
|
|
12
16
|
}
|
|
13
17
|
if (major < 20) {
|
|
14
|
-
console.error(`ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 20 LTS or a newer LTS.`);
|
|
18
|
+
console.error(`ERROR: \`chrome-devtools-mcp\` does not support Node ${process.version}. Please upgrade to Node 20.19.0 LTS or a newer LTS.`);
|
|
15
19
|
process.exit(1);
|
|
16
20
|
}
|
|
17
21
|
await import('./main.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "MCP server for Chrome DevTools",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": "./build/src/index.js",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"typescript-eslint": "^8.43.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
|
-
"node": "
|
|
68
|
+
"node": "^20.19.0 || ^22.12.0 || >=23"
|
|
69
69
|
}
|
|
70
70
|
}
|