New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hmpo-form-controller

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hmpo-form-controller - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

2

lib/form.js

@@ -25,3 +25,3 @@ var util = require('util'),

this.router = require('express').Router();
this.router = require('express').Router({ mergeParams: true });
};

@@ -28,0 +28,0 @@

{
"name": "hmpo-form-controller",
"version": "0.2.2",
"version": "0.2.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -108,2 +108,18 @@ var Form = require('../../');

it('keeps url params from parent routers', function (done) {
req.method = 'GET';
req.url = '/test/123';
var router = require('express').Router();
form.use(function (req, res, next) {
try {
req.params.id.should.equal('123');
next();
} catch(e) {
done(e);
}
});
router.route('/test/:id').all(form.requestHandler());
router(req, res, done);
});
it('throws a 405 on unsupported methods', function (done) {

@@ -110,0 +126,0 @@ req.method = 'PUT';

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