@schibsted/niche-ads
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -110,3 +110,9 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
...keywords, | ||
'aa-sch-externalid_src': Boolean(getAdId()) + Boolean(getUserId()) | ||
'aa-sch-externalid_src': Boolean(getAdId()) + Boolean(getUserId()), | ||
'aa-sch-schuserhash': [ | ||
'0' | ||
], | ||
'aa-sch-schenvhash': [ | ||
'0' | ||
] | ||
}, | ||
@@ -133,2 +139,13 @@ user: { | ||
]; | ||
pageOptions.user.userIds[0].eids.forEach((eid)=>{ | ||
if (eid.source === `${eids.region}-UserHash`) { | ||
pageOptions.keywords[`aa-sch-schuserhash`] = [ | ||
'1' | ||
]; | ||
} else if (eid.source === `${eids.region}-EnvHash`) { | ||
pageOptions.keywords[`aa-sch-schenvhash`] = [ | ||
'1' | ||
]; | ||
} | ||
}); | ||
} | ||
@@ -135,0 +152,0 @@ if (glimr.enabled && await glimr.shouldLoad()) { |
{ | ||
"name": "@schibsted/niche-ads", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Package containing ads logic reappearing across our projects", | ||
@@ -35,4 +35,4 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.6.3", | ||
"@commitlint/config-conventional": "^17.6.3", | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@release-it/conventional-changelog": "^5.1.1", | ||
@@ -51,3 +51,3 @@ "@swc/cli": "^0.1.62", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.2", | ||
"lint-staged": "^13.2.3", | ||
"prettier": "^2.8.8", | ||
@@ -54,0 +54,0 @@ "prop-types": "^15.8.1", |
@@ -140,2 +140,4 @@ import { createContext, useMemo, useRef, useEffect, useCallback } from 'react'; | ||
'aa-sch-externalid_src': Boolean(getAdId()) + Boolean(getUserId()), | ||
'aa-sch-schuserhash': ['0'], | ||
'aa-sch-schenvhash': ['0'], | ||
}, | ||
@@ -146,2 +148,3 @@ user: { | ||
}; | ||
if (ppids.current?.PPID1 || ppids.current?.PPID2) { | ||
@@ -157,2 +160,9 @@ pageOptions.user.userIds = [ | ||
]; | ||
pageOptions.user.userIds[0].eids.forEach((eid) => { | ||
if (eid.source === `${eids.region}-UserHash`) { | ||
pageOptions.keywords[`aa-sch-schuserhash`] = ['1']; | ||
} else if (eid.source === `${eids.region}-EnvHash`) { | ||
pageOptions.keywords[`aa-sch-schenvhash`] = ['1']; | ||
} | ||
}); | ||
} | ||
@@ -159,0 +169,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61257
1301