@openreplay/tracker 18.0.15 → 18.0.16
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 +8 -8
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/observer/observer.d.ts +1 -0
- package/dist/lib/entry.js +8 -8
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +8 -8
- 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/lib/index.js
CHANGED
|
@@ -3070,6 +3070,10 @@ function isObservable(node) {
|
|
|
3070
3070
|
}
|
|
3071
3071
|
return !isIgnored(node);
|
|
3072
3072
|
}
|
|
3073
|
+
const PRESERVE_VALUE_INPUT_TYPES = new Set(['button', 'reset', 'submit', 'checkbox', 'radio']);
|
|
3074
|
+
function shouldSkipValueAttribute(node) {
|
|
3075
|
+
return hasTag(node, 'input') && !PRESERVE_VALUE_INPUT_TYPES.has(node.type);
|
|
3076
|
+
}
|
|
3073
3077
|
/*
|
|
3074
3078
|
TODO:
|
|
3075
3079
|
- fix unbinding logic + send all removals first (ensure sequence is correct)
|
|
@@ -3250,11 +3254,7 @@ class Observer {
|
|
|
3250
3254
|
name.substring(0, 2) === 'on') {
|
|
3251
3255
|
return;
|
|
3252
3256
|
}
|
|
3253
|
-
if (name === 'value' &&
|
|
3254
|
-
hasTag(node, 'input') &&
|
|
3255
|
-
node.type !== 'button' &&
|
|
3256
|
-
node.type !== 'reset' &&
|
|
3257
|
-
node.type !== 'submit') {
|
|
3257
|
+
if (name === 'value' && shouldSkipValueAttribute(node)) {
|
|
3258
3258
|
return;
|
|
3259
3259
|
}
|
|
3260
3260
|
if (value === null) {
|
|
@@ -4245,7 +4245,7 @@ class App {
|
|
|
4245
4245
|
this.stopCallbacks = [];
|
|
4246
4246
|
this.commitCallbacks = [];
|
|
4247
4247
|
this.activityState = ActivityState.NotActive;
|
|
4248
|
-
this.version = '18.0.
|
|
4248
|
+
this.version = '18.0.16'; // TODO: version compatability check inside each plugin.
|
|
4249
4249
|
this.socketMode = false;
|
|
4250
4250
|
this.compressionThreshold = 24 * 1000;
|
|
4251
4251
|
this.bc = null;
|
|
@@ -9580,7 +9580,7 @@ class ConstantProperties {
|
|
|
9580
9580
|
user_id: this.user_id,
|
|
9581
9581
|
distinct_id: this.deviceId,
|
|
9582
9582
|
sdk_edition: 'web',
|
|
9583
|
-
sdk_version: '18.0.
|
|
9583
|
+
sdk_version: '18.0.16',
|
|
9584
9584
|
timezone: getUTCOffsetString(),
|
|
9585
9585
|
search_engine: this.searchEngine,
|
|
9586
9586
|
};
|
|
@@ -10282,7 +10282,7 @@ class API {
|
|
|
10282
10282
|
this.signalStartIssue = (reason, missingApi) => {
|
|
10283
10283
|
const doNotTrack = this.checkDoNotTrack();
|
|
10284
10284
|
console.log("Tracker couldn't start due to:", JSON.stringify({
|
|
10285
|
-
trackerVersion: '18.0.
|
|
10285
|
+
trackerVersion: '18.0.16',
|
|
10286
10286
|
projectKey: this.options.projectKey,
|
|
10287
10287
|
doNotTrack,
|
|
10288
10288
|
reason: missingApi.length ? `missing api: ${missingApi.join(',')}` : reason,
|