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

better-queue

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-queue - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

16

lib/queue.js

@@ -7,4 +7,8 @@ var uuid = require('node-uuid');

var Tickets = require('./tickets');
var MemoryStore = require('./stores/memory');
var stores = {
memory: require('./stores/memory'),
sqlite: require('./stores/sqlite'),
}
function Queue(process, opts) {

@@ -98,11 +102,9 @@ var self = this;

var self = this;
if (typeof store === 'string') {
if (typeof store === 'string' && stores[store]) {
try {
var Store = require('./stores/' + store)
self._store = new Store(opts);
self._store = new stores[store](opts);
} catch (e) { throw e }
} else if (typeof store === 'object' && typeof store.type === 'string') {
} else if (typeof store === 'object' && typeof store.type === 'string' && stores[store.type]) {
try {
var Store = require('./stores/' + store.type)
self._store = new Store(store);
self._store = new stores[store.type](store);
} catch (e) { throw e }

@@ -109,0 +111,0 @@ } else if (typeof store === 'object' &&

{
"name": "better-queue",
"version": "2.1.1",
"version": "2.2.0",
"description": "Better Queue for NodeJS",

@@ -5,0 +5,0 @@ "main": "lib/queue.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