@openreplay/tracker 16.4.5 → 16.4.6
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 +6 -3
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +6 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/modules/timing.d.ts +1 -0
- package/dist/lib/entry.js +6 -3
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +6 -3
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/modules/timing.d.ts +1 -0
- package/dist/types/main/modules/timing.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/entry.js
CHANGED
|
@@ -5276,7 +5276,7 @@ class App {
|
|
|
5276
5276
|
this.stopCallbacks = [];
|
|
5277
5277
|
this.commitCallbacks = [];
|
|
5278
5278
|
this.activityState = ActivityState.NotActive;
|
|
5279
|
-
this.version = '16.4.
|
|
5279
|
+
this.version = '16.4.6'; // TODO: version compatability check inside each plugin.
|
|
5280
5280
|
this.socketMode = false;
|
|
5281
5281
|
this.compressionThreshold = 24 * 1000;
|
|
5282
5282
|
this.bc = null;
|
|
@@ -7677,7 +7677,10 @@ function Timing (app, opts) {
|
|
|
7677
7677
|
if (shouldSkip) {
|
|
7678
7678
|
return;
|
|
7679
7679
|
}
|
|
7680
|
-
|
|
7680
|
+
const entryName = options.resourceNameSanitizer
|
|
7681
|
+
? options.resourceNameSanitizer(entry.name)
|
|
7682
|
+
: entry.name;
|
|
7683
|
+
app.send(ResourceTiming(entry.startTime + getTimeOrigin(), entry.duration, entry.responseStart && entry.startTime ? entry.responseStart - entry.startTime : 0, entry.transferSize > entry.encodedBodySize ? entry.transferSize - entry.encodedBodySize : 0, entry.encodedBodySize || 0, entry.decodedBodySize || 0, app.sanitizer.privateMode ? entry.name.replaceAll(/./g, '*') : entryName, entry.initiatorType, entry.transferSize,
|
|
7681
7684
|
// @ts-ignore
|
|
7682
7685
|
(entry.responseStatus && entry.responseStatus === 304) || entry.transferSize === 0));
|
|
7683
7686
|
}
|
|
@@ -9653,7 +9656,7 @@ class API {
|
|
|
9653
9656
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9654
9657
|
const doNotTrack = this.checkDoNotTrack();
|
|
9655
9658
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9656
|
-
trackerVersion: '16.4.
|
|
9659
|
+
trackerVersion: '16.4.6',
|
|
9657
9660
|
projectKey: this.options.projectKey,
|
|
9658
9661
|
doNotTrack,
|
|
9659
9662
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|