@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/dist/index.cjs.js CHANGED
@@ -126,7 +126,7 @@ function assertAllowedPropertyName(name) {
126
126
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
127
127
  }
128
128
 
129
- var version = "2.2.9";
129
+ var version = "3.0.0";
130
130
 
131
131
  var Subscription = /** @class */ (function () {
132
132
  function Subscription(listeners, listener) {
@@ -2247,7 +2247,7 @@ var Builder = /** @class */ (function () {
2247
2247
  // even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
2248
2248
  // the core SDK for consistency
2249
2249
  Builder.prototype.requestUrl = function (url, options) {
2250
- return getFetch()(url, tslib.__assign({ next: tslib.__assign({ revalidate: 1 }, options === null || options === void 0 ? void 0 : options.next) }, options)).then(function (res) { return res.json(); });
2250
+ return getFetch()(url, options).then(function (res) { return res.json(); });
2251
2251
  };
2252
2252
  Object.defineProperty(Builder.prototype, "host", {
2253
2253
  get: function () {
@@ -2343,7 +2343,7 @@ var Builder = /** @class */ (function () {
2343
2343
  }
2344
2344
  // TODO: merge in the attribute from query string ones
2345
2345
  // TODO: make this an option per component/request
2346
- queryParams.userAttributes = userAttributes;
2346
+ queryParams.userAttributes = JSON.stringify(userAttributes);
2347
2347
  if (!usePastQueue && !useQueue) {
2348
2348
  this.priorContentQueue = queue;
2349
2349
  this.getContentQueue = null;
@@ -2421,7 +2421,7 @@ var Builder = /** @class */ (function () {
2421
2421
  }
2422
2422
  var queryStr = QueryString.stringifyDeep(queryParams);
2423
2423
  var format = queryParams.format;
2424
- var requestOptions = { headers: {}, next: { revalidate: 1 } };
2424
+ var requestOptions = { headers: {} };
2425
2425
  if (this.authToken) {
2426
2426
  requestOptions.headers = tslib.__assign(tslib.__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
2427
2427
  }