Build v5.10.3

main
Elbert Alias 5 years ago
parent eae4350627
commit dfe686e524

@ -114,16 +114,16 @@ function processJs(window, patterns) {
function processHtml(html, maxCols, maxRows) { function processHtml(html, maxCols, maxRows) {
if (maxCols || maxRows) { if (maxCols || maxRows) {
const batchs = [] const batches = []
const rows = html.length / maxCols const rows = html.length / maxCols
for (let i = 0; i < rows; i += 1) { for (let i = 0; i < rows; i += 1) {
if (i < maxRows / 2 || i > rows - maxRows / 2) { 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 return html

@ -13,7 +13,7 @@
"software" "software"
], ],
"homepage": "https://www.wappalyzer.com", "homepage": "https://www.wappalyzer.com",
"version": "5.10.2", "version": "5.10.3",
"author": "Wappalyzer", "author": "Wappalyzer",
"license": "MIT", "license": "MIT",
"repository": { "repository": {

@ -363,7 +363,10 @@ wappalyzer.driver.ping = async (
userAgent() === 'chrome' || (await getOption('termsAccepted', false)) userAgent() === 'chrome' || (await getOption('termsAccepted', false))
if (tracking && termsAccepted) { 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) post('https://api.wappalyzer.com/ping/v1/', hostnameCache.hostnames)
} }

@ -4,7 +4,7 @@
"author": "Wappalyzer", "author": "Wappalyzer",
"homepage_url": "https://www.wappalyzer.com", "homepage_url": "https://www.wappalyzer.com",
"description": "Identify web technologies", "description": "Identify web technologies",
"version": "5.10.2", "version": "5.10.3",
"default_locale": "en", "default_locale": "en",
"manifest_version": 2, "manifest_version": 2,
"icons": { "icons": {

@ -364,7 +364,7 @@ class Wappalyzer {
} }
if (this.adCache.length > 50) { if (this.adCache.length > 50) {
this.driver.ping({}, this.adCache) this.driver.ping(undefined, this.adCache)
this.adCache = [] this.adCache = []
} }

Loading…
Cancel
Save