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

@bull-board/koa

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bull-board/koa - npm Package Compare versions

Comparing version 5.3.1 to 5.4.0

12

dist/KoaAdapter.js

@@ -90,3 +90,5 @@ "use strict";

app.use((0, koa_views_1.default)(this.viewPath, {
extension: path_1.default.extname(this.entryRoute.handler().name).substring(1),
extension: path_1.default
.extname(this.entryRoute.handler({ basePath: this.basePath, uiConfig: this.uiConfig }).name)
.substring(1),
}));

@@ -97,8 +99,4 @@ const { method, route, handler } = this.entryRoute;

router[method](path, async (ctx) => {
const { name } = handler();
const basePath = this.basePath.endsWith('/') ? this.basePath : `${this.basePath}/`;
const uiConfig = JSON.stringify(this.uiConfig)
.replace(/</g, '\\u003c')
.replace(/>/g, '\\u003e');
await ctx.render(name, { basePath, uiConfig });
const { name, params } = handler({ basePath: this.basePath, uiConfig: this.uiConfig });
await ctx.render(name, params);
});

@@ -105,0 +103,0 @@ });

{
"name": "@bull-board/koa",
"version": "5.3.1",
"version": "5.4.0",
"description": "A Koa.js server adapter for Bull-Board dashboard.",

@@ -31,4 +31,4 @@ "keywords": [

"dependencies": {
"@bull-board/api": "5.3.1",
"@bull-board/ui": "5.3.1",
"@bull-board/api": "5.4.0",
"@bull-board/ui": "5.4.0",
"ejs": "^3.1.7",

@@ -35,0 +35,0 @@ "koa": "^2.13.1",

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