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 2.0.0 to 2.0.1

1

examples/example.js

@@ -9,2 +9,3 @@ const Koa = require('koa');

/* istanbul ignore if */
if (!module.parent) {

@@ -11,0 +12,0 @@ app.listen(3000);

3

lib/index.js

@@ -30,3 +30,4 @@ const path = require('path');

return next();
} else if (ctx.path.indexOf(options.routePrefix) === 0) {
}
if (ctx.path.indexOf(options.routePrefix) === 0) {
const truePath = ctx.path.substring(options.routePrefix.length, ctx.path.length);

@@ -33,0 +34,0 @@ return send(ctx, truePath, { root: rootPath });

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

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -10,3 +10,3 @@ const lint = require('mocha-eslint');

request(app.listen())
.get('/docs/index.html')
.get('/docs')
.expect('Content-Type', /html/)

@@ -13,0 +13,0 @@ .expect(200)

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