restored Node 4.x compatibility
This commit is contained in:
parent
52778575e7
commit
a7678b478e
@ -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 |
|
||||
|
||||
@ -56,6 +56,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.6.15</th>
|
||||
<td>2021-05-05</td>
|
||||
<td>restored Node 4.x compatibility</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.6.14</th>
|
||||
<td>2021-05-04</td>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.6.14</span></div>
|
||||
<div class="version">New Version: <span id="version">5.6.15</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user