From 110765041aff66382cb4cad54ae0f6a5f22dbff1 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Wed, 3 Feb 2021 09:56:23 +1100 Subject: [PATCH] Add Uscreen SVG icon --- src/drivers/npm/driver.js | 9 --------- src/drivers/npm/package.json | 4 ++-- src/drivers/webextension/images/icons/Uscreen.svg | 5 +++++ src/drivers/webextension/js/driver.js | 7 +------ src/package.json | 4 ++-- 5 files changed, 10 insertions(+), 19 deletions(-) create mode 100644 src/drivers/webextension/images/icons/Uscreen.svg diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 52f40d865..c94c2c626 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -175,7 +175,6 @@ class Driver { } }) } catch (error) { - console.log('a', error) throw new Error(error.toString()) } } @@ -191,7 +190,6 @@ class Driver { this.log('Browser closed') } catch (error) { - console.log('b', error) throw new Error(error.toString()) } } @@ -227,7 +225,6 @@ class Site { try { this.originalUrl = new URL(url) } catch (error) { - console.log('c', error) throw new Error(error.toString()) } @@ -348,7 +345,6 @@ class Site { request.continue({ headers }) } } catch (error) { - console.log('d', error) this.error(error) } }) @@ -372,8 +368,6 @@ class Site { ] }) - this.contentType = headers['content-type'] || null - if (response.status() >= 300 && response.status() < 400) { if (headers.location) { url = new URL(headers.location.slice(-1), url) @@ -391,7 +385,6 @@ class Site { } } } catch (error) { - console.log('e', error) this.error(error) } }) @@ -760,7 +753,6 @@ class Site { return reducedLinks } catch (error) { - console.log('f', error) if (error.constructor.name === 'TimeoutError') { throw new Error('The website took too long to respond') } @@ -789,7 +781,6 @@ class Site { await this.batch(links.slice(0, this.options.maxUrls), depth + 1) } } catch (error) { - console.log('g', error) this.analyzedUrls[url.href] = { status: 0, error: error.message || error.toString(), diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index b80ce1a4b..5c8e4e165 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com/", - "version": "6.5.22", + "version": "6.5.24", "author": "Wappalyzer", "license": "MIT", "repository": { @@ -42,4 +42,4 @@ "dependencies": { "puppeteer": "^5.3.0" } -} \ No newline at end of file +} diff --git a/src/drivers/webextension/images/icons/Uscreen.svg b/src/drivers/webextension/images/icons/Uscreen.svg new file mode 100644 index 000000000..5d6af2b2a --- /dev/null +++ b/src/drivers/webextension/images/icons/Uscreen.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index 99fe88b10..2ece03254 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -267,12 +267,7 @@ const Driver = { ) }) - if ( - headers['content-type'] && - /\/x?html/.test(headers['content-type'][0]) - ) { - await Driver.onDetect(request.url, analyze({ headers })) - } + await Driver.onDetect(request.url, analyze({ headers })) } } catch (error) { Driver.error(error) diff --git a/src/package.json b/src/package.json index 28f3e35de..3da826a7f 100644 --- a/src/package.json +++ b/src/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com/", - "version": "6.5.22", + "version": "6.5.24", "author": "Wappalyzer", "license": "MIT", "repository": { @@ -32,4 +32,4 @@ "files": [ "wappalyzer.js" ] -} \ No newline at end of file +}