@builder.io/sdk 2.0.0 → 2.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 +3 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +4 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/src/builder.class.js +3 -5
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/coverage/clover.xml +0 -155
- package/coverage/coverage-final.json +0 -3
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -131
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/classes/index.html +0 -116
- package/coverage/lcov-report/src/classes/query-string.class.ts.html +0 -328
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/url.ts.html +0 -253
- package/coverage/lcov.info +0 -238
package/dist/index.esm.js
CHANGED
|
@@ -123,7 +123,7 @@ function assertAllowedPropertyName(name) {
|
|
|
123
123
|
throw new Error("Property name \"".concat(name, "\" is not allowed"));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
var version = "
|
|
126
|
+
var version = "2.0.1";
|
|
127
127
|
|
|
128
128
|
var Subscription = /** @class */ (function () {
|
|
129
129
|
function Subscription(listeners, listener) {
|
|
@@ -2276,6 +2276,9 @@ var Builder = /** @class */ (function () {
|
|
|
2276
2276
|
var queryParams = __assign(__assign({
|
|
2277
2277
|
// TODO: way to force a request to be in a separate queue. or just lower queue limit to be 1 by default
|
|
2278
2278
|
omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
|
|
2279
|
+
if (queue[0].locale) {
|
|
2280
|
+
queryParams.locale = queue[0].locale;
|
|
2281
|
+
}
|
|
2279
2282
|
if (queue[0].fields) {
|
|
2280
2283
|
queryParams.fields = queue[0].fields;
|
|
2281
2284
|
}
|
|
@@ -2333,11 +2336,6 @@ var Builder = /** @class */ (function () {
|
|
|
2333
2336
|
}
|
|
2334
2337
|
}
|
|
2335
2338
|
}
|
|
2336
|
-
if (!Builder.isReact) {
|
|
2337
|
-
// TODO: remove me once v1 page editors converted to v2
|
|
2338
|
-
// queryParams.extractCss = true;
|
|
2339
|
-
queryParams.prerender = true;
|
|
2340
|
-
}
|
|
2341
2339
|
for (var _i = 0, queue_2 = queue; _i < queue_2.length; _i++) {
|
|
2342
2340
|
var options = queue_2[_i];
|
|
2343
2341
|
if (options.format) {
|