|
|
@ -244,28 +244,30 @@ const Wappalyzer = {
|
|
|
|
done = true
|
|
|
|
done = true
|
|
|
|
|
|
|
|
|
|
|
|
resolved.forEach(({ technology, confidence, lastUrl }) => {
|
|
|
|
resolved.forEach(({ technology, confidence, lastUrl }) => {
|
|
|
|
technology.implies.forEach(({ name, confidence: _confidence }) => {
|
|
|
|
technology.implies.forEach(
|
|
|
|
const implied = Wappalyzer.getTechnology(name)
|
|
|
|
({ name, confidence: _confidence, version }) => {
|
|
|
|
|
|
|
|
const implied = Wappalyzer.getTechnology(name)
|
|
|
|
|
|
|
|
|
|
|
|
if (!implied) {
|
|
|
|
if (!implied) {
|
|
|
|
throw new Error(`Implied technology does not exist: ${name}`)
|
|
|
|
throw new Error(`Implied technology does not exist: ${name}`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
resolved.findIndex(
|
|
|
|
|
|
|
|
({ technology: { name } }) => name === implied.name
|
|
|
|
|
|
|
|
) === -1
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
resolved.push({
|
|
|
|
|
|
|
|
technology: implied,
|
|
|
|
|
|
|
|
confidence: Math.min(confidence, _confidence),
|
|
|
|
|
|
|
|
version: '',
|
|
|
|
|
|
|
|
lastUrl,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
done = false
|
|
|
|
if (
|
|
|
|
|
|
|
|
resolved.findIndex(
|
|
|
|
|
|
|
|
({ technology: { name } }) => name === implied.name
|
|
|
|
|
|
|
|
) === -1
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
resolved.push({
|
|
|
|
|
|
|
|
technology: implied,
|
|
|
|
|
|
|
|
confidence: Math.min(confidence, _confidence),
|
|
|
|
|
|
|
|
version: version || '',
|
|
|
|
|
|
|
|
lastUrl,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
done = false
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} while (resolved.length && !done)
|
|
|
|
} while (resolved.length && !done)
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -389,9 +391,10 @@ const Wappalyzer = {
|
|
|
|
meta: transform(meta),
|
|
|
|
meta: transform(meta),
|
|
|
|
scriptSrc: transform(scriptSrc),
|
|
|
|
scriptSrc: transform(scriptSrc),
|
|
|
|
js: transform(js, true),
|
|
|
|
js: transform(js, true),
|
|
|
|
implies: transform(implies).map(({ value, confidence }) => ({
|
|
|
|
implies: transform(implies).map(({ value, confidence, version }) => ({
|
|
|
|
name: value,
|
|
|
|
name: value,
|
|
|
|
confidence,
|
|
|
|
confidence,
|
|
|
|
|
|
|
|
version,
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
excludes: transform(excludes).map(({ value }) => ({
|
|
|
|
excludes: transform(excludes).map(({ value }) => ({
|
|
|
|
name: value,
|
|
|
|
name: value,
|
|
|
|