Socket
Socket
Sign inDemoInstall

nodulejs

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodulejs - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

7

nodule.js

@@ -62,6 +62,2 @@ glob = require('glob');

function registerRoutes(middlewares) {
var middlewareString = middlewares.reduce(function(prev, curr, index, array) {
return prev + ', middlewares[' + index + ']';
}, '');
var sortedRouteKeys = _.sortBy(_.keys(routes), function(num){ return 1*num; });

@@ -74,4 +70,3 @@ _.each(sortedRouteKeys, function(key) {

// TODO - there has to be a more elegant way to do this than eval, app.get.apply does not work for some reason
eval('app[route.verb](route.path' + middlewareString + ')');
app[route.verb].apply(app, [route.path].concat(middlewares));
});

@@ -78,0 +73,0 @@ });

2

package.json
{
"name": "nodulejs",
"version": "1.0.5",
"version": "1.0.6",
"description": "Utility for discovering and initializing node/express 'nodules'",

@@ -5,0 +5,0 @@ "main": "nodule.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