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

hpp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpp - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

lib/index.js

@@ -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

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