systeminformation
Advanced tools
Comparing version 5.24.1 to 5.24.2
@@ -331,6 +331,6 @@ 'use strict'; | ||
result.codename = 'macOS'; | ||
result.codename = (result.release.indexOf('10.4') > -1 ? 'Mac OS X Tiger' : result.codename); | ||
result.codename = (result.release.indexOf('10.5') > -1 ? 'Mac OS X Leopard' : result.codename); | ||
result.codename = (result.release.indexOf('10.6') > -1 ? 'Mac OS X Snow Leopard' : result.codename); | ||
result.codename = (result.release.indexOf('10.7') > -1 ? 'Mac OS X Lion' : result.codename); | ||
result.codename = (result.release.indexOf('10.4') > -1 ? 'OS X Tiger' : result.codename); | ||
result.codename = (result.release.indexOf('10.5') > -1 ? 'OS X Leopard' : result.codename); | ||
result.codename = (result.release.indexOf('10.6') > -1 ? 'OS X Snow Leopard' : result.codename); | ||
result.codename = (result.release.indexOf('10.7') > -1 ? 'OS X Lion' : result.codename); | ||
result.codename = (result.release.indexOf('10.8') > -1 ? 'OS X Mountain Lion' : result.codename); | ||
@@ -340,11 +340,11 @@ result.codename = (result.release.indexOf('10.9') > -1 ? 'OS X Mavericks' : result.codename); | ||
result.codename = (result.release.indexOf('10.11') > -1 ? 'OS X El Capitan' : result.codename); | ||
result.codename = (result.release.indexOf('10.12') > -1 ? 'macOS Sierra' : result.codename); | ||
result.codename = (result.release.indexOf('10.13') > -1 ? 'macOS High Sierra' : result.codename); | ||
result.codename = (result.release.indexOf('10.14') > -1 ? 'macOS Mojave' : result.codename); | ||
result.codename = (result.release.indexOf('10.15') > -1 ? 'macOS Catalina' : result.codename); | ||
result.codename = (result.release.startsWith('11.') ? 'macOS Big Sur' : result.codename); | ||
result.codename = (result.release.startsWith('12.') ? 'macOS Monterey' : result.codename); | ||
result.codename = (result.release.startsWith('13.') ? 'macOS Ventura' : result.codename); | ||
result.codename = (result.release.startsWith('14.') ? 'macOS Sonoma' : result.codename); | ||
result.codename = (result.release.startsWith('15.') ? 'macOS Sequoia' : result.codename); | ||
result.codename = (result.release.indexOf('10.12') > -1 ? 'Sierra' : result.codename); | ||
result.codename = (result.release.indexOf('10.13') > -1 ? 'High Sierra' : result.codename); | ||
result.codename = (result.release.indexOf('10.14') > -1 ? 'Mojave' : result.codename); | ||
result.codename = (result.release.indexOf('10.15') > -1 ? 'Catalina' : result.codename); | ||
result.codename = (result.release.startsWith('11.') ? 'Big Sur' : result.codename); | ||
result.codename = (result.release.startsWith('12.') ? 'Monterey' : result.codename); | ||
result.codename = (result.release.startsWith('13.') ? 'Ventura' : result.codename); | ||
result.codename = (result.release.startsWith('14.') ? 'Sonoma' : result.codename); | ||
result.codename = (result.release.startsWith('15.') ? 'Sequoia' : result.codename); | ||
result.uefi = true; | ||
@@ -472,3 +472,3 @@ result.codepage = util.getCodepage(); | ||
nginx: '', | ||
node: process.versions.node, | ||
node: '', //process.versions.node, | ||
npm: '', | ||
@@ -805,2 +805,9 @@ openssl: '', | ||
appsObj.versions.postgresql = postgresql.length ? postgresql[postgresql.length - 1] : ''; | ||
} else { | ||
exec('pg_config --version', function (error, stdout) { | ||
if (!error) { | ||
const postgresql = stdout.toString().split('\n')[0].split(' ') || []; | ||
appsObj.versions.postgresql = postgresql.length ? postgresql[postgresql.length - 1] : ''; | ||
} | ||
}); | ||
} | ||
@@ -1057,2 +1064,12 @@ functionProcessed(); | ||
} | ||
if ({}.hasOwnProperty.call(appsObj.versions, 'node')) { | ||
exec('node -v', function (error, stdout) { | ||
if (!error) { | ||
let line = stdout.toString().split('\n')[0].trim(); | ||
if (line.startsWith('v')) { line = line.slice(1); } | ||
appsObj.versions.node = line; | ||
} | ||
functionProcessed(); | ||
}); | ||
} | ||
if ({}.hasOwnProperty.call(appsObj.versions, 'powershell')) { | ||
@@ -1059,0 +1076,0 @@ if (_windows) { |
{ | ||
"name": "systeminformation", | ||
"version": "5.24.1", | ||
"version": "5.24.2", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
812040
18259