express-form
Advanced tools
Comparing version 0.12.3 to 0.12.4
@@ -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', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79243
1758
+ Addedasync@0.9.2(transitive)
+ Addedvalidator@2.1.0(transitive)
- Removedasync@0.7.0(transitive)
- Removedvalidator@0.4.28(transitive)
Updatedasync@^0.9.0
Updatedobject-additions@^0.5.1
Updatedvalidator@^2.1.0