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

supercrawler

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supercrawler - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

3

lib/Crawler.js

@@ -313,3 +313,4 @@ var Crawler,

encoding: null,
followRedirect: Boolean(followRedirect)
followRedirect: Boolean(followRedirect),
gzip: true
}).catch(function (err) {

@@ -316,0 +317,0 @@ err = new error.RequestError("A request error occured. " + err.message);

{
"name": "supercrawler",
"description": "A web crawler. Supercrawler automatically crawls websites. Define custom handlers to parse content. Obeys robots.txt, rate limits and concurrency limits.",
"version": "0.10.0",
"version": "0.10.1",
"homepage": "https://github.com/brendonboshell/supercrawler",

@@ -6,0 +6,0 @@ "author": "Brendon Boshell <brendonboshell@gmail.com>",

@@ -312,2 +312,7 @@ # Node.js Web Crawler

### 0.10.1
* [Fixed] Request sends `Accept-Encoding: gzip, deflate` header, so the
responses arrive compressed (saving data transfer).
### 0.10.0

@@ -314,0 +319,0 @@

@@ -499,2 +499,18 @@ var proxyquire = require('proxyquire'),

});
it("asks for a gzipped response", function (done) {
var crawler = new Crawler({
interval: 10
});
crawler.start();
setTimeout(function () {
crawler.stop();
sinon.assert.calledWith(requestSpy, sinon.match({
gzip: true
}));
done();
}, 100);
});
});

@@ -501,0 +517,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