coveo.analytics 2.28.24 → 2.28.25
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 +2 -2
- package/dist/coveoua.browser.js +1 -1
- package/dist/coveoua.browser.js.map +1 -1
- package/dist/coveoua.debug.js +2 -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/version.d.ts +1 -1
- package/dist/library.cjs +2 -2
- package/dist/library.es.js +2 -2
- package/dist/library.js +2 -2
- package/dist/library.mjs +2 -2
- package/dist/react-native.es.js +2 -2
- package/package.json +1 -1
- package/src/client/analytics.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const libVersion = "2.28.
|
|
1
|
+
export declare const libVersion = "2.28.25";
|
package/dist/library.cjs
CHANGED
|
@@ -731,7 +731,7 @@ function sha1(bytes) {
|
|
|
731
731
|
const v5 = v35('v5', 0x50, sha1);
|
|
732
732
|
var uuidv5 = v5;
|
|
733
733
|
|
|
734
|
-
var libVersion = "2.28.
|
|
734
|
+
var libVersion = "2.28.25" ;
|
|
735
735
|
|
|
736
736
|
var getFormattedLocation = function (location) {
|
|
737
737
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
|
@@ -83115,7 +83115,7 @@ var CoveoAnalyticsClient = (function () {
|
|
|
83115
83115
|
switch (_b.label) {
|
|
83116
83116
|
case 0:
|
|
83117
83117
|
_b.trys.push([0, 3, , 4]);
|
|
83118
|
-
_a = this.extractClientIdFromLink(window.location.href);
|
|
83118
|
+
_a = (hasWindow() && this.extractClientIdFromLink(window.location.href));
|
|
83119
83119
|
if (_a) return [3, 2];
|
|
83120
83120
|
return [4, this.storage.getItem('visitorId')];
|
|
83121
83121
|
case 1:
|
package/dist/library.es.js
CHANGED
|
@@ -596,7 +596,7 @@ function sha1(bytes) {
|
|
|
596
596
|
const v5 = v35('v5', 0x50, sha1);
|
|
597
597
|
var uuidv5 = v5;
|
|
598
598
|
|
|
599
|
-
const libVersion = "2.28.
|
|
599
|
+
const libVersion = "2.28.25" ;
|
|
600
600
|
|
|
601
601
|
const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
|
|
602
602
|
|
|
@@ -1303,7 +1303,7 @@ class CoveoAnalyticsClient {
|
|
|
1303
1303
|
determineVisitorId() {
|
|
1304
1304
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1305
1305
|
try {
|
|
1306
|
-
return (this.extractClientIdFromLink(window.location.href) ||
|
|
1306
|
+
return ((hasWindow() && this.extractClientIdFromLink(window.location.href)) ||
|
|
1307
1307
|
(yield this.storage.getItem('visitorId')) ||
|
|
1308
1308
|
v4());
|
|
1309
1309
|
}
|
package/dist/library.js
CHANGED
|
@@ -731,7 +731,7 @@ function sha1(bytes) {
|
|
|
731
731
|
const v5 = v35('v5', 0x50, sha1);
|
|
732
732
|
var uuidv5 = v5;
|
|
733
733
|
|
|
734
|
-
var libVersion = "2.28.
|
|
734
|
+
var libVersion = "2.28.25" ;
|
|
735
735
|
|
|
736
736
|
var getFormattedLocation = function (location) {
|
|
737
737
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
|
@@ -83115,7 +83115,7 @@ var CoveoAnalyticsClient = (function () {
|
|
|
83115
83115
|
switch (_b.label) {
|
|
83116
83116
|
case 0:
|
|
83117
83117
|
_b.trys.push([0, 3, , 4]);
|
|
83118
|
-
_a = this.extractClientIdFromLink(window.location.href);
|
|
83118
|
+
_a = (hasWindow() && this.extractClientIdFromLink(window.location.href));
|
|
83119
83119
|
if (_a) return [3, 2];
|
|
83120
83120
|
return [4, this.storage.getItem('visitorId')];
|
|
83121
83121
|
case 1:
|
package/dist/library.mjs
CHANGED
|
@@ -729,7 +729,7 @@ function sha1(bytes) {
|
|
|
729
729
|
const v5 = v35('v5', 0x50, sha1);
|
|
730
730
|
var uuidv5 = v5;
|
|
731
731
|
|
|
732
|
-
var libVersion = "2.28.
|
|
732
|
+
var libVersion = "2.28.25" ;
|
|
733
733
|
|
|
734
734
|
var getFormattedLocation = function (location) {
|
|
735
735
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
|
@@ -83113,7 +83113,7 @@ var CoveoAnalyticsClient = (function () {
|
|
|
83113
83113
|
switch (_b.label) {
|
|
83114
83114
|
case 0:
|
|
83115
83115
|
_b.trys.push([0, 3, , 4]);
|
|
83116
|
-
_a = this.extractClientIdFromLink(window.location.href);
|
|
83116
|
+
_a = (hasWindow() && this.extractClientIdFromLink(window.location.href));
|
|
83117
83117
|
if (_a) return [3, 2];
|
|
83118
83118
|
return [4, this.storage.getItem('visitorId')];
|
|
83119
83119
|
case 1:
|
package/dist/react-native.es.js
CHANGED
|
@@ -658,7 +658,7 @@ const addPageViewToHistory = (pageViewValue) => __awaiter(void 0, void 0, void 0
|
|
|
658
658
|
yield store.addElementAsync(historyElement);
|
|
659
659
|
});
|
|
660
660
|
|
|
661
|
-
const libVersion = "2.28.
|
|
661
|
+
const libVersion = "2.28.25" ;
|
|
662
662
|
|
|
663
663
|
const getFormattedLocation = (location) => `${location.protocol}//${location.hostname}${location.pathname.indexOf('/') === 0 ? location.pathname : `/${location.pathname}`}${location.search}`;
|
|
664
664
|
|
|
@@ -1304,7 +1304,7 @@ class CoveoAnalyticsClient {
|
|
|
1304
1304
|
determineVisitorId() {
|
|
1305
1305
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1306
1306
|
try {
|
|
1307
|
-
return (this.extractClientIdFromLink(window.location.href) ||
|
|
1307
|
+
return ((hasWindow() && this.extractClientIdFromLink(window.location.href)) ||
|
|
1308
1308
|
(yield this.storage.getItem('visitorId')) ||
|
|
1309
1309
|
v4());
|
|
1310
1310
|
}
|
package/package.json
CHANGED
package/src/client/analytics.ts
CHANGED
|
@@ -214,7 +214,7 @@ export class CoveoAnalyticsClient implements AnalyticsClient, VisitorIdProvider
|
|
|
214
214
|
private async determineVisitorId() {
|
|
215
215
|
try {
|
|
216
216
|
return (
|
|
217
|
-
this.extractClientIdFromLink(window.location.href) ||
|
|
217
|
+
(hasWindow() && this.extractClientIdFromLink(window.location.href)) ||
|
|
218
218
|
(await this.storage.getItem('visitorId')) ||
|
|
219
219
|
uuidv4()
|
|
220
220
|
);
|