systeminformation 5.11.19 → 5.11.20
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/lib/filesystem.js +1 -1
- package/package.json +1 -1
package/lib/filesystem.js
CHANGED
|
@@ -852,7 +852,7 @@ function diskLayout(callback) {
|
|
|
852
852
|
try {
|
|
853
853
|
const outJSON = JSON.parse(out);
|
|
854
854
|
if (outJSON && {}.hasOwnProperty.call(outJSON, 'blockdevices')) {
|
|
855
|
-
devices = outJSON.blockdevices.filter(item => { return (item.type === 'disk') && item.size > 0 && (item.model !== null || (item.mountpoint === null && item.label === null && item.
|
|
855
|
+
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 && item.path && item.path.indexOf('/ram') !== 0 && item.path.indexOf('/loop') !== 0 && item['disc-max'] && item['disc-max'] !== 0)); });
|
|
856
856
|
}
|
|
857
857
|
} catch (e) {
|
|
858
858
|
// fallback to older version of lsblk
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.20",
|
|
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)",
|