versions() fix getting all versions

This commit is contained in:
Sebastian Hildebrandt 2019-07-02 15:50:56 +02:00
parent 310b138de1
commit 0aee4d6684
5 changed files with 9 additions and 3 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.13.2 | 2019-07-02 | `versions()` fix getting all versions |
| 4.13.1 | 2019-07-01 | `versions()` gcc fix macos |
| 4.13.0 | 2019-07-01 | `networkConnections()` added PID and process |
| 4.12.2 | 2019-06-24 | `system()` added Raspberry PI 4 detection |

View File

@ -75,7 +75,7 @@ si.cpu()
.then(data => console.log(data))
.catch(error => console.error(error));
</code></pre>
<h2>Callback, Promises, Awync Await</h2>
<h2>Callback, Promises, Async Await</h2>
<p>Remember: all functions (except <span class="code">version</span> and <span class="code">time</span>) are implemented as asynchronous functions! There are now three ways to consume them:</p>
<p><strong>Callback Style</strong></p>
<pre><code class="js">const si = require('systeminformation');

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.13.2</th>
<td>2019-07-02</td>
<td><span class="code">versions()</span> fix getting all versions</td>
</tr>
<tr>
<th scope="row">4.13.1</th>
<td>2019-07-01</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.13.1</span></div>
<div class="version">Current Version: <span id="version">4.13.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

@ -346,7 +346,7 @@ function versions(callback) {
};
let functionProcessed = (function () {
let totalFunctions = 24;
let totalFunctions = 25;
return function () {
if (--totalFunctions === 0) {
if (callback) {