@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/CHANGELOG.md +6 -0
- package/README.md +1 -0
- package/dist/index.browser.js +6 -6
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/builder.class.js +5 -5
- package/dist/src/builder.class.js.map +1 -1
- package/dist/src/sdk-version.d.ts +1 -1
- package/dist/src/sdk-version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/tsconfig.json +3 -14
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.
|
|
961
|
+
var SDK_VERSION = '6.0.5';
|
|
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
|
|
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
|
|
2480
|
-
var key = properties_1[
|
|
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 === ((
|
|
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;
|