Fix recursion in NPM driver

main
Elbert Alias 5 years ago
parent b57b3e7e70
commit 839fed7bac

@ -179,7 +179,7 @@ class Driver {
this.analyzedPageUrls[pageUrl.href] this.analyzedPageUrls[pageUrl.href]
|| this.analyzedPageUrls.length >= this.options.maxUrls || this.analyzedPageUrls.length >= this.options.maxUrls
) { ) {
return; return [];
} }
this.analyzedPageUrls[pageUrl.href] = { this.analyzedPageUrls[pageUrl.href] = {
@ -195,7 +195,7 @@ class Driver {
await sleep(this.options.delay * index); await sleep(this.options.delay * index);
try { try {
await this.visit(pageUrl, timerScope); return this.visit(pageUrl, timerScope);
} catch (error) { } catch (error) {
throw new Error(error.message); throw new Error(error.message);
} }

@ -2,7 +2,7 @@
"name": "wappalyzer", "name": "wappalyzer",
"description": "Uncovers the technologies used on websites", "description": "Uncovers the technologies used on websites",
"homepage": "https://github.com/AliasIO/Wappalyzer", "homepage": "https://github.com/AliasIO/Wappalyzer",
"version": "5.9.4", "version": "5.9.5",
"author": "Elbert Alias", "author": "Elbert Alias",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

Loading…
Cancel
Save