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

body-parser

Package Overview
Dependencies
Maintainers
2
Versions
76
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 2.0.0 to 2.0.1

5

HISTORY.md

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

12

lib/types/urlencoded.js

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

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