From bf47697939efd2157dca098195cea7b0e49fbc34 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Sat, 17 Mar 2018 12:19:32 +1100 Subject: [PATCH] Build v5.4.12 --- src/drivers/npm/driver.js | 14 +++++++------- src/drivers/npm/package.json | 2 +- src/drivers/webextension/manifest.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 757f07b8f..58681d910 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -138,15 +138,15 @@ class Driver { }) .then(() => { const links = Array.prototype.reduce.call( - browser.document.getElementsByTagName('a'), - (acc, link) => { - if (link.protocol.match(/https?:/) || link.hostname === this.origPageUrl.hostname || extensions.test(link.pathname)) { + browser.document.getElementsByTagName('a'), (results, link) => { + if ( link.protocol.match(/https?:/) || link.hostname === this.origPageUrl.hostname || extensions.test(link.pathname) ) { link.hash = ''; - acc.push(url.parse(link.href)); + + results.push(url.parse(link.href)); } - return acc; - }, - [] + + return results; + }, [] ); return resolve(links); diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index 54c0badc5..fe2cef76b 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.4.11", + "version": "5.4.12", "author": "Elbert Alias", "license": "GPL-3.0", "repository": { diff --git a/src/drivers/webextension/manifest.json b/src/drivers/webextension/manifest.json index a873d8c60..252ac0d78 100644 --- a/src/drivers/webextension/manifest.json +++ b/src/drivers/webextension/manifest.json @@ -4,7 +4,7 @@ "author": "Elbert Alias", "homepage_url": "https://www.wappalyzer.com", "description": "Identify web technologies", - "version": "5.4.11", + "version": "5.4.12", "default_locale": "en", "manifest_version": 2, "icons": {