@builder.io/sdk 2.0.5-0 → 2.0.5

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
@@ -129,7 +129,7 @@ function assertAllowedPropertyName(name) {
129
129
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
130
130
  }
131
131
 
132
- var version = "2.0.4";
132
+ var version = "2.0.5-0";
133
133
 
134
134
  var Subscription = /** @class */ (function () {
135
135
  function Subscription(listeners, listener) {
@@ -2241,7 +2241,7 @@ var Builder = /** @class */ (function () {
2241
2241
  // even though we only use `fetch()` now, we prefer to keep the old behavior and use the `fetch` that comes from
2242
2242
  // the core SDK for consistency
2243
2243
  Builder.prototype.requestUrl = function (url, options) {
2244
- return getFetch()(url, options).then(function (res) { return res.json(); });
2244
+ 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(); });
2245
2245
  };
2246
2246
  Object.defineProperty(Builder.prototype, "host", {
2247
2247
  get: function () {
@@ -2406,7 +2406,7 @@ var Builder = /** @class */ (function () {
2406
2406
  }
2407
2407
  var queryStr = QueryString.stringifyDeep(queryParams);
2408
2408
  var format = queryParams.format;
2409
- var requestOptions = { headers: {} };
2409
+ var requestOptions = { headers: {}, next: { revalidate: 1 } };
2410
2410
  if (this.authToken) {
2411
2411
  requestOptions.headers = tslib.__assign(tslib.__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
2412
2412
  }