Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f81392b8e | |||
| 9c5f5ea44e |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmongo",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@pushrocks/smartmongo",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@pushrocks/smartdata": "^4.0.27",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartmongo",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"private": false,
|
||||
"description": "create a local mongodb for testing",
|
||||
"main": "dist_ts/index.js",
|
||||
|
||||
@@ -2,9 +2,9 @@ import * as plugins from './smartmongo.plugins';
|
||||
|
||||
export class SmartMongo {
|
||||
// STATIC
|
||||
public static async createAndInit() {
|
||||
public static async createAndStart() {
|
||||
const smartMongoInstance = new SmartMongo();
|
||||
await smartMongoInstance.init();
|
||||
await smartMongoInstance.start();
|
||||
return smartMongoInstance;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export class SmartMongo {
|
||||
constructor() {
|
||||
}
|
||||
|
||||
public async init() {
|
||||
public async start() {
|
||||
this.mongod = await plugins.mongoPlugin.MongoMemoryServer.create();
|
||||
this._readyDeferred.resolve();
|
||||
console.log('mongod started');
|
||||
|
||||
Reference in New Issue
Block a user