@openreplay/tracker
Advanced tools
Comparing version 12.0.7-beta.1 to 12.0.7
@@ -83,3 +83,3 @@ "use strict"; | ||
this.activityState = ActivityState.NotActive; | ||
this.version = '12.0.7-beta.1'; // TODO: version compatability check inside each plugin. | ||
this.version = '12.0.7'; // TODO: version compatability check inside each plugin. | ||
this.compressionThreshold = 24 * 1000; | ||
@@ -86,0 +86,0 @@ this.restartAttempts = 0; |
@@ -100,3 +100,3 @@ "use strict"; | ||
req.send(JSON.stringify({ | ||
trackerVersion: '12.0.7-beta.1', | ||
trackerVersion: '12.0.7', | ||
projectKey: this.options.projectKey, | ||
@@ -212,3 +212,2 @@ doNotTrack, | ||
const sessStorage = app.sessionStorage ?? window.sessionStorage; | ||
// @ts-ignore ? | ||
window.open = function (...args) { | ||
@@ -221,5 +220,5 @@ if (options.autoResetOnWindowOpen) { | ||
} | ||
wOpen.call(window, ...args); | ||
app.resetNextPageSession(false); | ||
sessStorage.setItem(options.session_tabid_key || '__openreplay_tabid', tabId); | ||
return wOpen.call(window, ...args); | ||
}; | ||
@@ -226,0 +225,0 @@ }); |
@@ -262,3 +262,4 @@ "use strict"; | ||
item.readyState = 4; | ||
void this.handleResponseBody(resp.clone(), item).then((responseValue) => { | ||
this.handleResponseBody(resp.clone(), item) | ||
.then((responseValue) => { | ||
item.responseSize = | ||
@@ -272,2 +273,10 @@ typeof responseValue === 'string' ? responseValue.length : responseValue.byteLength; | ||
} | ||
}) | ||
.catch((e) => { | ||
if (e.name !== 'AbortError') { | ||
throw e; | ||
} | ||
else { | ||
// ignore AbortError | ||
} | ||
}); | ||
@@ -274,0 +283,0 @@ } |
@@ -54,3 +54,3 @@ import ConditionsManager from '../modules/conditionsManager.js'; | ||
this.activityState = ActivityState.NotActive; | ||
this.version = '12.0.7-beta.1'; // TODO: version compatability check inside each plugin. | ||
this.version = '12.0.7'; // TODO: version compatability check inside each plugin. | ||
this.compressionThreshold = 24 * 1000; | ||
@@ -57,0 +57,0 @@ this.restartAttempts = 0; |
@@ -69,3 +69,3 @@ import App, { DEFAULT_INGEST_POINT } from './app/index.js'; | ||
req.send(JSON.stringify({ | ||
trackerVersion: '12.0.7-beta.1', | ||
trackerVersion: '12.0.7', | ||
projectKey: this.options.projectKey, | ||
@@ -181,3 +181,2 @@ doNotTrack, | ||
const sessStorage = app.sessionStorage ?? window.sessionStorage; | ||
// @ts-ignore ? | ||
window.open = function (...args) { | ||
@@ -190,5 +189,5 @@ if (options.autoResetOnWindowOpen) { | ||
} | ||
wOpen.call(window, ...args); | ||
app.resetNextPageSession(false); | ||
sessStorage.setItem(options.session_tabid_key || '__openreplay_tabid', tabId); | ||
return wOpen.call(window, ...args); | ||
}; | ||
@@ -195,0 +194,0 @@ }); |
@@ -235,3 +235,4 @@ /** | ||
item.readyState = 4; | ||
void this.handleResponseBody(resp.clone(), item).then((responseValue) => { | ||
this.handleResponseBody(resp.clone(), item) | ||
.then((responseValue) => { | ||
item.responseSize = | ||
@@ -245,2 +246,10 @@ typeof responseValue === 'string' ? responseValue.length : responseValue.byteLength; | ||
} | ||
}) | ||
.catch((e) => { | ||
if (e.name !== 'AbortError') { | ||
throw e; | ||
} | ||
else { | ||
// ignore AbortError | ||
} | ||
}); | ||
@@ -247,0 +256,0 @@ } |
{ | ||
"name": "@openreplay/tracker", | ||
"description": "The OpenReplay tracker main package", | ||
"version": "12.0.7-beta.1", | ||
"version": "12.0.7", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "logging", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3917047
23224
1