Fix "requires" in NPM driver

main
Elbert Alias 4 years ago
parent 0e261281a3
commit 605f3852bb

@ -1002,12 +1002,9 @@ class Site {
if (this.cache[url.href]) {
const resolved = resolve(this.detections)
const requires = Wappalyzer.requires
.filter(({ name, technologies }) =>
const requires = Wappalyzer.requires.filter(({ name, technologies }) =>
resolved.some(({ name: _name }) => _name === name)
)
.map(({ technologies }) => technologies)
.flat()
await Promise.all(
Object.keys(requires).map(async (name) => {