Merge pull request #6514 from kirillkovnat/added-description-to-output

Added description field to the output of CLI driver
main
Elbert Alias 3 years ago committed by GitHub
commit 08205df34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1057,6 +1057,7 @@ class Site {
({ ({
slug, slug,
name, name,
description,
confidence, confidence,
version, version,
icon, icon,
@ -1066,6 +1067,7 @@ class Site {
}) => ({ }) => ({
slug, slug,
name, name,
description,
confidence, confidence,
version: version || null, version: version || null,
icon, icon,

@ -140,12 +140,22 @@ const Wappalyzer = {
.sort((a, b) => (priority(a) > priority(b) ? 1 : -1)) .sort((a, b) => (priority(a) > priority(b) ? 1 : -1))
.map( .map(
({ ({
technology: { name, slug, categories, icon, website, pricing, cpe }, technology: {
name,
description,
slug,
categories,
icon,
website,
pricing,
cpe,
},
confidence, confidence,
version, version,
lastUrl, lastUrl,
}) => ({ }) => ({
name, name,
description,
slug, slug,
categories: categories.map((id) => Wappalyzer.getCategory(id)), categories: categories.map((id) => Wappalyzer.getCategory(id)),
confidence, confidence,
@ -319,6 +329,7 @@ const Wappalyzer = {
Wappalyzer.technologies = Object.keys(data).reduce((technologies, name) => { Wappalyzer.technologies = Object.keys(data).reduce((technologies, name) => {
const { const {
cats, cats,
description,
url, url,
xhr, xhr,
dom, dom,
@ -347,6 +358,7 @@ const Wappalyzer = {
technologies.push({ technologies.push({
name, name,
description,
categories: cats || [], categories: cats || [],
slug: Wappalyzer.slugify(name), slug: Wappalyzer.slugify(name),
url: transform(url), url: transform(url),