4 Commits

Author SHA1 Message Date
9414dac380 1.0.8 2021-12-21 01:54:04 +01:00
160e350b82 fix(core): update 2021-12-21 01:54:04 +01:00
457de52134 1.0.7 2021-12-20 17:07:40 +01:00
997a662d63 fix(core): update 2021-12-20 17:07:39 +01:00
4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartmongo", "name": "@pushrocks/smartmongo",
"version": "1.0.6", "version": "1.0.8",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartmongo", "name": "@pushrocks/smartmongo",
"version": "1.0.6", "version": "1.0.8",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/smartdata": "^4.0.27", "@pushrocks/smartdata": "^4.0.27",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartmongo", "name": "@pushrocks/smartmongo",
"version": "1.0.6", "version": "1.0.8",
"private": false, "private": false,
"description": "create a local mongodb for testing", "description": "create a local mongodb for testing",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@@ -4,7 +4,7 @@ import * as smartmongo from '../ts/index';
let smartmongoInstance: smartmongo.SmartMongo; let smartmongoInstance: smartmongo.SmartMongo;
tap.test('should create a mongo instance', async () => { tap.test('should create a mongo instance', async () => {
smartmongoInstance = await smartmongo.SmartMongo.createAndInit(); smartmongoInstance = await smartmongo.SmartMongo.createAndStart();
}); });
tap.test('should stop the instance', async () => { tap.test('should stop the instance', async () => {

View File

@@ -30,6 +30,6 @@ export class SmartMongo {
} }
public async stop() { public async stop() {
this.mongod.stop(); await this.mongod.stop(true);
} }
} }