systeminformation 5.25.5 → 5.25.6
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/lib/system.js +1 -1
- package/lib/util.js +2 -1
- package/package.json +1 -1
package/lib/system.js
CHANGED
|
@@ -189,7 +189,7 @@ function system(callback) {
|
|
|
189
189
|
const model = util.getValue(lines, 'model:', ':', true);
|
|
190
190
|
// reference values: https://elinux.org/RPi_HardwareHistory
|
|
191
191
|
// https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
|
|
192
|
-
if ((result.model === 'BCM2835' || result.model === 'BCM2708' || result.model === 'BCM2709' || result.model === 'BCM2710' || result.model === 'BCM2711' || result.model === 'BCM2836' || result.model === 'BCM2837') && model.toLowerCase().indexOf('raspberry') >= 0) {
|
|
192
|
+
if ((result.model === 'BCM2835' || result.model === 'BCM2708' || result.model === 'BCM2709' || result.model === 'BCM2710' || result.model === 'BCM2711' || result.model === 'BCM2836' || result.model === 'BCM2837' || result.model === '') && model.toLowerCase().indexOf('raspberry') >= 0) {
|
|
193
193
|
const rPIRevision = util.decodePiCpuinfo(lines);
|
|
194
194
|
result.model = rPIRevision.model;
|
|
195
195
|
result.version = rPIRevision.revisionCode;
|
package/lib/util.js
CHANGED
|
@@ -661,7 +661,8 @@ function isRaspberry() {
|
|
|
661
661
|
}
|
|
662
662
|
|
|
663
663
|
const hardware = getValue(cpuinfo, 'hardware');
|
|
664
|
-
|
|
664
|
+
const model = getValue(cpuinfo, 'model');
|
|
665
|
+
return ((hardware && PI_MODEL_NO.indexOf(hardware) > -1) || (model && model.indexOf('Raspberry Pi') > -1));
|
|
665
666
|
}
|
|
666
667
|
|
|
667
668
|
function isRaspbian() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "5.25.
|
|
3
|
+
"version": "5.25.6",
|
|
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)",
|