systeminformation 5.31.3 → 5.31.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/README.md CHANGED
@@ -30,8 +30,8 @@
30
30
 
31
31
  ## The Systeminformation Project
32
32
 
33
- This is amazing. Started as a small project just for myself, it now has > 19,000
34
- lines of code, > 700 versions published, up to 20 mio downloads per month, > 490
33
+ This is amazing. Started as a small project just for myself, it now has > 20,000
34
+ lines of code, > 700 versions published, up to 20 mio downloads per month, > 500
35
35
  mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
36
36
  who contributed to this project!
37
37
 
@@ -1130,8 +1130,7 @@ OSX Temperature: credits here are going to:
1130
1130
 
1131
1131
  ### Powered by
1132
1132
 
1133
- <a href="https://jb.gg/OpenSourceSupport"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg" alt="Alt Text" width="160"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1134
- <a href="https://plus-innovations.com"><img src="https://www.plus-innovations.com/wp-content/themes/bootstrap3/img/logo1000.png" alt="Alt Text" width="150" style="margin-bottom: 8px"></a>
1133
+ <a href="https://plus-innovations.com"><img src="https://www.plus-innovations.com/wp-content/themes/bootstrap3/img/logo1000.png" alt="Alt Text" width="200" style="margin-bottom: 8px"></a>
1135
1134
 
1136
1135
  ## Copyright Information
1137
1136
 
package/lib/filesystem.js CHANGED
@@ -15,6 +15,7 @@
15
15
 
16
16
  const util = require('./util');
17
17
  const fs = require('fs');
18
+ const os = require('os');
18
19
 
19
20
  const exec = require('child_process').exec;
20
21
  const execSync = require('child_process').execSync;
@@ -1350,7 +1351,7 @@ function diskLayout(callback) {
1350
1351
  }
1351
1352
  if (_darwin) {
1352
1353
  let cmdFullSmart = '';
1353
- exec('system_profiler SPSerialATADataType SPNVMeDataType SPUSBDataType', { maxBuffer: 1024 * 1024 }, (error, stdout) => {
1354
+ exec(`system_profiler SPSerialATADataType SPNVMeDataType ${parseInt(os.release(), 10) > 24 ? 'SPUSBHostDataType' : 'SPUSBDataType'} `, { maxBuffer: 1024 * 1024 }, (error, stdout) => {
1354
1355
  if (!error) {
1355
1356
  // split by type:
1356
1357
  const lines = stdout.toString().split('\n');
package/lib/network.js CHANGED
@@ -1476,7 +1476,7 @@ function networkStatsSingle(iface) {
1476
1476
  result.operstate = (stdout.toString().split(':')[1] || '').trim();
1477
1477
  result.operstate = (result.operstate || '').toLowerCase();
1478
1478
  result.operstate = result.operstate === 'active' ? 'up' : result.operstate === 'inactive' ? 'down' : 'unknown';
1479
- cmd = 'netstat -bdI ' + ifaceSanitized; // lgtm [js/shell-command-constructed-from-input]
1479
+ cmd = 'netstat -bdnI ' + ifaceSanitized; // lgtm [js/shell-command-constructed-from-input]
1480
1480
  exec(cmd, (error, stdout) => {
1481
1481
  if (!error) {
1482
1482
  lines = stdout.toString().split('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.31.3",
3
+ "version": "5.31.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)",