@faststore/api 2.1.36 → 2.1.53

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/api.esm.js CHANGED
@@ -18,7 +18,7 @@ import { trace, context, SpanKind } from '@opentelemetry/api';
18
18
  import { SeverityNumber } from '@opentelemetry/api-logs';
19
19
 
20
20
  var name = "@faststore/api";
21
- var version = "2.1.33";
21
+ var version = "2.1.38";
22
22
  var license = "MIT";
23
23
  var main = "dist/index.js";
24
24
  var typings = "dist/index.d.ts";
@@ -348,7 +348,7 @@ const IntelligentSearch = ({
348
348
  };
349
349
  const addDefaultFacets = facets => {
350
350
  var _facets$find, _facets$find2;
351
- const withDefaltFacets = facets.filter(({
351
+ const withDefaultFacets = facets.filter(({
352
352
  key
353
353
  }) => !CHANNEL_KEYS.has(key));
354
354
  const policyFacet = (_facets$find = facets.find(({
@@ -358,12 +358,12 @@ const IntelligentSearch = ({
358
358
  key
359
359
  }) => key === REGION_KEY)) != null ? _facets$find2 : getRegionFacet();
360
360
  if (policyFacet !== null) {
361
- withDefaltFacets.push(policyFacet);
361
+ withDefaultFacets.push(policyFacet);
362
362
  }
363
363
  if (regionFacet !== null) {
364
- withDefaltFacets.push(regionFacet);
364
+ withDefaultFacets.push(regionFacet);
365
365
  }
366
- return withDefaltFacets;
366
+ return withDefaultFacets;
367
367
  };
368
368
  const search = ({
369
369
  query = '',
@@ -1359,11 +1359,11 @@ const isOrderFormStale = form => {
1359
1359
  async function getOrderNumberFromSession(headers = {}, commerce) {
1360
1360
  const cookieSession = getCookie('vtex_session', headers.cookie);
1361
1361
  if (cookieSession) {
1362
- var _namespaces$checkout, _namespaces$checkout$;
1362
+ var _namespaces$public$or, _namespaces$public, _namespaces$public$or2;
1363
1363
  const {
1364
1364
  namespaces
1365
1365
  } = await commerce.getSessionOrder();
1366
- return (_namespaces$checkout = namespaces.checkout) == null ? void 0 : (_namespaces$checkout$ = _namespaces$checkout.orderFormId) == null ? void 0 : _namespaces$checkout$.value;
1366
+ return (_namespaces$public$or = (_namespaces$public = namespaces.public) == null ? void 0 : (_namespaces$public$or2 = _namespaces$public.orderFormId) == null ? void 0 : _namespaces$public$or2.value) != null ? _namespaces$public$or : undefined;
1367
1367
  }
1368
1368
  return;
1369
1369
  }