systeminformation 5.21.0 → 5.21.2

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
@@ -128,6 +128,7 @@ si.cpu()
128
128
 
129
129
  (last 7 major and minor version releases)
130
130
 
131
+ - Version 5.21.0: `graphics()` added subVendor (linux)
131
132
  - Version 5.20.0: `mem()` added writeback and dirty (linux)
132
133
  - Version 5.19.0: `currentLoad()` added steal and guest time (linux)
133
134
  - Version 5.18.0: `fsSize()` added optional drive parameter
@@ -329,7 +330,7 @@ Full function reference with examples can be found at [https://systeminformation
329
330
  | si.graphics(cb) | {...} | X | | X | X | | arrays of graphics controllers and displays |
330
331
  | | controllers[] | X | | X | X | | graphics controllers array |
331
332
  | | ...[0].vendor | X | | X | X | | e.g. NVIDIA |
332
- | | ...[0].subvendor | X | | | | | e.g. Gigabyte |
333
+ | | ...[0].subVendor | X | | | | | e.g. Gigabyte |
333
334
  | | ...[0].vendorId | | | X | | | vendor ID |
334
335
  | | ...[0].model | X | | X | X | | graphics controller model |
335
336
  | | ...[0].deviceId | | | X | | | device ID |
@@ -369,7 +370,7 @@ Full function reference with examples can be found at [https://systeminformation
369
370
  | | platform | X | X | X | X | X | 'linux', 'darwin', 'win32', ... |
370
371
  | | distro | X | X | X | X | X | |
371
372
  | | release | X | X | X | X | X | |
372
- | | codename | | | X | | | |
373
+ | | codename | X | | X | | | |
373
374
  | | kernel | X | X | X | X | X | kernel release - same as os.release() |
374
375
  | | arch | X | X | X | X | X | same as os.arch() |
375
376
  | | hostname | X | X | X | X | X | same as os.hostname() |
@@ -635,38 +636,38 @@ Full function reference with examples can be found at [https://systeminformation
635
636
 
636
637
  #### 14. Wifi
637
638
 
638
- | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
639
- | ---------------------- | --------------- | ----- | --- | --- | --- | --- | --------------------------------- |
640
- | si.wifiNetworks(cb) | [{...}] | X | | X | X | | array of available wifi networks |
641
- | | [0].ssid | X | | X | X | | Wifi network SSID |
642
- | | [0].bssid | X | | X | X | | BSSID (mac) |
643
- | | [0].mode | X | | | | | mode |
644
- | | [0].channel | X | | X | X | | channel |
645
- | | [0].frequency | X | | X | X | | frequency in MHz |
646
- | | [0].signalLevel | X | | X | X | | signal level in dB |
647
- | | [0].quality | X | | X | X | | quality in % |
648
- | | [0].security | X | | X | X | | array e.g. WPA, WPA-2 |
649
- | | [0].wpaFlags | X | | X | X | | array of WPA flags |
650
- | | [0].rsnFlags | X | | | | | array of RDN flags |
651
- | si.wifiInterfaces(cb) | [{...}] | X | | X | X | | array of detected wifi interfaces |
652
- | | [0].id | X | | X | X | | ID |
653
- | | [0].iface | X | | X | X | | interface |
654
- | | [0].model | X | | X | X | | model |
655
- | | [0].vendor | X | | X | X | | vendor |
656
- | | [0].mac | X | | X | X | | MAC address |
657
- | si.wifiConnections(cb) | [{...}] | X | | X | X | | array of active wifi connections |
658
- | | [0].id | X | | X | X | | ID |
659
- | | [0].iface | X | | X | X | | interface |
660
- | | [0].name | X | | X | X | | name |
661
- | | [0].mode | X | | X | X | | model |
662
- | | [0].bssid | X | | X | X | | BSSID (mac) |
663
- | | [0].mode | X | | | | | mode |
664
- | | [0].channel | X | | X | X | | channel |
665
- | | [0].frequency | X | | X | X | | frequency in MHz |
666
- | | [0].signalLevel | X | | X | X | | signal level in dB |
667
- | | [0].quality | X | | X | X | | quality in % |
668
- | | [0].security | X | | X | X | | array e.g. WPA, WPA-2 |
669
- | | [0].txRate | X | | X | X | | transfer rate MBit/s |
639
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
640
+ | ---------------------- | --------------- | ----- | --- | --- | --- | --- | --------------------------------------------- |
641
+ | si.wifiNetworks(cb) | [{...}] | X | | X | X | | array of available wifi networks |
642
+ | | [0].ssid | X | | X | X | | Wifi network SSID |
643
+ | | [0].bssid | X | | X | X | | BSSID (mac) |
644
+ | | [0].mode | X | | | | | mode |
645
+ | | [0].channel | X | | X | X | | channel |
646
+ | | [0].frequency | X | | X | X | | frequency in MHz |
647
+ | | [0].signalLevel | X | | X | X | | signal level in dB |
648
+ | | [0].quality | X | | X | X | | quality in % |
649
+ | | [0].security | X | | X | X | | array e.g. WPA, WPA-2 |
650
+ | | [0].wpaFlags | X | | X | X | | array of WPA flags |
651
+ | | [0].rsnFlags | X | | | | | array of RDN flags |
652
+ | si.wifiInterfaces(cb) | [{...}] | X | | X | X | | array of detected wifi interfaces |
653
+ | | [0].id | X | | X | X | | ID |
654
+ | | [0].iface | X | | X | X | | interface |
655
+ | | [0].model | X | | X | X | | model |
656
+ | | [0].vendor | X | | X | X | | vendor |
657
+ | | [0].mac | X | | X | X | | MAC address |
658
+ | si.wifiConnections(cb) | [{...}] | X | | X | X | | array of active wifi connections |
659
+ | | [0].id | X | | X | X | | ID |
660
+ | | [0].iface | X | | X | X | | interface |
661
+ | | [0].name | X | | X | X | | name |
662
+ | | [0].mode | X | | X | X | | model |
663
+ | | [0].bssid | X | | (X) | X | | BSSID (mac) - macOS only on older os versions |
664
+ | | [0].mode | X | | | | | mode |
665
+ | | [0].channel | X | | X | X | | channel |
666
+ | | [0].frequency | X | | X | X | | frequency in MHz |
667
+ | | [0].signalLevel | X | | X | X | | signal level in dB |
668
+ | | [0].quality | X | | X | X | | quality in % |
669
+ | | [0].security | X | | X | X | | array e.g. WPA, WPA-2 |
670
+ | | [0].txRate | X | | X | X | | transfer rate MBit/s |
670
671
 
671
672
  #### 15. Bluetooth
672
673
 
package/lib/cpu.js CHANGED
@@ -1067,7 +1067,7 @@ function cpuTemperature(callback) {
1067
1067
  const value = parts.length > 1 && parts[1] ? parts[1] : '0';
1068
1068
  if (value && (label === undefined || (label && label.toLowerCase().startsWith('core')))) {
1069
1069
  result.cores.push(Math.round(parseInt(value, 10) / 100) / 10);
1070
- } else if (value && label && result.main === null && (label.toLowerCase().indexOf('package') >= 0 || label.toLowerCase().indexOf('physical') >= 0)) {
1070
+ } else if (value && label && result.main === null && (label.toLowerCase().indexOf('package') >= 0 || label.toLowerCase().indexOf('physical') >= 0 || label.toLowerCase() === 'tctl')) {
1071
1071
  result.main = Math.round(parseInt(value, 10) / 100) / 10;
1072
1072
  }
1073
1073
  });
package/lib/graphics.js CHANGED
@@ -204,7 +204,7 @@ function graphics(callback) {
204
204
  let controllers = [];
205
205
  let currentController = {
206
206
  vendor: '',
207
- subvendor: '',
207
+ subVendor: '',
208
208
  model: '',
209
209
  bus: '',
210
210
  busAddress: '',
@@ -293,9 +293,9 @@ function graphics(callback) {
293
293
  }
294
294
  }
295
295
  if (currentController.model && subsystem.indexOf(currentController.model) !== -1) {
296
- const subvendor = subsystem.split(currentController.model)[0].trim();
297
- if (subvendor) {
298
- currentController.subvendor = subvendor;
296
+ const subVendor = subsystem.split(currentController.model)[0].trim();
297
+ if (subVendor) {
298
+ currentController.subVendor = subVendor;
299
299
  }
300
300
  }
301
301
  }
package/lib/index.d.ts CHANGED
@@ -306,7 +306,7 @@ export namespace Systeminformation {
306
306
 
307
307
  interface GraphicsControllerData {
308
308
  vendor: string;
309
- subvendor?: string;
309
+ subVendor?: string;
310
310
  vendorId?: string;
311
311
  model: string;
312
312
  deviceId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.21.0",
3
+ "version": "5.21.2",
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)",