@builder.io/sdk 2.0.1 → 2.0.3

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
@@ -129,7 +129,7 @@ function assertAllowedPropertyName(name) {
129
129
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
130
130
  }
131
131
 
132
- var version = "2.0.0";
132
+ var version = "2.0.2";
133
133
 
134
134
  var Subscription = /** @class */ (function () {
135
135
  function Subscription(listeners, listener) {
@@ -1783,8 +1783,8 @@ var Builder = /** @class */ (function () {
1783
1783
  this.setUserAttributes(userAttributes);
1784
1784
  }
1785
1785
  if (options) {
1786
- // picking only locale and includeRefs
1787
- this.queryOptions = tslib.__assign(tslib.__assign({}, (options.locale && { locale: options.locale })), (options.includeRefs && { includeRefs: options.includeRefs }));
1786
+ // picking only locale, includeRefs, and enrich for now
1787
+ this.queryOptions = tslib.__assign(tslib.__assign(tslib.__assign({}, (options.locale && { locale: options.locale })), (options.includeRefs && { includeRefs: options.includeRefs })), (options.enrich && { enrich: options.enrich }));
1788
1788
  }
1789
1789
  if (overrides) {
1790
1790
  this.overrides = overrides;
@@ -2282,6 +2282,9 @@ var Builder = /** @class */ (function () {
2282
2282
  var queryParams = tslib.__assign(tslib.__assign({
2283
2283
  // TODO: way to force a request to be in a separate queue. or just lower queue limit to be 1 by default
2284
2284
  omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
2285
+ if (queue[0].locale) {
2286
+ queryParams.locale = queue[0].locale;
2287
+ }
2285
2288
  if (queue[0].fields) {
2286
2289
  queryParams.fields = queue[0].fields;
2287
2290
  }