react-instantsearch-core

7.25.07.26.0
dist/es/lib/createSearchResults.js
~dist/es/lib/createSearchResults.jsModified
+23−19
Index: package/dist/es/lib/createSearchResults.js
===================================================================
--- package/dist/es/lib/createSearchResults.js
+++ package/dist/es/lib/createSearchResults.js
@@ -1,20 +1,24 @@
 import algoliasearchHelper from 'algoliasearch-helper';
-export function createSearchResults(state) {
-  var _state$query, _state$page, _state$hitsPerPage;
-  return new algoliasearchHelper.SearchResults(state, [{
-    query: (_state$query = state.query) !== null && _state$query !== void 0 ? _state$query : '',
-    page: (_state$page = state.page) !== null && _state$page !== void 0 ? _state$page : 0,
-    hitsPerPage: (_state$hitsPerPage = state.hitsPerPage) !== null && _state$hitsPerPage !== void 0 ? _state$hitsPerPage : 20,
-    hits: [],
-    nbHits: 0,
-    nbPages: 0,
-    params: '',
-    exhaustiveNbHits: true,
-    exhaustiveFacetsCount: true,
-    processingTimeMS: 0,
-    index: state.index
-  }], {
-    /** used by connectors to prevent persisting these results */
-    __isArtificial: true
-  });
-}
\ No newline at end of file
+
+function createSearchResults(state) {
+    var _state_query, _state_page, _state_hitsPerPage;
+    return new algoliasearchHelper.SearchResults(state, [
+        {
+            query: (_state_query = state.query) !== null && _state_query !== void 0 ? _state_query : '',
+            page: (_state_page = state.page) !== null && _state_page !== void 0 ? _state_page : 0,
+            hitsPerPage: (_state_hitsPerPage = state.hitsPerPage) !== null && _state_hitsPerPage !== void 0 ? _state_hitsPerPage : 20,
+            hits: [],
+            nbHits: 0,
+            nbPages: 0,
+            params: '',
+            exhaustiveNbHits: true,
+            exhaustiveFacetsCount: true,
+            processingTimeMS: 0,
+            index: state.index
+        }
+    ], {
+        /** used by connectors to prevent persisting these results */ __isArtificial: true
+    });
+}
+
+export { createSearchResults };