mongodb-memory-server-core
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -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 @@ |
@@ -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
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
162202
4
16
2241
+ Addedcross-spawn@^6.0.5
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcross-spawn@6.0.6(transitive)
+ Addedfind-cache-dir@3.3.2(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedget-port@5.1.1(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addednice-try@1.0.5(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpkg-dir@4.2.0(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedtmp@0.1.0(transitive)
+ Addedwhich@1.3.1(transitive)
- Removedfind-cache-dir@2.1.0(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedget-port@4.2.0(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedmake-dir@2.1.0(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedpify@4.0.1(transitive)
- Removedpkg-dir@3.0.0(transitive)
- Removedtmp@0.0.33(transitive)
Updatedfind-cache-dir@^3.0.0
Updatedget-port@^5.0.0
Updatedtmp@^0.1.0