@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/lib/index.js
CHANGED
|
@@ -4398,7 +4398,7 @@ class App {
|
|
|
4398
4398
|
this.stopCallbacks = [];
|
|
4399
4399
|
this.commitCallbacks = [];
|
|
4400
4400
|
this.activityState = ActivityState.NotActive;
|
|
4401
|
-
this.version = '17.1.
|
|
4401
|
+
this.version = '17.1.3'; // TODO: version compatability check inside each plugin.
|
|
4402
4402
|
this.socketMode = false;
|
|
4403
4403
|
this.compressionThreshold = 24 * 1000;
|
|
4404
4404
|
this.bc = null;
|
|
@@ -7008,7 +7008,7 @@ function Viewport (app, options) {
|
|
|
7008
7008
|
if (options?.replaceHashSymbol) {
|
|
7009
7009
|
// replace hash router symbol if needed without affecting pathname of the url
|
|
7010
7010
|
const u = new URL(currURL);
|
|
7011
|
-
const hashRoute = u.hash.startsWith(
|
|
7011
|
+
const hashRoute = u.hash.startsWith('#/') ? u.hash.slice(2) : "";
|
|
7012
7012
|
const routePath = hashRoute ? "/" + hashRoute.replace(/^\/+/, "") : "";
|
|
7013
7013
|
const cleaned = u.origin + u.pathname.replace(/\/$/, "") + routePath + u.search;
|
|
7014
7014
|
url = cleaned;
|
|
@@ -9228,7 +9228,7 @@ class ConstantProperties {
|
|
|
9228
9228
|
user_id: this.user_id,
|
|
9229
9229
|
distinct_id: this.deviceId,
|
|
9230
9230
|
sdk_edition: 'web',
|
|
9231
|
-
sdk_version: '17.1.
|
|
9231
|
+
sdk_version: '17.1.3',
|
|
9232
9232
|
timezone: getUTCOffsetString(),
|
|
9233
9233
|
search_engine: this.searchEngine,
|
|
9234
9234
|
};
|
|
@@ -9872,7 +9872,7 @@ class API {
|
|
|
9872
9872
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9873
9873
|
const doNotTrack = this.checkDoNotTrack();
|
|
9874
9874
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9875
|
-
trackerVersion: '17.1.
|
|
9875
|
+
trackerVersion: '17.1.3',
|
|
9876
9876
|
projectKey: this.options.projectKey,
|
|
9877
9877
|
doNotTrack,
|
|
9878
9878
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|