@drocketxx/pm2me 1.1.11 → 1.1.12

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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/png" href="/icon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>PM2Me</title>
8
- <script type="module" crossorigin src="/assets/index-1QKz34a5.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-I-oE5bOj.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-Bo3lbcQo.css">
10
10
  </head>
11
11
  <body>
@@ -963,11 +963,20 @@ router.get('/setup/info', (req, res) => {
963
963
  ? ['C:\\pm2me\\apps', 'C:\\Users\\apps', 'D:\\pm2me\\apps']
964
964
  : ['/opt/pm2me/apps', '/home/apps', '/var/pm2me/apps'];
965
965
 
966
+ // Read version from package.json
967
+ let version = 'unknown';
968
+ try {
969
+ const pkgPath = path.resolve(__dirname, '../../package.json');
970
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
971
+ version = pkg.version || 'unknown';
972
+ } catch { }
973
+
966
974
  res.json({
967
975
  os: serverIsWindows ? 'windows' : 'linux',
968
976
  isWindows: serverIsWindows,
969
977
  defaultPath,
970
- pathPresets
978
+ pathPresets,
979
+ version
971
980
  });
972
981
  });
973
982
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drocketxx/pm2me",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "PM2 Deployment and Management System — Web UI for PM2 process management",
5
5
  "type": "module",
6
6
  "main": "backend/app.js",