diff --git a/CHANGELOG.md b/CHANGELOG.md index 74ff201..f65b7f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,7 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | -| 5.28.4 | 2025-12-29 | `powerShwll()` Windows 7 fix compatibility issues (windows) | +| 5.28.4 | 2025-12-29 | `powerShell()` Windows 7 fix compatibility issues (windows) | | 5.28.3 | 2025-12-28 | `processes()`, `processLoad()` fix command line parsing (windows) | | 5.28.2 | 2025-12-27 | `networkConnections()` fix missing PIDs ss command (linux) | | 5.28.1 | 2025-12-26 | `networkInterface()` fix secondary and link-local ip (linux, macOS) | diff --git a/docs/history.html b/docs/history.html index f13be69..344d410 100644 --- a/docs/history.html +++ b/docs/history.html @@ -60,7 +60,7 @@ 5.28.4 2025-12-28 - powerShell() Windows 7 fix compatibility issues (windows) + powerShell() Windows 7 fixed compatibility issues (windows) 5.28.3 diff --git a/docs/index.html b/docs/index.html index 3c87d94..e2da84f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -204,7 +204,7 @@
-
19,657
+
19,659
Lines of code
diff --git a/lib/filesystem.js b/lib/filesystem.js index 9f6e673..b0466b4 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -195,6 +195,7 @@ function fsSize(drive, callback) { resolve(data); } else { exec('df -kPT 2>/dev/null', { maxBuffer: 1024 * 1024 }, (error, stdout) => { + // fixed issue alpine fallback const lines = filterLines(stdout); data = parseDf(lines); if (callback) { diff --git a/lib/util.js b/lib/util.js index a5aa90c..3784460 100644 --- a/lib/util.js +++ b/lib/util.js @@ -509,6 +509,7 @@ function powerShell(cmd) { process.nextTick(() => { try { const osVersion = os.release().split('.').map(Number); + // windows 7 compatibility issue const spanOptions = osVersion[0] < 10 ? ['-NoProfile', '-NoLogo', '-InputFormat', 'Text', '-NoExit', '-ExecutionPolicy', 'Unrestricted', '-Command', '-']