body-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,6 @@ | ||
2.0.1 / 2024-09-10 | ||
========================= | ||
* Restore expected behavior `extended` to `false` | ||
2.0.0 / 2024-09-10 | ||
@@ -2,0 +7,0 @@ ========================= |
@@ -55,6 +55,2 @@ /*! | ||
var depth = typeof opts.depth !== 'number' | ||
? Number(opts.depth || 32) | ||
: opts.depth | ||
var defaultCharset = opts.defaultCharset || 'utf-8' | ||
@@ -125,4 +121,3 @@ if (defaultCharset !== 'utf-8' && defaultCharset !== 'iso-8859-1') { | ||
charsetSentinel: charsetSentinel, | ||
interpretNumericEntities: interpretNumericEntities, | ||
depth: depth | ||
interpretNumericEntities: interpretNumericEntities | ||
}) | ||
@@ -144,7 +139,4 @@ } | ||
var interpretNumericEntities = options.interpretNumericEntities | ||
var depth = extended ? (options.depth !== undefined ? options.depth : 32) : 0 | ||
var depth = typeof options.depth !== 'number' | ||
? Number(options.depth || 32) | ||
: options.depth | ||
if (isNaN(parameterLimit) || parameterLimit < 1) { | ||
@@ -151,0 +143,0 @@ throw new TypeError('option parameterLimit must be a positive number') |
{ | ||
"name": "body-parser", | ||
"description": "Node.js body parsing middleware", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", |
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
62995
891