@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.umd.js
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
throw new Error("Property name \"" + name + "\" is not allowed");
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
var version = "1.1.25
|
|
155
|
+
var version = "1.1.25";
|
|
156
156
|
|
|
157
157
|
var Subscription = /** @class */ (function () {
|
|
158
158
|
function Subscription(listeners, listener) {
|
|
@@ -1535,6 +1535,7 @@
|
|
|
1535
1535
|
}
|
|
1536
1536
|
};
|
|
1537
1537
|
Builder.prototype.getSessionId = function () {
|
|
1538
|
+
var _this = this;
|
|
1538
1539
|
var sessionId = null;
|
|
1539
1540
|
try {
|
|
1540
1541
|
if (Builder.isBrowser && typeof sessionStorage !== 'undefined') {
|
|
@@ -1550,7 +1551,16 @@
|
|
|
1550
1551
|
}
|
|
1551
1552
|
// Give the app a second to start up and set canTrack to false if needed
|
|
1552
1553
|
if (Builder.isBrowser) {
|
|
1553
|
-
|
|
1554
|
+
setTimeout(function () {
|
|
1555
|
+
try {
|
|
1556
|
+
if (_this.canTrack) {
|
|
1557
|
+
_this.setCookie(sessionStorageKey, sessionId, datePlusMinutes(30));
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
catch (err) {
|
|
1561
|
+
console.debug('Cookie setting error', err);
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1554
1564
|
}
|
|
1555
1565
|
return sessionId;
|
|
1556
1566
|
};
|