node-queue
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -1,2 +0,2 @@ | ||
// lib/databases/inMemory.js v0.0.1 | ||
// lib/databases/inMemory.js v0.1.0 | ||
// (c) 2012 Adriano Raiano (adrai); under MIT License | ||
@@ -43,3 +43,3 @@ | ||
for(var m in store) { | ||
items.push(store[m]); | ||
items.push({ id: m, data: store[m] }); | ||
} | ||
@@ -46,0 +46,0 @@ |
@@ -1,2 +0,2 @@ | ||
// lib/databases/mongoDb.js v0.0.1 | ||
// lib/databases/mongoDb.js v0.1.0 | ||
// (c) 2012 Adriano Raiano (adrai); under MIT License | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
// lib/queue.js v0.0.1 | ||
// lib/queue.js v0.1.0 | ||
// (c) 2012 Adriano Raiano (adrai); under MIT License | ||
@@ -24,3 +24,7 @@ | ||
fs.exists(dbPath, function (exists) { | ||
var exists = fs.exists; | ||
if (!fs.exists) { | ||
exists = require('path').exists; | ||
} | ||
exists(dbPath, function (exists) { | ||
@@ -33,4 +37,4 @@ if (!exists) return callback('Implementation for db "' + options.type + '"" does not exist!'); | ||
} catch (err) { | ||
if (err.code === 'MODULE_NOT_FOUND' && err.message.indexOf("'") > 0 && err.message.lastIndexOf("'") !== err.message.indexOf("'")) { | ||
var moduleName = err.message.substring(err.message.indexOf("'") + 1, err.message.lastIndexOf("'")) | ||
if (err.message.indexOf("Cannot find module") >= 0 && err.message.indexOf("'") > 0 && err.message.lastIndexOf("'") !== err.message.indexOf("'")) { | ||
var moduleName = err.message.substring(err.message.indexOf("'") + 1, err.message.lastIndexOf("'")); | ||
console.log('Please install "' + moduleName + '" to work with db implementation "' + options.type + '"!'); | ||
@@ -37,0 +41,0 @@ } |
{ | ||
"author": "adrai", | ||
"name": "node-queue", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
21973
11
486
1
159