systeminformation 5.21.9 → 5.21.11

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/internet.js CHANGED
@@ -13,7 +13,6 @@
13
13
  // 12. Internet
14
14
  // ----------------------------------------------------------------------------------
15
15
 
16
- // const exec = require('child_process').exec;
17
16
  const util = require('./util');
18
17
 
19
18
  let _platform = process.platform;
package/lib/osinfo.js CHANGED
@@ -272,7 +272,7 @@ function osInfo(callback) {
272
272
  exec('sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml', function (error, stdout) {
273
273
  let lines = stdout.toString().split('\n');
274
274
  const distro = util.getValue(lines, 'kern.ostype');
275
- const logofile = util.getLogoFile(distro);
275
+ const logofile = getLogoFile(distro);
276
276
  const release = util.getValue(lines, 'kern.osrelease').split('-')[0];
277
277
  const serial = util.getValue(lines, 'kern.uuid');
278
278
  const bootmethod = util.getValue(lines, 'machdep.bootmethod');
package/lib/wifi.js CHANGED
@@ -366,8 +366,12 @@ function parseWifiDarwin(wifiObj) {
366
366
  });
367
367
  }
368
368
  }
369
- if (wifiItem.SSID) {
370
- ssid = Buffer.from(wifiItem.SSID, 'base64').toString('utf8');
369
+ if (wifiItem.SSID && ssid === '') {
370
+ try {
371
+ ssid = Buffer.from(wifiItem.SSID, 'base64').toString('utf8');
372
+ } catch (err) {
373
+ util.noop();
374
+ }
371
375
  }
372
376
  result.push({
373
377
  ssid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.21.9",
3
+ "version": "5.21.11",
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)",