@highfivve/ad-tag 5.8.22 → 5.8.23
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.
|
@@ -49,7 +49,7 @@ export const MoliAnalytics = () => {
|
|
|
49
49
|
};
|
|
50
50
|
const configValid = (config, logger) => {
|
|
51
51
|
if (!config) {
|
|
52
|
-
logger.
|
|
52
|
+
logger.debug('moli-analytics: not configured');
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
if (!config.publisher) {
|
|
@@ -72,7 +72,8 @@ export const MoliAnalytics = () => {
|
|
|
72
72
|
};
|
|
73
73
|
const initMoliAnalytics = async (adPipelineContext) => {
|
|
74
74
|
if (!configValid(config, adPipelineContext.logger__)) {
|
|
75
|
-
|
|
75
|
+
adPipelineContext.logger__.error('failed to initialize moli analytics: invalid or no configuration');
|
|
76
|
+
return Promise.resolve();
|
|
76
77
|
}
|
|
77
78
|
eventContext = {
|
|
78
79
|
publisher: config.publisher,
|
package/lib/gen/packageJson.js
CHANGED