@builder.io/sdk 6.0.0 → 6.0.2
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 +14 -1
- package/dist/index.browser.js +5 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +5 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/src/builder.class.d.ts +10 -0
- package/dist/src/builder.class.js +4 -3
- 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/src/types/content.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
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.
|
|
953
|
+
var SDK_VERSION = '6.0.2';
|
|
954
954
|
|
|
955
955
|
function datePlusMinutes(minutes) {
|
|
956
956
|
if (minutes === void 0) { minutes = 30; }
|
|
@@ -2338,6 +2338,7 @@ var Builder = /** @class */ (function () {
|
|
|
2338
2338
|
};
|
|
2339
2339
|
Builder.prototype.flushGetContentQueue = function (usePastQueue, useQueue) {
|
|
2340
2340
|
var _this = this;
|
|
2341
|
+
var _a;
|
|
2341
2342
|
if (usePastQueue === void 0) { usePastQueue = false; }
|
|
2342
2343
|
if (!this.apiKey) {
|
|
2343
2344
|
throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));
|
|
@@ -2463,8 +2464,8 @@ var Builder = /** @class */ (function () {
|
|
|
2463
2464
|
'static',
|
|
2464
2465
|
'includeRefs',
|
|
2465
2466
|
];
|
|
2466
|
-
for (var
|
|
2467
|
-
var key = properties_1[
|
|
2467
|
+
for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) {
|
|
2468
|
+
var key = properties_1[_b];
|
|
2468
2469
|
var value = options[key];
|
|
2469
2470
|
if (value !== undefined) {
|
|
2470
2471
|
if (this.apiEndpoint === 'query') {
|
|
@@ -2478,7 +2479,7 @@ var Builder = /** @class */ (function () {
|
|
|
2478
2479
|
}
|
|
2479
2480
|
}
|
|
2480
2481
|
}
|
|
2481
|
-
if (this.preview) {
|
|
2482
|
+
if (this.preview && this.previewingModel === ((_a = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _a === void 0 ? void 0 : _a.model)) {
|
|
2482
2483
|
queryParams.preview = 'true';
|
|
2483
2484
|
}
|
|
2484
2485
|
var hasParams = Object.keys(queryParams).length > 0;
|