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

@financial-times/ads-display

Package Overview
Dependencies
Maintainers
18
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 4.0.0-beta.13 to 4.0.0-beta.14

24

dist/ads-display.cjs.js

@@ -12,3 +12,3 @@ 'use strict';

var moatIntegration = require('@financial-times/ads-moat-integration');
require('@financial-times/ads-permutive');
var adsPermutive = require('@financial-times/ads-permutive');

@@ -21,2 +21,3 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var moatIntegration__default = /*#__PURE__*/_interopDefaultLegacy(moatIntegration);
var adsPermutive__default = /*#__PURE__*/_interopDefaultLegacy(adsPermutive);

@@ -841,2 +842,16 @@ /**

*/
const setupPermutive = async ({
metadata = {},
type,
rootId
}) => {
adsPermutive__default["default"].setup();
adsPermutive__default["default"].loadPermutiveScript();
(metadata === null || metadata === void 0 ? void 0 : metadata.user) && adsPermutive__default["default"].identifyUser(metadata.user);
const pageViewData = adsPermutive__default["default"].fromAdsDataToPageView({ ...metadata,
rootId,
type
});
adsPermutive__default["default"].trackPageView(pageViewData);
};
/**

@@ -848,2 +863,4 @@ * Helper function for setting up permutive on FT.com

* @param {Object} rootId - Root ID of the page
* @returns {Promise<boolean>} true if permutive has been setup,
* depending on user's personalised consent
*/

@@ -859,3 +876,3 @@

if (pc !== null && pc !== void 0 && pc.isAllowed().behavioral) {
this.setupPermutive({
setupPermutive({
metadata,

@@ -865,3 +882,6 @@ type,

});
return true;
}
return false;
}

@@ -868,0 +888,0 @@

@@ -8,3 +8,3 @@ import oAds from '@financial-times/ads-legacy-o-ads';

import moatIntegration from '@financial-times/ads-moat-integration';
import '@financial-times/ads-permutive';
import adsPermutive from '@financial-times/ads-permutive';

@@ -829,2 +829,16 @@ /**

*/
const setupPermutive = async ({
metadata = {},
type,
rootId
}) => {
adsPermutive.setup();
adsPermutive.loadPermutiveScript();
(metadata === null || metadata === void 0 ? void 0 : metadata.user) && adsPermutive.identifyUser(metadata.user);
const pageViewData = adsPermutive.fromAdsDataToPageView({ ...metadata,
rootId,
type
});
adsPermutive.trackPageView(pageViewData);
};
/**

@@ -836,2 +850,4 @@ * Helper function for setting up permutive on FT.com

* @param {Object} rootId - Root ID of the page
* @returns {Promise<boolean>} true if permutive has been setup,
* depending on user's personalised consent
*/

@@ -847,3 +863,3 @@

if (pc !== null && pc !== void 0 && pc.isAllowed().behavioral) {
this.setupPermutive({
setupPermutive({
metadata,

@@ -853,3 +869,6 @@ type,

});
return true;
}
return false;
}

@@ -856,0 +875,0 @@

10

package.json
{
"name": "@financial-times/ads-display",
"version": "4.0.0-beta.13",
"version": "4.0.0-beta.14",
"description": "Bring ads to your page with the FT specific o-ads configuration",

@@ -50,6 +50,6 @@ "main": "dist/ads-display.cjs.js",

"dependencies": {
"@financial-times/ads-legacy-o-ads": "^4.0.0-beta.13",
"@financial-times/ads-moat-integration": "^4.0.0-beta.13",
"@financial-times/ads-permutive": "^4.0.0-beta.13",
"@financial-times/ads-personalised-consent": "^4.0.0-beta.13",
"@financial-times/ads-legacy-o-ads": "^4.0.0-beta.14",
"@financial-times/ads-moat-integration": "^4.0.0-beta.14",
"@financial-times/ads-permutive": "^4.0.0-beta.14",
"@financial-times/ads-personalised-consent": "^4.0.0-beta.14",
"@financial-times/n-tracking": "4.0.1",

@@ -56,0 +56,0 @@ "@financial-times/o-tracking": "^4.0.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