Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nexssp/os

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexssp/os - npm Package Compare versions

Comparing version 2.0.32 to 2.0.33

14

lib/distro.js

@@ -21,3 +21,7 @@ const cache = {}

} else if (process.platform !== 'win32') {
return execSync('cat /etc/os-release').toString().trim()
try {
return execSync('cat /etc/os-release').toString().trim()
} catch (e) {
return `NAME=${process.platform}`
}
}

@@ -47,2 +51,9 @@ }

return item ? data[item] : data
} else if (platform === 'android') {
const data = {
ID: 'android',
NAME: 'Android',
PRETTY_NAME: `Android`,
}
return item ? data[item] : data
} else {

@@ -106,2 +117,3 @@ const releaseData = osReleaseSync()

MACOSX: 'Mac OS X',
ANDROID: 'Android',
}

@@ -106,2 +106,3 @@ const { distros } = require('./distro')

return pms.EMERGE[operation]
case distros.ANDROID:
case distros.FREEBSD:

@@ -108,0 +109,0 @@ return pms.PKG[operation]

2

package.json
{
"name": "@nexssp/os",
"version": "2.0.32",
"version": "2.0.33",
"bin": {

@@ -5,0 +5,0 @@ "nexssp-os": "bin/nexssp-os.js"

# @nexssp/os
**07.05.2023** - FIX: Support for android platforms (experimental)
**05.05.2023** - FIX: /etc/os-release to determine linux distro - fix by: @qihangnet

@@ -4,0 +5,0 @@ **20.03.2023** - FIX: fails to return info on CentOS: fix by: @DonJayamanne

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