Skip to content

Commit 987a7d5

Browse files
Bump version
1 parent 9a14aa7 commit 987a7d5

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

audienceproject-data-web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const moduleName = 'AudienceProjectData';
22

33
export const packageName = '@audienceproject/data-web';
4-
export const packageVersion = '1.1.1';
4+
export const packageVersion = '1.3.0';
55

66
export const fetchCache = {};
77

dist/audienceproject-data-web.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
_exports.moduleName = moduleName;
2323
var packageName = '@audienceproject/data-web';
2424
_exports.packageName = packageName;
25-
var packageVersion = '1.1.1';
25+
var packageVersion = '1.3.0';
2626
_exports.packageVersion = packageVersion;
2727
var fetchCache = {};
2828
_exports.fetchCache = fetchCache;
@@ -267,7 +267,6 @@
267267

268268
if (typeof __tcfapi !== 'function') {
269269
debugInfo('No TCF 2.0 API found…');
270-
resolve();
271270
return;
272271
}
273272

@@ -617,11 +616,20 @@
617616
window.googletag = window.googletag || {
618617
cmd: []
619618
};
620-
window.googletag.cmd.push(function () {
619+
620+
var setTargeting = function setTargeting() {
621621
Object.keys(data.keyValues).forEach(function (key) {
622622
window.googletag.pubads().setTargeting(key, data.keyValues[key]);
623623
});
624-
});
624+
};
625+
626+
if (window.googletag.cmd.unshift) {
627+
// put in front of queue when possible
628+
window.googletag.cmd.unshift(setTargeting);
629+
} else {
630+
// native array method is not available if queue was processed
631+
window.googletag.cmd.push(setTargeting);
632+
}
625633
}
626634
};
627635
_exports.utils = utils;

dist/audienceproject-data-web.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@audienceproject/data-web",
3-
"version": "1.1.1",
3+
"version": "1.3.0",
44
"description": "AudienceProject Data services for your websites",
55
"main": "dist/audienceproject-data-web.js",
66
"type": "module",

0 commit comments

Comments
 (0)