coveo.analytics 2.28.22 → 2.28.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.
- package/dist/browser.mjs +5 -1
- package/dist/coveoua.browser.js +1 -1
- package/dist/coveoua.browser.js.map +1 -1
- package/dist/coveoua.debug.js +5 -2
- package/dist/coveoua.debug.js.map +1 -1
- package/dist/coveoua.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/events.d.ts +7 -7
- package/dist/definitions/version.d.ts +1 -1
- package/dist/library.cjs +5 -2
- package/dist/library.es.js +5 -1
- package/dist/library.js +5 -2
- package/dist/library.mjs +5 -2
- package/dist/react-native.es.js +5 -1
- package/package.json +1 -1
- package/src/client/analytics.spec.ts +66 -2
- package/src/client/analytics.ts +5 -0
- package/src/coveoua/simpleanalytics.ts +0 -1
- package/src/events.ts +7 -7
- package/src/insight/insightClient.spec.ts +1 -1
package/dist/coveoua.debug.js
CHANGED
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
const v5 = v35('v5', 0x50, sha1);
|
|
729
729
|
var uuidv5 = v5;
|
|
730
730
|
|
|
731
|
-
var libVersion = "2.28.
|
|
731
|
+
var libVersion = "2.28.23" ;
|
|
732
732
|
|
|
733
733
|
var getFormattedLocation = function (location) {
|
|
734
734
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
|
@@ -1551,6 +1551,10 @@
|
|
|
1551
1551
|
this.clear();
|
|
1552
1552
|
this.runtime.storage = new NullStorage();
|
|
1553
1553
|
}
|
|
1554
|
+
this.addEventTypeMapping(EventType.view, { newEventType: EventType.view, addClientIdParameter: true });
|
|
1555
|
+
this.addEventTypeMapping(EventType.click, { newEventType: EventType.click, addClientIdParameter: true });
|
|
1556
|
+
this.addEventTypeMapping(EventType.custom, { newEventType: EventType.custom, addClientIdParameter: true });
|
|
1557
|
+
this.addEventTypeMapping(EventType.search, { newEventType: EventType.search, addClientIdParameter: true });
|
|
1554
1558
|
}
|
|
1555
1559
|
Object.defineProperty(CoveoAnalyticsClient.prototype, "defaultOptions", {
|
|
1556
1560
|
get: function () {
|
|
@@ -2536,7 +2540,6 @@
|
|
|
2536
2540
|
return _this.plugins.require(pluginKey, pluginOptions_1);
|
|
2537
2541
|
});
|
|
2538
2542
|
this.client.registerBeforeSendEventHook(function (eventType, payload) { return (__assign(__assign({}, payload), _this.params)); });
|
|
2539
|
-
this.client.addEventTypeMapping(EventType.view, { newEventType: EventType.view, addClientIdParameter: true });
|
|
2540
2543
|
}
|
|
2541
2544
|
else {
|
|
2542
2545
|
throw new Error("You must pass either your token or a valid object when you call 'init'");
|