mongodb-runner 4.8.3 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +4 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -415,7 +415,8 @@ var exec = (module.exports = exports = function(opts, done) {
415
415
  return;
416
416
  }
417
417
 
418
- opts.version = opts.version || process.env.MONGODB_VERSION;
418
+ opts.version = opts['mongodb-version'] || opts.version || process.env.MONGODB_VERSION;
419
+ opts.enterprise = !!opts.enterprise || !!process.env.MONGODB_USE_ENTERPRISE;
419
420
 
420
421
  var tasks = [];
421
422
 
@@ -424,7 +425,8 @@ var exec = (module.exports = exports = function(opts, done) {
424
425
  debug('Ensuring MongoDB Server installed...');
425
426
  return require('mongodb-version-manager').use(
426
427
  {
427
- version: opts.version
428
+ version: opts.version,
429
+ enterprise: opts.enterprise
428
430
  },
429
431
  cb
430
432
  );
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "contributors": [
4
4
  "Addison Elliott <addison.elliott@gmail.com> (https://github.com/addisonElliott)"
5
5
  ],
6
- "version": "4.8.3",
6
+ "version": "4.9.0",
7
7
  "author": "Lucas Hrabovsky <hrabovsky.lucas@gmail.com> (https://imlucas.com)",
8
8
  "description": "The easiest way to test your code against MongoDB Server.",
9
9
  "scripts": {