diff --git a/CHANGELOG.md b/CHANGELOG.md index fce220b..ebb1e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.11.17 | 2022-06-13 | `diskLayout()` fix parsing linux (JSON) | | 5.11.16 | 2022-05-30 | `docs` updated, `tests` added node 18 | | 5.11.15 | 2022-05-11 | `audio()` fix typescript typings | | 5.11.14 | 2022-04-22 | `netforkInterfaces()` node 18 compatibility | diff --git a/README.md b/README.md index 2ab6ba9..48b3346 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ [![Sponsoring][sponsor-badge]][sponsor-url] [![MIT license][license-img]][license-url] -This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 versions published, up to 4 mio downloads per month, > 75 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project! +This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 versions published, > 4 mio downloads per month, > 90 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project! ## New Version 5.0 diff --git a/docs/history.html b/docs/history.html index b1fafa8..8748e20 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,9 +57,14 @@ + + 5.11.17 + 2022-06-13 + diskLayout() fix parsing linux (JSON) + 5.11.16 - 2022-05-11 + 2022-05-30 docs updated tests added node 18 diff --git a/docs/index.html b/docs/index.html index bc890ad..06652d6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.11.16
+
New Version: 5.11.17
@@ -214,7 +214,7 @@
Downloads last month
-
544
+
548
Dependents
diff --git a/lib/filesystem.js b/lib/filesystem.js index 0609edd..b246f75 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -852,7 +852,7 @@ function diskLayout(callback) { try { const outJSON = JSON.parse(out); if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) { - devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fsType === null && item.parttype === null)); }); + devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.fstype === null && item.parttype === null)); }); } } catch (e) { // fallback to older version of lsblk