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 2.0.1 to 2.0.2

6

index.js

@@ -50,3 +50,7 @@ var walk = require('walk'),

try {
var route = `${root.replace(options.directory, '')}/${fileStats.name.replace('.route.js', '')}`;
var endpointNameFromFile = fileStats.name === 'index.route.js'
? ''
: `/${fileStats.name.replace('.route.js', '')}`;
var route = `${root.replace(options.directory, '')}${endpointNameFromFile}`;
var apiVersion = route.split('/')[1].match(versionRegex)[0];

@@ -53,0 +57,0 @@ var cleanRoute = route.replace('/' + apiVersion + '/', ''); // aka just no version info

2

package.json
{
"name": "hapi-route-manager",
"version": "2.0.1",
"version": "2.0.2",
"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