systeminformation
Advanced tools
Comparing version 5.23.24 to 5.23.25
@@ -218,7 +218,10 @@ 'use strict'; | ||
let lines = stdout.toString().replace(/[<>"]/g, '').split('\n'); | ||
const model = util.splitByNumber(util.getValue(lines, 'model', '=', true)); | ||
const version = util.getValue(lines, 'version', '=', true); | ||
const model = util.getAppleModel(util.getValue(lines, 'model', '=', true)); | ||
// const modelParts = util.splitByNumber(model); | ||
// const version = util.getValue(lines, 'version', '=', true); | ||
result.manufacturer = util.getValue(lines, 'manufacturer', '=', true); | ||
result.model = version ? util.getValue(lines, 'model', '=', true) : model[0]; | ||
result.version = version || model[1]; | ||
result.model = model.key; | ||
result.type = macOsChassisType(model.model); | ||
result.version = model.version; | ||
result.serial = util.getValue(lines, 'ioplatformserialnumber', '=', true); | ||
@@ -225,0 +228,0 @@ result.uuid = util.getValue(lines, 'ioplatformuuid', '=', true).toLowerCase(); |
{ | ||
"name": "systeminformation", | ||
"version": "5.23.24", | ||
"version": "5.23.25", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
810680
18219