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

express-form

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-form - npm Package Compare versions

Comparing version 0.12.3 to 0.12.4

14

package.json

@@ -5,3 +5,3 @@ {

"description": "Form validation and data filtering for Express",
"version": "0.12.3",
"version": "0.12.4",
"homepage": "http://dandean.github.com/express-form",

@@ -24,5 +24,5 @@ "repository": {

"dependencies": {
"validator": "0.4.x",
"object-additions": ">= 0.5.0",
"async": "~0.7.0"
"async": "^0.9.0",
"object-additions": "^0.5.1",
"validator": "^2.1.0"
},

@@ -33,6 +33,6 @@ "peerDependencies": {

"devDependencies": {
"mocha": "~1.18.2",
"body-parser": "1.x",
"express": "4.x",
"body-parser": "1.x",
"request": "~2.34.0"
"mocha": "^2.0.1",
"request": "^2.48.0"
},

@@ -39,0 +39,0 @@ "main": "index",

@@ -10,3 +10,3 @@ var assert = require("assert"),

app = express();
http.createServer(app).listen(3000);

@@ -22,3 +22,4 @@

app.use(bodyParser());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

@@ -43,3 +44,3 @@ module.exports = {

);
request.post({

@@ -73,3 +74,3 @@ url: 'http://localhost:3000/user',

assert.equal(req.form.rad, "COOL"); // from body
// Check that originl values are still in place

@@ -79,7 +80,7 @@ assert.ok(typeof req.params.id, "string");

assert.equal(req.body.rad, "cool");
res.send(JSON.stringify(req.form));
}
);
request({

@@ -86,0 +87,0 @@ url: 'http://localhost:3000/user/5?stuff=things&id=overridden',

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