diff --git a/src/drivers/npm/index.js b/src/drivers/npm/index.js index b453c72a7..54a3fb43d 100644 --- a/src/drivers/npm/index.js +++ b/src/drivers/npm/index.js @@ -16,10 +16,8 @@ wappalyzer.analyze(url) .then(json => { process.stdout.write(JSON.stringify(json) + '\n') - process.exit(0); + process.exit(); }) .catch(error => { - process.stderr.write(error + '\n') - - process.exit(1); + throw error }); diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index 31284418f..5a935ba14 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.0.1", + "version": "5.0.2", "author": "Elbert Alias", "license": "GPL-3.0", "repository": { diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index 739d00275..a90e2805d 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -1,7 +1,9 @@ /** * WebExtension driver */ - setOption('robotsTxtCache', {}); + +/** global: browser */ +/** global: wappalyzer */ var tabCache = {}; var headersCache = {}; diff --git a/src/drivers/webextension/js/options.js b/src/drivers/webextension/js/options.js index afdc37bc1..9486a8edc 100644 --- a/src/drivers/webextension/js/options.js +++ b/src/drivers/webextension/js/options.js @@ -1,3 +1,6 @@ +/** global: browser */ +/** global: wappalyzer */ + function getOption(name, defaultValue, callback) { browser.storage.local.get(name) .then(item => { diff --git a/src/drivers/webextension/js/popup.js b/src/drivers/webextension/js/popup.js index 9bb9ca49b..34f55c0a2 100644 --- a/src/drivers/webextension/js/popup.js +++ b/src/drivers/webextension/js/popup.js @@ -51,8 +51,7 @@ function replaceDom(domTemplate) { function appsToDomTemplate(response) { var - appName, confidence, version, - categories = [], + appName, confidence, version, categories, template = []; if ( response.tabCache && Object.keys(response.tabCache.detected).length > 0 ) {