get() minor bounds test fix, updated docs

This commit is contained in:
Sebastian Hildebrandt 2020-05-07 10:56:49 +02:00
parent bcdbf99012
commit d1e2146732
4 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.25.1 | 2020-05-07 | `get()` minor bounds test fix, updated docs |
| 4.25.0 | 2020-05-07 | `get()` added function to get partial system info |
| 4.24.2 | 2020-05-06 | `cpu()` fix (BSD), `networkStats()` fix BSD |
| 4.24.1 | 2020-05-03 | `processes()` fix parsing command and params |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.25.1</th>
<td>2020-05-07</td>
<td><span class="code">get()</span> minor bounds test fix, updated docs /td>
</tr>
<tr>
<th scope="row">4.25.0</th>
<td>2020-05-07</td>

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.25.0</span></div>
<div class="version">Current Version: <span id="version">4.25.1</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

@ -319,7 +319,7 @@ function get(valueObject, callback) {
const result = {};
let i = 0;
for (let key in valueObject) {
if ({}.hasOwnProperty.call(valueObject, key) && {}.hasOwnProperty.call(exports, key) && data.length >= i) {
if ({}.hasOwnProperty.call(valueObject, key) && {}.hasOwnProperty.call(exports, key) && data.length > i) {
if (valueObject[key] === '*' || valueObject[key] === 'all') {
result[key] = data[i];
} else {