systeminformation 5.21.15 → 5.21.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/lib/cpu.js +1 -1
- package/lib/processes.js +1 -1
- package/lib/util.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
[![MIT license][license-img]][license-url]
|
|
30
30
|
|
|
31
31
|
## The Systeminformation Project
|
|
32
|
-
This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 600 versions published, up to 8 mio downloads per month, >
|
|
32
|
+
This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 600 versions published, up to 8 mio downloads per month, > 220 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
|
|
33
33
|
|
|
34
34
|
## Please support this project ... ☕️
|
|
35
35
|
|
|
@@ -50,7 +50,7 @@ The new Version 5 is here - this next major version release 5.0 comes with new f
|
|
|
50
50
|
- better uuid function to get unique hardware and OS UUIDs
|
|
51
51
|
- better/extended cpu info detection
|
|
52
52
|
- better/extended system info detection
|
|
53
|
-
- Apple Silicon M1 support
|
|
53
|
+
- Apple Silicon M1/M2/M3 support
|
|
54
54
|
- better Raspberry-PI detection
|
|
55
55
|
- systeminformation website updated and extended with full documentation and examples [systeminformation.io][systeminformation-url]
|
|
56
56
|
- lot of minor improvements
|
|
@@ -935,7 +935,7 @@ To be able to measure temperature on macOS I created a little additional package
|
|
|
935
935
|
in NPM with `optionalDependencies` I unfortunately was getting unexpected warnings on other platforms.
|
|
936
936
|
So I decided to drop this optional dependency for macOS - so by default, you will not get correct values.
|
|
937
937
|
|
|
938
|
-
This additional package is now also supporting Apple Silicon M1 machines.
|
|
938
|
+
This additional package is now also supporting Apple Silicon M1/M2/M3 machines.
|
|
939
939
|
|
|
940
940
|
But if you need to detect macOS temperature just run the following additional
|
|
941
941
|
installation command:
|
package/lib/cpu.js
CHANGED
|
@@ -1604,7 +1604,7 @@ function getLoad() {
|
|
|
1604
1604
|
// linux: try to get other cpu stats
|
|
1605
1605
|
if (_linux) {
|
|
1606
1606
|
try {
|
|
1607
|
-
const lines = execSync('cat /proc/stat 2>/dev/null | grep cpu').toString().split('\n');
|
|
1607
|
+
const lines = execSync('cat /proc/stat 2>/dev/null | grep cpu', { encoding: 'utf8' }).toString().split('\n');
|
|
1608
1608
|
if (lines.length > 1) {
|
|
1609
1609
|
lines.shift();
|
|
1610
1610
|
if (lines.length === cpus.length) {
|
package/lib/processes.js
CHANGED
|
@@ -211,7 +211,7 @@ function services(srv, callback) {
|
|
|
211
211
|
|
|
212
212
|
} else {
|
|
213
213
|
ps = lines.filter(function (e) {
|
|
214
|
-
return (e.toLowerCase().indexOf(' ' + srv + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv) !== -1);
|
|
214
|
+
return (e.toLowerCase().indexOf(' ' + srv.toLowerCase() + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv.toLowerCase()) !== -1);
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
const pids = [];
|
package/lib/util.js
CHANGED
|
@@ -993,7 +993,7 @@ function decodePiCpuinfo(lines) {
|
|
|
993
993
|
'13': '400',
|
|
994
994
|
'14': 'CM4',
|
|
995
995
|
'15': 'CM4S',
|
|
996
|
-
'17': '
|
|
996
|
+
'17': '5',
|
|
997
997
|
};
|
|
998
998
|
|
|
999
999
|
const revisionCode = getValue(lines, 'revision', ':', true);
|
|
@@ -1052,7 +1052,7 @@ function getRpiGpu() {
|
|
|
1052
1052
|
|
|
1053
1053
|
const rpi = decodePiCpuinfo(cpuinfo);
|
|
1054
1054
|
if (rpi.type === '4B' || rpi.type === 'CM4' || rpi.type === 'CM4S' || rpi.type === '400') { return 'VideoCore VI'; }
|
|
1055
|
-
if (rpi.type === '
|
|
1055
|
+
if (rpi.type === '5') { return 'VideoCore VII'; }
|
|
1056
1056
|
return 'VideoCore IV';
|
|
1057
1057
|
}
|
|
1058
1058
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.17",
|
|
4
4
|
"description": "Advanced, lightweight system and OS information library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",
|