Fix recursion in NPM driver, update README

main
Elbert Alias 4 years ago
parent 602e888f43
commit 088590b066

@ -64,7 +64,7 @@ const options = {
}; };
;(async function() { ;(async function() {
const wappalyzer = await new Wappalyzer() const wappalyzer = await new Wappalyzer(options)
try { try {
await wappalyzer.init() await wappalyzer.init()

@ -75,9 +75,11 @@ function getJs() {
) { ) {
const newObj = {} const newObj = {}
Object.keys(obj).forEach((key) => { Object.keys(obj)
newObj[key] = dereference(obj[key], level + 1) .filter((key) => obj.hasOwnProperty(key))
}) .forEach((key) => {
newObj[key] = dereference(obj[key], level + 1)
})
return newObj return newObj
} }

@ -25,10 +25,6 @@
window window
) )
if (name === 'Intercom') {
console.log(name, chains, value)
}
if (value !== undefined) { if (value !== undefined) {
technologies.push({ technologies.push({
name, name,

Loading…
Cancel
Save