systeminformation 5.31.1 → 5.31.2

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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/lib/util.js +32 -0
  3. package/package.json +1 -1
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, > 480
34
+ lines of code, > 700 versions published, up to 20 mio downloads per month, > 490
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
 
@@ -163,6 +163,7 @@ si.cpu()
163
163
 
164
164
  (last 7 major and minor version releases)
165
165
 
166
+ - Version 5.31.0: `diskLayout()` added smartmontools support (macOS)
166
167
  - Version 5.30.0: `processes()` added user (windows) - needed to be reverted
167
168
  - Version 5.29.0: `osInfo()` added OS code name (windows)
168
169
  - Version 5.28.0: `cpuTemperature()` added suppurt for macos-temperature-sensor (macOS)
package/lib/util.js CHANGED
@@ -1401,6 +1401,38 @@ function semverCompare(v1, v2) {
1401
1401
 
1402
1402
  function getAppleModel(key) {
1403
1403
  const appleModelIds = [
1404
+ {
1405
+ key: 'Mac17,2',
1406
+ name: 'MacBook',
1407
+ size: '14-inch',
1408
+ processor: 'M5',
1409
+ year: '2025',
1410
+ additional: ''
1411
+ },
1412
+ {
1413
+ key: 'Mac16,13',
1414
+ name: 'MacBook Air',
1415
+ size: '15-inch',
1416
+ processor: 'M4',
1417
+ year: '2025',
1418
+ additional: ''
1419
+ },
1420
+ {
1421
+ key: 'Mac16,12',
1422
+ name: 'MacBook Air',
1423
+ size: '13-inch',
1424
+ processor: 'M4',
1425
+ year: '2025',
1426
+ additional: ''
1427
+ },
1428
+ {
1429
+ key: 'Mac15,13',
1430
+ name: 'MacBook Air',
1431
+ size: '15-inch',
1432
+ processor: 'M3',
1433
+ year: '2024',
1434
+ additional: ''
1435
+ },
1404
1436
  {
1405
1437
  key: 'Mac15,12',
1406
1438
  name: 'MacBook Air',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.31.1",
3
+ "version": "5.31.2",
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)",