coveo.analytics 2.18.51 → 2.18.52

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.
package/dist/library.js CHANGED
@@ -3414,8 +3414,8 @@ var BasePlugin = (function () {
3414
3414
  this.currentLocation = location;
3415
3415
  if (eventType === BasePluginEventTypes.pageview) {
3416
3416
  this.nextPageViewId = this.uuidGenerator();
3417
+ this.hasSentFirstPageView = true;
3417
3418
  }
3418
- this.hasSentFirstPageView = true;
3419
3419
  };
3420
3420
  BasePlugin.prototype.getNextValues = function (eventType, payload) {
3421
3421
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.18.51",
3
+ "version": "2.18.52",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",
@@ -97,12 +97,11 @@ export abstract class BasePlugin {
97
97
 
98
98
  if (eventType === BasePluginEventTypes.pageview) {
99
99
  this.nextPageViewId = this.uuidGenerator();
100
+ this.hasSentFirstPageView = true;
100
101
  }
101
-
102
- this.hasSentFirstPageView = true;
103
102
  }
104
103
 
105
- /*
104
+ /*
106
105
  When calling getPayload or getParameters, we need to return what would be sent by the API without updating our internal reference.
107
106
  For instance, if you getPayload("pageview"), we want to return the same payload as if you did coveoua("send", "pageview").
108
107
  */