diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cb757f..ece67b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.6.15 | 2021-05-05 | restored Node 4.x compatibility | | 5.6.14 | 2021-05-04 | `networkGatewayDefault()` macOS improvement for active VPN | | 5.6.13 | 2021-05-04 | `dockerImagesInspect()`, `dockerContainerInspect()`, `dockerContainerProcesses()` security updates | | 5.6.12 | 2021-04-09 | `networkinterfaces()` windows detection fix | diff --git a/docs/history.html b/docs/history.html index 0c56042..426147b 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.6.15 + 2021-05-05 + restored Node 4.x compatibility + 5.6.14 2021-05-04 diff --git a/docs/index.html b/docs/index.html index 9bb7582..f1075f1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.6.14
+
New Version: 5.6.15
diff --git a/lib/graphics.js b/lib/graphics.js index 42e06e2..828269c 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -728,7 +728,7 @@ function graphics(callback) { const nvidiaData = nvidiaDevices(); // needs to be rewritten ... using no spread operators result.controllers = result.controllers.map((controller) => { // match by busAddress - return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.toLowerCase().endsWith(controller.busAddress.toLowerCase())) || {}); + return mergeControllerNvidia(controller, nvidiaData.find((controller) => controller.pciBus.toLowerCase().endsWith(controller.busAddress.toLowerCase())) || {}); }); } let cmd = 'clinfo --raw'; diff --git a/lib/network.js b/lib/network.js index 8b475bc..bcfb546 100644 --- a/lib/network.js +++ b/lib/network.js @@ -683,12 +683,15 @@ function testVirtualNic(iface, ifaceName, mac) { } else { return false; } } -function networkInterfaces(callback, rescan = true) { +function networkInterfaces(callback, rescan) { if (typeof callback === 'boolean') { rescan = callback; callback = null; } + if (typeof rescan === 'undefined') { + rescan = true; + } return new Promise((resolve) => { process.nextTick(() => { let ifaces = os.networkInterfaces(); diff --git a/lib/util.js b/lib/util.js index 16f22c3..6b6d5c2 100644 --- a/lib/util.js +++ b/lib/util.js @@ -540,7 +540,8 @@ function countLines(lines, startingWith) { return uniqueLines.length; } -function sanitizeShellString(str, strict = false) { +function sanitizeShellString(str, strict) { + if (typeof strict === 'undefined') { strict = false; } const s = str || ''; let result = ''; for (let i = 0; i <= mathMin(s.length, 2000); i++) {