Comparing version 0.2.0 to 0.2.1
@@ -137,3 +137,3 @@ 'use strict'; | ||
*/ | ||
return function hppMiddleware(req, res, next) { | ||
return function hpp(req, res, next) { | ||
@@ -140,0 +140,0 @@ if (options.checkQuery && req.query) { |
{ | ||
"name": "hpp", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Express middleware to protect against HTTP Parameter Pollution attacks", | ||
@@ -28,4 +28,4 @@ "keywords": [ | ||
"dependencies": { | ||
"lodash": "^3.9.1", | ||
"type-is": "^1.6.2" | ||
"lodash": "^4.7.0", | ||
"type-is": "^1.6.12" | ||
}, | ||
@@ -36,17 +36,18 @@ "engines": { | ||
"devDependencies": { | ||
"body-parser": "^1.12.4", | ||
"chai": "^2.3.0", | ||
"chalk": "^1.0.0", | ||
"express": "^4.12.4", | ||
"gulp": "^3.8.11", | ||
"body-parser": "^1.15.0", | ||
"chai": "^3.5.0", | ||
"chalk": "^1.1.3", | ||
"express": "^4.13.4", | ||
"gulp": "^3.9.1", | ||
"gulp-coveralls": "^0.1.4", | ||
"gulp-istanbul": "^0.9.0", | ||
"gulp-jshint": "^1.11.0", | ||
"gulp-mocha": "^2.1.0", | ||
"jshint-stylish": "^1.0.2", | ||
"gulp-istanbul": "^0.10.3", | ||
"gulp-jshint": "^2.0.0", | ||
"gulp-mocha": "^2.2.0", | ||
"jshint": "^2.9.1", | ||
"jshint-stylish": "^2.1.0", | ||
"present": "0.0.6", | ||
"request-promise": "^0.4.2", | ||
"rimraf": "^2.3.4", | ||
"run-sequence": "^1.1.0" | ||
"request-promise": "^2.0.1", | ||
"rimraf": "^2.5.2", | ||
"run-sequence": "^1.1.5" | ||
} | ||
} |
@@ -110,3 +110,3 @@ # HPP | ||
``` | ||
GET /search?package=HPP&package=Helmet&filter=nodejs&filter=iojs | ||
GET /search?package=Helmet&package=HPP&filter=nodejs&filter=iojs | ||
@@ -121,3 +121,3 @@ => | ||
queryPolluted: { | ||
package: [ 'HPP', 'Helmet' ] | ||
package: [ 'Helmet', 'HPP' ] | ||
} | ||
@@ -133,3 +133,3 @@ } | ||
A [performance test](test/spec/perf.js) that includes two HPP middlewares plus a whitelist simulates an already demanding use case. On my Mac Book Air it measures **0.005ms to process a single request**. | ||
A [performance test](test/spec/perf.js) that includes two HPP middlewares plus a whitelist simulates an already demanding use case. On my Mac Book Air it measures **0.02ms to process a single request**. | ||
@@ -152,2 +152,6 @@ ## Contributing | ||
- v0.2.1 (2016-04-03) | ||
- Added node v4 and v5 to CI build | ||
- Removed node v0.11 from CI build | ||
- Updated dependencies | ||
- v0.2.0 (2015-05-25) | ||
@@ -154,0 +158,0 @@ - Bumped version to 0.2 to properly follow semver since the whitelist was added in v0.1.2 |
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
12637
178
15
+ Addedlodash@4.17.21(transitive)
- Removedlodash@3.10.1(transitive)
Updatedlodash@^4.7.0
Updatedtype-is@^1.6.12