@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.umd.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 = "2.2.9";
155
+ var version = "3.0.0";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -2341,7 +2341,7 @@
2341
2341
  // even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
2342
2342
  // the core SDK for consistency
2343
2343
  Builder.prototype.requestUrl = function (url, options) {
2344
- return getFetch()(url, __assign({ next: __assign({ revalidate: 1 }, options === null || options === void 0 ? void 0 : options.next) }, options)).then(function (res) { return res.json(); });
2344
+ return getFetch()(url, options).then(function (res) { return res.json(); });
2345
2345
  };
2346
2346
  Object.defineProperty(Builder.prototype, "host", {
2347
2347
  get: function () {
@@ -2437,7 +2437,7 @@
2437
2437
  }
2438
2438
  // TODO: merge in the attribute from query string ones
2439
2439
  // TODO: make this an option per component/request
2440
- queryParams.userAttributes = userAttributes;
2440
+ queryParams.userAttributes = JSON.stringify(userAttributes);
2441
2441
  if (!usePastQueue && !useQueue) {
2442
2442
  this.priorContentQueue = queue;
2443
2443
  this.getContentQueue = null;
@@ -2515,7 +2515,7 @@
2515
2515
  }
2516
2516
  var queryStr = QueryString.stringifyDeep(queryParams);
2517
2517
  var format = queryParams.format;
2518
- var requestOptions = { headers: {}, next: { revalidate: 1 } };
2518
+ var requestOptions = { headers: {} };
2519
2519
  if (this.authToken) {
2520
2520
  requestOptions.headers = __assign(__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
2521
2521
  }