Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@financial-times/o-ads

Package Overview
Dependencies
Maintainers
18
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-ads - npm Package Compare versions

Comparing version 15.0.0 to 16.0.0

18

dist/js/ad-servers/gpt.js

@@ -546,12 +546,15 @@ "use strict";

function clearPageTargeting() {
if (window.googletag) {
googletag.cmd.push(() => {
googletag.pubads().clearTargeting();
});
} else {
_utils.default.log.warn('Attempting to clear page targeting before the GPT library has initialized');
}
}
function updatePageTargeting(override) {
if (window.googletag) {
var params = _utils.default.isPlainObject(override) ? override : _targeting.default.get();
if (!override) {
googletag.cmd.push(() => {
googletag.pubads().clearTargeting();
});
}
setPageTargeting(params);

@@ -590,2 +593,3 @@ } else {

updatePageTargeting,
clearPageTargeting,
clearPageTargetingForKey,

@@ -592,0 +596,0 @@ hasGPTLoaded,

@@ -28,3 +28,3 @@ {

"name": "@financial-times/o-ads",
"version": "15.0.0",
"version": "16.0.0",
"dependencies": {

@@ -31,0 +31,0 @@ "ftdomdelegate": "^4.0.0",

@@ -520,10 +520,16 @@ /*globals googletag: true */

function clearPageTargeting() {
if (window.googletag) {
googletag.cmd.push(() => {
googletag.pubads().clearTargeting();
});
}
else {
utils.log.warn('Attempting to clear page targeting before the GPT library has initialized');
}
}
function updatePageTargeting(override) {
if (window.googletag) {
const params = utils.isPlainObject(override) ? override : targeting.get();
if (!override) {
googletag.cmd.push(() => {
googletag.pubads().clearTargeting();
});
}
setPageTargeting(params);

@@ -560,2 +566,3 @@ } else {

updatePageTargeting,
clearPageTargeting,
clearPageTargetingForKey,

@@ -562,0 +569,0 @@ hasGPTLoaded,

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