better-queue
Advanced tools
Comparing version 3.7.16 to 3.7.17
@@ -144,3 +144,12 @@ var uuid = require('node-uuid'); | ||
try { | ||
var Store = require(stores[store]); | ||
var Store; | ||
if (store === 'memory') { | ||
Store = require('./stores/memory'); | ||
} else if (store === 'sql') { | ||
Store = require('./stores/SqlStore'); | ||
} else if (store === 'sqlite') { | ||
Store = require('./stores/sqlite'); | ||
} else { | ||
Store = require(stores[store]); | ||
} | ||
self._store = new Store(opts); | ||
@@ -150,3 +159,12 @@ } catch (e) { throw e } | ||
try { | ||
var Store = require(stores[store.type]); | ||
var Store; | ||
if (store.type === 'memory') { | ||
Store = require('./stores/memory'); | ||
} else if (store.type === 'sql') { | ||
Store = require('./stores/SqlStore'); | ||
} else if (store.type === 'sqlite') { | ||
Store = require('./stores/sqlite'); | ||
} else { | ||
Store = require(stores[store.type]); | ||
} | ||
self._store = new Store(store); | ||
@@ -153,0 +171,0 @@ } catch (e) { throw e } |
{ | ||
"name": "better-queue", | ||
"version": "3.7.16", | ||
"version": "3.7.17", | ||
"description": "Better Queue for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/queue.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89787
2326