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

express-openapi-validator

Package Overview
Dependencies
Maintainers
1
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-openapi-validator - npm Package Compare versions

Comparing version 0.21.1 to 0.21.2

3

dist/framework/base.path.js

@@ -82,3 +82,4 @@ "use strict";

const pathIdx = startPathIdx + startSearchIdx;
return u.substring(pathIdx);
const path = u.substring(pathIdx);
return path[path.length - 1] === '/' ? path : path + '/';
}

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

@@ -34,3 +34,4 @@ "use strict";

const apiDoc = ctx.getApiDoc();
for (const bp of basePaths) {
for (const bpa of basePaths) {
const bp = bpa.replace(/\/$/, '');
for (const [path, methods] of Object.entries(apiDoc.paths)) {

@@ -45,2 +46,3 @@ for (const [method, schema] of Object.entries(methods)) {

const openApiRoute = `${bp}${path}`;
console.log('----', openApiRoute);
const expressRoute = `${openApiRoute}`

@@ -50,2 +52,3 @@ .split('/')

.join('/');
console.log('----', openApiRoute, expressRoute);
routes.push({

@@ -52,0 +55,0 @@ expressRoute,

{
"name": "express-openapi-validator",
"version": "0.21.1",
"version": "0.21.2",
"description": "",

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

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