|
|
|
@ -498,6 +498,15 @@ const Driver = {
|
|
|
|
|
({ 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)
|
|
|
|
|
|
|
|
|
|
await Driver.onDetect(
|
|
|
|
@ -568,10 +577,19 @@ const Driver = {
|
|
|
|
|
.concat(detections)
|
|
|
|
|
.filter(({ technology }) => technology)
|
|
|
|
|
.filter(
|
|
|
|
|
({ technology: { name }, pattern: { regex } }, index, detections) =>
|
|
|
|
|
(
|
|
|
|
|
{ technology: { name }, pattern: { regex }, version },
|
|
|
|
|
index,
|
|
|
|
|
detections
|
|
|
|
|
) =>
|
|
|
|
|
detections.findIndex(
|
|
|
|
|
({ technology: { name: _name }, pattern: { regex: _regex } }) =>
|
|
|
|
|
({
|
|
|
|
|
technology: { name: _name },
|
|
|
|
|
pattern: { regex: _regex },
|
|
|
|
|
version: _version,
|
|
|
|
|
}) =>
|
|
|
|
|
name === _name &&
|
|
|
|
|
version === _version &&
|
|
|
|
|
(!regex || regex.toString() === _regex.toString())
|
|
|
|
|
) === index
|
|
|
|
|
)
|
|
|
|
|