From dfe686e524345145bd6286de2148b87d83b575d4 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Mon, 1 Jun 2020 09:10:52 +1000 Subject: [PATCH] Build v5.10.3 --- src/drivers/npm/driver.js | 6 +++--- src/drivers/npm/package.json | 2 +- src/drivers/webextension/js/driver.js | 5 ++++- src/drivers/webextension/manifest.json | 2 +- src/wappalyzer.js | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 9c72fa637..d6958a696 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -114,16 +114,16 @@ function processJs(window, patterns) { function processHtml(html, maxCols, maxRows) { if (maxCols || maxRows) { - const batchs = [] + const batches = [] const rows = html.length / maxCols for (let i = 0; i < rows; i += 1) { if (i < maxRows / 2 || i > rows - maxRows / 2) { - batchs.push(html.slice(i * maxCols, (i + 1) * maxCols)) + batches.push(html.slice(i * maxCols, (i + 1) * maxCols)) } } - html = batchs.join('\n') + html = batches.join('\n') } return html diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index 80723af8d..a9c0a503d 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com", - "version": "5.10.2", + "version": "5.10.3", "author": "Wappalyzer", "license": "MIT", "repository": { diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index ee1d60e0e..9742f8906 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -363,7 +363,10 @@ wappalyzer.driver.ping = async ( userAgent() === 'chrome' || (await getOption('termsAccepted', false)) if (tracking && termsAccepted) { - if (Object.keys(hostnameCache.hostnames).length) { + if ( + hostnameCache.hostnames && + Object.keys(hostnameCache.hostnames).length + ) { post('https://api.wappalyzer.com/ping/v1/', hostnameCache.hostnames) } diff --git a/src/drivers/webextension/manifest.json b/src/drivers/webextension/manifest.json index 935565000..e034825ac 100644 --- a/src/drivers/webextension/manifest.json +++ b/src/drivers/webextension/manifest.json @@ -4,7 +4,7 @@ "author": "Wappalyzer", "homepage_url": "https://www.wappalyzer.com", "description": "Identify web technologies", - "version": "5.10.2", + "version": "5.10.3", "default_locale": "en", "manifest_version": 2, "icons": { diff --git a/src/wappalyzer.js b/src/wappalyzer.js index b562512c0..043975167 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -364,7 +364,7 @@ class Wappalyzer { } if (this.adCache.length > 50) { - this.driver.ping({}, this.adCache) + this.driver.ping(undefined, this.adCache) this.adCache = [] }