node-queue
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -71,3 +71,3 @@ 'use strict'; | ||
} | ||
if (callback) callback(err); | ||
if (callback) callback(err, self); | ||
}); | ||
@@ -74,0 +74,0 @@ return; |
@@ -9,10 +9,10 @@ 'use strict'; | ||
if (options.prototype instanceof Base) { | ||
return options; | ||
options.type = options.type || 'inmemory'; | ||
if (options.type && options.type.prototype instanceof Base) { | ||
return options.type; | ||
} | ||
options.type = options.type || 'inmemory'; | ||
options.type = options.type.toLowerCase(); | ||
options.type = options.type.toLowerCase(); | ||
var dbPath = __dirname + "/databases/" + options.type + ".js"; | ||
@@ -53,3 +53,3 @@ | ||
} | ||
options = options || {}; | ||
@@ -56,0 +56,0 @@ |
{ | ||
"author": "adrai", | ||
"name": "node-queue", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -40,3 +40,3 @@ # Introduction | ||
timeout: 10000 // optional | ||
}, | ||
}, | ||
function(err, myQueue) { | ||
@@ -162,3 +162,3 @@ if(err) { | ||
## own db implementation | ||
You can use your own db implementation by extending this... | ||
You can use your own db implementation by extending this... (pass the Queue as type in the options) | ||
@@ -186,3 +186,3 @@ var Queue = require('node-queue').Queue, | ||
Copyright (c) 2014 Adriano Raiano | ||
Copyright (c) 2015 Adriano Raiano | ||
@@ -205,2 +205,2 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
THE SOFTWARE. |
@@ -0,1 +1,4 @@ | ||
## [v1.0.4](https://github.com/adrai/node-queue/compare/v1.0.3...v1.0.4) | ||
- fix usage with own db implementation | ||
#### v1.0.3 | ||
@@ -2,0 +5,0 @@ - replace json-serialize with jsondate |
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
29386
203