@openreplay/tracker 12.0.7-beta.0 → 12.0.7-beta.1
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/cjs/app/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/modules/Network/xhrProxy.js +1 -1
- package/lib/app/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/modules/Network/xhrProxy.js +1 -1
- package/package.json +1 -1
package/cjs/app/index.js
CHANGED
|
@@ -80,7 +80,7 @@ class App {
|
|
|
80
80
|
this.stopCallbacks = [];
|
|
81
81
|
this.commitCallbacks = [];
|
|
82
82
|
this.activityState = ActivityState.NotActive;
|
|
83
|
-
this.version = '12.0.7-beta.
|
|
83
|
+
this.version = '12.0.7-beta.1'; // TODO: version compatability check inside each plugin.
|
|
84
84
|
this.compressionThreshold = 24 * 1000;
|
|
85
85
|
this.restartAttempts = 0;
|
|
86
86
|
this.bc = null;
|
package/cjs/index.js
CHANGED
|
@@ -97,7 +97,7 @@ class API {
|
|
|
97
97
|
const orig = this.options.ingestPoint || index_js_1.DEFAULT_INGEST_POINT;
|
|
98
98
|
req.open('POST', orig + '/v1/web/not-started');
|
|
99
99
|
req.send(JSON.stringify({
|
|
100
|
-
trackerVersion: '12.0.7-beta.
|
|
100
|
+
trackerVersion: '12.0.7-beta.1',
|
|
101
101
|
projectKey: this.options.projectKey,
|
|
102
102
|
doNotTrack,
|
|
103
103
|
reason,
|
|
@@ -134,7 +134,7 @@ class XHRProxyHandler {
|
|
|
134
134
|
const method = args[0];
|
|
135
135
|
const url = args[1];
|
|
136
136
|
this.item.method = method ? method.toUpperCase() : 'GET';
|
|
137
|
-
this.item.url = url || '';
|
|
137
|
+
this.item.url = url.toString?.() || '';
|
|
138
138
|
this.item.name = this.item.url?.replace(new RegExp('/*$'), '').split('/').pop() ?? '';
|
|
139
139
|
this.item.getData = (0, utils_js_1.genGetDataByUrl)(this.item.url, {});
|
|
140
140
|
return targetFunction.apply(target, args);
|
package/lib/app/index.js
CHANGED
|
@@ -51,7 +51,7 @@ export default class App {
|
|
|
51
51
|
this.stopCallbacks = [];
|
|
52
52
|
this.commitCallbacks = [];
|
|
53
53
|
this.activityState = ActivityState.NotActive;
|
|
54
|
-
this.version = '12.0.7-beta.
|
|
54
|
+
this.version = '12.0.7-beta.1'; // TODO: version compatability check inside each plugin.
|
|
55
55
|
this.compressionThreshold = 24 * 1000;
|
|
56
56
|
this.restartAttempts = 0;
|
|
57
57
|
this.bc = null;
|
package/lib/index.js
CHANGED
|
@@ -66,7 +66,7 @@ export default class API {
|
|
|
66
66
|
const orig = this.options.ingestPoint || DEFAULT_INGEST_POINT;
|
|
67
67
|
req.open('POST', orig + '/v1/web/not-started');
|
|
68
68
|
req.send(JSON.stringify({
|
|
69
|
-
trackerVersion: '12.0.7-beta.
|
|
69
|
+
trackerVersion: '12.0.7-beta.1',
|
|
70
70
|
projectKey: this.options.projectKey,
|
|
71
71
|
doNotTrack,
|
|
72
72
|
reason,
|
|
@@ -108,7 +108,7 @@ export class XHRProxyHandler {
|
|
|
108
108
|
const method = args[0];
|
|
109
109
|
const url = args[1];
|
|
110
110
|
this.item.method = method ? method.toUpperCase() : 'GET';
|
|
111
|
-
this.item.url = url || '';
|
|
111
|
+
this.item.url = url.toString?.() || '';
|
|
112
112
|
this.item.name = this.item.url?.replace(new RegExp('/*$'), '').split('/').pop() ?? '';
|
|
113
113
|
this.item.getData = genGetDataByUrl(this.item.url, {});
|
|
114
114
|
return targetFunction.apply(target, args);
|