New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

systeminformation

Package Overview
Dependencies
Maintainers
1
Versions
694
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systeminformation - npm Package Compare versions

Comparing version 3.18.0 to 3.19.0

4

CHANGELOG.md

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc