@algolia/client-search 5.27.0 → 5.29.0
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/README.md +4 -4
- package/dist/browser.d.ts +377 -368
- package/dist/builds/browser.js +8 -8
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +8 -8
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +8 -8
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +8 -8
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +8 -8
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +377 -368
- package/dist/node.d.cts +377 -368
- package/dist/node.d.ts +377 -368
- package/dist/src/searchClient.cjs +8 -8
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +8 -8
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +377 -368
- package/package.json +7 -7
package/dist/builds/browser.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getAlgoliaAgent,
|
|
17
17
|
shuffle
|
|
18
18
|
} from "@algolia/client-common";
|
|
19
|
-
var apiClientVersion = "5.
|
|
19
|
+
var apiClientVersion = "5.29.0";
|
|
20
20
|
function getDefaultHosts(appId) {
|
|
21
21
|
return [
|
|
22
22
|
{
|
|
@@ -280,8 +280,8 @@ function createSearchClient({
|
|
|
280
280
|
*/
|
|
281
281
|
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
|
|
282
282
|
const params = {
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
...searchRulesParams,
|
|
284
|
+
hitsPerPage: searchRulesParams?.hitsPerPage || 1e3
|
|
285
285
|
};
|
|
286
286
|
return createIterablePromise({
|
|
287
287
|
func: (previousResponse) => {
|
|
@@ -317,8 +317,8 @@ function createSearchClient({
|
|
|
317
317
|
...browseSynonymsOptions
|
|
318
318
|
}, requestOptions) {
|
|
319
319
|
const params = {
|
|
320
|
-
page: 0,
|
|
321
320
|
...searchSynonymsParams,
|
|
321
|
+
page: searchSynonymsParams?.page || 0,
|
|
322
322
|
hitsPerPage: 1e3
|
|
323
323
|
};
|
|
324
324
|
return createIterablePromise({
|
|
@@ -877,7 +877,7 @@ function createSearchClient({
|
|
|
877
877
|
/**
|
|
878
878
|
* This method lets you send requests to the Algolia REST API.
|
|
879
879
|
* @param customDelete - The customDelete object.
|
|
880
|
-
* @param customDelete.path - Path of the endpoint,
|
|
880
|
+
* @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
|
|
881
881
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
882
882
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
883
883
|
*/
|
|
@@ -899,7 +899,7 @@ function createSearchClient({
|
|
|
899
899
|
/**
|
|
900
900
|
* This method lets you send requests to the Algolia REST API.
|
|
901
901
|
* @param customGet - The customGet object.
|
|
902
|
-
* @param customGet.path - Path of the endpoint,
|
|
902
|
+
* @param customGet.path - Path of the endpoint, for example `1/newFeature`.
|
|
903
903
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
904
904
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
905
905
|
*/
|
|
@@ -921,7 +921,7 @@ function createSearchClient({
|
|
|
921
921
|
/**
|
|
922
922
|
* This method lets you send requests to the Algolia REST API.
|
|
923
923
|
* @param customPost - The customPost object.
|
|
924
|
-
* @param customPost.path - Path of the endpoint,
|
|
924
|
+
* @param customPost.path - Path of the endpoint, for example `1/newFeature`.
|
|
925
925
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
926
926
|
* @param customPost.body - Parameters to send with the custom request.
|
|
927
927
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -945,7 +945,7 @@ function createSearchClient({
|
|
|
945
945
|
/**
|
|
946
946
|
* This method lets you send requests to the Algolia REST API.
|
|
947
947
|
* @param customPut - The customPut object.
|
|
948
|
-
* @param customPut.path - Path of the endpoint,
|
|
948
|
+
* @param customPut.path - Path of the endpoint, for example `1/newFeature`.
|
|
949
949
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
950
950
|
* @param customPut.body - Parameters to send with the custom request.
|
|
951
951
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|