New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

getos

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getos - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

index.js

@@ -23,3 +23,3 @@ /**

// Else, node's builtin is acceptable.
return cb(null, { 'os': osName })
return cb(null, { os: osName })
}

@@ -52,3 +52,3 @@

var candidates = distros[file]
var os = { 'os': 'linux', 'dist': candidates[0] }
var os = { os: 'linux', dist: candidates[0] }

@@ -55,0 +55,0 @@ fs.readFile(file, 'utf-8', function (e, file) {

@@ -10,3 +10,2 @@ {

"/etc/arch-release" : ["Arch Linux"],
"/etc/os-release": ["Raspbian"],
"/etc/NIXOS": ["NixOS"],

@@ -54,3 +53,4 @@ "/etc/annvix-release" : ["Annvix"],

"/etc/alpine-release": ["Alpine Linux"],
"/etc/system-release": ["Amazon Linux"]
"/etc/system-release": ["Amazon Linux"],
"/etc/os-release": ["Raspbian"]
}
{
"name": "getos",
"version": "3.1.1",
"version": "3.1.2",
"description": "Get the OS/Distribution name of the environment you are working on",

@@ -19,3 +19,4 @@ "main": "index.js",

"Distribution",
"Platform"
"Platform",
"Version"
],

@@ -29,9 +30,9 @@ "author": "william.jblankenship@gmail.com",

"devDependencies": {
"cli-color": "1.4.0",
"execSync": "1.0.2",
"standard": "^12.0.1",
"tape": "4.9.1"
"cli-color": "^1.4.0",
"execSync": "^1.0.2",
"standard": "^13.1.0",
"tape": "^4.11.0"
},
"dependencies": {
"async": "2.6.1"
"async": "^3.1.0"
},

@@ -38,0 +39,0 @@ "contributors": [

@@ -15,3 +15,3 @@ [

, { "desc": "SUSE Linux", "platform": "linux", "file": { "/etc/SuSE-release": "SUSE Linux Enterprise Server 11 (x86_64)\nVERSION = 11\nPATCHLEVEL = 4\n" }, "expected": { "dist": "SUSE Linux", "os": "linux", "release": "11" } }
, { "desc": "Alpine Linux", "platform": "linux", "file": { "/etc/alpine-release": "3.3\n" }, "expected": { "dist": "Alpine Linux", "os": "linux", "release": "3.3" } }
, { "desc": "Alpine Linux", "platform": "linux", "file": { "/etc/alpine-release": "3.3\n", "/etc/os-release": "NAME=\"Alpine Linux\"\nID=alpine\nVERSION_ID=3.9.2\nPRETTY_NAME=\"Alpine Linux v3.9\"\nHOME_URL=\"https://alpinelinux.org/\"\nBUG_REPORT_URL=\"https://bugs.alpinelinux.org/\"\n" }, "expected": { "dist": "Alpine Linux", "os": "linux", "release": "3.3" } }
, { "desc": "Amazon Linux", "platform": "linux", "file": { "/etc/system-release": "Amazon Linux AMI release 2016.03"}, "expected": {"dist": "Amazon Linux", "os": "linux", "release": "2016.03"}}

@@ -18,0 +18,0 @@ , { "desc": "Arch Linux", "platform": "linux", "file": { "/etc/lsb-release": "LSB_VERSION=1.4\nDISTRIB_ID=Arch\nDISTRIB_RELEASE=rolling\nDISTRIB_DESCRIPTION=\"Arch Linux\""}, "expected": {"dist": "Arch Linux", "os": "linux", "release": "rolling"}}

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