diff --git a/CHANGELOG.md b/CHANGELOG.md index 198f6cc..bf009f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.34.2 | 2020-01-05 | `system()` uuid lowercase as in uuid() | | 4.34.1 | 2020-01-05 | `graphics()` nvidia-smi detection improved | | 4.34.0 | 2020-01-05 | `system()` added flag virtual | | 4.33.8 | 2020-01-04 | `virtualBox()` fix issue windows host | diff --git a/docs/history.html b/docs/history.html index f2421e4..b6f8c70 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.34.2 + 2020-01-05 + system() uuid now lowercase - as in uuid() + 4.34.1 2020-01-05 diff --git a/docs/index.html b/docs/index.html index 2b714bf..420adde 100644 --- a/docs/index.html +++ b/docs/index.html @@ -169,7 +169,7 @@
systeminformation
-
Current Version: 4.34.1
+
Current Version: 4.34.2
diff --git a/lib/system.js b/lib/system.js index 5c1fb2f..5db0b73 100644 --- a/lib/system.js +++ b/lib/system.js @@ -51,7 +51,7 @@ function system(callback) { result.model = util.getValue(lines, 'product name'); result.version = util.getValue(lines, 'version'); result.serial = util.getValue(lines, 'serial number'); - result.uuid = util.getValue(lines, 'uuid'); + result.uuid = util.getValue(lines, 'uuid').toLowerCase(); result.sku = util.getValue(lines, 'sku number'); // } // Non-Root values @@ -66,7 +66,7 @@ function system(callback) { result.model = result.model === '' ? util.getValue(lines, 'product_name') : result.model; result.version = result.version === '' ? util.getValue(lines, 'product_version') : result.version; result.serial = result.serial === '' ? util.getValue(lines, 'product_serial') : result.serial; - result.uuid = result.uuid === '' ? util.getValue(lines, 'product_uuid') : result.uuid; + result.uuid = result.uuid === '' ? util.getValue(lines, 'product_uuid').toLowerCase() : result.uuid; } catch (e) { util.noop(); } @@ -262,7 +262,7 @@ function system(callback) { result.model = util.getValue(lines, 'model', '=', true); result.version = util.getValue(lines, 'version', '=', true); result.serial = util.getValue(lines, 'ioplatformserialnumber', '=', true); - result.uuid = util.getValue(lines, 'ioplatformuuid', '=', true); + result.uuid = util.getValue(lines, 'ioplatformuuid', '=', true).toLowerCase(); result.sku = util.getValue(lines, 'board-id', '=', true); } if (callback) { callback(result); } @@ -283,7 +283,7 @@ function system(callback) { result.model = util.getValue(lines, 'name', '='); result.version = util.getValue(lines, 'version', '='); result.serial = util.getValue(lines, 'identifyingnumber', '='); - result.uuid = util.getValue(lines, 'uuid', '='); + result.uuid = util.getValue(lines, 'uuid', '=').toLowerCase(); // detect virtual (1) if (result.model.toLowerCase() === 'virtualbox' || result.model.toLowerCase() === 'kvm' || result.model.toLowerCase() === 'virtual machine' || result.model.toLowerCase() === 'bochs' || result.model.toLowerCase().startsWith('vmware')) { result.virtual = true;