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