node-queue
Advanced tools
Comparing version 0.3.2 to 0.4.0
var fs = require('fs') | ||
, _ = require('lodash'); | ||
, _ = require('lodash') | ||
, tolerate = require('tolerance'); | ||
@@ -28,3 +29,5 @@ module.exports = { | ||
var db = require(dbPath); | ||
db.connect(options, callback); | ||
tolerate(function(callback) { | ||
db.connect(options, callback); | ||
}, options.timeout || 0, callback); | ||
} catch (err) { | ||
@@ -31,0 +34,0 @@ if (err.message.indexOf("Cannot find module") >= 0 && err.message.indexOf("'") > 0 && err.message.lastIndexOf("'") !== err.message.indexOf("'")) { |
{ | ||
"author": "adrai", | ||
"name": "node-queue", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"private": false, | ||
@@ -14,3 +14,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": ">= 0.5.x" | ||
"lodash": ">= 2.2.1", | ||
"tolerance": ">= 1.0.0" | ||
}, | ||
@@ -23,3 +24,3 @@ "devDependencies": { | ||
"description": "Node-queue is a node.js module for multiple databases. It can be very useful if you work with (d)ddd, cqrs, eventsourcing, commands and events, etc.", | ||
"keywords" : [ | ||
"keywords": [ | ||
"orm", | ||
@@ -53,5 +54,5 @@ "mongodb", | ||
], | ||
"scripts" : { | ||
"test" : "mocha" | ||
} | ||
"scripts": { | ||
"test": "mocha" | ||
} | ||
} |
@@ -39,2 +39,3 @@ # Introduction | ||
collectionName: 'queue' // optional | ||
timeout: 10000 // optional | ||
}, | ||
@@ -41,0 +42,0 @@ function(err, myQueue) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
164
27817
2
12
598
+ Addedtolerance@>= 1.0.0
+ Addedretry@0.13.1(transitive)
+ Addedtolerance@1.0.0(transitive)
Updatedlodash@>= 2.2.1