fixed issue breaking node v4 compatibility
This commit is contained in:
parent
0a334fda63
commit
b26602f09a
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.27.2 | 2020-08-26 | fixed issue breaking node v4 compatibility |
|
||||
| 4.27.1 | 2020-08-25 | `networkStats()` fixed packages dropped (linux) |
|
||||
| 4.27.0 | 2020-08-24 | `observe()` added function to observe/watch system parameters |
|
||||
| 4.26.12 | 2020-08-21 | `versions()` fixed issue windows |
|
||||
|
||||
@ -79,7 +79,7 @@ si.cpu()
|
||||
.catch(error => console.error(error));
|
||||
```
|
||||
|
||||
**Callback, Promises, Awync Await**
|
||||
**Callback, Promises, Awync / Await**
|
||||
|
||||
## News and Changes
|
||||
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.27.2</th>
|
||||
<td>2020-08-26</td>
|
||||
<td>fixed issue breaking node v4 compatibility</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.27.1</th>
|
||||
<td>2020-08-25</td>
|
||||
|
||||
@ -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.27.1</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.27.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">
|
||||
@ -207,7 +207,7 @@
|
||||
<div class="title">Downloads last month</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">333</div>
|
||||
<div class="numbers">335</div>
|
||||
<div class="title">Dependends</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -355,10 +355,10 @@ function observe(valueObject, interval, callback) {
|
||||
const result = setInterval(() => {
|
||||
get(valueObject).then(data => {
|
||||
if (JSON.stringify(_data) !== JSON.stringify(data)) {
|
||||
_data = { ...data };
|
||||
_data = Object.assign({}, data );
|
||||
callback(data);
|
||||
}
|
||||
})
|
||||
});
|
||||
}, interval);
|
||||
return result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user