versions() fixed issue windows
This commit is contained in:
parent
7956133fa7
commit
a56a3dcb7f
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.26.12 | 2020-08-21 | `versions()` fixed issue windows |
|
||||||
| 4.26.11 | 2020-08-20 | `cpuTemperature()` fixed issue windows |
|
| 4.26.11 | 2020-08-20 | `cpuTemperature()` fixed issue windows |
|
||||||
| 4.26.10 | 2020-07-16 | `networkStats()` fixed issue blocking windows |
|
| 4.26.10 | 2020-07-16 | `networkStats()` fixed issue blocking windows |
|
||||||
| 4.26.9 | 2020-06-06 | `networkStats()` fixed comparison issue windows |
|
| 4.26.9 | 2020-06-06 | `networkStats()` fixed comparison issue windows |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.26.12</th>
|
||||||
|
<td>2020-08-21</td>
|
||||||
|
<td><span class="code">versions()</span> fixed issue windows</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.26.11</th>
|
<th scope="row">4.26.11</th>
|
||||||
<td>2020-08-20</td>
|
<td>2020-08-20</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.26.11</span></div>
|
<div class="version">Current Version: <span id="version">4.26.12</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">
|
||||||
@ -207,7 +207,7 @@
|
|||||||
<div class="title">Downloads last month</div>
|
<div class="title">Downloads last month</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||||
<div class="numbers">328</div>
|
<div class="numbers">330</div>
|
||||||
<div class="title">Dependends</div>
|
<div class="title">Dependends</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -443,6 +443,7 @@ function versions(apps, callback) {
|
|||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
let cmd = '';
|
||||||
try {
|
try {
|
||||||
if ({}.hasOwnProperty.call(appsObj.versions, 'openssl')) {
|
if ({}.hasOwnProperty.call(appsObj.versions, 'openssl')) {
|
||||||
appsObj.versions.openssl = process.versions.openssl;
|
appsObj.versions.openssl = process.versions.openssl;
|
||||||
@ -465,7 +466,11 @@ function versions(apps, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ({}.hasOwnProperty.call(appsObj.versions, 'pm2')) {
|
if ({}.hasOwnProperty.call(appsObj.versions, 'pm2')) {
|
||||||
exec('pm2 -v', function (error, stdout) {
|
cmd = 'pm2';
|
||||||
|
if (_windows) {
|
||||||
|
cmd += '.cmd';
|
||||||
|
}
|
||||||
|
exec(`${cmd} -v`, function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
let pm2 = stdout.toString().split('\n')[0].trim();
|
let pm2 = stdout.toString().split('\n')[0].trim();
|
||||||
if (!pm2.startsWith('[PM2]')) {
|
if (!pm2.startsWith('[PM2]')) {
|
||||||
@ -484,7 +489,11 @@ function versions(apps, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ({}.hasOwnProperty.call(appsObj.versions, 'gulp')) {
|
if ({}.hasOwnProperty.call(appsObj.versions, 'gulp')) {
|
||||||
exec('gulp --version', function (error, stdout) {
|
cmd = 'gulp';
|
||||||
|
if (_windows) {
|
||||||
|
cmd += '.cmd';
|
||||||
|
}
|
||||||
|
exec(`${cmd} --version`, function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
const gulp = stdout.toString().split('\n')[0] || '';
|
const gulp = stdout.toString().split('\n')[0] || '';
|
||||||
appsObj.versions.gulp = (gulp.toLowerCase().split('version')[1] || '').trim();
|
appsObj.versions.gulp = (gulp.toLowerCase().split('version')[1] || '').trim();
|
||||||
@ -493,7 +502,11 @@ function versions(apps, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ({}.hasOwnProperty.call(appsObj.versions, 'tsc')) {
|
if ({}.hasOwnProperty.call(appsObj.versions, 'tsc')) {
|
||||||
exec('tsc --version', function (error, stdout) {
|
cmd = 'tsc';
|
||||||
|
if (_windows) {
|
||||||
|
cmd += '.cmd';
|
||||||
|
}
|
||||||
|
exec(`${cmd} --version`, function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
const tsc = stdout.toString().split('\n')[0] || '';
|
const tsc = stdout.toString().split('\n')[0] || '';
|
||||||
appsObj.versions.tsc = (tsc.toLowerCase().split('version')[1] || '').trim();
|
appsObj.versions.tsc = (tsc.toLowerCase().split('version')[1] || '').trim();
|
||||||
@ -502,7 +515,11 @@ function versions(apps, callback) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ({}.hasOwnProperty.call(appsObj.versions, 'grunt')) {
|
if ({}.hasOwnProperty.call(appsObj.versions, 'grunt')) {
|
||||||
exec('grunt --version', function (error, stdout) {
|
cmd = 'grunt';
|
||||||
|
if (_windows) {
|
||||||
|
cmd += '.cmd';
|
||||||
|
}
|
||||||
|
exec(`${cmd} --version`, function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
const grunt = stdout.toString().split('\n')[0] || '';
|
const grunt = stdout.toString().split('\n')[0] || '';
|
||||||
appsObj.versions.grunt = (grunt.toLowerCase().split('cli v')[1] || '').trim();
|
appsObj.versions.grunt = (grunt.toLowerCase().split('cli v')[1] || '').trim();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user