@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.umd.js
CHANGED
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
|
|
1053
1053
|
var DEFAULT_API_VERSION = 'v3';
|
|
1054
1054
|
|
|
1055
|
-
var SDK_VERSION = '6.0.
|
|
1055
|
+
var SDK_VERSION = '6.0.2';
|
|
1056
1056
|
|
|
1057
1057
|
function datePlusMinutes(minutes) {
|
|
1058
1058
|
if (minutes === void 0) { minutes = 30; }
|
|
@@ -2440,6 +2440,7 @@
|
|
|
2440
2440
|
};
|
|
2441
2441
|
Builder.prototype.flushGetContentQueue = function (usePastQueue, useQueue) {
|
|
2442
2442
|
var _this = this;
|
|
2443
|
+
var _a;
|
|
2443
2444
|
if (usePastQueue === void 0) { usePastQueue = false; }
|
|
2444
2445
|
if (!this.apiKey) {
|
|
2445
2446
|
throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));
|
|
@@ -2565,8 +2566,8 @@
|
|
|
2565
2566
|
'static',
|
|
2566
2567
|
'includeRefs',
|
|
2567
2568
|
];
|
|
2568
|
-
for (var
|
|
2569
|
-
var key = properties_1[
|
|
2569
|
+
for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) {
|
|
2570
|
+
var key = properties_1[_b];
|
|
2570
2571
|
var value = options[key];
|
|
2571
2572
|
if (value !== undefined) {
|
|
2572
2573
|
if (this.apiEndpoint === 'query') {
|
|
@@ -2580,7 +2581,7 @@
|
|
|
2580
2581
|
}
|
|
2581
2582
|
}
|
|
2582
2583
|
}
|
|
2583
|
-
if (this.preview) {
|
|
2584
|
+
if (this.preview && this.previewingModel === ((_a = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _a === void 0 ? void 0 : _a.model)) {
|
|
2584
2585
|
queryParams.preview = 'true';
|
|
2585
2586
|
}
|
|
2586
2587
|
var hasParams = Object.keys(queryParams).length > 0;
|