@glomex/integration-analytics 1.1491.0 → 1.1492.0

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.
@@ -1,6 +1,4 @@
1
1
  import { IntegrationEvent } from '@glomex/integration-web-component';
2
- /** Ad break types that are tracked (linear ads) */
3
- const LINEAR_AD_BREAKS = ['preroll', 'midroll', 'postroll'];
4
2
  /**
5
3
  * All playback events that analytics adapters may track
6
4
  */
@@ -286,12 +284,12 @@ export class BaseEventMapper {
286
284
  // no-op
287
285
  }
288
286
  /**
289
- * Check if the ad is a linear ad (preroll, midroll, postroll).
287
+ * Check if the ad is a linear ad.
290
288
  */
291
289
  #isLinearAd(ad) {
292
290
  if (!ad)
293
291
  return false;
294
- return LINEAR_AD_BREAKS.includes(ad.breakName);
292
+ return ad.adFormat === 'linear';
295
293
  }
296
294
  /**
297
295
  * Tears down the event mapper:
@@ -29,7 +29,7 @@ export declare class NpawTurboPlayerAdAdapter {
29
29
  getPosition(): string | null;
30
30
  registerListeners(): void;
31
31
  unregisterListeners(): void;
32
- _isSupportedAd(): boolean | undefined;
32
+ _isSupportedAd(): boolean;
33
33
  impressionListener(): void;
34
34
  pausedListener(): void;
35
35
  resumedListener(): void;
@@ -91,7 +91,7 @@ export class NpawTurboPlayerAdAdapter {
91
91
  }
92
92
  _isSupportedAd() {
93
93
  // for now we do not track non-linear ads
94
- return this.player.currentAd?.isLinear;
94
+ return this.player.currentAd?.adFormat === 'linear';
95
95
  }
96
96
  impressionListener() {
97
97
  if (!this._isSupportedAd())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-analytics",
3
- "version": "1.1491.0",
3
+ "version": "1.1492.0",
4
4
  "description": "Analytics integrations for the turbo player",
5
5
  "documentation": "https://docs.glomex.com",
6
6
  "homepage": "https://glomex.com",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@comscore/analytics": "^7.13.2",
55
- "@glomex/integration-web-component": "1.1491.0",
55
+ "@glomex/integration-web-component": "1.1492.0",
56
56
  "npaw-plugin": "^7.3.18"
57
57
  },
58
58
  "devDependencies": {
@@ -63,5 +63,5 @@
63
63
  "access": "public"
64
64
  },
65
65
  "license": "MIT",
66
- "gitHead": "f70a983ee5f3afbb63415301d071f9d20ea9c8ec"
66
+ "gitHead": "c8251c8e398b1e7662a4a8448ef9b7bda1d03811"
67
67
  }