diff --git a/CHANGELOG.md b/CHANGELOG.md index febda87..9ec74de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.2.2 | 2020-02-11 | code cleanup, updated docs | | 5.2.1 | 2020-02-10 | `system()` fixed issue virtual detect (linux) | | 5.2.0 | 2020-02-10 | `wifiInterfces()` and `wifiConnections()` added | | 5.1.2 | 2020-02-08 | fixed node 4 compatibility issue | diff --git a/README.md b/README.md index 866808f..61e480c 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ [![NPM Downloads][downloads-image]][downloads-url] [![Git Issues][issues-img]][issues-url] [![Closed Issues][closed-issues-img]][closed-issues-url] - [![deps status][daviddm-img]][daviddm-url] + no dependencies [![Code Quality: Javascript][lgtm-badge]][lgtm-badge-url] [![Total alerts][lgtm-alerts]][lgtm-alerts-url] [![Caretaker][caretaker-image]][caretaker-url] @@ -38,10 +38,11 @@ The new Version 5 is here - I spend several weeks finalizing this new version. A This next major version release 5.0 comes with new functionality and several improvements and changes (some of them are breaking changes!): -- added bluetooth: get detailed bluetooth device information -- added usb: get detailed usb controller and device information -- added printer: get information from detected printers - added audio: get detailed audio device information +- added bluetooth: get detailed bluetooth device information +- added printer: get information from detected printers +- added usb: get detailed usb controller and device information +- added wifi interfaces ans connections: extended wifi information - better uuid function to get unique hardware and OS UUIDs - better/extended cpu info detection - better/extended system info detection diff --git a/docs/assets/no-dependencies.svg b/docs/assets/no-dependencies.svg new file mode 100644 index 0000000..fb82b8a --- /dev/null +++ b/docs/assets/no-dependencies.svg @@ -0,0 +1 @@ +dependencies: nonedependenciesnone \ No newline at end of file diff --git a/docs/history.html b/docs/history.html index 16b1515..eb3a317 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,7 +57,12 @@ - 5.2.0 + 5.2.2 + 2020-02-11 + code cleanup, updated docs + + + 5.2.1 2020-02-10 system() fixed issue virtual detect (linux) diff --git a/docs/index.html b/docs/index.html index a6a6deb..d291284 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.2.1
+
New Version: 5.2.2
@@ -187,7 +187,7 @@
Node.js system information package. Lightweight collection of 50+ functions to retrieve detailed hardware, system and OS information. For Linux, macOS, partial Windows, FreeBSD, OpenBSD, NetBSD and SunOS support. Dependency free.
NPM Version - deps status + no dependencies Code Quality: Javascript Total alerts MIT license diff --git a/lib/wifi.js b/lib/wifi.js index e7e4969..9157bd4 100644 --- a/lib/wifi.js +++ b/lib/wifi.js @@ -494,19 +494,19 @@ function wifiConnections(callback) { const ssid = nmiDetails.ssid || wpaDetails.ssid; const network = networkList.filter(nw => nw.ssid === ssid); const nmiConnection = nmiConnectionLinux(ssid); - const channel = network && network.length && network[0].channel ? network[0].channel : (wpaDetails && wpaDetails.channel ? wpaDetails.channel : null); - const bssid = network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails && wpaDetails.bssid ? wpaDetails.bssid : null); + const channel = network && network.length && network[0].channel ? network[0].channel : (wpaDetails.channel ? wpaDetails.channel : null); + const bssid = network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails.bssid ? wpaDetails.bssid : null); if (ssid && bssid) { result.push({ id: ifaceDetail.id, iface: ifaceDetail.iface, model: nmiDetails.product, ssid, - bssid: network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails && wpaDetails.bssid ? wpaDetails.bssid : null), + bssid: network && network.length && network[0].bssid ? network[0].bssid : (wpaDetails.bssid ? wpaDetails.bssid : null), channel, frequency: channel ? wifiFrequencyFromChannel(channel) : null, - type: nmiConnection && nmiConnection.type ? nmiConnection.type : '802.11', - security: nmiConnection && nmiConnection.security ? nmiConnection.security : (wpaDetails && wpaDetails.security ? wpaDetails.security : null), + type: nmiConnection.type ? nmiConnection.type : '802.11', + security: nmiConnection.security ? nmiConnection.security : (wpaDetails.security ? wpaDetails.security : null), signalLevel: network && network.length && network[0].signalLevel ? network[0].signalLevel : null, txRate: null });