@highfivve/ad-tag 5.13.6 → 5.13.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -68,6 +68,9 @@ export const createIntentIq = () => {
|
|
|
68
68
|
context.window__.pbjs.mergeConfig({
|
|
69
69
|
userSync: { userIds: [mkUserIdProvider(config, intentIqConfigObject)] }
|
|
70
70
|
});
|
|
71
|
+
context.window__.pbjs
|
|
72
|
+
.refreshUserIds({ submoduleNames: ['intentIqId'] })
|
|
73
|
+
.catch(error => context.logger__.error('IntentIQ', 'failed to refresh user ids', error));
|
|
71
74
|
}
|
|
72
75
|
if (!analyticsEnabled) {
|
|
73
76
|
analyticsEnabled = true;
|
package/lib/ads/moliGlobal.js
CHANGED
|
@@ -6,6 +6,13 @@ export const initAdTag = (window) => {
|
|
|
6
6
|
: [];
|
|
7
7
|
const moli = createMoliTag(window);
|
|
8
8
|
moliWindow.moli = moli;
|
|
9
|
-
queueCommands.forEach(cmd =>
|
|
9
|
+
queueCommands.forEach(cmd => {
|
|
10
|
+
try {
|
|
11
|
+
cmd(moli);
|
|
12
|
+
}
|
|
13
|
+
catch (e) {
|
|
14
|
+
console.error('moli.que command failed', e);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
10
17
|
return moli;
|
|
11
18
|
};
|
|
@@ -593,10 +593,13 @@ export class GlobalConfig extends Component {
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
parseAdsTxtEntries(adstxtEntries) {
|
|
596
|
-
const entriesArray = adstxtEntries.split(/\r?\n/).map(
|
|
596
|
+
const entriesArray = adstxtEntries.split(/\r?\n/).map(line => line
|
|
597
|
+
.split('#')[0]
|
|
598
|
+
.split(',')
|
|
599
|
+
.map(field => field.trim()));
|
|
597
600
|
const publisherEntry = entriesArray
|
|
598
601
|
.filter(entry => entry.length > 1)
|
|
599
|
-
.find(entry => entry[0] === 'highfivve.com');
|
|
602
|
+
.find(entry => entry[0].toLowerCase() === 'highfivve.com');
|
|
600
603
|
return publisherEntry;
|
|
601
604
|
}
|
|
602
605
|
async findPublisherEntryInAdsTxt(adsTxtDomain) {
|
package/lib/gen/packageJson.js
CHANGED