systeminformation 5.31.2 → 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/lib/util.js CHANGED
@@ -1401,9 +1401,57 @@ function semverCompare(v1, v2) {
1401
1401
 
1402
1402
  function getAppleModel(key) {
1403
1403
  const appleModelIds = [
1404
+ {
1405
+ key: 'Mac17,7',
1406
+ name: 'MacBook Pro',
1407
+ size: '16-inch',
1408
+ processor: 'M5 Max',
1409
+ year: '2026',
1410
+ additional: ''
1411
+ },
1412
+ {
1413
+ key: 'Mac17,6',
1414
+ name: 'MacBook Pro',
1415
+ size: '14-inch',
1416
+ processor: 'M5 Max',
1417
+ year: '2026',
1418
+ additional: ''
1419
+ },
1420
+ {
1421
+ key: 'Mac17,5',
1422
+ name: 'MacBook Pro',
1423
+ size: '16-inch',
1424
+ processor: 'M5 Pro',
1425
+ year: '2026',
1426
+ additional: ''
1427
+ },
1428
+ {
1429
+ key: 'Mac17,4',
1430
+ name: 'MacBook Pro',
1431
+ size: '14-inch',
1432
+ processor: 'M5 Pro',
1433
+ year: '2026',
1434
+ additional: ''
1435
+ },
1436
+ {
1437
+ key: 'Mac17,1',
1438
+ name: 'MacBook Neo',
1439
+ size: '14-inch',
1440
+ processor: 'A18 Pro',
1441
+ year: '2026',
1442
+ additional: ''
1443
+ },
1444
+ {
1445
+ key: 'Mac17,3',
1446
+ name: 'MacBook Pro',
1447
+ size: '16-inch',
1448
+ processor: 'M5',
1449
+ year: '2025',
1450
+ additional: ''
1451
+ },
1404
1452
  {
1405
1453
  key: 'Mac17,2',
1406
- name: 'MacBook',
1454
+ name: 'MacBook Pro',
1407
1455
  size: '14-inch',
1408
1456
  processor: 'M5',
1409
1457
  year: '2025',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.31.2",
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)",