diff --git a/src/drivers/npm/README.md b/src/drivers/npm/README.md index 5eda7d416..61ac59c54 100644 --- a/src/drivers/npm/README.md +++ b/src/drivers/npm/README.md @@ -64,7 +64,7 @@ const options = { }; ;(async function() { - const wappalyzer = await new Wappalyzer() + const wappalyzer = await new Wappalyzer(options) try { await wappalyzer.init() diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 0d2c54dfb..94f1bce7d 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -75,9 +75,11 @@ function getJs() { ) { const newObj = {} - Object.keys(obj).forEach((key) => { - newObj[key] = dereference(obj[key], level + 1) - }) + Object.keys(obj) + .filter((key) => obj.hasOwnProperty(key)) + .forEach((key) => { + newObj[key] = dereference(obj[key], level + 1) + }) return newObj } diff --git a/src/drivers/webextension/js/inject.js b/src/drivers/webextension/js/inject.js index db3c78c37..8ae4bd77e 100644 --- a/src/drivers/webextension/js/inject.js +++ b/src/drivers/webextension/js/inject.js @@ -25,10 +25,6 @@ window ) - if (name === 'Intercom') { - console.log(name, chains, value) - } - if (value !== undefined) { technologies.push({ name,