systeminformation 5.18.10 → 5.18.11
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/osinfo.js +1 -1
- 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/osinfo.js
CHANGED
|
@@ -271,7 +271,7 @@ function osInfo(callback) {
|
|
|
271
271
|
exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) {
|
|
272
272
|
let lines = stdout.toString().split('\n');
|
|
273
273
|
const distro = util.getValue(lines, 'kern.ostype');
|
|
274
|
-
const logofile = util.
|
|
274
|
+
const logofile = util.getLogoFile(distro);
|
|
275
275
|
const release = util.getValue(lines, 'kern.osrelease').split('-')[0];
|
|
276
276
|
const serial = util.getValue(lines, 'kern.uuid');
|
|
277
277
|
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.11",
|
|
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)",
|