|
|
@ -498,6 +498,15 @@ const Driver = {
|
|
|
|
({ name, value }) => (items.cookies[name.toLowerCase()] = [value])
|
|
|
|
({ name, value }) => (items.cookies[name.toLowerCase()] = [value])
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Change Google Analytics 4 cookie from _ga_XXXXXXXXXX to _ga_*
|
|
|
|
|
|
|
|
Object.keys(items.cookies).forEach((name) => {
|
|
|
|
|
|
|
|
if (/_ga_[A-Z0-9]+/.test(name)) {
|
|
|
|
|
|
|
|
items.cookies['_ga_*'] = items.cookies[name]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete items.cookies[name]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const technologies = getRequiredTechnologies(requires, categoryRequires)
|
|
|
|
const technologies = getRequiredTechnologies(requires, categoryRequires)
|
|
|
|
|
|
|
|
|
|
|
|
await Driver.onDetect(
|
|
|
|
await Driver.onDetect(
|
|
|
@ -568,10 +577,19 @@ const Driver = {
|
|
|
|
.concat(detections)
|
|
|
|
.concat(detections)
|
|
|
|
.filter(({ technology }) => technology)
|
|
|
|
.filter(({ technology }) => technology)
|
|
|
|
.filter(
|
|
|
|
.filter(
|
|
|
|
({ technology: { name }, pattern: { regex } }, index, detections) =>
|
|
|
|
(
|
|
|
|
|
|
|
|
{ technology: { name }, pattern: { regex }, version },
|
|
|
|
|
|
|
|
index,
|
|
|
|
|
|
|
|
detections
|
|
|
|
|
|
|
|
) =>
|
|
|
|
detections.findIndex(
|
|
|
|
detections.findIndex(
|
|
|
|
({ technology: { name: _name }, pattern: { regex: _regex } }) =>
|
|
|
|
({
|
|
|
|
|
|
|
|
technology: { name: _name },
|
|
|
|
|
|
|
|
pattern: { regex: _regex },
|
|
|
|
|
|
|
|
version: _version,
|
|
|
|
|
|
|
|
}) =>
|
|
|
|
name === _name &&
|
|
|
|
name === _name &&
|
|
|
|
|
|
|
|
version === _version &&
|
|
|
|
(!regex || regex.toString() === _regex.toString())
|
|
|
|
(!regex || regex.toString() === _regex.toString())
|
|
|
|
) === index
|
|
|
|
) === index
|
|
|
|
)
|
|
|
|
)
|
|
|
|