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 0.2.0 to 0.2.1

test/setup.js

1

mongodb-queue.js

@@ -79,2 +79,3 @@ /**

if (err) return callback(err)
if (!msg) return callback()
callback(null, {

@@ -81,0 +82,0 @@ id : msg.id,

4

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

@@ -9,3 +9,3 @@ "main": "mongodb-queue.js",

"email": "andychilton@gmail.com",
"url": "http://www.chilts.org/"
"url": "http://chilts.org/"
},

@@ -12,0 +12,0 @@ "homepage": "https://github.com/chilts/mongodb-queue",

@@ -112,2 +112,7 @@ # mongodb-queue #

### 0.2.1 (2014-03-19) ###
* [FIX] Fix when getting messages off an empty queue
* [NEW] More Tests
### 0.2.0 (2014-03-18) ###

@@ -114,0 +119,0 @@

var mongodb = require('mongodb')
var async = require('async')
var test = require('tape')
var Queue = require('../')
var setup = require('./setup.js')
var conStr = 'mongodb://localhost:27017/mongodb-queue'
test('first test', function(t) {
mongodb.MongoClient.connect(conStr, function(err, db) {
if (err) return t.fail(err)
setup(function(db) {
test('first test', function(t) {
var queue = Queue(db, 'test')
t.pass('This is a test.')
t.ok(queue, 'Queue created ok')
t.end()
db.close()
})
});
});
test('single round trip', function(t) {
mongodb.MongoClient.connect(conStr, function(err, db) {
if (err) return t.fail(err)
test('single round trip', function(t) {
var queue = Queue(db, 'test')

@@ -62,2 +59,3 @@

})
});
})
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