|
|
@ -482,12 +482,12 @@ const Driver = {
|
|
|
|
incrementHits = false,
|
|
|
|
incrementHits = false,
|
|
|
|
analyzeRequires = true
|
|
|
|
analyzeRequires = true
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
url = url.split('#')[0]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!url || !detections.length) {
|
|
|
|
if (!url || !detections.length) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
url = url.split('#')[0]
|
|
|
|
|
|
|
|
|
|
|
|
const { hostname } = new URL(url)
|
|
|
|
const { hostname } = new URL(url)
|
|
|
|
|
|
|
|
|
|
|
|
// Cache detections
|
|
|
|
// Cache detections
|
|
|
@ -838,11 +838,11 @@ const Driver = {
|
|
|
|
const hostnames = Object.keys(Driver.cache.hostnames).reduce(
|
|
|
|
const hostnames = Object.keys(Driver.cache.hostnames).reduce(
|
|
|
|
(hostnames, hostname) => {
|
|
|
|
(hostnames, hostname) => {
|
|
|
|
// eslint-disable-next-line standard/computed-property-even-spacing
|
|
|
|
// eslint-disable-next-line standard/computed-property-even-spacing
|
|
|
|
const { url, language, detections, hits } =
|
|
|
|
const { language, detections, hits } =
|
|
|
|
Driver.cache.hostnames[hostname]
|
|
|
|
Driver.cache.hostnames[hostname]
|
|
|
|
|
|
|
|
|
|
|
|
if (!hostnameIgnoreList.test(hostname) && hits >= 3) {
|
|
|
|
if (!hostnameIgnoreList.test(hostname) && hits >= 3) {
|
|
|
|
hostnames[url] = hostnames[url] || {
|
|
|
|
hostnames[hostname] = hostnames[hostname] || {
|
|
|
|
applications: resolve(detections).reduce(
|
|
|
|
applications: resolve(detections).reduce(
|
|
|
|
(technologies, { name, confidence, version }) => {
|
|
|
|
(technologies, { name, confidence, version }) => {
|
|
|
|
if (confidence === 100) {
|
|
|
|
if (confidence === 100) {
|
|
|
|