@builder.io/sdk 2.2.9 → 3.0.0
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 +10 -0
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.js +3 -3
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -118,7 +118,7 @@ function assertAllowedPropertyName(name) {
|
|
|
118
118
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
var version = "
|
|
121
|
+
var version = "3.0.0";
|
|
122
122
|
|
|
123
123
|
var Subscription = /** @class */ (function () {
|
|
124
124
|
function Subscription(listeners, listener) {
|
|
@@ -2239,7 +2239,7 @@ var Builder = /** @class */ (function () {
|
|
|
2239
2239
|
// even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
|
|
2240
2240
|
// the core SDK for consistency
|
|
2241
2241
|
Builder.prototype.requestUrl = function (url, options) {
|
|
2242
|
-
return getFetch()(url,
|
|
2242
|
+
return getFetch()(url, options).then(function (res) { return res.json(); });
|
|
2243
2243
|
};
|
|
2244
2244
|
Object.defineProperty(Builder.prototype, "host", {
|
|
2245
2245
|
get: function () {
|
|
@@ -2335,7 +2335,7 @@ var Builder = /** @class */ (function () {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
// TODO: merge in the attribute from query string ones
|
|
2337
2337
|
// TODO: make this an option per component/request
|
|
2338
|
-
queryParams.userAttributes = userAttributes;
|
|
2338
|
+
queryParams.userAttributes = JSON.stringify(userAttributes);
|
|
2339
2339
|
if (!usePastQueue && !useQueue) {
|
|
2340
2340
|
this.priorContentQueue = queue;
|
|
2341
2341
|
this.getContentQueue = null;
|
|
@@ -2413,7 +2413,7 @@ var Builder = /** @class */ (function () {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
var queryStr = QueryString.stringifyDeep(queryParams);
|
|
2415
2415
|
var format = queryParams.format;
|
|
2416
|
-
var requestOptions = { headers: {}
|
|
2416
|
+
var requestOptions = { headers: {} };
|
|
2417
2417
|
if (this.authToken) {
|
|
2418
2418
|
requestOptions.headers = __assign(__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
|
|
2419
2419
|
}
|