body-parser
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -0,1 +1,11 @@ | ||
1.9.1 / 2014-10-22 | ||
================== | ||
* deps: on-finished@~2.1.1 | ||
- Fix handling of pipelined requests | ||
* deps: qs@2.3.0 | ||
- Fix parsing of mixed implicit and explicit arrays | ||
* deps: type-is@~1.5.2 | ||
- deps: mime-types@~2.0.2 | ||
1.9.0 / 2014-09-24 | ||
@@ -48,3 +58,3 @@ ================== | ||
* change `urlencoded` extended array limit to 100 | ||
* respond with 415 when over `parameterLimit` in `urlencoded` | ||
* respond with 413 when over `parameterLimit` in `urlencoded` | ||
@@ -51,0 +61,0 @@ 1.6.7 / 2014-08-29 |
10
index.js
@@ -16,3 +16,13 @@ /*! | ||
/** | ||
* @typedef Parsers | ||
* @type {function} | ||
* @property {function} json | ||
* @property {function} raw | ||
* @property {function} text | ||
* @property {function} urlencoded | ||
*/ | ||
/** | ||
* Module exports. | ||
* @type {Parsers} | ||
*/ | ||
@@ -19,0 +29,0 @@ |
@@ -25,5 +25,13 @@ /*! | ||
* RegExp to match the first non-space in a string. | ||
* | ||
* Allowed whitespace is defined in RFC 7159: | ||
* | ||
* ws = *( | ||
* %x20 / ; Space | ||
* %x09 / ; Horizontal tab | ||
* %x0A / ; Line feed or New line | ||
* %x0D ) ; Carriage return | ||
*/ | ||
var firstcharRegExp = /^\s*(.)/ | ||
var firstcharRegExp = /^[\x20\x09\x0a\x0d]*(.)/ | ||
@@ -30,0 +38,0 @@ /** |
{ | ||
"name": "body-parser", | ||
"description": "Node.js body parsing middleware", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"contributors": [ | ||
@@ -16,12 +16,12 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"media-typer": "0.3.0", | ||
"on-finished": "2.1.0", | ||
"qs": "2.2.4", | ||
"on-finished": "~2.1.1", | ||
"qs": "2.3.0", | ||
"raw-body": "1.3.0", | ||
"type-is": "~1.5.1" | ||
"type-is": "~1.5.2" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.2", | ||
"mocha": "~1.21.4", | ||
"should": "~4.0.4", | ||
"supertest": "~0.13.0" | ||
"mocha": "~2.0.0", | ||
"should": "~4.1.0", | ||
"supertest": "~0.14.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "files": [ |
@@ -100,3 +100,3 @@ # body-parser | ||
The `parameterLimit` argument controls the maximum number of parameters that are allowed in the urlencoded data. If a request contains more parameters than this value, a 415 will be returned to the client. | ||
The `parameterLimit` argument controls the maximum number of parameters that are allowed in the urlencoded data. If a request contains more parameters than this value, a 413 will be returned to the client. | ||
@@ -103,0 +103,0 @@ The `type` argument is passed directly to the [type-is](https://www.npmjs.org/package/type-is#readme) library. This can be an extension name (like `urlencoded`), a mime type (like `application/x-www-form-urlencoded`), or a mime time with a wildcard (like `*/x-www-form-urlencoded`). |
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
29995
570
+ Addedee-first@1.1.0(transitive)
+ Addedon-finished@2.1.1(transitive)
+ Addedqs@2.3.0(transitive)
- Removedee-first@1.0.5(transitive)
- Removedon-finished@2.1.0(transitive)
- Removedqs@2.2.4(transitive)
Updatedon-finished@~2.1.1
Updatedqs@2.3.0
Updatedtype-is@~1.5.2