@builder.io/sdk 6.0.3 → 6.0.4
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/CHANGELOG.md +6 -0
- package/dist/index.browser.js +6 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +1 -0
- package/dist/src/builder.class.js +5 -1
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/sdk-version.d.ts +1 -1
- package/dist/src/sdk-version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -950,7 +950,7 @@ function toError(err) {
|
|
|
950
950
|
|
|
951
951
|
var DEFAULT_API_VERSION = 'v3';
|
|
952
952
|
|
|
953
|
-
var SDK_VERSION = '6.0.
|
|
953
|
+
var SDK_VERSION = '6.0.4';
|
|
954
954
|
|
|
955
955
|
function datePlusMinutes(minutes) {
|
|
956
956
|
if (minutes === void 0) { minutes = 30; }
|
|
@@ -1105,6 +1105,7 @@ var Builder = /** @class */ (function () {
|
|
|
1105
1105
|
this.apiEndpoint$ = new BehaviorSubject('query');
|
|
1106
1106
|
this.apiVersion$ = new BehaviorSubject(undefined);
|
|
1107
1107
|
this.canTrack$ = new BehaviorSubject(!this.browserTrackingDisabled);
|
|
1108
|
+
this.hasOverriddenCanTrack = false;
|
|
1108
1109
|
this.apiKey$ = new BehaviorSubject(null);
|
|
1109
1110
|
this.authToken$ = new BehaviorSubject(null);
|
|
1110
1111
|
this.userAttributesChanged = new BehaviorSubject(null);
|
|
@@ -1476,6 +1477,7 @@ var Builder = /** @class */ (function () {
|
|
|
1476
1477
|
return this.canTrack$.value;
|
|
1477
1478
|
},
|
|
1478
1479
|
set: function (canTrack) {
|
|
1480
|
+
this.hasOverriddenCanTrack = true;
|
|
1479
1481
|
if (this.canTrack !== canTrack) {
|
|
1480
1482
|
this.canTrack$.next(canTrack);
|
|
1481
1483
|
}
|
|
@@ -2051,7 +2053,9 @@ var Builder = /** @class */ (function () {
|
|
|
2051
2053
|
if (res) {
|
|
2052
2054
|
this.response = res;
|
|
2053
2055
|
}
|
|
2054
|
-
this.
|
|
2056
|
+
if (!this.hasOverriddenCanTrack) {
|
|
2057
|
+
this.canTrack = canTrack;
|
|
2058
|
+
}
|
|
2055
2059
|
this.apiKey = apiKey;
|
|
2056
2060
|
if (authToken) {
|
|
2057
2061
|
this.authToken = authToken;
|