swagger-tools
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -37,3 +37,3 @@ /* | ||
if (file.match(jsFileRegex)) { | ||
controller = require(path.join(dir, controllerName)); | ||
controller = require(path.resolve(path.join(dir, controllerName))); | ||
@@ -40,0 +40,0 @@ if (!_.isPlainObject(controller)) { |
{ | ||
"name": "swagger-tools", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Various tools for using and integrating with Swagger.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,3 +68,3 @@ The project provides various tools for integrating and interacting with Swagger. This project is in its infancy but | ||
app.use(swaggerMetadata(resourceListing, [petJson, storeJson, userJson])); | ||
app.use(swaggerRouter({useStubs: true, controllers: '/Users/jwhitlock/projects/awesome/api/controllers'})); | ||
app.use(swaggerRouter({useStubs: true, controllers: './controllers'})); | ||
app.use(swaggerValidator()); | ||
@@ -71,0 +71,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
81181