@builder.io/sdk 3.0.1 → 3.0.2-1
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/index.browser.js +8 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +8 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +8 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.d.ts +3 -0
- package/dist/src/builder.class.js +7 -0
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/classes/promise.class.js +150 -154
- package/dist/src/classes/query-string.class.js +73 -74
- package/dist/src/classes/query-string.class.test.js +20 -20
- package/dist/src/functions/assign.function.js +19 -19
- package/dist/src/functions/fetch.function.js +97 -75
- package/dist/src/functions/finder.function.js +389 -274
- package/dist/src/functions/get-top-level-domain.js +8 -8
- package/dist/src/functions/next-tick.function.js +26 -23
- package/dist/src/functions/omit.function.js +13 -13
- package/dist/src/functions/server-only-require.function.js +10 -9
- package/dist/src/functions/throttle.function.js +35 -37
- package/dist/src/functions/to-error.js +5 -6
- package/dist/src/functions/uuid.js +9 -8
- package/dist/src/types/api-version.js +3 -3
- package/dist/src/types/element.js +3 -3
- package/dist/src/url.test.js +222 -118
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/.yarnrc.yml +0 -1
package/dist/index.browser.js
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
var version = "3.0.
|
|
155
|
+
var version = "3.0.2-0";
|
|
156
156
|
|
|
157
157
|
var Subscription = /** @class */ (function () {
|
|
158
158
|
function Subscription(listeners, listener) {
|
|
@@ -2206,6 +2206,12 @@
|
|
|
2206
2206
|
};
|
|
2207
2207
|
Builder.prototype.setUserAttributes = function (options) {
|
|
2208
2208
|
assign(Builder.overrideUserAttributes, options);
|
|
2209
|
+
try {
|
|
2210
|
+
this.setCookie(Builder.attributesCookieName, JSON.stringify(this.getUserAttributes()));
|
|
2211
|
+
}
|
|
2212
|
+
catch (_a) {
|
|
2213
|
+
// Ignore
|
|
2214
|
+
}
|
|
2209
2215
|
this.userAttributesChanged.next(options);
|
|
2210
2216
|
};
|
|
2211
2217
|
/**
|
|
@@ -2712,6 +2718,7 @@
|
|
|
2712
2718
|
Builder.plugins = [];
|
|
2713
2719
|
Builder.actions = [];
|
|
2714
2720
|
Builder.registry = {};
|
|
2721
|
+
Builder.attributesCookieName = 'builder.userAttributes';
|
|
2715
2722
|
Builder.registryChange = new BehaviorSubject({});
|
|
2716
2723
|
Builder._editingPage = false;
|
|
2717
2724
|
Builder.isIframe = isIframe;
|