@openreplay/tracker 17.1.2 → 17.1.3
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/cjs/entry.js +4 -4
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/modules/viewport.d.ts +3 -3
- package/dist/lib/entry.js +4 -4
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/modules/viewport.d.ts +3 -3
- package/dist/types/main/modules/viewport.d.ts +3 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -4402,7 +4402,7 @@ class App {
|
|
|
4402
4402
|
this.stopCallbacks = [];
|
|
4403
4403
|
this.commitCallbacks = [];
|
|
4404
4404
|
this.activityState = ActivityState.NotActive;
|
|
4405
|
-
this.version = '17.1.
|
|
4405
|
+
this.version = '17.1.3'; // TODO: version compatability check inside each plugin.
|
|
4406
4406
|
this.socketMode = false;
|
|
4407
4407
|
this.compressionThreshold = 24 * 1000;
|
|
4408
4408
|
this.bc = null;
|
|
@@ -7012,7 +7012,7 @@ function Viewport (app, options) {
|
|
|
7012
7012
|
if (options?.replaceHashSymbol) {
|
|
7013
7013
|
// replace hash router symbol if needed without affecting pathname of the url
|
|
7014
7014
|
const u = new URL(currURL);
|
|
7015
|
-
const hashRoute = u.hash.startsWith(
|
|
7015
|
+
const hashRoute = u.hash.startsWith('#/') ? u.hash.slice(2) : "";
|
|
7016
7016
|
const routePath = hashRoute ? "/" + hashRoute.replace(/^\/+/, "") : "";
|
|
7017
7017
|
const cleaned = u.origin + u.pathname.replace(/\/$/, "") + routePath + u.search;
|
|
7018
7018
|
url = cleaned;
|
|
@@ -9232,7 +9232,7 @@ class ConstantProperties {
|
|
|
9232
9232
|
user_id: this.user_id,
|
|
9233
9233
|
distinct_id: this.deviceId,
|
|
9234
9234
|
sdk_edition: 'web',
|
|
9235
|
-
sdk_version: '17.1.
|
|
9235
|
+
sdk_version: '17.1.3',
|
|
9236
9236
|
timezone: getUTCOffsetString(),
|
|
9237
9237
|
search_engine: this.searchEngine,
|
|
9238
9238
|
};
|
|
@@ -9876,7 +9876,7 @@ class API {
|
|
|
9876
9876
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9877
9877
|
const doNotTrack = this.checkDoNotTrack();
|
|
9878
9878
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9879
|
-
trackerVersion: '17.1.
|
|
9879
|
+
trackerVersion: '17.1.3',
|
|
9880
9880
|
projectKey: this.options.projectKey,
|
|
9881
9881
|
doNotTrack,
|
|
9882
9882
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|