Changes to NPM output

main
Elbert Alias 4 years ago
parent 11a95bc58c
commit f2b0ed4c64

@ -282,7 +282,10 @@ class Site {
await Promise.race([ await Promise.race([
page.goto(url.href, { waitUntil: 'domcontentloaded' }), page.goto(url.href, { waitUntil: 'domcontentloaded' }),
new Promise((resolve, reject) => new Promise((resolve, reject) =>
setTimeout(() => reject(new Error('Timeout')), this.options.maxWait) setTimeout(
() => reject(new Error('The website took too long to respond')),
this.options.maxWait
)
) )
]) ])
} catch (error) { } catch (error) {
@ -497,21 +500,29 @@ class Site {
return { return {
urls: this.analyzedUrls, urls: this.analyzedUrls,
applications: resolve(this.detections).map( technologies: resolve(this.detections).map(
({ name, confidence, version, icon, website, cpe, categories }) => ({ ({
slug,
name, name,
confidence, confidence,
version, version,
icon, icon,
website, website,
cpe, cpe,
categories: categories.reduce( categories
(categories, { id, name }) => ({ }) => ({
...categories, slug,
[id]: name name,
}), confidence,
{} version: version || null,
) icon,
website,
cpe,
categories: categories.map(({ id, slug, name }) => ({
id,
slug,
name
}))
}) })
), ),
meta: { meta: {

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

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

Loading…
Cancel
Save