| 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++) {