mongodb-memory-server-core
Advanced tools
Comparing version 5.0.4 to 5.1.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [5.1.0](https://github.com/nodkz/mongodb-memory-server/compare/v5.0.4...v5.1.0) (2019-04-21) | ||
### Features | ||
* configure installation from package.json ([c8dbbb9](https://github.com/nodkz/mongodb-memory-server/commit/c8dbbb9)) | ||
## [5.0.4](https://github.com/nodkz/mongodb-memory-server/compare/v5.0.3...v5.0.4) (2019-04-15) | ||
@@ -8,0 +19,0 @@ |
@@ -66,2 +66,3 @@ "use strict"; | ||
var MongoBinaryDownload_1 = __importDefault(require("./MongoBinaryDownload")); | ||
var resolve_config_1 = __importDefault(require("./resolve-config")); | ||
// TODO: return back `latest` version when it will be fixed in MongoDB distro (for now use 4.0.3 😂) | ||
@@ -174,3 +175,3 @@ // More details in https://github.com/nodkz/mongodb-memory-server/issues/131 | ||
return __awaiter(this, void 0, void 0, function () { | ||
var legacyDLDir, nodeModulesDLDir, defaultOptions, options, version, systemBinary, binaryPath, binaryVersion; | ||
var legacyDLDir, envDebug, nodeModulesDLDir, defaultOptions, options, version, systemBinary, binaryPath, binaryVersion; | ||
return __generator(this, function (_a) { | ||
@@ -180,2 +181,3 @@ switch (_a.label) { | ||
legacyDLDir = path_1.default.resolve(os_1.default.homedir(), '.cache/mongodb-binaries'); | ||
envDebug = resolve_config_1.default('DEBUG'); | ||
nodeModulesDLDir = process.cwd(); | ||
@@ -186,3 +188,3 @@ while (new RegExp("node_modules" + path_1.default.sep + "mongodb-memory-server").test(nodeModulesDLDir)) { | ||
defaultOptions = { | ||
downloadDir: process.env.MONGOMS_DOWNLOAD_DIR || | ||
downloadDir: resolve_config_1.default('DOWNLOAD_DIR') || | ||
(fs_1.default.existsSync(legacyDLDir) | ||
@@ -194,9 +196,7 @@ ? legacyDLDir | ||
}) || '', 'mongodb-binaries')), | ||
platform: process.env.MONGOMS_PLATFORM || os_1.default.platform(), | ||
arch: process.env.MONGOMS_ARCH || os_1.default.arch(), | ||
version: process.env.MONGOMS_VERSION || exports.LATEST_VERSION, | ||
systemBinary: process.env.MONGOMS_SYSTEM_BINARY, | ||
debug: typeof process.env.MONGOMS_DEBUG === 'string' | ||
? ['1', 'on', 'yes', 'true'].indexOf(process.env.MONGOMS_DEBUG.toLowerCase()) !== -1 | ||
: false, | ||
platform: resolve_config_1.default('PLATFORM') || os_1.default.platform(), | ||
arch: resolve_config_1.default('ARCH') || os_1.default.arch(), | ||
version: resolve_config_1.default('VERSION') || exports.LATEST_VERSION, | ||
systemBinary: resolve_config_1.default('SYSTEM_BINARY'), | ||
debug: typeof envDebug === 'string' ? ['1', 'on', 'yes', 'true'].indexOf(envDebug) !== -1 : false, | ||
}; | ||
@@ -203,0 +203,0 @@ if (opts.debug) { |
@@ -43,2 +43,3 @@ "use strict"; | ||
var child_process_1 = require("child_process"); | ||
var resolve_config_1 = __importDefault(require("./resolve-config")); | ||
var MongoBinaryDownloadUrl = /** @class */ (function () { | ||
@@ -60,3 +61,3 @@ function MongoBinaryDownloadUrl(_a) { | ||
archive = _a.sent(); | ||
return [2 /*return*/, (process.env.MONGOMS_DOWNLOAD_MIRROR || 'https://fastdl.mongodb.org') + "/" + this.platform + "/" + archive]; | ||
return [2 /*return*/, (resolve_config_1.default('DOWNLOAD_MIRROR') || 'https://fastdl.mongodb.org') + "/" + this.platform + "/" + archive]; | ||
} | ||
@@ -63,0 +64,0 @@ }); |
{ | ||
"name": "mongodb-memory-server-core", | ||
"version": "5.0.4", | ||
"version": "5.1.0", | ||
"description": "MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.", | ||
@@ -27,2 +27,3 @@ "main": "lib/index", | ||
"dependencies": { | ||
"camelcase": "^5.3.1", | ||
"debug": "^4.1.1", | ||
@@ -32,2 +33,3 @@ "decompress": "^4.2.0", | ||
"find-cache-dir": "^2.0.0", | ||
"find-package-json": "^1.2.0", | ||
"get-port": "^4.2.0", | ||
@@ -55,3 +57,3 @@ "getos": "^3.1.1", | ||
}, | ||
"gitHead": "af002451ecc82c4ff840961ee425d52655dfcb62" | ||
"gitHead": "3a3f3368e77cc13a6653326e29b5da5dd2fe10f0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
161376
49
2242
14
15
+ Addedcamelcase@^5.3.1
+ Addedfind-package-json@^1.2.0
+ Addedcamelcase@5.3.1(transitive)
+ Addedfind-package-json@1.2.0(transitive)