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.25.4 to 5.25.5

21

lib/osinfo.js

@@ -1123,3 +1123,22 @@ 'use strict';

if (_windows) {
resolve('cmd');
try {
const result = 'CMD';
util.powerShell(`Get-CimInstance -className win32_process | where-object {$_.ProcessId -eq ${process.ppid} } | select Name`).then(stdout => {
let result = 'CMD';
if (stdout) {
if (stdout.toString().toLowerCase().indexOf('powershell') >= 0) {
result = 'PowerShell';
}
}
if (callback) {
callback(result);
}
resolve(result);
});
} catch {
if (callback) {
callback(result);
}
resolve(result);
}
} else {

@@ -1126,0 +1145,0 @@ let result = '';

2

package.json
{
"name": "systeminformation",
"version": "5.25.4",
"version": "5.25.5",
"description": "Advanced, lightweight system and OS information library",

@@ -5,0 +5,0 @@ "license": "MIT",

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