pubo-node 1.0.164 → 1.0.165

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.
@@ -17,7 +17,7 @@ function getProcessName(pid) {
17
17
  reject(err);
18
18
  }
19
19
  else {
20
- resolve(data);
20
+ resolve(data.toString().split(':')[1]?.trim());
21
21
  }
22
22
  });
23
23
  });
@@ -126,13 +126,13 @@ async function SIGKILL(pid, signal = 2) {
126
126
  tmp.reverse();
127
127
  tree = null;
128
128
  let success = true;
129
- try {
130
- for (const item of tmp) {
129
+ for (const item of tmp) {
130
+ try {
131
131
  await _SIGKILL(item, signal);
132
132
  }
133
- }
134
- catch (err) {
135
- success = false;
133
+ catch (err) {
134
+ success = false;
135
+ }
136
136
  }
137
137
  return success;
138
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pubo-node",
3
- "version": "1.0.164",
3
+ "version": "1.0.165",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "sideEffects": false,
@@ -21,7 +21,7 @@
21
21
  "pubo-utils": "^1.0.164",
22
22
  "yaml": "^2.5.1"
23
23
  },
24
- "gitHead": "c0bff5fb6d2bb3d5429a56bf20ae01797f9266a9",
24
+ "gitHead": "93126c2ba44c242e56b04d34871da52a763293cc",
25
25
  "devDependencies": {
26
26
  "del": "^5.1.0",
27
27
  "eslint": "^8.42.0",