@builder.io/sdk 3.0.4 → 3.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
@@ -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 = "3.0.4";
129
+ var version = "3.0.5";
130
130
 
131
131
  var Subscription = /** @class */ (function () {
132
132
  function Subscription(listeners, listener) {
@@ -2462,9 +2462,9 @@ var Builder = /** @class */ (function () {
2462
2462
  }
2463
2463
  }
2464
2464
  var queryStr = QueryString.stringifyDeep(queryParams);
2465
- var requestOptions = { headers: {} };
2465
+ var fetchOptions = tslib.__assign({ headers: {} }, queue[0].fetchOptions);
2466
2466
  if (this.authToken) {
2467
- requestOptions.headers = tslib.__assign(tslib.__assign({}, requestOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
2467
+ fetchOptions.headers = tslib.__assign(tslib.__assign({}, fetchOptions.headers), { Authorization: "Bearer ".concat(this.authToken) });
2468
2468
  }
2469
2469
  var url;
2470
2470
  if (isApiCallForCodegen) {
@@ -2477,7 +2477,7 @@ var Builder = /** @class */ (function () {
2477
2477
  url = "".concat(host, "/api/v3/content/").concat(queue[0].model);
2478
2478
  }
2479
2479
  url = url + (queryParams && hasParams ? "?".concat(queryStr) : '');
2480
- var promise = this.makeFetchApiCall(url, requestOptions)
2480
+ var promise = this.makeFetchApiCall(url, fetchOptions)
2481
2481
  .then(function (res) { return res.json(); })
2482
2482
  .then(function (result) {
2483
2483
  for (var _i = 0, queue_3 = queue; _i < queue_3.length; _i++) {