better-queue
Advanced tools
Comparing version 3.7.9 to 3.7.11
@@ -9,5 +9,5 @@ var uuid = require('node-uuid'); | ||
var stores = { | ||
memory: require('./stores/memory'), | ||
sqlite: require('./stores/sqlite'), | ||
sql: require('./stores/SqlStore'), | ||
memory: './stores/memory', | ||
sqlite: './stores/sqlite', | ||
sql: './stores/SqlStore', | ||
} | ||
@@ -145,7 +145,9 @@ | ||
try { | ||
self._store = new stores[store](opts); | ||
var Store = require(stores[store]); | ||
self._store = new Store(opts); | ||
} catch (e) { throw e } | ||
} else if (typeof store === 'object' && typeof store.type === 'string' && stores[store.type]) { | ||
try { | ||
self._store = new stores[store.type](store); | ||
var Store = require(stores[store.type]); | ||
self._store = new Store(store); | ||
} catch (e) { throw e } | ||
@@ -152,0 +154,0 @@ } else if (typeof store === 'object' && |
{ | ||
"name": "better-queue", | ||
"version": "3.7.9", | ||
"version": "3.7.11", | ||
"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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
91086
2350
5