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.2.4 to 5.2.5

11

CHANGELOG.md

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

## [5.2.5](https://github.com/nodkz/mongodb-memory-server/compare/v5.2.4...v5.2.5) (2019-09-23)
### Bug Fixes
* **ReplSet:** typescript definitions ReplSetOpts.dbName is optional ([d1e4b53](https://github.com/nodkz/mongodb-memory-server/commit/d1e4b53))
## [5.2.4](https://github.com/nodkz/mongodb-memory-server/compare/v5.2.3...v5.2.4) (2019-09-23)

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

20

lib/MongoMemoryReplSet.d.ts

@@ -13,3 +13,3 @@ /// <reference types="node" />

* @property {number} count number of `mongod` servers to start (default: 1)
* @property {string} dbName database name used in connection string
* @property {string} dbName database name used in connection string (default: uuid)
* @property {string} ip bind to all IP addresses specify `::,0.0.0.0`; (default '127.0.0.1')

@@ -24,3 +24,3 @@ * @property {string} name replSet name (default: 'testset')

count?: number;
dbName: string;
dbName?: string;
ip?: string;

@@ -41,5 +41,5 @@ name?: string;

export interface MongoMemoryReplSetOptsT {
instanceOpts: MongoMemoryInstancePropBaseT[];
binary: MongoBinaryOpts;
replSet: ReplSetOpts;
instanceOpts?: MongoMemoryInstancePropBaseT[];
binary?: MongoBinaryOpts;
replSet?: ReplSetOpts;
autoStart?: boolean;

@@ -50,7 +50,13 @@ debug?: boolean;

servers: MongoMemoryServer[];
opts: MongoMemoryReplSetOptsT;
opts: {
instanceOpts: MongoMemoryInstancePropBaseT[];
binary: MongoBinaryOpts;
replSet: Required<ReplSetOpts>;
debug: boolean;
autoStart?: boolean;
};
debug: DebugFn;
_state: 'init' | 'running' | 'stopped';
admin?: mongodb.Admin;
constructor(opts?: Partial<MongoMemoryReplSetOptsT>);
constructor(opts?: MongoMemoryReplSetOptsT);
getConnectionString(otherDb?: string | boolean): Promise<string>;

@@ -57,0 +63,0 @@ /**

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

storageEngine: 'ephemeralForTest',
configSettings: {},
};

@@ -86,0 +87,0 @@ _this._state = 'stopped';

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

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

},
"gitHead": "983d9a38a94c60108e69911ff1ab51b73f9e617b"
"gitHead": "b5647a39a4d39b772e21db3c7cd39afd0b6181f6"
}

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