Merge pull request #3 from sebhildebrandt/master

Update
This commit is contained in:
Renan Rocha 2021-04-07 19:38:03 -03:00 committed by GitHub
commit 8537f4c22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 24 additions and 12 deletions

View File

@ -77,6 +77,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.6.10 | 2021-03-29 | `vboxInfo()` fixed windows bug |
| 5.6.9 | 2021-03-28 | `graphics()` fixed nvidia-smi compare bug |
| 5.6.8 | 2021-03-22 | typescript definitions fix `wifiInterfces()`, `wifiConnections()` |
| 5.6.7 | 2021-03-16 | `inetLatency()` `ineChecksite()` schema validation |
| 5.6.6 | 2021-03-16 | code refactoring |

View File

@ -360,9 +360,9 @@ Full function reference with examples can be found at [https://systeminformation
| si.fullLoad(cb) | : integer | X | | X | X | | CPU full load since bootup in % |
| si.processes(cb) | {...} | X | X | X | X | X | # running processes |
| | all | X | X | X | X | X | # of all processes |
| | running | X | X | X | X | X | # of all processes running |
| | blocked | X | X | X | X | X | # of all processes blocked |
| | sleeping | X | X | X | X | X | # of all processes sleeping |
| | running | X | X | X | | X | # of all processes running |
| | blocked | X | X | X | | X | # of all processes blocked |
| | sleeping | X | X | X | | X | # of all processes sleeping |
| | unknown | | | | X | | # of all processes unknown status |
| | list[] | X | X | X | X | X | list of all processes incl. details |
| | ...[0].pid | X | X | X | X | X | process PID |

View File

@ -56,6 +56,16 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.6.10</th>
<td>2021-03-29</td>
<td><span class="code">vboxInfo()</span> fixed windows bug</td>
</tr>
<tr>
<th scope="row">5.6.9</th>
<td>2021-03-28</td>
<td><span class="code">graphics()</span> fixed nvidia-smi compare bug</td>
</tr>
<tr>
<th scope="row">5.6.8</th>
<td>2021-03-23</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.6.8</span></div>
<div class="version">New Version: <span id="version">5.6.10</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">
@ -211,7 +211,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">402</div>
<div class="numbers">407</div>
<div class="title">Dependents</div>
</div>
</div>

View File

@ -242,7 +242,7 @@ si.currentLoad().then(data => console.log(data));</code></pre class="example">
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td>X</td>
<td># of all processes running</td>
</tr>
@ -252,7 +252,7 @@ si.currentLoad().then(data => console.log(data));</code></pre class="example">
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td>X</td>
<td># of all processes blocked</td>
</tr>
@ -262,7 +262,7 @@ si.currentLoad().then(data => console.log(data));</code></pre class="example">
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td></td>
<td>X</td>
<td># of all processes sleeping</td>
</tr>

View File

@ -52,7 +52,7 @@
<p><span class="bold">Affected versions:</span>
&lt; 5.6.4 and &lt; 4.34.17<br>
<span class="bold">Date:</span> 2021-03-15<br>
<span class="bold">CVE indentifier</span> -
<span class="bold">CVE indentifier</span> CVE-2021-21388
</p>
<h4>Impact</h4>

View File

@ -728,7 +728,7 @@ function graphics(callback) {
const nvidiaData = nvidiaDevices();
// needs to be rewritten ... using no spread operators
result.controllers = result.controllers.map((controller) => { // match by busAddress
return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.endsWith(controller.busAddress)) || {});
return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.toLowerCase().endsWith(controller.busAddress.toLowerCase())) || {});
});
}
let cmd = 'clinfo --raw';

View File

@ -333,7 +333,7 @@ function wmic(command, options) {
}
function getVboxmanage() {
return _windows ? `${process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe` : 'vboxmanage';
return _windows ? `"${process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH}\\VBoxManage.exe"` : 'vboxmanage';
}
function powerShell(cmd) {

View File

@ -1,6 +1,6 @@
{
"name": "systeminformation",
"version": "5.6.8",
"version": "5.6.10",
"description": "Simple system and OS information library",
"license": "MIT",
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",