systeminformation 5.22.10 → 5.23.0

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
@@ -545,7 +545,7 @@ Full function reference with examples can be found at [https://systeminformation
545
545
  | | [0].manufacturer | X | | X | X | | manufacturer |
546
546
  | | [0].maxPower | X | | | | | max power |
547
547
  | | [0].default | X | | X | X | | is default printer |
548
- | | [0].serialNumber | | | X | | | serial number |
548
+ | | [0].serialNumber | X | | X | | | serial number |
549
549
 
550
550
  #### 11. Printer
551
551
 
package/lib/osinfo.js CHANGED
@@ -320,6 +320,7 @@ function osInfo(callback) {
320
320
  result.codename = (result.release.startsWith('12.') ? 'macOS Monterey' : result.codename);
321
321
  result.codename = (result.release.startsWith('13.') ? 'macOS Ventura' : result.codename);
322
322
  result.codename = (result.release.startsWith('14.') ? 'macOS Sonoma' : result.codename);
323
+ result.codename = (result.release.startsWith('15.') ? 'macOS Sequoia' : result.codename);
323
324
  result.uefi = true;
324
325
  result.codepage = util.getCodepage();
325
326
  if (callback) {
package/lib/usb.js CHANGED
@@ -77,6 +77,11 @@ function parseLinuxUsb(usb) {
77
77
  iManufacturerParts.shift();
78
78
  const manufacturer = iManufacturerParts.join(' ');
79
79
 
80
+ const iSerial = util.getValue(lines, 'iSerial', ' ', true).trim();
81
+ let iSerialParts = iSerial.split(' ');
82
+ iSerialParts.shift();
83
+ const serial = iSerialParts.join(' ');
84
+
80
85
  result.id = (idVendor.startsWith('0x') ? idVendor.split(' ')[0].substr(2, 10) : '') + ':' + (idProduct.startsWith('0x') ? idProduct.split(' ')[0].substr(2, 10) : '');
81
86
  result.name = product;
82
87
  result.type = getLinuxUsbType(usbType, product);
@@ -84,7 +89,7 @@ function parseLinuxUsb(usb) {
84
89
  result.vendor = vendor;
85
90
  result.manufacturer = manufacturer;
86
91
  result.maxPower = util.getValue(lines, 'MaxPower', ' ', true);
87
- result.serialNumber = null;
92
+ result.serialNumber = serial;
88
93
 
89
94
  return result;
90
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.22.10",
3
+ "version": "5.23.0",
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)",