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

controller

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

controller - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

lib/controller.js

@@ -59,4 +59,6 @@ var isRegExp = require('util').isRegExp;

}
app[route.method](path, middleware, action.handler);
var routeArgs = [path, action.handler];
if (middleware.length) routeArgs.splice(1, 0, middleware);
app[route.method].apply(app, routeArgs);
});
}
{
"name": "controller",
"version": "0.2.1",
"version": "0.2.2",
"description": "an action controller for express",

@@ -5,0 +5,0 @@ "main": "lib/controller.js",

@@ -62,3 +62,3 @@ var assert = require('assert');

var didCall = false;
anapp.on('get', function(route, mw, theAction) {
anapp.on('get', function(route, theAction) {
assert(fn === theAction);

@@ -65,0 +65,0 @@ assert(route === '/action');

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