hapi-route-manager
Advanced tools
Comparing version 1.0.6 to 1.1.0
15
index.js
@@ -22,3 +22,3 @@ var walk = require("walk"), | ||
cleanRoute = route.replace("/" + apiVersion + "/", ""), | ||
nickname = ""; | ||
nickname; | ||
} catch(e) { | ||
@@ -38,4 +38,4 @@ console.log(e); | ||
} else { | ||
nickname = routeObject.config.nickname; | ||
delete routeObject.config.nickname; | ||
nickname = routeObject.config.clientName; | ||
delete routeObject.config.clientName; | ||
} | ||
@@ -49,7 +49,10 @@ | ||
routeObject.config.plugins = routeObject.config.plugins || {}; | ||
routeObject.config.plugins["hapi-swagger"] = {}; | ||
routeObject.config.plugins["hapi-swagger"].nickname = nickname; | ||
routeObject.config.plugins["hapi-swaggered"] = { | ||
custom: {} | ||
}; | ||
if(nickname) { | ||
routeObject.config.plugins["hapi-swaggered"].custom['x-swagger-js-method-name'] = nickname; | ||
} | ||
routeObject.apiVersion = apiVersion; | ||
routeObject.filename = path.resolve(filename); | ||
versions[route].push(routeObject); | ||
@@ -56,0 +59,0 @@ } |
{ | ||
"name": "hapi-route-manager", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "(Under Development) Yet another route manager for versioned HAPI REST APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
4060
3
80
1