Comparing version 2.3.0 to 2.3.1
@@ -0,1 +1,9 @@ | ||
2.3.1 / 2017-09-07 | ||
================== | ||
* deps: bytes@3.0.0 | ||
* deps: http-errors@1.6.2 | ||
- deps: depd@1.1.1 | ||
* perf: skip buffer decoding on overage chunk | ||
2.3.0 / 2017-08-04 | ||
@@ -2,0 +10,0 @@ ================== |
10
index.js
@@ -245,8 +245,2 @@ /*! | ||
if (decoder) { | ||
buffer += decoder.write(chunk) | ||
} else { | ||
buffer.push(chunk) | ||
} | ||
if (limit !== null && received > limit) { | ||
@@ -258,2 +252,6 @@ done(createError(413, 'request entity too large', { | ||
})) | ||
} else if (decoder) { | ||
buffer += decoder.write(chunk) | ||
} else { | ||
buffer.push(chunk) | ||
} | ||
@@ -260,0 +258,0 @@ } |
{ | ||
"name": "raw-body", | ||
"description": "Get and validate the raw body of a readable stream.", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -13,4 +13,4 @@ "contributors": [ | ||
"dependencies": { | ||
"bytes": "2.5.0", | ||
"http-errors": "1.6.1", | ||
"bytes": "3.0.0", | ||
"http-errors": "1.6.2", | ||
"iconv-lite": "0.4.18", | ||
@@ -17,0 +17,0 @@ "unpipe": "1.0.0" |
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
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
21988
314
+ Addedbytes@3.0.0(transitive)
+ Addeddepd@1.1.1(transitive)
+ Addedhttp-errors@1.6.2(transitive)
- Removedbytes@2.5.0(transitive)
- Removeddepd@1.1.0(transitive)
- Removedhttp-errors@1.6.1(transitive)
Updatedbytes@3.0.0
Updatedhttp-errors@1.6.2