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

swaggerize-routes

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swaggerize-routes - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

12

lib/buildroutes.js

@@ -152,6 +152,12 @@ 'use strict';

var handler;
try {
//If the pathname is already a resolved function, return it.
//In the case of x-handler and x-authorize, users can define
//external handler/authorize modules and functions OR override
//existing x-authorize functions.
if (thing.isFunction(pathname)) {
return pathname;
}
pathname = path.resolve(basedir, pathname);
try {
pathname = path.resolve(basedir, pathname);
handler = require(pathname);

@@ -158,0 +164,0 @@

@@ -23,4 +23,7 @@ 'use strict';

consumes: {
type: 'string',
pattern: /multipart\/form-data|application\/x-www-form-urlencoded/,
type: 'array',
items: {
type: 'string',
pattern: /multipart\/form-data|application\/x-www-form-urlencoded/,
},
required: true

@@ -27,0 +30,0 @@ },

{
"name": "swaggerize-routes",
"version": "1.0.6",
"version": "1.0.7",
"author": "Trevor Livingston <trlivingston@paypal.com>",

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

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