Socket
Socket
Sign inDemoInstall

systeminformation

Package Overview
Dependencies
0
Maintainers
1
Versions
645
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.21.23 to 5.21.24

8

lib/osinfo.js

@@ -246,4 +246,10 @@ 'use strict';

});
result.distro = (release.DISTRIB_ID || release.NAME || 'unknown').replace(/"/g, '');
result.logofile = getLogoFile(result.distro);
let releaseVersion = (release.VERSION || '').replace(/"/g, '');
let codename = (release.DISTRIB_CODENAME || release.VERSION_CODENAME || '').replace(/"/g, '');
const prettyName = (release.PRETTY_NAME || '').replace(/"/g, '');
if (prettyName.indexOf(result.distro + ' ') === 0) {
releaseVersion = prettyName.replace(result.distro + ' ', '').trim();
}
if (releaseVersion.indexOf('(') >= 0) {

@@ -253,4 +259,2 @@ codename = releaseVersion.split('(')[1].replace(/[()]/g, '').trim();

}
result.distro = (release.DISTRIB_ID || release.NAME || 'unknown').replace(/"/g, '');
result.logofile = getLogoFile(result.distro);
result.release = (releaseVersion || release.DISTRIB_RELEASE || release.VERSION_ID || 'unknown').replace(/"/g, '');

@@ -257,0 +261,0 @@ result.codename = codename;

{
"name": "systeminformation",
"version": "5.21.23",
"version": "5.21.24",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc