systeminformation 5.22.3 → 5.22.5

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
@@ -1122,8 +1122,8 @@ function uuid(callback) {
1122
1122
  });
1123
1123
  }
1124
1124
  if (_linux) {
1125
- const cmd = `echo -n "os: "; cat /var/lib/dbus/machine-id 2> /dev/null; echo;
1126
- echo -n "os: "; cat /etc/machine-id 2> /dev/null; echo;
1125
+ const cmd = `echo -n "os: "; cat /var/lib/dbus/machine-id 2> /dev/null ||
1126
+ cat /etc/machine-id 2> /dev/null; echo;
1127
1127
  echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`;
1128
1128
  exec(cmd, function (error, stdout) {
1129
1129
  const lines = stdout.toString().split('\n');
package/lib/wifi.js CHANGED
@@ -541,7 +541,7 @@ function getVendor(model) {
541
541
  }
542
542
 
543
543
  function formatBssid(s) {
544
- s = s.replace(/</g, '').replace(/>/g, '').match(/.{1,2}/g);
544
+ s = s.replace(/</g, '').replace(/>/g, '').match(/.{1,2}/g) || [];
545
545
  return s.join(':');
546
546
  }
547
547
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.22.3",
3
+ "version": "5.22.5",
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)",