systeminformation 5.17.12 → 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/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, > 500 versions published, up to 6 mio downloads per month, > 140 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
32
+ This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 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/index.d.ts CHANGED
@@ -492,6 +492,7 @@ export namespace Systeminformation {
492
492
  interface NetworkInterfacesData {
493
493
  iface: string;
494
494
  ifaceName: string;
495
+ default: boolean;
495
496
  ip4: string;
496
497
  ip4subnet: string;
497
498
  ip6: string;
@@ -924,14 +925,14 @@ export namespace Systeminformation {
924
925
  v8: string;
925
926
  cpuCurrentSpeed: CpuCurrentSpeedData;
926
927
  users: UserData[];
927
- processes: ProcessesData;
928
+ processes: ProcessesData[];
928
929
  currentLoad: CurrentLoadData;
929
930
  cpuTemperature: CpuTemperatureData;
930
- networkStats: NetworkStatsData;
931
- networkConnections: NetworkConnectionsData;
931
+ networkStats: NetworkStatsData[];
932
+ networkConnections: NetworkConnectionsData[];
932
933
  mem: MemData;
933
934
  battery: BatteryData;
934
- services: ServicesData;
935
+ services: ServicesData[];
935
936
  fsSize: FsSizeData;
936
937
  fsStats: FsStatsData;
937
938
  disksIO: DisksIoData;
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.12",
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)",