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

mongodb-download

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-download - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

25

built/mongodb-download.js

@@ -459,13 +459,26 @@ "use strict";

var minor_version = ubuntu_version[1];
if (os.release == "14.04" || major_version > 14) {
if (os.release === "12.04") {
name += "1204";
}
else if (os.release === "14.04") {
name += "1404";
}
else if (os.release == "12.04") {
name += "1204";
}
else if (os.release == "14.10") {
else if (os.release === "14.10") {
name += "1410-clang";
}
else if (major_version === 14) {
// default for major 14 to 1404
name += "1404";
}
else if (os.release === "16.04") {
name += "1604";
}
else if (major_version === 16) {
// default for major 16 to 1604
name += "1604";
}
else {
this.debug("using legacy release");
// this needs to default to legacy release, this is a BUG
this.debug("selecting default Ubuntu release 1404");
name += "1404";
}

@@ -472,0 +485,0 @@ return name;

{
"name": "mongodb-download",
"version": "2.1.5",
"version": "2.1.6",
"description": "download mongodb prebuilt packages from mongodb",

@@ -5,0 +5,0 @@ "main": "built/mongodb-download.js",

@@ -499,10 +499,21 @@ const os: any = require('os');

let minor_version: string = ubuntu_version[1];
if (os.release == "14.04" || major_version > 14) {
if (os.release === "12.04") {
name += "1204";
} else if (os.release === "14.04") {
name += "1404";
} else if (os.release == "12.04") {
name += "1204";
} else if (os.release == "14.10") {
} else if (os.release === "14.10") {
name += "1410-clang";
} else if (major_version === 14) {
// default for major 14 to 1404
name += "1404";
} else if (os.release === "16.04") {
name += "1604";
} else if (major_version === 16) {
// default for major 16 to 1604
name += "1604";
} else {
this.debug("using legacy release");
// this needs to default to legacy release, this is a BUG
this.debug("selecting default Ubuntu release 1404");
name += "1404";
}

@@ -509,0 +520,0 @@ return name;

Sorry, the diff of this file is not supported yet

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