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 5.24.6 to 5.24.7

1

lib/index.js

@@ -58,2 +58,3 @@ 'use strict';

util.getCodepage();
util.getPowershell();
}

@@ -60,0 +61,0 @@

16

lib/system.js

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

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