systeminformation 5.18.10 → 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/README.md +1 -1
- package/lib/bluetooth.js +2 -0
- package/lib/filesystem.js +4 -1
- package/lib/osinfo.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
[![MIT license][license-img]][license-url]
|
|
30
30
|
|
|
31
31
|
## The Systeminformation Project
|
|
32
|
-
This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, >
|
|
32
|
+
This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 600 versions published, up to 6 mio downloads per month, > 150 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
|
|
33
33
|
|
|
34
34
|
## New Version 5.0
|
|
35
35
|
|
package/lib/bluetooth.js
CHANGED
|
@@ -34,6 +34,7 @@ function parseBluetoothType(str) {
|
|
|
34
34
|
|
|
35
35
|
if (str.indexOf('keyboard') >= 0) { result = 'Keyboard'; }
|
|
36
36
|
if (str.indexOf('mouse') >= 0) { result = 'Mouse'; }
|
|
37
|
+
if (str.indexOf('trackpad') >= 0) { result = 'Trackpad'; }
|
|
37
38
|
if (str.indexOf('speaker') >= 0) { result = 'Speaker'; }
|
|
38
39
|
if (str.indexOf('headset') >= 0) { result = 'Headset'; }
|
|
39
40
|
if (str.indexOf('phone') >= 0) { result = 'Phone'; }
|
|
@@ -55,6 +56,7 @@ function parseBluetoothManufacturer(str) {
|
|
|
55
56
|
if (str.indexOf('imac') >= 0) { result = 'Apple'; }
|
|
56
57
|
if (str.indexOf('iphone') >= 0) { result = 'Apple'; }
|
|
57
58
|
if (str.indexOf('magic mouse') >= 0) { result = 'Apple'; }
|
|
59
|
+
if (str.indexOf('magic track') >= 0) { result = 'Apple'; }
|
|
58
60
|
if (str.indexOf('macbook') >= 0) { result = 'Apple'; }
|
|
59
61
|
// to be continued ...
|
|
60
62
|
|
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];
|
|
@@ -271,7 +272,7 @@ function osInfo(callback) {
|
|
|
271
272
|
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) {
|
|
272
273
|
let lines = stdout.toString().split('\n');
|
|
273
274
|
const distro = util.getValue(lines, 'kern.ostype');
|
|
274
|
-
const logofile = util.
|
|
275
|
+
const logofile = util.getLogoFile(distro);
|
|
275
276
|
const release = util.getValue(lines, 'kern.osrelease').split('-')[0];
|
|
276
277
|
const serial = util.getValue(lines, 'kern.uuid');
|
|
277
278
|
const bootmethod = util.getValue(lines, 'machdep.bootmethod');
|
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)",
|