@faststore/api 1.12.6 → 1.12.7

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
@@ -1913,10 +1913,12 @@ const StoreSearchResult = {
1913
1913
  // a full text search.
1914
1914
 
1915
1915
  if (searchArgs.query) {
1916
+ var _products$correction$, _products$correction;
1917
+
1916
1918
  sp.sendEvent({
1917
1919
  type: 'search.query',
1918
1920
  text: searchArgs.query,
1919
- misspelled: products.correction.misspelled,
1921
+ misspelled: (_products$correction$ = (_products$correction = products.correction) == null ? void 0 : _products$correction.misspelled) != null ? _products$correction$ : false,
1920
1922
  match: products.recordsFiltered,
1921
1923
  operator: products.operator
1922
1924
  }).catch(console.error);