@builder.io/sdk 1.1.25 → 1.1.26
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/.tool-versions +1 -0
- package/CHANGELOG.md +3 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +12 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +12 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.js +11 -1
- package/dist/src/builder.class.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -123,7 +123,7 @@ function assertAllowedPropertyName(name) {
|
|
|
123
123
|
throw new Error("Property name \"" + name + "\" is not allowed");
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
var version = "1.1.25
|
|
126
|
+
var version = "1.1.25";
|
|
127
127
|
|
|
128
128
|
var Subscription = /** @class */ (function () {
|
|
129
129
|
function Subscription(listeners, listener) {
|
|
@@ -1438,6 +1438,7 @@ var Builder = /** @class */ (function () {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
};
|
|
1440
1440
|
Builder.prototype.getSessionId = function () {
|
|
1441
|
+
var _this = this;
|
|
1441
1442
|
var sessionId = null;
|
|
1442
1443
|
try {
|
|
1443
1444
|
if (Builder.isBrowser && typeof sessionStorage !== 'undefined') {
|
|
@@ -1453,7 +1454,16 @@ var Builder = /** @class */ (function () {
|
|
|
1453
1454
|
}
|
|
1454
1455
|
// Give the app a second to start up and set canTrack to false if needed
|
|
1455
1456
|
if (Builder.isBrowser) {
|
|
1456
|
-
|
|
1457
|
+
setTimeout(function () {
|
|
1458
|
+
try {
|
|
1459
|
+
if (_this.canTrack) {
|
|
1460
|
+
_this.setCookie(sessionStorageKey, sessionId, datePlusMinutes(30));
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
catch (err) {
|
|
1464
|
+
console.debug('Cookie setting error', err);
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1457
1467
|
}
|
|
1458
1468
|
return sessionId;
|
|
1459
1469
|
};
|