systeminformation 5.31.3 → 5.31.4

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
@@ -31,7 +31,7 @@
31
31
  ## The Systeminformation Project
32
32
 
33
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
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
 
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.31.3",
3
+ "version": "5.31.4",
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)",