@builder.io/sdk 6.0.4 → 6.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.esm.js CHANGED
@@ -950,7 +950,7 @@ function toError(err) {
950
950
 
951
951
  var DEFAULT_API_VERSION = 'v3';
952
952
 
953
- var SDK_VERSION = '6.0.4';
953
+ var SDK_VERSION = '6.0.5';
954
954
 
955
955
  function datePlusMinutes(minutes) {
956
956
  if (minutes === void 0) { minutes = 30; }
@@ -2342,7 +2342,7 @@ var Builder = /** @class */ (function () {
2342
2342
  };
2343
2343
  Builder.prototype.flushGetContentQueue = function (usePastQueue, useQueue) {
2344
2344
  var _this = this;
2345
- var _a;
2345
+ var _a, _b;
2346
2346
  if (usePastQueue === void 0) { usePastQueue = false; }
2347
2347
  if (!this.apiKey) {
2348
2348
  throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));
@@ -2363,7 +2363,7 @@ var Builder = /** @class */ (function () {
2363
2363
  this.getOverridesFromQueryString();
2364
2364
  var queryParams = __assign(__assign({
2365
2365
  // TODO: way to force a request to be in a separate queue. or just lower queue limit to be 1 by default
2366
- omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
2366
+ omit: (_a = queue[0].omit) !== null && _a !== void 0 ? _a : 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
2367
2367
  if (queue[0].locale) {
2368
2368
  queryParams.locale = queue[0].locale;
2369
2369
  }
@@ -2468,8 +2468,8 @@ var Builder = /** @class */ (function () {
2468
2468
  'static',
2469
2469
  'includeRefs',
2470
2470
  ];
2471
- for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) {
2472
- var key = properties_1[_b];
2471
+ for (var _c = 0, properties_1 = properties; _c < properties_1.length; _c++) {
2472
+ var key = properties_1[_c];
2473
2473
  var value = options[key];
2474
2474
  if (value !== undefined) {
2475
2475
  if (this.apiEndpoint === 'query') {
@@ -2483,7 +2483,7 @@ var Builder = /** @class */ (function () {
2483
2483
  }
2484
2484
  }
2485
2485
  }
2486
- if (this.preview && this.previewingModel === ((_a = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _a === void 0 ? void 0 : _a.model)) {
2486
+ if (this.preview && this.previewingModel === ((_b = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _b === void 0 ? void 0 : _b.model)) {
2487
2487
  queryParams.preview = 'true';
2488
2488
  }
2489
2489
  var hasParams = Object.keys(queryParams).length > 0;