Skip to content

Commit 3ef3f3b

Browse files
diskLayout() USB tahoe compatibility (mac OS)
1 parent 8edd130 commit 3ef3f3b

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
9191

9292
| Version | Date | Comment |
9393
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
94+
| 5.31.3 | 2026-03-04 | `diskLayout()` USB tahoe compatibility (mac OS) |
9495
| 5.31.3 | 2026-03-04 | `system()` updated Mac 2026 mopdel numbers (mac OS) |
9596
| 5.31.2 | 2026-03-03 | `system()` updated Mac mopdel numbers (mac OS) |
9697
| 5.31.1 | 2026-02-17 | `docs` updated (security advisory) |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
## The Systeminformation Project
3232

3333
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
3535
mio downloads overall. Top 10 NPM ranking for backend packages. Thank you to all
3636
who contributed to this project!
3737

docs/history.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ <h3>Full version history</h3>
5757
</tr>
5858
</thead>
5959
<tbody>
60+
<tr>
61+
<th scope="row">5.31.4
62+
</th>
63+
<td>2026-03-09</td>
64+
<td><span class="code">diskLayout()</span> USB tahoe compatibility (macOS)</td>
65+
</tr>
6066
<tr>
6167
<th scope="row">5.31.3
6268
</th>

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
<img class="logo" src="assets/logo.png" alt="logo">
171171
<div class="title">systeminformation</div>
172172
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
173-
<div class="version">New Version: <span id="version">5.31.3</span></div>
173+
<div class="version">New Version: <span id="version">5.31.4</span></div>
174174
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
175175
</div>
176176
<div class="down">
@@ -212,7 +212,7 @@
212212
<div class="title">Downloads last month</div>
213213
</div>
214214
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
215-
<div class="numbers">995</div>
215+
<div class="numbers">1006</div>
216216
<div class="title">Dependents</div>
217217
</div>
218218
</div>

lib/filesystem.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
const util = require('./util');
1717
const fs = require('fs');
18+
const os = require('os');
1819

1920
const exec = require('child_process').exec;
2021
const execSync = require('child_process').execSync;
@@ -1350,7 +1351,7 @@ function diskLayout(callback) {
13501351
}
13511352
if (_darwin) {
13521353
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) => {
13541355
if (!error) {
13551356
// split by type:
13561357
const lines = stdout.toString().split('\n');

0 commit comments

Comments
 (0)