From b3b82ed6bf3845e4d480acbbcf13e96523e8fe7b Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sun, 29 Jan 2023 20:52:01 +0100 Subject: [PATCH] processes() fixed Node Version 8 compatibility issue --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/processes.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4b9f72..12cb93f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.17.6 | 2023-01-29 | `processes()` fixed Node Version 8 compatibility issue | | 5.17.5 | 2023-01-29 | `processes()` improved parsing of all services (linux) | | 5.17.4 | 2023-01-24 | `networkInterfaces()` sanitizing networkInterfaces device names | | 5.17.3 | 2023-01-10 | `processes()` fix elapsed time parsing (linux) | diff --git a/docs/history.html b/docs/history.html index fad1041..c71266b 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.17.6 + 2023-01-29 + processes() fixed Node Version 8 compatibility issues + 5.17.5 2023-01-29 diff --git a/docs/index.html b/docs/index.html index d48b059..ade2e4a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.17.5
+
New Version: 5.17.6
diff --git a/lib/processes.js b/lib/processes.js index 38aea7c..df1172b 100644 --- a/lib/processes.js +++ b/lib/processes.js @@ -98,7 +98,7 @@ function parseElapsedTime(etime) { try { res = new Date(current.getTime() - ms); result = res.toISOString().substring(0, 10) + ' ' + res.toISOString().substring(11, 19); - } catch { + } catch (e) { util.noop(); } return result;