@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.cjs.js
CHANGED
|
@@ -129,7 +129,7 @@ function assertAllowedPropertyName(name) {
|
|
|
129
129
|
throw new Error("Property name \"" + name + "\" is not allowed");
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
var version = "1.1.25
|
|
132
|
+
var version = "1.1.25";
|
|
133
133
|
|
|
134
134
|
var Subscription = /** @class */ (function () {
|
|
135
135
|
function Subscription(listeners, listener) {
|
|
@@ -1444,6 +1444,7 @@ var Builder = /** @class */ (function () {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
1446
|
Builder.prototype.getSessionId = function () {
|
|
1447
|
+
var _this = this;
|
|
1447
1448
|
var sessionId = null;
|
|
1448
1449
|
try {
|
|
1449
1450
|
if (Builder.isBrowser && typeof sessionStorage !== 'undefined') {
|
|
@@ -1459,7 +1460,16 @@ var Builder = /** @class */ (function () {
|
|
|
1459
1460
|
}
|
|
1460
1461
|
// Give the app a second to start up and set canTrack to false if needed
|
|
1461
1462
|
if (Builder.isBrowser) {
|
|
1462
|
-
|
|
1463
|
+
setTimeout(function () {
|
|
1464
|
+
try {
|
|
1465
|
+
if (_this.canTrack) {
|
|
1466
|
+
_this.setCookie(sessionStorageKey, sessionId, datePlusMinutes(30));
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
catch (err) {
|
|
1470
|
+
console.debug('Cookie setting error', err);
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1463
1473
|
}
|
|
1464
1474
|
return sessionId;
|
|
1465
1475
|
};
|