hapi-route-manager
Advanced tools
Comparing version
@@ -57,3 +57,3 @@ var walk = require('walk'), | ||
// $lab:coverage:off$ | ||
console.log(e); | ||
next(e); | ||
// $lab:coverage:on$ | ||
@@ -81,3 +81,3 @@ | ||
routeObj.filename = path.resolve(filename); | ||
routeObj.path = path.join(route, routeObj.route || '') | ||
routeObj.path = path.join(route, routeObj.path || '') | ||
}); | ||
@@ -88,3 +88,3 @@ | ||
// $lab:coverage:off$ | ||
console.log(e); | ||
next(e); | ||
// $lab:coverage:on$ | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "hapi-route-manager", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "(Under Development) Yet another route manager for versioned HAPI REST APIs", | ||
@@ -10,3 +10,4 @@ "main": "index.js", | ||
"author": "Matthew Apperson", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"repository": "http://github.com/appersonlabs/hapi-route-manager", | ||
"dependencies": { | ||
@@ -18,3 +19,2 @@ "boom": "^3.1.2", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"code": "^2.1.1", | ||
@@ -24,5 +24,4 @@ "eslint": "^2.4.0", | ||
"joi": "^8.0.5", | ||
"lab": "^10.3.0", | ||
"mocha": "^2.4.5" | ||
"lab": "^10.3.0" | ||
} | ||
} |
@@ -64,1 +64,2 @@ # Hapi Route Manager | ||
- Add an option for the version to be used in a version header vs URL path | ||
- Document the rest of the features :) |
var ListApps = { | ||
method: 'POST', | ||
route: '/build',// URL MUST include the URL of the orig route. AKA you can add but cant take away | ||
path: '/build',// URL MUST include the URL of the orig route. AKA you can add but cant take away | ||
handler: function(req, reply) { | ||
@@ -5,0 +5,0 @@ reply({success: true}); |
var ListApps = { | ||
method: 'POST', | ||
route: '/build', | ||
path: '/build', | ||
handler: function(req, reply) { | ||
@@ -5,0 +5,0 @@ reply({success: true}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
9875
0.47%5
-28.57%65
1.56%1
-66.67%