Define global variables

main
Elbert Alias 7 years ago
parent 6f0ec0007b
commit 8c5aaac4f9

@ -16,10 +16,8 @@ wappalyzer.analyze(url)
.then(json => { .then(json => {
process.stdout.write(JSON.stringify(json) + '\n') process.stdout.write(JSON.stringify(json) + '\n')
process.exit(0); process.exit();
}) })
.catch(error => { .catch(error => {
process.stderr.write(error + '\n') throw error
process.exit(1);
}); });

@ -2,7 +2,7 @@
"name": "wappalyzer", "name": "wappalyzer",
"description": "Uncovers the technologies used on websites", "description": "Uncovers the technologies used on websites",
"homepage": "https://github.com/AliasIO/Wappalyzer", "homepage": "https://github.com/AliasIO/Wappalyzer",
"version": "5.0.1", "version": "5.0.2",
"author": "Elbert Alias", "author": "Elbert Alias",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

@ -1,7 +1,9 @@
/** /**
* WebExtension driver * WebExtension driver
*/ */
setOption('robotsTxtCache', {});
/** global: browser */
/** global: wappalyzer */
var tabCache = {}; var tabCache = {};
var headersCache = {}; var headersCache = {};

@ -1,3 +1,6 @@
/** global: browser */
/** global: wappalyzer */
function getOption(name, defaultValue, callback) { function getOption(name, defaultValue, callback) {
browser.storage.local.get(name) browser.storage.local.get(name)
.then(item => { .then(item => {

@ -51,8 +51,7 @@ function replaceDom(domTemplate) {
function appsToDomTemplate(response) { function appsToDomTemplate(response) {
var var
appName, confidence, version, appName, confidence, version, categories,
categories = [],
template = []; template = [];
if ( response.tabCache && Object.keys(response.tabCache.detected).length > 0 ) { if ( response.tabCache && Object.keys(response.tabCache.detected).length > 0 ) {

Loading…
Cancel
Save