typesense-instantsearch-adapter 3.0.0 → 3.0.1
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": "typesense-instantsearch-adapter",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Adapter to use InstantSearch UI widgets with Typesense Search",
|
|
5
5
|
"homepage": "https://github.com/typesense/typesense-instantsearch-adapter",
|
|
6
6
|
"main": "lib/TypesenseInstantsearchAdapter.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"webpack-cli": "^5.1.4"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"typesense": "^3.0.
|
|
87
|
+
"typesense": "^3.0.2"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@babel/runtime": "^7.24.1"
|
|
@@ -644,7 +644,11 @@ export class SearchRequestAdapter {
|
|
|
644
644
|
// Add union parameter if configured
|
|
645
645
|
if (this.configuration.union) {
|
|
646
646
|
searchRequest.union = this.configuration.union;
|
|
647
|
-
|
|
647
|
+
["page", "per_page", "offset", "limit", "limit_hits"].forEach((paramName) => {
|
|
648
|
+
if (searches[0][paramName] != null) {
|
|
649
|
+
commonParams[paramName] = searches[0][paramName];
|
|
650
|
+
}
|
|
651
|
+
});
|
|
648
652
|
}
|
|
649
653
|
|
|
650
654
|
return this.typesenseClient.multiSearch.perform(searchRequest, commonParams);
|