Fix validation

main
Elbert Alias 8 years ago
parent ddebcea686
commit 194acac05b

@ -24,7 +24,7 @@ node $WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js -ist $'\t' $WAPPALYZ
echo "Compressing PNG and SVG icons..." echo "Compressing PNG and SVG icons..."
node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* --out-dir $WAPPALYZER_ROOT/src/icons node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* --out-dir $WAPPALYZER_ROOT/src/icons 2>&1 > /dev/null
echo "Converting SVG icons to PNG..." echo "Converting SVG icons to PNG..."

@ -80,7 +80,7 @@ for ( app in json.apps ) {
} }
}); });
if ( /[a-z]+:\/\//i.test(json.apps[app].website) ) { if ( !/^https?:\/\//i.test(json.apps[app].website) ) {
throw new Error('Do not include the protocol in the website URL\n' + app + ': ' + json.apps[app].website); throw new Error('Invalid website URL\n' + app + ': ' + json.apps[app].website);
} }
} }

@ -1846,7 +1846,7 @@
"Server": "DECORUM(?:/([\\d.]+))?\\;version:\\1" "Server": "DECORUM(?:/([\\d.]+))?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"DedeCMS": { "DedeCMS": {
"cats": [ "cats": [
@ -2508,7 +2508,7 @@
"Server": "FlashCom/?([\\d\\.]+)?\\;version:\\1" "Server": "FlashCom/?([\\d\\.]+)?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"Flask": { "Flask": {
"cats": [ "cats": [
@ -3207,7 +3207,7 @@
"Server": "(?:^|[^-])\bHTTP-Server(?: ?/?V?([\\d.]+))?\\;version:\\1" "Server": "(?:^|[^-])\bHTTP-Server(?: ?/?V?([\\d.]+))?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"HTTP/2": { "HTTP/2": {
"cats": [ "cats": [
@ -3257,7 +3257,7 @@
}, },
"icon": "default.svg", "icon": "default.svg",
"implies": "OmniTouch 8660 My Teamwork", "implies": "OmniTouch 8660 My Teamwork",
"website": "http://???" "website": "http://example.com"
}, },
"Haskell": { "Haskell": {
"cats": [ "cats": [
@ -6253,7 +6253,7 @@
"Server": "RAID HTTPServer(?:/([\\d.]+))?\\;version:\\1" "Server": "RAID HTTPServer(?:/([\\d.]+))?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"RBS Change": { "RBS Change": {
"cats": [ "cats": [
@ -6363,7 +6363,7 @@
"Server": "Rapid Logic(?:/([\\d.]+))?\\;version:\\1" "Server": "Rapid Logic(?:/([\\d.]+))?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"React": { "React": {
"cats": [ "cats": [
@ -7037,7 +7037,7 @@
"Server": "SimpleHTTP(?:/([\\d.]+))?\\;version:\\1" "Server": "SimpleHTTP(?:/([\\d.]+))?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"Site Meter": { "Site Meter": {
"cats": [ "cats": [
@ -8169,7 +8169,7 @@
"implies": [ "implies": [
"HP" "HP"
], ],
"website": "http://???" "website": "http://example.com"
}, },
"VirtueMart": { "VirtueMart": {
"cats": [ "cats": [
@ -9061,7 +9061,7 @@
"Server": "dwhttpd\\/?([\\d\\.a-z]+)?\\;version:\\1" "Server": "dwhttpd\\/?([\\d\\.a-z]+)?\\;version:\\1"
}, },
"icon": "default.svg", "icon": "default.svg",
"website": "http://???" "website": "http://example.com"
}, },
"e107": { "e107": {
"cats": [ "cats": [
@ -9095,7 +9095,7 @@
}, },
"icon": "default.svg", "icon": "default.svg",
"implies": "HP ProCurve", "implies": "HP ProCurve",
"website": "http://???" "website": "http://example.com"
}, },
"eSyndiCat": { "eSyndiCat": {
"cats": [ "cats": [
@ -9960,4 +9960,4 @@
"51": "Landing Page Builders", "51": "Landing Page Builders",
"52": "Live Chat" "52": "Live Chat"
} }
} }

@ -1,7 +1,7 @@
{ "name": "Wappalyzer", { "name": "Wappalyzer",
"homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context", "homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context",
"description": "Identifies software on the web", "description": "Identifies software on the web",
"version": "2.50", "version": "2.51",
"default_locale": "en", "default_locale": "en",
"manifest_version": 2, "manifest_version": 2,
"icons": { "icons": {

@ -8,7 +8,7 @@
"description": "Identifies software on the web", "description": "Identifies software on the web",
"author": "Elbert Alias", "author": "Elbert Alias",
"license": "GPLv3", "license": "GPLv3",
"version": "3.2.9", "version": "3.2.10",
"main": "driver.js", "main": "driver.js",
"preferences": [{ "preferences": [{
"name": "tracking", "name": "tracking",

Loading…
Cancel
Save