Comparing version 0.2.9 to 0.3.0
@@ -9,3 +9,3 @@ var http = require("http"), | ||
CookieJar = require("./cookiejar").CookieJar, | ||
Iconv = require("iconv").Iconv; | ||
encodinglib = require("encoding"); | ||
@@ -417,6 +417,3 @@ /* | ||
if(!this.options.disableDecoding && !content_type.charset.match(/^utf-?8$/i)){ | ||
try{ | ||
convert = new Iconv(content_type.charset, "UTF-8//TRANSLIT//IGNORE"); | ||
buffer = convert.convert(buffer); | ||
}catch(E){} | ||
buffer = encodinglib.convert(buffer, "UTF-8", content_type.charset); | ||
} | ||
@@ -423,0 +420,0 @@ |
{ | ||
"name": "fetch", | ||
"description": "Fetch URL contents", | ||
"version": "0.2.9", | ||
"version": "0.3.0", | ||
"author": "Andris Reinman", | ||
@@ -22,3 +22,3 @@ "maintainers": [ | ||
"dependencies": { | ||
"iconv": "*" | ||
"encoding": "*" | ||
}, | ||
@@ -25,0 +25,0 @@ "engines": ["node >=0.5.10"], |
@@ -34,2 +34,5 @@ # fetch | ||
By default `iconv-lite` is used for charset conversion. If you want to use `node-iconv` module instead, | ||
add `"iconv": "*"` to your package.json file, it will be picked up by `fetch` automatically. | ||
## Streaming | ||
@@ -36,0 +39,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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
26009
178
558
+ Addedencoding@*
+ Addedencoding@0.1.13(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
- Removediconv@*
- Removediconv@3.0.1(transitive)