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

mongodb-queue

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-queue - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

4

mongodb-queue.js

@@ -76,2 +76,6 @@ /**

if (payload instanceof Array) {
if (payload.length === 0) {
var errMsg = 'Queue.add(): Array payload length must be greater than 0'
return callback(new Error(errMsg))
}
payload.forEach(function(payload) {

@@ -78,0 +82,0 @@ msgs.push({

2

package.json
{
"name": "mongodb-queue",
"version": "3.0.0",
"version": "3.1.0",
"description": "Message queues which uses MongoDB.",

@@ -5,0 +5,0 @@ "main": "mongodb-queue.js",

@@ -67,2 +67,12 @@ var async = require('async')

test('many: add no messages, receive err in callback', function(t) {
var queue = mongoDbQueue(db, 'many')
var messages = []
queue.add([], function(err) {
if (!err) t.fail('Error was not received')
t.pass('Finished test ok')
t.end()
});
})
test('db.close()', function(t) {

@@ -69,0 +79,0 @@ t.pass('db.close()')

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