Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-queue

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-queue - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

.gitignore

4

lib/databases/inMemory.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc