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 17.0.2 to 17.1.0

11

dist/js/data-providers/api.js

@@ -71,2 +71,13 @@ "use strict";

}
} // This enables setting additional `cust_params` outside `o-ads` based on
// the same API responses. That basically empowers the consuming app to
// use it's own complex serialising logic without needing to touch `o-ads`.
if (typeof this.config.apiResponseHandler === 'function') {
var additionalTargeting = this.config.apiResponseHandler(response);
if (additionalTargeting && typeof additionalTargeting === 'object') {
this.instance.targeting.add(additionalTargeting);
}
}

@@ -73,0 +84,0 @@

2

dist/js/version.js
"use strict";
// generated by genversion
module.exports = '17.0.2';
module.exports = '17.1.0';

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

"name": "@financial-times/o-ads",
"version": "17.0.2",
"version": "17.1.0",
"dependencies": {

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

@@ -21,3 +21,4 @@ module.exports = {

'main.mustache',
'package-lock.json'
'package-lock.json',
'.github/CODEOWNERS'
],

@@ -24,0 +25,0 @@ allowOverrides: []

@@ -60,2 +60,12 @@ import utils from '../utils';

// This enables setting additional `cust_params` outside `o-ads` based on
// the same API responses. That basically empowers the consuming app to
// use it's own complex serialising logic without needing to touch `o-ads`.
if (typeof this.config.apiResponseHandler === 'function') {
const additionalTargeting = this.config.apiResponseHandler(response);
if (additionalTargeting && typeof additionalTargeting === 'object') {
this.instance.targeting.add(additionalTargeting);
}
}
return response;

@@ -62,0 +72,0 @@ };

// generated by genversion
module.exports = '17.0.2';
module.exports = '17.1.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