Comparing version 2.1.3 to 2.1.4
@@ -0,1 +1,8 @@ | ||
2.1.4 / 2015-09-27 | ||
================== | ||
* Fix masking critical errors from `iconv-lite` | ||
* deps: iconv-lite@0.4.12 | ||
- Fix CESU-8 decoding in Node.js 4.x | ||
2.1.3 / 2015-09-12 | ||
@@ -2,0 +9,0 @@ ================== |
11
index.js
@@ -27,2 +27,9 @@ /*! | ||
/** | ||
* Module variables. | ||
* @private | ||
*/ | ||
var iconvEncodingMessageRegExp = /^Encoding not recognized: / | ||
/** | ||
* Get the decoder for a given encoding. | ||
@@ -40,2 +47,6 @@ * | ||
} catch (e) { | ||
// error getting decoder | ||
if (!iconvEncodingMessageRegExp.test(e.message)) throw e | ||
// the encoding was not found | ||
throw createError(415, 'specified encoding unsupported', 'encoding.unsupported', { | ||
@@ -42,0 +53,0 @@ encoding: encoding |
{ | ||
"name": "raw-body", | ||
"description": "Get and validate the raw body of a readable stream.", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -14,8 +14,8 @@ "contributors": [ | ||
"bytes": "2.1.0", | ||
"iconv-lite": "0.4.11", | ||
"iconv-lite": "0.4.12", | ||
"unpipe": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
"bluebird": "2.10.0", | ||
"istanbul": "0.3.19", | ||
"bluebird": "2.10.1", | ||
"istanbul": "0.3.21", | ||
"mocha": "2.2.5", | ||
@@ -22,0 +22,0 @@ "readable-stream": "2.0.2", |
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
16488
263
+ Addediconv-lite@0.4.12(transitive)
- Removediconv-lite@0.4.11(transitive)
Updatediconv-lite@0.4.12