|
|
@ -275,7 +275,9 @@ const Driver = {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
// Remove duplicates
|
|
|
|
// Remove duplicates
|
|
|
|
cache.detections = cache.detections.concat(detections)
|
|
|
|
cache.detections = cache.detections
|
|
|
|
|
|
|
|
.concat(detections)
|
|
|
|
|
|
|
|
.filter(({ technology }) => technology)
|
|
|
|
|
|
|
|
|
|
|
|
cache.detections.filter(
|
|
|
|
cache.detections.filter(
|
|
|
|
({ technology: { name }, pattern: { regex } }, index) =>
|
|
|
|
({ technology: { name }, pattern: { regex } }, index) =>
|
|
|
@ -309,20 +311,22 @@ const Driver = {
|
|
|
|
...cache,
|
|
|
|
...cache,
|
|
|
|
[hostname]: {
|
|
|
|
[hostname]: {
|
|
|
|
...Driver.cache.hostnames[hostname],
|
|
|
|
...Driver.cache.hostnames[hostname],
|
|
|
|
detections: Driver.cache.hostnames[hostname].detections.map(
|
|
|
|
detections: Driver.cache.hostnames[hostname].detections
|
|
|
|
({
|
|
|
|
.filter(({ technology }) => technology)
|
|
|
|
technology: { name: technology },
|
|
|
|
.map(
|
|
|
|
pattern: { regex, confidence },
|
|
|
|
({
|
|
|
|
version
|
|
|
|
technology: { name: technology },
|
|
|
|
}) => ({
|
|
|
|
pattern: { regex, confidence },
|
|
|
|
technology,
|
|
|
|
version
|
|
|
|
pattern: {
|
|
|
|
}) => ({
|
|
|
|
regex: regex.source,
|
|
|
|
technology,
|
|
|
|
confidence
|
|
|
|
pattern: {
|
|
|
|
},
|
|
|
|
regex: regex.source,
|
|
|
|
version
|
|
|
|
confidence
|
|
|
|
})
|
|
|
|
},
|
|
|
|
)
|
|
|
|
version
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
{}
|
|
|
|
{}
|
|
|
|