@highfivve/ad-tag 5.10.1 → 5.10.2
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.
|
@@ -217,8 +217,7 @@ export const gptDefineSlots = () => (context, slots) => {
|
|
|
217
217
|
const slotDefinitions = slots.map(moliSlot => {
|
|
218
218
|
const sizeConfigService = new SizeConfigService(moliSlot.sizeConfig, context.labelConfigService__.getSupportedLabels(), context.window__);
|
|
219
219
|
const filterSupportedSizes = sizeConfigService.filterSupportedSizes;
|
|
220
|
-
if (!(sizeConfigService.filterSlot(moliSlot) &&
|
|
221
|
-
context.labelConfigService__.filterSlot(moliSlot))) {
|
|
220
|
+
if (!(sizeConfigService.filterSlot(moliSlot) && context.labelConfigService__.filterSlot(moliSlot))) {
|
|
222
221
|
return Promise.resolve(null);
|
|
223
222
|
}
|
|
224
223
|
const sizes = filterSupportedSizes(moliSlot.sizes);
|
|
@@ -30,7 +30,7 @@ export const createZeotap = () => {
|
|
|
30
30
|
return keyValues
|
|
31
31
|
? new Map(Object.keys(keyValues)
|
|
32
32
|
.map(key => [key, keyValues[key]])
|
|
33
|
-
.filter((
|
|
33
|
+
.filter((entry) => !!entry[1]))
|
|
34
34
|
: new Map();
|
|
35
35
|
};
|
|
36
36
|
const parameterFromKeyValue = (kv, keyValuesMap) => {
|
package/lib/ads/moliGlobal.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createMoliTag } from './moli';
|
|
|
2
2
|
export const initAdTag = (window) => {
|
|
3
3
|
const moliWindow = window;
|
|
4
4
|
const queueCommands = moliWindow.moli
|
|
5
|
-
? [...moliWindow.moli.que]
|
|
5
|
+
? [...moliWindow.moli.que]
|
|
6
6
|
: [];
|
|
7
7
|
const moli = createMoliTag(window);
|
|
8
8
|
moliWindow.moli = moli;
|
package/lib/ads/prebid.js
CHANGED
|
@@ -323,8 +323,7 @@ export const prebidDefineSlots = () => (context, slots) => {
|
|
|
323
323
|
const slotDefinitions = slots.map(moliSlot => {
|
|
324
324
|
const sizeConfigService = new SizeConfigService(moliSlot.sizeConfig, context.labelConfigService__.getSupportedLabels(), context.window__);
|
|
325
325
|
const filterSupportedSizes = sizeConfigService.filterSupportedSizes;
|
|
326
|
-
if (!(sizeConfigService.filterSlot(moliSlot) &&
|
|
327
|
-
context.labelConfigService__.filterSlot(moliSlot))) {
|
|
326
|
+
if (!(sizeConfigService.filterSlot(moliSlot) && context.labelConfigService__.filterSlot(moliSlot))) {
|
|
328
327
|
return Promise.resolve(null);
|
|
329
328
|
}
|
|
330
329
|
const adSlot = {
|
|
@@ -154,8 +154,8 @@ export class GlobalConfig extends Component {
|
|
|
154
154
|
React.createElement(SubHeadline, null, "Consent management"),
|
|
155
155
|
React.createElement(TagContainer, null,
|
|
156
156
|
React.createElement(TagLabel, null, "allowAuctionWithoutConsent"),
|
|
157
|
-
React.createElement(Tag, null, (
|
|
158
|
-
|
|
157
|
+
React.createElement(Tag, null, (config.prebid.config.consentManagement.gdpr?.allowAuctionWithoutConsent ??
|
|
158
|
+
true).toString())),
|
|
159
159
|
config.prebid.config.consentManagement.gdpr?.cmpApi && (React.createElement(TagContainer, null,
|
|
160
160
|
React.createElement(TagLabel, null, "CMP API"),
|
|
161
161
|
React.createElement(Tag, null, config.prebid.config.consentManagement.gdpr?.cmpApi ?? 'iab'))),
|
package/lib/gen/packageJson.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highfivve/ad-tag",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "An ad tag implementation called moli",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
61
61
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
62
62
|
"@rollup/plugin-replace": "^5.0.7",
|
|
63
|
-
"@rollup/plugin-terser": "^0.
|
|
63
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
64
64
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
65
65
|
"@types/chai": "4.2.18",
|
|
66
66
|
"@types/chai-as-promised": "^7.1.4",
|
|
@@ -83,20 +83,20 @@
|
|
|
83
83
|
"commander": "^12.1.0",
|
|
84
84
|
"cssnano": "^5.1.15",
|
|
85
85
|
"daisyui": "^4.12.24",
|
|
86
|
-
"esbuild": "^0.
|
|
86
|
+
"esbuild": "^0.28.1",
|
|
87
87
|
"eslint": "^7.26.0",
|
|
88
88
|
"eslint-config-prettier": "^8.3.0",
|
|
89
89
|
"eslint-plugin-jsdoc": "^34.8.1",
|
|
90
90
|
"eslint-plugin-preact": "^0.1.0",
|
|
91
91
|
"jsdom": "19.0.0",
|
|
92
|
-
"mocha": "11.7.6",
|
|
92
|
+
"mocha": "^11.7.6",
|
|
93
93
|
"mocha-junit-reporter": "2.2.1",
|
|
94
|
-
"np": "^10.0
|
|
94
|
+
"np": "^10.3.0",
|
|
95
95
|
"postcss": "^8.4.47",
|
|
96
96
|
"postcss-cli": "^11.0.0",
|
|
97
97
|
"postcss-color-function": "^4.1.0",
|
|
98
98
|
"postcss-custom-media": "^8.0.2",
|
|
99
|
-
"postcss-custom-properties": "^
|
|
99
|
+
"postcss-custom-properties": "^15.0.1",
|
|
100
100
|
"postcss-extend": "^1.0.5",
|
|
101
101
|
"postcss-import": "^14.1.0",
|
|
102
102
|
"postcss-mixins": "^8.0.0",
|