@coya/database
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -19,6 +19,6 @@ const crypto = require('crypto'); | ||
if(!database || !login || !password) | ||
throw new Error('Invalid database configuration object.'); | ||
return Promise.reject(new Error('Invalid database configuration object.')); | ||
logs = new Logs('database', config); | ||
return mongo.connect('mongodb://' + dbLogin + ':' + dbPassword + '@localhost:27017/' + dbName) | ||
return mongo.connect('mongodb://' + login + ':' + password + '@localhost:27017/' + database) | ||
.then(function(database) { | ||
@@ -25,0 +25,0 @@ logs.info('Connected and authenticated to database.'); |
{ | ||
"name": "@coya/database", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "MongoDB database service", | ||
@@ -5,0 +5,0 @@ "main": "database.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10836