systeminformation 5.18.11 → 5.18.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.
- package/lib/filesystem.js +4 -1
- package/lib/osinfo.js +2 -1
- package/package.json +1 -1
package/lib/filesystem.js
CHANGED
|
@@ -142,7 +142,10 @@ function fsSize(drive, callback) {
|
|
|
142
142
|
execSync('cat /proc/mounts 2>/dev/null').toString().split('\n').filter(line => {
|
|
143
143
|
return line.startsWith('/');
|
|
144
144
|
}).forEach((line) => {
|
|
145
|
-
osMounts[line.split(' ')[0]] = line.
|
|
145
|
+
osMounts[line.split(' ')[0]] = osMounts[line.split(' ')[0]] ?? false;
|
|
146
|
+
if (line.toLowerCase().indexOf('/snap/') === -1) {
|
|
147
|
+
osMounts[line.split(' ')[0]] = ((line.toLowerCase().indexOf('rw,') >= 0 || line.toLowerCase().indexOf(' rw ') >= 0));
|
|
148
|
+
}
|
|
146
149
|
});
|
|
147
150
|
} catch (e) {
|
|
148
151
|
util.noop();
|
package/lib/osinfo.js
CHANGED
|
@@ -180,7 +180,8 @@ function getFQDN() {
|
|
|
180
180
|
util.noop();
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
}
|
|
183
|
+
}
|
|
184
|
+
if (_freebsd || _openbsd || _netbsd) {
|
|
184
185
|
try {
|
|
185
186
|
const stdout = execSync('hostname 2>/dev/null');
|
|
186
187
|
fqdn = stdout.toString().split(os.EOL)[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.12",
|
|
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)",
|