@faststore/api 2.1.36 → 2.1.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/api",
3
- "version": "2.1.36",
3
+ "version": "2.1.38",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -56,5 +56,5 @@
56
56
  "@envelop/core": "^1 || ^2",
57
57
  "graphql": "^15.6.0"
58
58
  },
59
- "gitHead": "2bb75febbcbdc8c114d3f0912db8502840851440"
59
+ "gitHead": "cd01b62a902d6458d6d27e7e622b4a5465dd8c91"
60
60
  }
@@ -83,7 +83,7 @@ export const IntelligentSearch = (
83
83
  }
84
84
 
85
85
  const addDefaultFacets = (facets: SelectedFacet[]) => {
86
- const withDefaltFacets = facets.filter(({ key }) => !CHANNEL_KEYS.has(key))
86
+ const withDefaultFacets = facets.filter(({ key }) => !CHANNEL_KEYS.has(key))
87
87
 
88
88
  const policyFacet =
89
89
  facets.find(({ key }) => key === POLICY_KEY) ?? getPolicyFacet()
@@ -92,14 +92,14 @@ export const IntelligentSearch = (
92
92
  facets.find(({ key }) => key === REGION_KEY) ?? getRegionFacet()
93
93
 
94
94
  if (policyFacet !== null) {
95
- withDefaltFacets.push(policyFacet)
95
+ withDefaultFacets.push(policyFacet)
96
96
  }
97
97
 
98
98
  if (regionFacet !== null) {
99
- withDefaltFacets.push(regionFacet)
99
+ withDefaultFacets.push(regionFacet)
100
100
  }
101
101
 
102
- return withDefaltFacets
102
+ return withDefaultFacets
103
103
  }
104
104
 
105
105
  const search = <T>({