systeminformation 5.17.4 → 5.17.5
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/lib/processes.js +2 -2
- package/package.json +1 -1
package/lib/processes.js
CHANGED
|
@@ -151,11 +151,11 @@ function services(srv, callback) {
|
|
|
151
151
|
if (_linux || _freebsd || _openbsd || _netbsd || _darwin) {
|
|
152
152
|
if ((_linux || _freebsd || _openbsd || _netbsd) && srvString === '*') {
|
|
153
153
|
try {
|
|
154
|
-
const tmpsrv = execSync('systemctl --type=service --no-legend 2> /dev/null').toString().split('\n');
|
|
154
|
+
const tmpsrv = execSync('systemctl --all --type=service --no-legend 2> /dev/null').toString().split('\n');
|
|
155
155
|
srvs = [];
|
|
156
156
|
for (const s of tmpsrv) {
|
|
157
157
|
const name = s.split('.service')[0];
|
|
158
|
-
if (name) {
|
|
158
|
+
if (name && s.indexOf(' not-found ') === -1) {
|
|
159
159
|
srvs.push(name.trim());
|
|
160
160
|
}
|
|
161
161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.17.
|
|
3
|
+
"version": "5.17.5",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|