Comparing version 5.3.1 to 5.3.2
@@ -1,2 +0,3 @@ | ||
import { JobJson, SandboxedJob } from '../interfaces'; | ||
import { SandboxedJob } from '../interfaces'; | ||
import { JobJsonSandbox } from '../types'; | ||
declare enum ChildStatus { | ||
@@ -22,3 +23,3 @@ Idle = 0, | ||
init(processorFile: string): Promise<void>; | ||
start(jobJson: JobJson, token?: string): Promise<void>; | ||
start(jobJson: JobJsonSandbox, token?: string): Promise<void>; | ||
stop(): Promise<void>; | ||
@@ -35,4 +36,4 @@ waitForCurrentJobAndExit(): Promise<void>; | ||
*/ | ||
protected wrapJob(job: JobJson, send: (msg: any) => Promise<void>): SandboxedJob; | ||
protected wrapJob(job: JobJsonSandbox, send: (msg: any) => Promise<void>): SandboxedJob; | ||
} | ||
export {}; |
@@ -1,7 +0,6 @@ | ||
import { JobsOptions } from '../types'; | ||
import { JobJson } from './job-json'; | ||
import { JobJsonSandbox, JobsOptions } from '../types'; | ||
/** | ||
* @see {@link https://docs.bullmq.io/guide/workers/sandboxed-processors} | ||
*/ | ||
export interface SandboxedJob<T = any, R = any> extends Omit<JobJson, 'data' | 'opts' | 'returnValue'> { | ||
export interface SandboxedJob<T = any, R = any> extends Omit<JobJsonSandbox, 'data' | 'opts' | 'returnValue'> { | ||
data: T; | ||
@@ -8,0 +7,0 @@ opts: JobsOptions; |
{ | ||
"name": "bullmq", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"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
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
1508154