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.2 to 1.0.3

17

index.js

@@ -15,9 +15,14 @@ var walk = require("walk"),

if (fileStats.name.indexOf(".route.js") !== -1) {
var filename = root + "/" + fileStats.name,
route = root.replace(options.directory, ""),
routeObject = require(path.resolve(filename)),
apiVersion = route.split("/")[1],
cleanRoute = route.replace("/" + apiVersion + "/", ""),
nickname = "";
try {
var filename = root + "/" + fileStats.name,
route = root.replace(options.directory, ""),
routeObject = require(path.resolve(filename)),
apiVersion = route.split("/")[1],
cleanRoute = route.replace("/" + apiVersion + "/", ""),
nickname = "";
} catch(e) {
throw e;
}
console.log(filename);

@@ -24,0 +29,0 @@

{
"name": "hapi-route-manager",
"version": "1.0.2",
"version": "1.0.3",
"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