mongodb-download
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -13,3 +13,3 @@ "use strict"; | ||
var md5File = require('md5-file'); | ||
var DOWNLOAD_URI = "https://fastdl.mongodb.org"; | ||
var DOWNLOAD_URI = "http://downloads.mongodb.org"; | ||
var MONGODB_VERSION = "latest"; | ||
@@ -477,3 +477,7 @@ var MongoDBDownload = (function () { | ||
var name = "debian"; | ||
if (/^(7|8)/.test(os.release)) { | ||
var release = parseFloat(os.release); | ||
if (release >= 8.1) { | ||
name += "81"; | ||
} | ||
else if (release >= 7.1) { | ||
name += "71"; | ||
@@ -573,3 +577,3 @@ } | ||
return "linux"; | ||
case "elementary OS": | ||
case "elementary OS"://os.platform() doesn't return linux for elementary OS. | ||
return "linux"; | ||
@@ -576,0 +580,0 @@ case "sunos": |
{ | ||
"name": "mongodb-download", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "download mongodb prebuilt packages from mongodb", | ||
@@ -5,0 +5,0 @@ "main": "built/mongodb-download.js", |
@@ -12,3 +12,3 @@ const os: any = require('os'); | ||
const DOWNLOAD_URI: string = "https://fastdl.mongodb.org"; | ||
const DOWNLOAD_URI: string = "http://downloads.mongodb.org"; | ||
const MONGODB_VERSION: string = "latest"; | ||
@@ -515,6 +515,9 @@ | ||
} | ||
getDebianVersionString(os: any): string { | ||
let name: string = "debian"; | ||
if (/^(7|8)/.test(os.release)) { | ||
let release: number = parseFloat(os.release); | ||
if (release >= 8.1) { | ||
name += "81"; | ||
} else if (release >= 7.1) { | ||
name += "71"; | ||
@@ -521,0 +524,0 @@ } else { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77366
15
1447