@guardian/commercial-core 0.40.0 → 0.41.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.
@@ -19,7 +19,9 @@ interface SlotEventStatus {
19
19
  }
20
20
  interface PageEventStatus {
21
21
  commercialStart: boolean;
22
- commercialEnd: boolean;
22
+ commercialExtraModulesLoaded: boolean;
23
+ commercialBaseModulesLoaded: boolean;
24
+ commercialModulesLoaded: boolean;
23
25
  }
24
26
  export declare class EventTimer {
25
27
  private _events;
@@ -29,7 +29,9 @@ class EventTimer {
29
29
  },
30
30
  page: {
31
31
  commercialStart: false,
32
- commercialEnd: false,
32
+ commercialExtraModulesLoaded: false,
33
+ commercialBaseModulesLoaded: false,
34
+ commercialModulesLoaded: false,
33
35
  },
34
36
  };
35
37
  this.gaConfig = {
@@ -45,7 +47,7 @@ class EventTimer {
45
47
  timingLabel: 'Commercial start parse time',
46
48
  },
47
49
  {
48
- timingVariable: 'commercialEnd',
50
+ timingVariable: 'commercialModulesLoaded',
49
51
  timingLabel: 'Commercial end parse time',
50
52
  },
51
53
  ],
@@ -19,7 +19,9 @@ interface SlotEventStatus {
19
19
  }
20
20
  interface PageEventStatus {
21
21
  commercialStart: boolean;
22
- commercialEnd: boolean;
22
+ commercialExtraModulesLoaded: boolean;
23
+ commercialBaseModulesLoaded: boolean;
24
+ commercialModulesLoaded: boolean;
23
25
  }
24
26
  export declare class EventTimer {
25
27
  private _events;
@@ -26,7 +26,9 @@ export class EventTimer {
26
26
  },
27
27
  page: {
28
28
  commercialStart: false,
29
- commercialEnd: false,
29
+ commercialExtraModulesLoaded: false,
30
+ commercialBaseModulesLoaded: false,
31
+ commercialModulesLoaded: false,
30
32
  },
31
33
  };
32
34
  this.gaConfig = {
@@ -42,7 +44,7 @@ export class EventTimer {
42
44
  timingLabel: 'Commercial start parse time',
43
45
  },
44
46
  {
45
- timingVariable: 'commercialEnd',
47
+ timingVariable: 'commercialModulesLoaded',
46
48
  timingLabel: 'Commercial end parse time',
47
49
  },
48
50
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/commercial-core",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "Guardian advertising business logic",
5
5
  "homepage": "https://github.com/guardian/commercial-core#readme",
6
6
  "bugs": {
@@ -45,7 +45,7 @@
45
45
  "@commitlint/config-conventional": "^16.0.0",
46
46
  "@guardian/ab-core": "^2.0.0",
47
47
  "@guardian/consent-management-platform": "^10.1.0",
48
- "@guardian/eslint-config-typescript": "^0.7.0",
48
+ "@guardian/eslint-config-typescript": "^1.0.0",
49
49
  "@guardian/libs": "3.6.1",
50
50
  "@guardian/prettier": "^0.7.0",
51
51
  "@octokit/core": "^3.5.1",