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.2.3 to 0.3.0

.npmignore

30

lib/databases/couchDb.js

@@ -41,3 +41,3 @@ var cradle = require('cradle')

if (this.isConnected) {
if (callback) { return callback(null); }
if (callback) { return callback(null, this); }
return;

@@ -58,12 +58,26 @@ }

db.save('_design/collection', {
views: {
findAll: {
map: function(doc) {
emit(doc.collectionName, doc);
db.get('_design/collection', function(err, obj) {
var view = {
views: {
findAll: {
map: function(doc) {
emit(doc.collectionName, doc);
}
}
}
};
if (err && err.error == 'not_found') {
db.save('_design/collection', view, function(err) {
if (callback) { return callback(null, self); }
});
} else if (err) {
if (callback) { return callback(err, self); }
} else {
db.save('_design/collection', obj._rev, view, function(err) {
if (callback) { return callback(null, self); }
});
}
}, function(err) {
if (callback) { return callback(err); }
});

@@ -70,0 +84,0 @@ }

{
"author": "adrai",
"name": "node-queue",
"version": "0.2.3",
"version": "0.3.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