Fix Periodic detection

main
Elbert Alias 3 years ago
parent e2663efd2f
commit d8a1daf0c5

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

@ -102,10 +102,10 @@ const Driver = {
'https://www.wappalyzer.com/installed/?utm_source=installed&utm_medium=extension&utm_campaign=wappalyzer' 'https://www.wappalyzer.com/installed/?utm_source=installed&utm_medium=extension&utm_campaign=wappalyzer'
) )
} else if (version !== previous && upgradeMessage) { } else if (version !== previous && upgradeMessage) {
// open( open(
// `https://www.wappalyzer.com/upgraded/?utm_source=upgraded&utm_medium=extension&utm_campaign=wappalyzer`, `https://www.wappalyzer.com/upgraded/?utm_source=upgraded&utm_medium=extension&utm_campaign=wappalyzer`,
// false false
// ) )
} }
await setOption('version', version) await setOption('version', version)
@ -170,6 +170,9 @@ const Driver = {
return fetch(url, { return fetch(url, {
method: 'POST', method: 'POST',
body: JSON.stringify(body), body: JSON.stringify(body),
headers: {
'Content-Type': 'application/json',
},
}) })
} catch (error) { } catch (error) {
throw new Error(error.message || error.toString()) throw new Error(error.message || error.toString())
@ -859,7 +862,7 @@ const Driver = {
if (!hostnameIgnoreList.test(hostname) && hits >= 3) { if (!hostnameIgnoreList.test(hostname) && hits >= 3) {
urls[url] = urls[url] || { urls[url] = urls[url] || {
applications: resolve(detections).reduce( technologies: resolve(detections).reduce(
(technologies, { name, confidence, version }) => { (technologies, { name, confidence, version }) => {
if (confidence === 100) { if (confidence === 100) {
technologies[name] = { technologies[name] = {
@ -886,7 +889,10 @@ const Driver = {
const count = Object.keys(urls).length const count = Object.keys(urls).length
if (count && (count >= 25 || Driver.lastPing < Date.now() - expiry)) { if (count && (count >= 25 || Driver.lastPing < Date.now() - expiry)) {
await Driver.post('https://api.wappalyzer.com/ping/v2/', urls) await Driver.post('https://api.wappalyzer.com/ping/v2/', {
version: chrome.runtime.getManifest().version,
urls,
})
await setOption('hostnames', (Driver.cache.hostnames = {})) await setOption('hostnames', (Driver.cache.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": "6.8.9", "version": "6.8.11",
"default_locale": "en", "default_locale": "en",
"manifest_version": 2, "manifest_version": 2,
"icons": { "icons": {

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

@ -518,8 +518,7 @@
"description": "Periodic is a white-label scheduling system.", "description": "Periodic is a white-label scheduling system.",
"icon": "Periodic.svg", "icon": "Periodic.svg",
"js": { "js": {
"PeriodicSyncManager": "", "PeriodicSyncManager": ""
"PeriodicWave": ""
}, },
"pricing": [ "pricing": [
"low", "low",
@ -1864,4 +1863,4 @@
}, },
"website": "http://punbb.informer.com" "website": "http://punbb.informer.com"
} }
} }