@openreplay/tracker 16.1.0-beta.6 → 16.1.0-beta.8

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 CHANGED
@@ -747,10 +747,8 @@ class StringDictionary {
747
747
  class AttributeSender {
748
748
  constructor(options) {
749
749
  this.sendSetAttribute = (id, name, value) => {
750
- let attr = `${value}`;
751
- if (attr.includes('[native code]')) {
752
- attr = attr.replace('[native code]', '');
753
- }
750
+ // @ts-ignore
751
+ const attr = typeof value === 'string' ? value : (value.toString?.() ?? '');
754
752
  if (this.isDictDisabled) {
755
753
  const msg = [12 /* Type.SetNodeAttribute */, id, name, attr];
756
754
  return this.app.send(msg);
@@ -4714,7 +4712,7 @@ class App {
4714
4712
  this.stopCallbacks = [];
4715
4713
  this.commitCallbacks = [];
4716
4714
  this.activityState = ActivityState.NotActive;
4717
- this.version = '16.1.0-beta.6'; // TODO: version compatability check inside each plugin.
4715
+ this.version = '16.1.0-beta.8'; // TODO: version compatability check inside each plugin.
4718
4716
  this.socketMode = false;
4719
4717
  this.compressionThreshold = 24 * 1000;
4720
4718
  this.bc = null;
@@ -9191,7 +9189,7 @@ class API {
9191
9189
  this.signalStartIssue = (reason, missingApi) => {
9192
9190
  const doNotTrack = this.checkDoNotTrack();
9193
9191
  console.log("Tracker couldn't start due to:", JSON.stringify({
9194
- trackerVersion: '16.1.0-beta.6',
9192
+ trackerVersion: '16.1.0-beta.8',
9195
9193
  projectKey: this.options.projectKey,
9196
9194
  doNotTrack,
9197
9195
  reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,