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

koa2-swagger-ui

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa2-swagger-ui - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

10

dist/index.js

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

if (config.swaggerVersion === undefined) {
const pkg = read_pkg_up_1.sync({ cwd: __dirname });
const pkg = (0, read_pkg_up_1.sync)({ cwd: __dirname });
if (pkg === undefined) {

@@ -55,5 +55,5 @@ throw new Error('Package not found');

const extFavicon = config.favicon;
const faviconPath = path_1.join(__dirname, defaultOptions.favicon);
const faviconPath = (0, path_1.join)(__dirname, defaultOptions.favicon);
// Setup default options
const options = lodash_1.defaultsDeep(config, defaultOptions);
const options = (0, lodash_1.defaultsDeep)(config, defaultOptions);
const specPrefixRegex = new RegExp(`${options.specPrefix}[/]*$`, 'i');

@@ -67,3 +67,3 @@ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions

});
const index = Handlebars.compile(fs_1.readFileSync(path_1.join(__dirname, './index.hbs'), 'utf-8'));
const index = Handlebars.compile((0, fs_1.readFileSync)((0, path_1.join)(__dirname, './index.hbs'), 'utf-8'));
// eslint-disable-next-line func-names

@@ -82,3 +82,3 @@ return function koaSwaggerUi(ctx, next) {

ctx.type = 'image/png';
ctx.body = fs_1.createReadStream(faviconPath);
ctx.body = (0, fs_1.createReadStream)(faviconPath);
return true;

@@ -85,0 +85,0 @@ }

{
"name": "koa2-swagger-ui",
"version": "5.2.0",
"version": "5.2.1",
"description": "Swagger UI middleware for koa",

@@ -22,3 +22,3 @@ "main": "dist/index.js",

"dependencies": {
"@types/koa": "^2.13.3",
"@types/koa": "^2.13.4",
"handlebars": "^4.7.7",

@@ -29,18 +29,18 @@ "lodash": "^4.17.21",

"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "7.14.5",
"@babel/preset-typescript": "7.14.5",
"@ctrl/eslint-config": "2.0.8",
"@jest/globals": "27.0.5",
"@types/koa-router": "7.4.2",
"@types/lodash": "4.14.170",
"@types/node": "15.12.4",
"@babel/plugin-transform-modules-commonjs": "7.15.4",
"@babel/preset-typescript": "7.15.0",
"@ctrl/eslint-config": "2.1.1",
"@jest/globals": "27.2.4",
"@types/koa-router": "7.4.4",
"@types/lodash": "4.14.175",
"@types/node": "16.10.2",
"@types/supertest": "2.0.11",
"del-cli": "4.0.0",
"jest": "27.0.5",
"koa": "2.13.1",
"koa-router": "10.0.0",
"supertest": "6.1.3",
"swagger-ui-dist": "3.51.0",
"ts-node": "10.0.0",
"typescript": "4.3.4"
"del-cli": "4.0.1",
"jest": "27.2.4",
"koa": "2.13.3",
"koa-router": "10.1.1",
"supertest": "6.1.6",
"swagger-ui-dist": "3.52.3",
"ts-node": "10.2.1",
"typescript": "4.4.3"
},

@@ -47,0 +47,0 @@ "release": {

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