systeminformation 5.17.13 → 5.17.14

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 CHANGED
@@ -289,7 +289,7 @@ function osInfo(callback) {
289
289
  let lines = stdout.toString().split('\n');
290
290
  result.serial = util.getValue(lines, 'kern.uuid');
291
291
  result.distro = util.getValue(lines, 'ProductName');
292
- result.release = util.getValue(lines, 'ProductVersion');
292
+ result.release = (util.getValue(lines, 'ProductVersion', ':', true, true) + ' ' + util.getValue(lines, 'ProductVersionExtra', ':', true, true)).trim();
293
293
  result.build = util.getValue(lines, 'BuildVersion');
294
294
  result.logofile = getLogoFile(result.distro);
295
295
  result.codename = 'macOS';
package/lib/util.js CHANGED
@@ -119,7 +119,7 @@ function getValue(lines, property, separator, trimmed, lineMatch) {
119
119
  trimmed = trimmed || false;
120
120
  lineMatch = lineMatch || false;
121
121
  let result = '';
122
- lines.forEach((line) => {
122
+ lines.some((line) => {
123
123
  let lineLower = line.toLowerCase().replace(/\t/g, '');
124
124
  if (trimmed) {
125
125
  lineLower = lineLower.trim();
@@ -129,6 +129,7 @@ function getValue(lines, property, separator, trimmed, lineMatch) {
129
129
  if (parts.length >= 2) {
130
130
  parts.shift();
131
131
  result = parts.join(separator).trim();
132
+ return true;
132
133
  }
133
134
  }
134
135
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.17.13",
3
+ "version": "5.17.14",
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)",