Socket
Socket
Sign inDemoInstall

@qualweb/crawler

Package Overview
Dependencies
114
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

8

dist/index.js

@@ -24,2 +24,3 @@ 'use strict';

}
let isRunning = true;
let interval = setInterval(() => {

@@ -35,7 +36,8 @@ const frame = this.frames[this.i = ++this.i % this.frames.length];

const frame = this.frames[this.i = ++this.i % this.frames.length];
log_update_1.default('Crawled ' + this.crawledURLS++ + ' pages ' + `${frame}`);
if (isRunning) {
log_update_1.default('Crawled ' + this.crawledURLS++ + ' pages ' + `${frame}`);
}
}
});
this.crawler.on('complete', () => {
clearInterval(interval);
this.stop();

@@ -47,2 +49,4 @@ resolve();

if (event && event.ctrlKey && event.keycode === 45) {
isRunning = false;
clearInterval(interval);
this.crawler.emit('complete');

@@ -49,0 +53,0 @@ iohook_1.default.stop();

{
"name": "@qualweb/crawler",
"version": "0.2.0",
"version": "0.2.1",
"description": "Webpage crawler for qualweb",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -30,2 +30,4 @@ 'use strict';

let isRunning = true;
let interval = setInterval(() => {

@@ -42,7 +44,10 @@ const frame = this.frames[this.i = ++this.i % this.frames.length];

const frame = this.frames[this.i = ++this.i % this.frames.length];
logUpdate('Crawled ' + this.crawledURLS++ + ' pages ' + `${frame}`);
if (isRunning) {
logUpdate('Crawled ' + this.crawledURLS++ + ' pages ' + `${frame}`);
}
}
});
this.crawler.on('complete', () => {
clearInterval(interval);
this.stop();

@@ -55,3 +60,4 @@ resolve();

if (event && event.ctrlKey && event.keycode === 45) {
isRunning = false;
clearInterval(interval);
this.crawler.emit('complete');

@@ -58,0 +64,0 @@ ioHook.stop();

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc