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
11
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 5.1.0 to 5.1.1-beta.1

10

package.json

@@ -17,6 +17,6 @@ {

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

@@ -34,3 +34,3 @@ "@financial-times/o-tracking": "^4.0.0",

},
"version": "5.1.0"
"version": "5.1.1-beta.1"
}

@@ -8,1 +8,57 @@ export type OAdsMetricPayload = {

};
export declare function getAdsData({ user, page, host }: Object): Object;
export declare function formatArticleData(article: Object): Object;
export declare function formatSmartmatchData(smartmatchData: Object): Object;
export declare function formatUserData(user: Object): Object;
export declare namespace adsUtils {
function getRootID(): string;
function enablePermutiveFtCom({ metadata, type, rootId }: Object): Promise<boolean>;
}
// interface for options in displayAds.init() via AdsOptionsEmbed
interface IDisplayAdsOptions {
appName: string;
adUnit?: string[];
adsLayout?: any;
abTestState?: string;
rootId?: string;
targeting?: Object;
sandbox?: boolean;
disableMonitoring?: boolean;
formats?: Object;
lazyLoadMargins?: Object;
waitForMoat?: boolean;
}
interface IResponsive {
extra: number[];
large: number[];
medium: number[];
small: number[];
}
export declare namespace displayAds {
function init(options: IDisplayAdsOptions, flags: Object): Promise<void>;
function initAdSlots(oAdsInstance: Class): void;
function initOads(options: IDisplayAdsOptions, flags: Object): Promise<oAdsInstance>;
function getOAdsConfig(
options: IDisplayAdsOptions,
flags: Object
): {
gpt: {
network: string;
site: string;
zone: string;
rendering: ?string;
enableLazyLoad: ?string;
};
formats: Object;
responsive: IResponsive;
collapseEmpty: string;
lazyLoad: false | { viewportMargin: string };
targeting: any;
disableConsentCookie: boolean;
};
function getAllTargeting(options: IDisplayAdsOptions): Object;
function getGptSite(sandbox: boolean): string;
function getGptZone(adUnit: string[]): string;
}
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