From 4482dff2a410017f02364ea39fd2c7c6362aca0a Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Sat, 20 Jul 2019 12:13:18 +0200 Subject: [PATCH] versions() fix pip, pip3 --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 4 ++-- lib/osinfo.js | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15b5cc4..d648762 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.14.4 | 2019-07-20 | `verions()` fix pip, pip3 | | 4.14.3 | 2019-07-09 | `system()` sku fix windows | | 4.14.2 | 2019-07-07 | `networkConnections()` pid linux fix NAN | | 4.14.1 | 2019-07-04 | `graphics()` added display position windows | diff --git a/docs/history.html b/docs/history.html index c56c211..0bd51d3 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.14.4 + 2019-07-20 + versions() fix pip, pip3 + 4.14.3 2019-07-09 diff --git a/docs/index.html b/docs/index.html index 7433101..97f785f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.14.3
+
Current Version: 4.14.4
@@ -199,7 +199,7 @@
Downloads last month
-
166
+
168
Dependends
diff --git a/lib/osinfo.js b/lib/osinfo.js index cb700c9..ef4b84e 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -574,7 +574,7 @@ function versions(callback) { if (!error) { const pip = stdout.toString().split('\n')[0] || ''; const parts = pip.split(' '); - result.pip = parts.length >= 2 ? parts[2] : ''; + result.pip = parts.length >= 2 ? parts[1] : ''; } functionProcessed(); }); @@ -582,7 +582,7 @@ function versions(callback) { if (!error) { const pip = stdout.toString().split('\n')[0] || ''; const parts = pip.split(' '); - result.pip3 = parts.length >= 2 ? parts[2] : ''; + result.pip3 = parts.length >= 2 ? parts[1] : ''; } functionProcessed(); });