@iabtcf/cmpapi
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
@@ -24,3 +24,3 @@ import { TCModel } from '@iabtcf/core'; | ||
setDisplayStatus(displayStatus: DisplayStatus): void; | ||
getTCData(callback: TCDataCallback, vendors: number[]): void; | ||
getTCData(callback: TCDataCallback, vendors?: number[]): void; | ||
getInAppTCData(callback: IATCDataCallback): void; | ||
@@ -27,0 +27,0 @@ ping(callback: PingCallback): void; |
@@ -79,3 +79,3 @@ "use strict"; | ||
if (builder.isBuildable()) { | ||
callback(builder.build(), true); | ||
callback(builder.build(vendors), true); | ||
} | ||
@@ -82,0 +82,0 @@ else { |
import { Return } from '../Return'; | ||
export interface Builder { | ||
build: () => Return; | ||
build: (vendors?: number[]) => Return; | ||
isBuildable: () => boolean; | ||
} |
import { Builder } from './Builder'; | ||
import { InAppTCData } from '../InAppTCData'; | ||
import { TCModel } from '@iabtcf/core'; | ||
export declare class InAppTCDataBuilder implements Builder { | ||
build(): InAppTCData; | ||
tcModel: TCModel; | ||
build(vendors?: number[]): InAppTCData; | ||
isBuildable(): boolean; | ||
} |
@@ -5,4 +5,6 @@ "use strict"; | ||
class InAppTCDataBuilder { | ||
build() { | ||
build(vendors) { | ||
const iaTCData = new InAppTCData_1.InAppTCData(); | ||
if (vendors) { | ||
} | ||
return iaTCData; | ||
@@ -9,0 +11,0 @@ } |
import { Builder } from './Builder'; | ||
import { TCData } from '../TCData'; | ||
import { TCModel } from '@iabtcf/core'; | ||
export declare class TCDataBuilder implements Builder { | ||
build(): TCData; | ||
tcModel: TCModel; | ||
build(vendors?: number[]): TCData; | ||
isBuildable(): boolean; | ||
} |
@@ -5,4 +5,6 @@ "use strict"; | ||
class TCDataBuilder { | ||
build() { | ||
build(vendors) { | ||
const tcData = new TCData_1.TCData(); | ||
if (vendors) { | ||
} | ||
return tcData; | ||
@@ -9,0 +11,0 @@ } |
@@ -1,2 +0,3 @@ | ||
import { Return, BoolInt } from './Return'; | ||
import { Return } from './Return'; | ||
import { BoolInt } from './BoolInt'; | ||
export interface StringBoolVector { | ||
@@ -3,0 +4,0 @@ [id: string]: string; |
@@ -1,2 +0,2 @@ | ||
export declare type BoolInt = 0 | 1 | undefined; | ||
import { BoolInt } from './BoolInt'; | ||
export declare class Return { | ||
@@ -3,0 +3,0 @@ cmpId: number; |
{ | ||
"name": "@iabtcf/cmpapi", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "Ensures other in-page digital marketing technologies have access to CMP transparency and consent information for the iab. Transparency and Consent Framework (TCF).", | ||
@@ -26,3 +26,3 @@ "author": "Chris Paterson <tcf@chrispaterson.io>", | ||
"dependencies": { | ||
"@iabtcf/core": "^1.0.0-alpha.8" | ||
"@iabtcf/core": "^1.0.0-alpha.9" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
"@types/sinon": "^7.0.13", | ||
"@types/sinon-chai": "^3.2.2", | ||
"@types/sinon-chai": "3.2.2", | ||
"coveralls": "^3.0.4", | ||
@@ -92,3 +92,3 @@ "eslint": "~5.16.0", | ||
}, | ||
"gitHead": "a461a09d3ff539950ea80353287080cf4b22a637" | ||
"gitHead": "5b4d74172887c1c8301ae5d28027af810aa03272" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
36350
57
455
Updated@iabtcf/core@^1.0.0-alpha.9