systeminformation 5.23.2 → 5.23.3

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/lib/usb.js +1 -2
  3. package/package.json +1 -1
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.23.0: `usb()` added serial number (linux)
131
132
  - Version 5.22.0: `wifiConnections()` added signal quality
132
133
  - Version 5.21.0: `graphics()` added subVendor (linux)
133
134
  - Version 5.20.0: `mem()` added writeback and dirty (linux)
package/lib/usb.js CHANGED
@@ -114,7 +114,6 @@ function getDarwinUsbType(name) {
114
114
  return result;
115
115
  }
116
116
 
117
-
118
117
  function parseDarwinUsb(usb, id) {
119
118
  const result = {};
120
119
  result.id = id;
@@ -258,7 +257,7 @@ function usb(callback) {
258
257
  const parts = stdout.toString().split(/\n\s*\n/);
259
258
  for (let i = 0; i < parts.length; i++) {
260
259
  const usb = parseWindowsUsb(parts[i].split('\n'), i);
261
- if (usb) {
260
+ if (usb && result.filter(x => x.deviceId === usb.deviceId).length === 0) {
262
261
  result.push(usb);
263
262
  }
264
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.23.2",
3
+ "version": "5.23.3",
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)",