body-parser
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,6 @@ | ||
1.1.1 / 2014-05-11 | ||
================== | ||
* fix repeated limit parsing with every request | ||
1.1.0 / 2014-05-10 | ||
@@ -2,0 +7,0 @@ ================== |
11
index.js
var bytes = require('bytes'); | ||
var getBody = require('raw-body'); | ||
@@ -37,2 +38,5 @@ var typeis = require('type-is'); | ||
var limit = typeof options.limit !== 'number' | ||
? bytes(options.limit || '100kb') | ||
: options.limit; | ||
var strict = options.strict !== false; | ||
@@ -52,3 +56,3 @@ var type = options.type || 'json'; | ||
getBody(req, { | ||
limit: options.limit || '100kb', | ||
limit: limit, | ||
length: req.headers['content-length'], | ||
@@ -81,2 +85,5 @@ encoding: 'utf8' | ||
var limit = typeof options.limit !== 'number' | ||
? bytes(options.limit || '100kb') | ||
: options.limit; | ||
var type = options.type || 'urlencoded'; | ||
@@ -95,3 +102,3 @@ | ||
getBody(req, { | ||
limit: options.limit || '100kb', | ||
limit: limit, | ||
length: req.headers['content-length'], | ||
@@ -98,0 +105,0 @@ encoding: 'utf8' |
{ | ||
"name": "body-parser", | ||
"description": "Connect's body parsing middleware", | ||
"version": "1.1.0", | ||
"description": "Node.js body parsing middleware", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -11,5 +11,12 @@ "name": "Jonathan Ong", | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Douglas Christopher Wilson", | ||
"email": "doug@somethingdoug.com" | ||
} | ||
], | ||
"license": "MIT", | ||
"repository": "expressjs/body-parser", | ||
"dependencies": { | ||
"bytes": "1.0.0", | ||
"type-is": "1.1.0", | ||
@@ -16,0 +23,0 @@ "raw-body": "1.1.4", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7607
98
1
4
+ Addedbytes@1.0.0
+ Addedbytes@1.0.0(transitive)