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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
1
8642
6
138