@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/lib/index.js
CHANGED
|
@@ -5272,7 +5272,7 @@ class App {
|
|
|
5272
5272
|
this.stopCallbacks = [];
|
|
5273
5273
|
this.commitCallbacks = [];
|
|
5274
5274
|
this.activityState = ActivityState.NotActive;
|
|
5275
|
-
this.version = '16.4.
|
|
5275
|
+
this.version = '16.4.6'; // TODO: version compatability check inside each plugin.
|
|
5276
5276
|
this.socketMode = false;
|
|
5277
5277
|
this.compressionThreshold = 24 * 1000;
|
|
5278
5278
|
this.bc = null;
|
|
@@ -7673,7 +7673,10 @@ function Timing (app, opts) {
|
|
|
7673
7673
|
if (shouldSkip) {
|
|
7674
7674
|
return;
|
|
7675
7675
|
}
|
|
7676
|
-
|
|
7676
|
+
const entryName = options.resourceNameSanitizer
|
|
7677
|
+
? options.resourceNameSanitizer(entry.name)
|
|
7678
|
+
: entry.name;
|
|
7679
|
+
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,
|
|
7677
7680
|
// @ts-ignore
|
|
7678
7681
|
(entry.responseStatus && entry.responseStatus === 304) || entry.transferSize === 0));
|
|
7679
7682
|
}
|
|
@@ -9649,7 +9652,7 @@ class API {
|
|
|
9649
9652
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9650
9653
|
const doNotTrack = this.checkDoNotTrack();
|
|
9651
9654
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9652
|
-
trackerVersion: '16.4.
|
|
9655
|
+
trackerVersion: '16.4.6',
|
|
9653
9656
|
projectKey: this.options.projectKey,
|
|
9654
9657
|
doNotTrack,
|
|
9655
9658
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|