loopback-connector-mongodb
Advanced tools
Comparing version
{ | ||
"content": [ | ||
"README.md", | ||
{"title": "LoopBack MongoDB Connector API", "depth": 2}, | ||
@@ -5,0 +4,0 @@ "lib/mongodb.js" |
@@ -61,3 +61,2 @@ /*! | ||
if(callback) { | ||
dataSource.connecting = true; | ||
dataSource.connector.connect(callback); | ||
@@ -104,11 +103,3 @@ } | ||
} else { | ||
if(self.debug) { | ||
// Configure the mongodb logger | ||
self.settings.logger = { doDebug: true, | ||
doError: true, | ||
log: console.log, | ||
debug: console.log, | ||
error: console.error }; | ||
} | ||
mongodb.MongoClient.connect(self.settings.url, {db: self.settings}, function (err, db) { | ||
mongodb.MongoClient.connect(self.settings.url, self.settings, function (err, db) { | ||
if(!err) { | ||
@@ -115,0 +106,0 @@ if(self.debug) { |
{ | ||
"name": "loopback-connector-mongodb", | ||
"version": "1.1.0", | ||
"version": "1.1.3", | ||
"description": "LoopBack MongoDB Connector", | ||
@@ -8,16 +8,14 @@ "keywords": [ "StrongLoop", "LoopBack", "MongoDB", "DataSource", "Connector" ], | ||
"scripts": { | ||
"test": "make test", | ||
"blanket": { | ||
"pattern": "//^((?!(node_modules|test)).)*$/" | ||
}, | ||
"coverage": "mocha -r blanket -R html-cov > coverage_loopback-connector-mongodb.html" | ||
"test": "make test" | ||
}, | ||
"dependencies": { | ||
"loopback-datasource-juggler": "~1.1.0", | ||
"mongodb": "~1.3.19" | ||
}, | ||
"peerDependencies": { | ||
"loopback-datasource-juggler": "1.x.x" | ||
}, | ||
"devDependencies": { | ||
"loopback-datasource-juggler": "1.x.x", | ||
"should": "~1.2.2", | ||
"mocha": "~1.12.1", | ||
"blanket": "~1.1.5", | ||
"mocha": "~1.14.0", | ||
"rc": "~0.3.0" | ||
@@ -24,0 +22,0 @@ }, |
Sorry, the diff of this file is not supported yet
26754
-7.15%15
-11.76%729
-6.06%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed