1.6.0 • Published 7 months ago
@pubtech-ai/stub v1.6.0
@pubtech-ai/stub
Cmp API Stub code. Maybe included in commonjs loader or dropped directly on the page.
Installation
npm
npm install @pubtech-ai/stubyarn
yarn add @pubtech-ai/stubUsing
include via module loading
import * as cmpstub from '@pubtech-ai/stub';or
const cmpstub = require('@pubtech-ai/stub');then execute:
cmpstub();this should generate the __tcfapi() window function with the queing functionality.
to drop on a page
git clone https://github.com/InteractiveAdvertisingBureau/pubtech-ai-es.git
cd pubtech-ai-es/modules/stub/
yarn // or npm install
yarn build // or npm run buildBuilt stub will be output to ./lib
Getting queue of commands
const queue = __tcfapi();
console.log(queue); // [ ['command', 2, callback], ...]3.0.1
7 months ago
3.0.0
8 months ago
2.9.0
1 year ago
2.8.1
2 years ago
2.8.0
2 years ago
2.7.0
2 years ago
2.7.1
2 years ago
2.5.0
2 years ago
2.6.0
2 years ago
2.4.0
2 years ago
2.3.0
2 years ago
2.2.0
2 years ago
2.1.1
2 years ago
2.1.0
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.7.0
2 years ago
1.6.6
2 years ago
1.6.5
2 years ago
1.6.4
2 years ago
1.6.3
2 years ago
1.6.2
2 years ago
1.6.1
2 years ago
1.6.0
2 years ago