@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.umd.js CHANGED
@@ -152,7 +152,7 @@
152
152
  throw new Error("Property name \"".concat(name, "\" is not allowed"));
153
153
  }
154
154
 
155
- var version = "2.0.0";
155
+ var version = "2.0.2";
156
156
 
157
157
  var Subscription = /** @class */ (function () {
158
158
  function Subscription(listeners, listener) {
@@ -1874,8 +1874,8 @@
1874
1874
  this.setUserAttributes(userAttributes);
1875
1875
  }
1876
1876
  if (options) {
1877
- // picking only locale and includeRefs
1878
- this.queryOptions = __assign(__assign({}, (options.locale && { locale: options.locale })), (options.includeRefs && { includeRefs: options.includeRefs }));
1877
+ // picking only locale, includeRefs, and enrich for now
1878
+ this.queryOptions = __assign(__assign(__assign({}, (options.locale && { locale: options.locale })), (options.includeRefs && { includeRefs: options.includeRefs })), (options.enrich && { enrich: options.enrich }));
1879
1879
  }
1880
1880
  if (overrides) {
1881
1881
  this.overrides = overrides;
@@ -2373,6 +2373,9 @@
2373
2373
  var queryParams = __assign(__assign({
2374
2374
  // TODO: way to force a request to be in a separate queue. or just lower queue limit to be 1 by default
2375
2375
  omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
2376
+ if (queue[0].locale) {
2377
+ queryParams.locale = queue[0].locale;
2378
+ }
2376
2379
  if (queue[0].fields) {
2377
2380
  queryParams.fields = queue[0].fields;
2378
2381
  }