Socket
Socket
Sign inDemoInstall

@schibsted/niche-ads

Package Overview
Dependencies
Maintainers
7
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schibsted/niche-ads - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

19

dist/AdContext.js

@@ -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()) {

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc