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]) { if (this.cache[url.href]) {
const resolved = resolve(this.detections) const resolved = resolve(this.detections)
const requires = Wappalyzer.requires const requires = Wappalyzer.requires.filter(({ name, technologies }) =>
.filter(({ name, technologies }) =>
resolved.some(({ name: _name }) => _name === name) resolved.some(({ name: _name }) => _name === name)
) )
.map(({ technologies }) => technologies)
.flat()
await Promise.all( await Promise.all(
Object.keys(requires).map(async (name) => { Object.keys(requires).map(async (name) => {