Skip to content

Commit

Permalink
feat: provide queue constructors explicitly
Browse files Browse the repository at this point in the history
This is required for v3.0.0.
  • Loading branch information
Eli Skeggs committed Aug 4, 2020
1 parent c9b4d44 commit 68c5267
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ try {
}
}

Arena(config);
let Bull, Bee;

Arena({
...config,
get Bull() {
return Bull || (Bull = require('bull'));
},
get Bee() {
return Bee || (Bee = require('bee-queue'));
},
});

0 comments on commit 68c5267

Please sign in to comment.