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

fetch

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch - npm Package Compare versions

Comparing version 0.2.9 to 0.3.0

7

lib/fetch.js

@@ -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 @@

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