@builder.io/sdk 6.0.4 → 6.0.6

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
@@ -958,7 +958,7 @@ function toError(err) {
958
958
 
959
959
  var DEFAULT_API_VERSION = 'v3';
960
960
 
961
- var SDK_VERSION = '6.0.4';
961
+ var SDK_VERSION = '6.0.6';
962
962
 
963
963
  function datePlusMinutes(minutes) {
964
964
  if (minutes === void 0) { minutes = 30; }
@@ -2350,7 +2350,7 @@ var Builder = /** @class */ (function () {
2350
2350
  };
2351
2351
  Builder.prototype.flushGetContentQueue = function (usePastQueue, useQueue) {
2352
2352
  var _this = this;
2353
- var _a;
2353
+ var _a, _b;
2354
2354
  if (usePastQueue === void 0) { usePastQueue = false; }
2355
2355
  if (!this.apiKey) {
2356
2356
  throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));
@@ -2371,7 +2371,7 @@ var Builder = /** @class */ (function () {
2371
2371
  this.getOverridesFromQueryString();
2372
2372
  var queryParams = tslib.__assign(tslib.__assign({
2373
2373
  // TODO: way to force a request to be in a separate queue. or just lower queue limit to be 1 by default
2374
- omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
2374
+ omit: (_a = queue[0].omit) !== null && _a !== void 0 ? _a : 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
2375
2375
  if (queue[0].locale) {
2376
2376
  queryParams.locale = queue[0].locale;
2377
2377
  }
@@ -2476,8 +2476,8 @@ var Builder = /** @class */ (function () {
2476
2476
  'static',
2477
2477
  'includeRefs',
2478
2478
  ];
2479
- for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) {
2480
- var key = properties_1[_b];
2479
+ for (var _c = 0, properties_1 = properties; _c < properties_1.length; _c++) {
2480
+ var key = properties_1[_c];
2481
2481
  var value = options[key];
2482
2482
  if (value !== undefined) {
2483
2483
  if (this.apiEndpoint === 'query') {
@@ -2491,7 +2491,7 @@ var Builder = /** @class */ (function () {
2491
2491
  }
2492
2492
  }
2493
2493
  }
2494
- if (this.preview && this.previewingModel === ((_a = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _a === void 0 ? void 0 : _a.model)) {
2494
+ if (this.preview && this.previewingModel === ((_b = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _b === void 0 ? void 0 : _b.model)) {
2495
2495
  queryParams.preview = 'true';
2496
2496
  }
2497
2497
  var hasParams = Object.keys(queryParams).length > 0;