get() minor bounds test fix, updated docs
This commit is contained in:
parent
bcdbf99012
commit
d1e2146732
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| 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.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.2 | 2020-05-06 | `cpu()` fix (BSD), `networkStats()` fix BSD |
|
||||||
| 4.24.1 | 2020-05-03 | `processes()` fix parsing command and params |
|
| 4.24.1 | 2020-05-03 | `processes()` fix parsing command and params |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<th scope="row">4.25.0</th>
|
<th scope="row">4.25.0</th>
|
||||||
<td>2020-05-07</td>
|
<td>2020-05-07</td>
|
||||||
|
|||||||
@ -168,7 +168,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -319,7 +319,7 @@ function get(valueObject, callback) {
|
|||||||
const result = {};
|
const result = {};
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (let key in valueObject) {
|
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') {
|
if (valueObject[key] === '*' || valueObject[key] === 'all') {
|
||||||
result[key] = data[i];
|
result[key] = data[i];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user