systeminformation
Advanced tools
Comparing version 5.24.6 to 5.24.7
@@ -58,2 +58,3 @@ 'use strict'; | ||
util.getCodepage(); | ||
util.getPowershell(); | ||
} | ||
@@ -60,0 +61,0 @@ |
@@ -224,3 +224,3 @@ 'use strict'; | ||
result.model = model.key; | ||
result.type = macOsChassisType(model.model); | ||
result.type = macOsChassisType(model.version); | ||
result.version = model.version; | ||
@@ -611,9 +611,9 @@ result.serial = util.getValue(lines, 'ioplatformserialnumber', '=', true); | ||
model = model.toLowerCase(); | ||
if (model.startsWith('macbookair')) { return 'Notebook'; } | ||
if (model.startsWith('macbookpro')) { return 'Laptop'; } | ||
if (model.startsWith('macbook')) { return 'Notebook'; } | ||
if (model.startsWith('macmini')) { return 'Desktop'; } | ||
if (model.startsWith('imac')) { return 'Desktop'; } | ||
if (model.startsWith('macstudio')) { return 'Desktop'; } | ||
if (model.startsWith('macpro')) { return 'Tower'; } | ||
if (model.indexOf('macbookair') >= 0 || model.indexOf('macbook air') >= 0) { return 'Notebook'; } | ||
if (model.indexOf('macbookpro') >= 0 || model.indexOf('macbook pro') >= 0) { return 'Notebook'; } | ||
if (model.indexOf('macbook') >= 0) { return 'Notebook'; } | ||
if (model.indexOf('macmini') >= 0 || model.indexOf('mac mini') >= 0) { return 'Desktop'; } | ||
if (model.indexOf('imac') >= 0) { return 'Desktop'; } | ||
if (model.indexOf('macstudio') >= 0 || model.indexOf('mac studio') >= 0) { return 'Desktop'; } | ||
if (model.indexOf('macpro') >= 0 || model.indexOf('mac pro') >= 0) { return 'Tower'; } | ||
return 'Other'; | ||
@@ -620,0 +620,0 @@ } |
{ | ||
"name": "systeminformation", | ||
"version": "5.24.6", | ||
"version": "5.24.7", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
815710
18351