diff --git a/tracker/tracker/.yarn/install-state.gz b/tracker/tracker/.yarn/install-state.gz index 41b6c9638..7592b3842 100644 Binary files a/tracker/tracker/.yarn/install-state.gz and b/tracker/tracker/.yarn/install-state.gz differ diff --git a/tracker/tracker/CHANGELOG.md b/tracker/tracker/CHANGELOG.md index 8a5114ff2..e74e1fdef 100644 --- a/tracker/tracker/CHANGELOG.md +++ b/tracker/tracker/CHANGELOG.md @@ -1,3 +1,7 @@ +## 15.1.1 + +- fix for attributeSender dictionary keys + ## 15.1.0 - move domparser for sprites under observer code for better SSR support diff --git a/tracker/tracker/package.json b/tracker/tracker/package.json index 2c90d8d64..7cf58ba96 100644 --- a/tracker/tracker/package.json +++ b/tracker/tracker/package.json @@ -1,7 +1,7 @@ { "name": "@openreplay/tracker", "description": "The OpenReplay tracker main package", - "version": "15.1.0", + "version": "15.1.1", "keywords": [ "logging", "replay" diff --git a/tracker/tracker/src/main/modules/attributeSender.ts b/tracker/tracker/src/main/modules/attributeSender.ts index 3f0146a89..00902a302 100644 --- a/tracker/tracker/src/main/modules/attributeSender.ts +++ b/tracker/tracker/src/main/modules/attributeSender.ts @@ -12,12 +12,13 @@ export class StringDictionary { getKey = (str: string): [string, boolean] => { let isNew = false - if (!this.backDict[str]) { + const safeKey = `__${str}` + if (!this.backDict[safeKey]) { isNew = true - this.backDict[str] = `${this.getPageNo() ?? 0}_${this.idx}` + this.backDict[safeKey] = `${this.getPageNo() ?? 0}_${this.idx}` this.idx += 1 } - return [this.backDict[str], isNew] + return [this.backDict[safeKey], isNew] } }