@coya/database
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -14,3 +14,5 @@ const crypto = require('crypto'); | ||
static connect(dbName, dbLogin, dbPassword, logsFilePath = null) { | ||
logs = new Logs('database', logsFilePath); | ||
logs = new Logs('database', { | ||
logsFilePath: logsFilePath | ||
}); | ||
return mongo.connect('mongodb://' + dbLogin + ':' + dbPassword + '@localhost:27017/' + dbName) | ||
@@ -17,0 +19,0 @@ .then(function(database) { |
{ | ||
"name": "@coya/database", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "MongoDB database service", | ||
@@ -5,0 +5,0 @@ "main": "database.js", |
10576
320