@arcblock/pm2-prom-module 2.6.1 → 2.6.2
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/core/pm2.js +3 -2
- package/package.json +2 -2
package/core/pm2.js
CHANGED
|
@@ -172,6 +172,9 @@ const detectActiveApps = () => {
|
|
|
172
172
|
// @ts-expect-error
|
|
173
173
|
dockerApps.map((x) => { var _a; return (_a = x.pm2_env) === null || _a === void 0 ? void 0 : _a.BLOCKLET_DOCKER_NAME; })).then((stats) => {
|
|
174
174
|
stats.map((stat, i) => {
|
|
175
|
+
if (!stat) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
175
178
|
const entry = mapAppPids[dockerApps[i].name];
|
|
176
179
|
if (entry) {
|
|
177
180
|
entry.pids.forEach((pid) => {
|
|
@@ -199,8 +202,6 @@ const detectActiveApps = () => {
|
|
|
199
202
|
.catch((err) => {
|
|
200
203
|
console.error(err.stack || err);
|
|
201
204
|
});
|
|
202
|
-
// get docker stats
|
|
203
|
-
// @ts-ignore
|
|
204
205
|
});
|
|
205
206
|
};
|
|
206
207
|
const startPm2Connect = (conf) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/pm2-prom-module",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"zx": "^4.3.0"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"predev": "pm2 delete pm2-prom-module || true && npm run build",
|
|
18
|
+
"predev": "pm2 delete @arcblock/pm2-prom-module && pm2 uninstall @arcblock/pm2-prom-module || true && npm run build",
|
|
19
19
|
"dev": "pm2 install .",
|
|
20
20
|
"build": "tsc -p tsconfig.json",
|
|
21
21
|
"watch": "tsc -w -p tsconfig.json",
|