systeminformation 5.27.3 → 5.27.4
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/osinfo.js +2 -2
- package/package.json +1 -1
package/lib/osinfo.js
CHANGED
|
@@ -1240,8 +1240,8 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
|
|
|
1240
1240
|
if (_freebsd || _openbsd || _netbsd) {
|
|
1241
1241
|
exec('sysctl -i kern.hostid kern.hostuuid', function (error, stdout) {
|
|
1242
1242
|
const lines = stdout.toString().split('\n');
|
|
1243
|
-
result.
|
|
1244
|
-
result.
|
|
1243
|
+
result.hardware = util.getValue(lines, 'kern.hostid', ':').toLowerCase();
|
|
1244
|
+
result.os = util.getValue(lines, 'kern.hostuuid', ':').toLowerCase();
|
|
1245
1245
|
if (result.os.indexOf('unknown') >= 0) { result.os = ''; }
|
|
1246
1246
|
if (result.hardware.indexOf('unknown') >= 0) { result.hardware = ''; }
|
|
1247
1247
|
if (callback) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.4",
|
|
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)",
|