@openreplay/tracker 15.0.7 → 15.0.8-beta.0
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/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/observer/observer.d.ts +1 -0
- package/dist/lib/index.js +5 -5
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/observer/observer.d.ts +1 -0
- package/dist/types/main/app/observer/observer.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -3730,8 +3730,7 @@ class Nodes {
|
|
|
3730
3730
|
|
|
3731
3731
|
const iconCache = {};
|
|
3732
3732
|
const svgUrlCache = {};
|
|
3733
|
-
|
|
3734
|
-
async function parseUseEl(useElement, mode) {
|
|
3733
|
+
async function parseUseEl(useElement, mode, domParser) {
|
|
3735
3734
|
try {
|
|
3736
3735
|
const href = useElement.getAttribute('xlink:href') || useElement.getAttribute('href');
|
|
3737
3736
|
if (!href) {
|
|
@@ -3846,6 +3845,7 @@ class Observer {
|
|
|
3846
3845
|
this.attributesMap = new Map();
|
|
3847
3846
|
this.textSet = new Set();
|
|
3848
3847
|
this.disableSprites = false;
|
|
3848
|
+
this.domParser = new DOMParser();
|
|
3849
3849
|
this.disableSprites = options.disableSprites;
|
|
3850
3850
|
this.observer = createMutationObserver(this.app.safe((mutations) => {
|
|
3851
3851
|
for (const mutation of mutations) {
|
|
@@ -3942,7 +3942,7 @@ class Observer {
|
|
|
3942
3942
|
this.app.send(RemoveNodeAttribute(id, name));
|
|
3943
3943
|
}
|
|
3944
3944
|
if (isUseElement(node) && name === 'href' && !this.disableSprites) {
|
|
3945
|
-
parseUseEl(node, 'svgtext')
|
|
3945
|
+
parseUseEl(node, 'svgtext', this.domParser)
|
|
3946
3946
|
.then((svgData) => {
|
|
3947
3947
|
if (svgData) {
|
|
3948
3948
|
this.app.send(SetNodeAttribute(id, name, `_$OPENREPLAY_SPRITE$_${svgData}`));
|
|
@@ -4738,7 +4738,7 @@ class App {
|
|
|
4738
4738
|
this.stopCallbacks = [];
|
|
4739
4739
|
this.commitCallbacks = [];
|
|
4740
4740
|
this.activityState = ActivityState.NotActive;
|
|
4741
|
-
this.version = '15.0.
|
|
4741
|
+
this.version = '15.0.8-beta.0'; // TODO: version compatability check inside each plugin.
|
|
4742
4742
|
this.socketMode = false;
|
|
4743
4743
|
this.compressionThreshold = 24 * 1000;
|
|
4744
4744
|
this.bc = null;
|
|
@@ -9201,7 +9201,7 @@ class API {
|
|
|
9201
9201
|
this.signalStartIssue = (reason, missingApi) => {
|
|
9202
9202
|
const doNotTrack = this.checkDoNotTrack();
|
|
9203
9203
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
9204
|
-
trackerVersion: '15.0.
|
|
9204
|
+
trackerVersion: '15.0.8-beta.0',
|
|
9205
9205
|
projectKey: this.options.projectKey,
|
|
9206
9206
|
doNotTrack,
|
|
9207
9207
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|