@financial-times/ads-display
Advanced tools
Comparing version 1.3.0-beta.8 to 1.3.0
@@ -49,3 +49,4 @@ /* eslint-disable */ | ||
980: '5%' | ||
} | ||
}, | ||
waitForMoat: true | ||
} | ||
@@ -52,0 +53,0 @@ |
@@ -262,3 +262,4 @@ import { getRootID } from '@financial-times/o-tracking/dist/javascript/core.js'; | ||
...options, | ||
...(flags.get('adsEnableTestCreatives') && { testads: true }) | ||
//if adsEnableTestCreatives flag is set, pass sandbox as true downstream, as that's checked to show test creatives | ||
sandbox: (options.sandbox || !! flags.get('adsEnableTestCreatives')) | ||
}; | ||
@@ -474,8 +475,13 @@ if(options.smartmatch) { | ||
const checkMoatInterval = setInterval(() => { | ||
if(window.moatPrebidApi && window.moatPrebidApi.safetyDataAvailable()) { | ||
clearInterval(checkMoatInterval); | ||
if(window.moatPrebidApi && | ||
typeof window.moatPrebidApi.slotDataAvailable === "function" && | ||
window.moatPrebidApi.slotDataAvailable() && | ||
window.moatPrebidApi.safetyDataAvailable() | ||
) { | ||
window.moatPrebidApi.setMoatTargetingForAllSlots(); | ||
clearInterval(checkMoatInterval); | ||
clearTimeout(timeoutId); | ||
resolve(); | ||
} | ||
}, 50); | ||
resolve(); | ||
} | ||
}, 50); | ||
@@ -482,0 +488,0 @@ const timeoutId = setTimeout(() => { |
{ | ||
"name": "@financial-times/ads-display", | ||
"version": "1.3.0-beta.8", | ||
"version": "1.3.0", | ||
"description": "Bring ads to your page with the FT specific o-ads configuration", | ||
@@ -41,3 +41,3 @@ "browser": "dist/client.js", | ||
"dependencies": { | ||
"@financial-times/ads-permutive": "^1.3.0-beta.8", | ||
"@financial-times/ads-permutive": "^1.3.0", | ||
"@financial-times/n-tracking": "^3.0.0", | ||
@@ -44,0 +44,0 @@ "@financial-times/o-ads": "18.3.3", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
55646
964
1