Socket
Socket
Sign inDemoInstall

mongodb-memory-server-core

Package Overview
Dependencies
Maintainers
1
Versions
270
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 6.2.2 to 6.2.3

11

CHANGELOG.md

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

## [6.2.3](https://github.com/nodkz/mongodb-memory-server/compare/v6.2.2...v6.2.3) (2020-01-20)
### Bug Fixes
* change import for `tmp` package ([4477b9b](https://github.com/nodkz/mongodb-memory-server/commit/4477b9b))
## [6.2.2](https://github.com/nodkz/mongodb-memory-server/compare/v6.2.1...v6.2.2) (2020-01-15)

@@ -8,0 +19,0 @@

2

lib/MongoMemoryServer.d.ts
/// <reference types="node" />
import { ChildProcess } from 'child_process';
import tmp from 'tmp';
import * as tmp from 'tmp';
import MongoInstance from './util/MongoInstance';

@@ -5,0 +5,0 @@ import { MongoBinaryOpts } from './util/MongoBinary';

@@ -49,2 +49,9 @@ "use strict";

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -54,3 +61,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
var tmp_1 = __importDefault(require("tmp"));
var tmp = __importStar(require("tmp"));
var get_port_1 = __importDefault(require("get-port"));

@@ -60,3 +67,3 @@ var db_util_1 = require("./util/db_util");

var util_1 = require("util");
tmp_1.default.setGracefulCleanup();
tmp.setGracefulCleanup();
var MongoMemoryServer = /** @class */ (function () {

@@ -171,3 +178,3 @@ /**

if (!data.dbPath) {
data.tmpDir = tmp_1.default.dirSync({
data.tmpDir = tmp.dirSync({
mode: 493,

@@ -174,0 +181,0 @@ prefix: 'mongo-mem-',

@@ -38,5 +38,2 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {

@@ -49,4 +46,7 @@ if (mod && mod.__esModule) return mod;

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var tmp_1 = __importDefault(require("tmp"));
var tmp = __importStar(require("tmp"));
var fs_1 = __importDefault(require("fs"));

@@ -56,3 +56,3 @@ var os_1 = __importDefault(require("os"));

var MongoBinaryDownload_1 = __importDefault(require("../MongoBinaryDownload"));
tmp_1.default.setGracefulCleanup();
tmp.setGracefulCleanup();
jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;

@@ -68,3 +68,3 @@ var mockGetMongodPath = jest.fn().mockResolvedValue('/temp/path');

beforeEach(function () {
tmpDir = tmp_1.default.dirSync({ prefix: 'mongo-mem-bin-', unsafeCleanup: true });
tmpDir = tmp.dirSync({ prefix: 'mongo-mem-bin-', unsafeCleanup: true });
});

@@ -71,0 +71,0 @@ // cleanup

@@ -38,2 +38,9 @@ "use strict";

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -43,10 +50,10 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
var tmp_1 = __importDefault(require("tmp"));
var tmp = __importStar(require("tmp"));
var MongoBinary_1 = require("../MongoBinary");
var MongoInstance_1 = __importDefault(require("../MongoInstance"));
jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;
tmp_1.default.setGracefulCleanup();
tmp.setGracefulCleanup();
var tmpDir;
beforeEach(function () {
tmpDir = tmp_1.default.dirSync({ prefix: 'mongo-mem-', unsafeCleanup: true });
tmpDir = tmp.dirSync({ prefix: 'mongo-mem-', unsafeCleanup: true });
});

@@ -53,0 +60,0 @@ afterEach(function () {

@@ -50,6 +50,6 @@ "use strict";

var fs_1 = __importDefault(require("fs"));
var tmp_1 = __importDefault(require("tmp"));
var tmp = __importStar(require("tmp"));
var util_1 = require("util");
var resolve_config_1 = __importStar(require("../resolve-config"));
tmp_1.default.setGracefulCleanup();
tmp.setGracefulCleanup();
var mkdirAsync = util_1.promisify(fs_1.default.mkdir);

@@ -86,3 +86,3 @@ var writeFileAsync = util_1.promisify(fs_1.default.writeFile);

// +-- package.json
tmpObj = tmp_1.default.dirSync({ unsafeCleanup: true });
tmpObj = tmp.dirSync({ unsafeCleanup: true });
tmpName = tmpObj.name;

@@ -89,0 +89,0 @@ return [4 /*yield*/, mkdirAsync(tmpName + "/project")];

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

@@ -78,3 +78,3 @@ "main": "lib/index",

},
"gitHead": "1aa8c849dd0667d7e77bebe56ac3353c3657c3dc"
"gitHead": "ac06af31a624bd77e451ba95467433b6f56eb5b9"
}

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