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

hapi-route-manager

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-route-manager - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

.npmignore

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 @@ }

2

package.json
{
"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",

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