🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

body-parser

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

body-parser - npm Package Compare versions

Comparing version
1.20.4
to
1.20.5
+6
-0
HISTORY.md

@@ -0,1 +1,7 @@

1.20.5 / 2026-04-24
===================
* refactor(json): simplify strict mode error string construction
* fix: extended urlencoded parsing of arrays with >100 elements (#716)
* deps: qs@~6.15.1
1.20.4 / 2025-12-01

@@ -2,0 +8,0 @@ ===================

+1
-5

@@ -161,7 +161,3 @@ /*!

if (index !== -1) {
partial = str.substring(0, index) + JSON_SYNTAX_CHAR
for (var i = index + 1; i < str.length; i++) {
partial += JSON_SYNTAX_CHAR
}
partial = str.substring(0, index) + new Array(str.length - index + 1).join(JSON_SYNTAX_CHAR)
}

@@ -168,0 +164,0 @@

@@ -209,12 +209,11 @@ /*!

var count = 0
var index = 0
var index = -1
while ((index = body.indexOf('&', index)) !== -1) {
do {
count++
index++
if (count === limit) {
if (count > limit) {
return undefined
}
}
index = body.indexOf('&', index + 1)
} while (index !== -1)

@@ -221,0 +220,0 @@ return count

{
"name": "body-parser",
"description": "Node.js body parsing middleware",
"version": "1.20.4",
"version": "1.20.5",
"contributors": [

@@ -20,3 +20,3 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>",

"on-finished": "~2.4.1",
"qs": "~6.14.0",
"qs": "~6.15.1",
"raw-body": "~2.5.3",

@@ -23,0 +23,0 @@ "type-is": "~1.6.18",