@bull-board/api
Advanced tools
Comparing version 6.4.0 to 6.4.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BullMQAdapter = void 0; | ||
const bullmq_1 = require("bullmq"); | ||
const statuses_1 = require("../constants/statuses"); | ||
@@ -9,5 +8,7 @@ const base_1 = require("./base"); | ||
constructor(queue, options = {}) { | ||
super('bullmq', options); | ||
var _a; | ||
const libName = 'bullmq'; | ||
super(libName, options); | ||
this.queue = queue; | ||
if (!(queue instanceof bullmq_1.Queue)) { | ||
if (!((_a = queue.metaValues) === null || _a === void 0 ? void 0 : _a.version).startsWith(libName)) { | ||
throw new Error(`You've used the BullMQ adapter with a non-BullMQ queue.`); | ||
@@ -14,0 +15,0 @@ } |
{ | ||
"name": "@bull-board/api", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "A Dashboard server API built on top of bull or bullmq.", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@bull-board/ui": "6.4.0" | ||
"@bull-board/ui": "6.4.1" | ||
}, | ||
@@ -45,0 +45,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
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
66601
1098