wifiNetworks() bug fixes

This commit is contained in:
Sebastian Hildebrandt 2019-06-16 17:16:35 +02:00
parent 28ab21891d
commit 083889c0af
6 changed files with 13 additions and 5 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.11.2 | 2019-06-16 | `wifiNetworks()` bug fixes |
| 4.11.1 | 2019-06-15 | updated docs |
| 4.11.0 | 2019-06-14 | `wifiNetworks()` added available wifi networks |
| 4.10.0 | 2019-06-14 | `graphics()` windows multiple display support |

View File

@ -40,6 +40,8 @@ This next major version release 4.0 comes with several optimizations and changes
- reworked network section: this will now return more information and allows to get networkStats for more than one interface at once.
- dockerContainerStats for multiple containers or all containers at once
- optimized graphics controller and display detection
- added wifiNetworks to get available wifi networks
- added vboxInfo to get detailed vm information
- added chassis information
- better Raspberry-PI detection
- lot of minor improvements

View File

@ -47,7 +47,7 @@
<ul>
<li><span class="code">chassis()</span> chassis information</li>
<li><span class="code">vboxInfo()</span> detailed virtualBox VM information</li>
<li><span class="code">wifi()</span> detailed information about available wifi networks</li>
<li><span class="code">wifiNetworks()</span> detailed information about available wifi networks</li>
</ul>
<h4>Breaking Changes</h4>
<ul>
@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.11.2</th>
<td>2019-06-16</td>
<td><span class="code">wifiNetworks()</span> bug fixes</td>
</tr>
<tr>
<th scope="row">4.11.1</th>
<td>2019-06-15</td>
@ -91,7 +96,7 @@
<tr>
<th scope="row">4.11.0</th>
<td>2019-06-14</td>
<td><span class="code">wifi()</span> added available wifi networks</td>
<td><span class="code">wifiNetworks()</span> added available wifi networks</td>
</tr>
<tr>
<th scope="row">4.10.0</th>

View File

@ -168,7 +168,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.11.0</span></div>
<div class="version">Current Version: <span id="version">4.11.2</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">

View File

@ -351,7 +351,7 @@ exports.networkInterfaces = network.networkInterfaces;
exports.networkStats = network.networkStats;
exports.networkConnections = network.networkConnections;
exports.wifi = wifi.wifi;
exports.wifiNetworks = wifi.wifiNetworks;
exports.services = processes.services;
exports.processes = processes.processes;

View File

@ -171,7 +171,7 @@ function wifiNetworks(callback) {
wpaFlags = wpaFlags.concat(parts[1].replace(')', '').split(','));
}
});
wpaFlags = [...new Set(wpaFlags)];
wpaFlags = Array.from(new Set(wpaFlags));
result.push({
ssid: line.substring(parsedhead[0].from, parsedhead[0].to).trim(),
bssid: line.substring(parsedhead[1].from, parsedhead[1].to).trim(),