Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bull-board/api

Package Overview
Dependencies
Maintainers
1
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bull-board/api - npm Package Compare versions

Comparing version 4.8.0 to 4.9.0

5

dist/src/index.d.ts

@@ -0,6 +1,7 @@

import { BoardOptions, IServerAdapter } from '../typings/app';
import { BaseAdapter } from './queueAdapters/base';
import { IServerAdapter } from '../typings/app';
export declare function createBullBoard({ queues, serverAdapter, }: {
export declare function createBullBoard({ queues, serverAdapter, options, }: {
queues: ReadonlyArray<BaseAdapter>;
serverAdapter: IServerAdapter;
options?: BoardOptions;
}): {

@@ -7,0 +8,0 @@ setQueues: (newBullQueues: readonly BaseAdapter[]) => void;

7

dist/src/index.js

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

exports.createBullBoard = void 0;
const path_1 = __importDefault(require("path"));
const error_1 = require("./handlers/error");
const queuesApi_1 = require("./queuesApi");
const path_1 = __importDefault(require("path"));
const routes_1 = require("./routes");
const error_1 = require("./handlers/error");
function createBullBoard({ queues, serverAdapter, }) {
function createBullBoard({ queues, serverAdapter, options = { uiConfig: {} }, }) {
const { bullBoardQueues, setQueues, replaceQueues, addQueue, removeQueue } = (0, queuesApi_1.getQueuesApi)(queues);

@@ -19,2 +19,3 @@ const uiBasePath = path_1.default.dirname(eval(`require.resolve('@bull-board/ui/package.json')`));

.setStaticPath('/static', path_1.default.join(uiBasePath, 'dist/static'))
.setUIConfig(options.uiConfig)
.setEntryRoute(routes_1.appRoutes.entryPoint)

@@ -21,0 +22,0 @@ .setErrorHandler(error_1.errorHandler)

import { RedisInfo } from 'redis-info';
import { STATUSES } from '../src/constants/statuses';
import { BaseAdapter } from '../src/queueAdapters/base';
import { STATUSES } from '../src/constants/statuses';
export type JobCleanStatus = 'completed' | 'wait' | 'active' | 'delayed' | 'failed';

@@ -118,2 +118,3 @@ export type Status = keyof typeof STATUSES;

setApiRoutes(routes: AppControllerRoute[]): IServerAdapter;
setUIConfig(config: UIConfig): IServerAdapter;
}

@@ -128,1 +129,12 @@ export interface Pagination {

export type FormatterField = 'data' | 'returnValue' | 'name';
export type BoardOptions = {
uiConfig: UIConfig;
};
export type UIConfig = Partial<{
boardTitle: string;
boardLogo: {
path: string;
width?: number | string;
height?: number | string;
};
}>;
{
"name": "@bull-board/api",
"version": "4.8.0",
"version": "4.9.0",
"description": "Core server APIs of bull-board",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc