From 839fed7bacddc65b703e74a81c2face89d98eb76 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Wed, 8 Jan 2020 11:57:14 +1100 Subject: [PATCH] Fix recursion in NPM driver --- src/drivers/npm/driver.js | 4 ++-- src/drivers/npm/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 29b82de68..01faaf5d1 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -179,7 +179,7 @@ class Driver { this.analyzedPageUrls[pageUrl.href] || this.analyzedPageUrls.length >= this.options.maxUrls ) { - return; + return []; } this.analyzedPageUrls[pageUrl.href] = { @@ -195,7 +195,7 @@ class Driver { await sleep(this.options.delay * index); try { - await this.visit(pageUrl, timerScope); + return this.visit(pageUrl, timerScope); } catch (error) { throw new Error(error.message); } diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index 371ee27da..0a87afa83 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -2,7 +2,7 @@ "name": "wappalyzer", "description": "Uncovers the technologies used on websites", "homepage": "https://github.com/AliasIO/Wappalyzer", - "version": "5.9.4", + "version": "5.9.5", "author": "Elbert Alias", "license": "GPL-3.0", "repository": {