Comparing version 4.5.1 to 4.5.2
@@ -0,1 +1,8 @@ | ||
## [4.5.2](https://github.com/OptimalBits/bull/compare/v4.5.1...v4.5.2) (2022-02-14) | ||
### Bug Fixes | ||
* **scripts:** make it easier for tools like vercel to find the .lua scripts ([8ab5b1d](https://github.com/OptimalBits/bull/commit/8ab5b1d1c3eecf41b20d97f464030377ece01640)) | ||
## [4.5.1](https://github.com/OptimalBits/bull/compare/v4.5.0...v4.5.1) (2022-02-06) | ||
@@ -2,0 +9,0 @@ |
@@ -25,3 +25,3 @@ /** | ||
await utils.isRedisReady(client); | ||
scripts = await (scripts || loadScripts(__dirname)); | ||
scripts = await (scripts || loadScripts()); | ||
@@ -34,4 +34,4 @@ return scripts.map(({ name, options }) => | ||
async function loadScripts(dir) { | ||
const scriptsDir = await fsAsync.readdir(dir); | ||
async function loadScripts() { | ||
const scriptsDir = await fsAsync.readdir(__dirname); | ||
const luaFiles = scriptsDir.filter(file => path.extname(file) === '.lua'); | ||
@@ -47,3 +47,3 @@ if (luaFiles.length === 0) { | ||
luaFiles.map(async file => { | ||
const lua = await fsAsync.readFile(path.join(dir, file)); | ||
const lua = await fsAsync.readFile(path.join(__dirname, file)); | ||
const longName = path.basename(file, '.lua'); | ||
@@ -50,0 +50,0 @@ |
{ | ||
"name": "bull", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "Job manager", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
183730