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

body-parser

Package Overview
Dependencies
Maintainers
6
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 1.1.0 to 1.1.1

5

HISTORY.md

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

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