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

mongodb-memory-server-core

Package Overview
Dependencies
Maintainers
1
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-memory-server-core - npm Package Compare versions

Comparing version 5.1.2 to 5.1.3

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

## [5.1.3](https://github.com/nodkz/mongodb-memory-server/compare/v5.1.2...v5.1.3) (2019-06-06)
### Bug Fixes
* resolve to config from closest package.json ([34b6e27](https://github.com/nodkz/mongodb-memory-server/commit/34b6e27))
* use cross-spawn to help with Windows issues ([efad669](https://github.com/nodkz/mongodb-memory-server/commit/efad669))
## [5.1.2](https://github.com/nodkz/mongodb-memory-server/compare/v5.1.1...v5.1.2) (2019-05-16)

@@ -8,0 +20,0 @@

1

lib/MongoMemoryServer.js

@@ -137,3 +137,2 @@ "use strict";

tmpDir = tmp_1.default.dirSync({
discardDescriptor: true,
mode: 493,

@@ -140,0 +139,0 @@ prefix: 'mongo-mem-',

@@ -52,3 +52,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var child_process_1 = require("child_process");
var cross_spawn_1 = __importDefault(require("cross-spawn"));
var path_1 = __importDefault(require("path"));

@@ -199,3 +199,3 @@ var MongoBinary_1 = __importDefault(require("./MongoBinary"));

spawnOpts.stdio = 'pipe';
var childProcess = child_process_1.spawn(mongoBin, this.prepareCommandArgs(), spawnOpts);
var childProcess = cross_spawn_1.default(mongoBin, this.prepareCommandArgs(), spawnOpts);
if (childProcess.stderr) {

@@ -215,3 +215,3 @@ childProcess.stderr.on('data', this.stderrHandler.bind(this));

// spawn process which kills itself and mongo process if current process is dead
var killer = child_process_1.spawn(process.argv[0], [
var killer = cross_spawn_1.default(process.argv[0], [
path_1.default.resolve(__dirname, '../../scripts/mongo_killer.js'),

@@ -218,0 +218,0 @@ parentPid.toString(),

export declare function setDefaultValue(key: string, value: string): void;
export declare function reInitializePackageJson(): void;
export default function resolveConfig(variableName: string): string | undefined;
//# sourceMappingURL=resolve-config.d.ts.map

@@ -11,12 +11,5 @@ "use strict";

function getPackageJson() {
var pjIterator = find_package_json_1.default(__dirname);
var next = pjIterator.next();
var packageJson = next.value;
while (!next.done) {
packageJson = next.value;
next = pjIterator.next();
}
return packageJson;
var pjIterator = find_package_json_1.default(process.cwd());
return pjIterator.next().value;
}
var packageJson = getPackageJson();
function setDefaultValue(key, value) {

@@ -26,2 +19,8 @@ defaultValues.set(key, value);

exports.setDefaultValue = setDefaultValue;
var packageJson;
function reInitializePackageJson() {
packageJson = getPackageJson();
}
exports.reInitializePackageJson = reInitializePackageJson;
reInitializePackageJson();
function resolveConfig(variableName) {

@@ -28,0 +27,0 @@ return (process.env["" + ENV_CONFIG_PREFIX + variableName] ||

{
"name": "mongodb-memory-server-core",
"version": "5.1.2",
"version": "5.1.3",
"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.",

@@ -28,8 +28,9 @@ "main": "lib/index",

"camelcase": "^5.3.1",
"cross-spawn": "^6.0.5",
"debug": "^4.1.1",
"decompress": "^4.2.0",
"dedent": "^0.7.0",
"find-cache-dir": "^2.0.0",
"find-cache-dir": "^3.0.0",
"find-package-json": "^1.2.0",
"get-port": "^4.2.0",
"get-port": "^5.0.0",
"getos": "^3.1.1",

@@ -40,7 +41,7 @@ "https-proxy-agent": "^2.2.1",

"mkdirp": "^0.5.1",
"tmp": "^0.0.33",
"tmp": "^0.1.0",
"uuid": "^3.2.1"
},
"optionalDependencies": {
"mongodb": ">=3.0.0"
"mongodb": ">=3.2.7"
},

@@ -57,3 +58,3 @@ "scripts": {

},
"gitHead": "e057d0c77321af6395698412b4b19d89ba3e1c7b"
"gitHead": "1abad7c7843893f284f31476c53e23fc239a754a"
}

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

Sorry, the diff of this file is not supported yet

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