viewmodel
Advanced tools
Comparing version 0.4.11 to 0.5.0
@@ -54,3 +54,3 @@ var mongo = require('mongodb') | ||
} | ||
} | ||
} | ||
}); | ||
@@ -57,0 +57,0 @@ |
var fs = require('fs') | ||
, _ = require('lodash'); | ||
, _ = require('lodash') | ||
, tolerate = require('tolerance'); | ||
@@ -34,3 +35,5 @@ // __initialize:__ Initiate communication with the database. | ||
if (!self.isConnected) { | ||
self.connect(options, callback); | ||
tolerate(function(callback) { | ||
self.connect(options, callback); | ||
}, options.timeout || 0, callback); | ||
} else { | ||
@@ -37,0 +40,0 @@ callback(null, self); |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "0.4.11", | ||
"version": "0.5.0", | ||
"private": false, | ||
@@ -14,3 +14,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": ">= 0.10.x" | ||
"lodash": ">= 2.2.1", | ||
"tolerance": ">= 1.0.0" | ||
}, | ||
@@ -23,3 +24,3 @@ "devDependencies": { | ||
"description": "Node-viewmodel is a node.js module for multiple databases. It can be very useful if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.", | ||
"keywords" : [ | ||
"keywords": [ | ||
"orm", | ||
@@ -59,5 +60,5 @@ "viewmodel", | ||
], | ||
"scripts" : { | ||
"test" : "mocha" | ||
} | ||
"scripts": { | ||
"test": "mocha" | ||
} | ||
} |
@@ -37,2 +37,3 @@ # Introduction | ||
collectionName: 'dummy',// optional and only if you directly want to use a collection, so repo.extend() is not necessary... | ||
timeout: 10000 // optional | ||
}, | ||
@@ -39,0 +40,0 @@ function(err) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
167
40455
2
12
926
+ Addedtolerance@>= 1.0.0
+ Addedretry@0.13.1(transitive)
+ Addedtolerance@1.0.0(transitive)
Updatedlodash@>= 2.2.1