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

raw-body

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raw-body - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

11

index.js

@@ -28,5 +28,4 @@ var StringDecoder = require('string_decoder').StringDecoder

if (limit !== null && length !== null && length > limit) {
if (typeof stream.pause === 'function') {
if (typeof stream.pause === 'function')
stream.pause()
}

@@ -46,5 +45,4 @@ process.nextTick(function () {

if (state && state.encoding !== null) {
if (typeof stream.pause === 'function') {
if (typeof stream.pause === 'function')
stream.pause()
}

@@ -102,8 +100,7 @@ process.nextTick(function () {

if (err) {
if (typeof stream.pause === 'function') {
if (typeof stream.pause === 'function')
stream.pause()
}
done(err)
} else if (length !== null && received !== length) {
err = makeError('request size did not match content length',
err = makeError('request size did not match content length',
'request.size.invalid')

@@ -110,0 +107,0 @@ err.status = err.statusCode = 400

{
"name": "raw-body",
"description": "Get and validate the raw body of a readable stream.",
"version": "1.1.0",
"version": "1.1.1",
"author": {

@@ -34,3 +34,6 @@ "name": "Jonathan Ong",

"test": "NODE=gnode make test && node ./test/acceptance.js"
},
"engines": {
"node": ">= 0.8.0"
}
}

Sorry, the diff of this file is not supported yet

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