From 2b8ed4c5026a5d6cd64feec0e3276d53dc37f5aa Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 9 May 2019 09:58:44 +0200 Subject: [PATCH] graphics() resolve on error (windows) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/graphics.js | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16cdfe9..876afe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.1.8 | 2019-05-09 | `graphics()` resolve on error (windows) | | 4.1.7 | 2019-05-09 | `users()` parsing fix (windows) | | 4.1.6 | 2019-04-24 | `memory()` swap used fix (linux) | | 4.1.5 | 2019-04-19 | refactored `wmic` calls to work also on Windows XP | diff --git a/docs/history.html b/docs/history.html index 29a873a..597becc 100644 --- a/docs/history.html +++ b/docs/history.html @@ -80,6 +80,11 @@ + + 4.1.8 + 2019-05-09 + graphics() resolve on error (windows) + 4.1.7 2019-05-09 diff --git a/docs/index.html b/docs/index.html index 1878cae..5511e38 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
-
Current Version: 4.1.6
+
Current Version: 4.1.8
diff --git a/lib/graphics.js b/lib/graphics.js index 5022895..3b2457c 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -497,6 +497,9 @@ function graphics(callback) { } resolve(result); }); + } else { + if (callback) { callback(result); } + resolve(result); } }); } catch (e) {