systeminformation
Advanced tools
Comparing version 3.18.0 to 3.19.0
@@ -90,2 +90,3 @@ # Changelog | ||
- osx-temperature-sensor: now added as an optional dependency | ||
- no more external dependencies: `request` is not longer needed | ||
@@ -98,3 +99,4 @@ - where possible results are now integer or float values (instead of strings) because it is easier to calculate with numbers ;-) | ||
| -------------- | -------------- | -------- | | ||
| 3.18.0 | 2017-05-23 | extended `cpu` info (vendor, family, model, stepping, revision, cache, speedmin/max) | | ||
| 3.19.0 | 2017-06-12 | OSX temperature now an optional dependency | | ||
| 3.18.0 | 2017-05-27 | extended `cpu` info (vendor, family, model, stepping, revision, cache, speedmin/max) | | ||
| 3.17.3 | 2017-04-29 | minor fix (blockDevices data array, Windows) | | ||
@@ -101,0 +103,0 @@ | 3.17.2 | 2017-04-24 | minor fix (removed console.log) | |
@@ -306,26 +306,11 @@ 'use strict'; | ||
if (_darwin) { | ||
let smc = require('../build/Release/smc'); | ||
let cores = ['TC0P', 'TC1C', 'TC2C', 'TC3C', 'TC4C', 'TC5C', 'TC6C', 'TC7C', 'TC8C']; | ||
let sum = 0; | ||
let id = 0; | ||
cores.forEach(function(key) { | ||
let value = smc.get(key); | ||
if (id === 0) { | ||
if (value > 0) { | ||
result.main = value; | ||
result.max = value; | ||
} | ||
id = 1; | ||
} else { | ||
if (value > 0) { | ||
result.cores.push(value); | ||
sum = sum + value; | ||
if (value > result.max) result.max = value; | ||
} | ||
} | ||
}); | ||
if (result.cores.length) { | ||
result.main = sum / result.cores.length; | ||
let osxTemp = null; | ||
try { | ||
osxTemp = require('osx-temperature-sensor'); | ||
} catch (er) { | ||
osxTemp = null | ||
} | ||
if (osxTemp) { | ||
result = osxTemp.cpuTemperature(); | ||
} | ||
@@ -332,0 +317,0 @@ if (callback) { callback(result) } |
@@ -85,3 +85,4 @@ 'use strict'; | ||
// version date comment | ||
// 3.18.0 2017-05-23 extended `cpu` info (vendor, family, model, stepping, revision, cache, speedmin/max) | ||
// 3.19.0 2017-06-12 OSX temperature now an optional dependency | ||
// 3.18.0 2017-05-27 extended `cpu` info (vendor, family, model, stepping, revision, cache, speedmin/max) | ||
// 3.17.3 2017-04-29 minor fix (blockDevices data array, Windows) | ||
@@ -88,0 +89,0 @@ // 3.17.2 2017-04-24 minor fix (removed console.log) |
{ | ||
"name": "systeminformation", | ||
"version": "3.18.0", | ||
"version": "3.19.0", | ||
"description": "Simple system and OS information library", | ||
@@ -54,3 +54,6 @@ "license": "MIT", | ||
"node": ">=4.0.0" | ||
}, | ||
"optionalDependencies": { | ||
"osx-temperature-sensor": "^1.0.0" | ||
} | ||
} |
@@ -45,2 +45,3 @@ # systeminformation | ||
- Version 3.19.0: OSX temperature now an optional dependency | ||
- Version 3.18.0: extended `cpu` info (vendor, family, model, stepping, revision, cache, speedmin, speedmax) | ||
@@ -47,0 +48,0 @@ - Version 3.17.0: windows support for some very first functions (work in progress) |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
100
483
13
184971
1
21
3995