From 605f3852bb9857e73c038f54531b34ee3c7d1077 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Thu, 8 Jul 2021 19:40:14 +1000 Subject: [PATCH] Fix "requires" in NPM driver --- src/drivers/npm/driver.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 35ec8a2a8..826384929 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -1002,12 +1002,9 @@ class Site { if (this.cache[url.href]) { const resolved = resolve(this.detections) - const requires = Wappalyzer.requires - .filter(({ name, technologies }) => - resolved.some(({ name: _name }) => _name === name) - ) - .map(({ technologies }) => technologies) - .flat() + const requires = Wappalyzer.requires.filter(({ name, technologies }) => + resolved.some(({ name: _name }) => _name === name) + ) await Promise.all( Object.keys(requires).map(async (name) => {