Socket
Socket
Sign inDemoInstall

bullmq

Package Overview
Dependencies
36
Maintainers
1
Versions
481
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.14.4 to 4.15.0

dist/cjs/classes/errors/delayed-error.js

3

dist/cjs/classes/child-processor.js

@@ -25,5 +25,6 @@ "use strict";

async init(processorFile) {
var _a;
let processor;
try {
processor = require(processorFile);
processor = await (_a = processorFile, Promise.resolve().then(() => require(_a)));
if (processor.default) {

@@ -30,0 +31,0 @@ // support es2015 module.

@@ -8,3 +8,3 @@ "use strict";

tslib_1.__exportStar(require("./child-processor"), exports);
tslib_1.__exportStar(require("./delayed-error"), exports);
tslib_1.__exportStar(require("./errors"), exports);
tslib_1.__exportStar(require("./flow-producer"), exports);

@@ -23,5 +23,3 @@ tslib_1.__exportStar(require("./job"), exports);

tslib_1.__exportStar(require("./scripts"), exports);
tslib_1.__exportStar(require("./unrecoverable-error"), exports);
tslib_1.__exportStar(require("./waiting-children-error"), exports);
tslib_1.__exportStar(require("./worker"), exports);
//# sourceMappingURL=index.js.map

@@ -10,3 +10,3 @@ "use strict";

const scripts_1 = require("./scripts");
const unrecoverable_error_1 = require("./unrecoverable-error");
const unrecoverable_error_1 = require("./errors/unrecoverable-error");
const logger = (0, util_1.debuglog)('bull');

@@ -13,0 +13,0 @@ const optsDecodeMap = {

@@ -17,7 +17,5 @@ "use strict";

const async_fifo_queue_1 = require("./async-fifo-queue");
const delayed_error_1 = require("./delayed-error");
const waiting_children_error_1 = require("./waiting-children-error");
const errors_1 = require("./errors");
// 10 seconds is the maximum time a BRPOPLPUSH can block.
const maximumBlockTimeout = 10;
const RATE_LIMIT_ERROR = 'bullmq:rateLimitExceeded';
/**

@@ -32,3 +30,3 @@ *

static RateLimitError() {
return new Error(RATE_LIMIT_ERROR);
return new errors_1.RateLimitError();
}

@@ -364,9 +362,9 @@ constructor(name, processor, opts = {}, Connection) {

try {
if (err.message == RATE_LIMIT_ERROR) {
if (err.message == errors_1.RATE_LIMIT_ERROR) {
this.limitUntil = await this.moveLimitedBackToWait(job, token);
return;
}
if (err instanceof delayed_error_1.DelayedError ||
if (err instanceof errors_1.DelayedError ||
err.message == 'DelayedError' ||
err instanceof waiting_children_error_1.WaitingChildrenError ||
err instanceof errors_1.WaitingChildrenError ||
err.name == 'WaitingChildrenError') {

@@ -373,0 +371,0 @@ return;

@@ -24,3 +24,3 @@ import { ParentCommand } from '../enums';

try {
processor = require(processorFile);
processor = await import(processorFile);
if (processor.default) {

@@ -27,0 +27,0 @@ // support es2015 module.

@@ -5,3 +5,3 @@ export * from './async-fifo-queue';

export * from './child-processor';
export * from './delayed-error';
export * from './errors';
export * from './flow-producer';

@@ -18,4 +18,2 @@ export * from './job';

export * from './scripts';
export * from './unrecoverable-error';
export * from './waiting-children-error';
export * from './worker';

@@ -5,3 +5,3 @@ export * from './async-fifo-queue';

export * from './child-processor';
export * from './delayed-error';
export * from './errors';
export * from './flow-producer';

@@ -20,5 +20,3 @@ export * from './job';

export * from './scripts';
export * from './unrecoverable-error';
export * from './waiting-children-error';
export * from './worker';
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ import { __rest } from "tslib";

import { Scripts } from './scripts';
import { UnrecoverableError } from './unrecoverable-error';
import { UnrecoverableError } from './errors/unrecoverable-error';
const logger = debuglog('bull');

@@ -10,0 +10,0 @@ const optsDecodeMap = {

@@ -14,7 +14,5 @@ import * as fs from 'fs';

import { AsyncFifoQueue } from './async-fifo-queue';
import { DelayedError } from './delayed-error';
import { WaitingChildrenError } from './waiting-children-error';
import { DelayedError, RateLimitError, RATE_LIMIT_ERROR, WaitingChildrenError, } from './errors';
// 10 seconds is the maximum time a BRPOPLPUSH can block.
const maximumBlockTimeout = 10;
const RATE_LIMIT_ERROR = 'bullmq:rateLimitExceeded';
/**

@@ -29,3 +27,3 @@ *

static RateLimitError() {
return new Error(RATE_LIMIT_ERROR);
return new RateLimitError();
}

@@ -32,0 +30,0 @@ constructor(name, processor, opts = {}, Connection) {

{
"name": "bullmq",
"version": "4.14.4",
"version": "4.15.0",
"description": "Queue for messages and jobs based on Redis",

@@ -5,0 +5,0 @@ "homepage": "https://bullmq.io/",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc