@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/node.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getAlgoliaAgent,
|
|
21
21
|
shuffle
|
|
22
22
|
} from "@algolia/client-common";
|
|
23
|
-
var apiClientVersion = "5.
|
|
23
|
+
var apiClientVersion = "5.29.0";
|
|
24
24
|
function getDefaultHosts(appId) {
|
|
25
25
|
return [
|
|
26
26
|
{
|
|
@@ -284,8 +284,8 @@ function createSearchClient({
|
|
|
284
284
|
*/
|
|
285
285
|
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
|
|
286
286
|
const params = {
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
...searchRulesParams,
|
|
288
|
+
hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
|
|
289
289
|
};
|
|
290
290
|
return createIterablePromise({
|
|
291
291
|
func: (previousResponse) => {
|
|
@@ -321,8 +321,8 @@ function createSearchClient({
|
|
|
321
321
|
...browseSynonymsOptions
|
|
322
322
|
}, requestOptions) {
|
|
323
323
|
const params = {
|
|
324
|
-
page: 0,
|
|
325
324
|
...searchSynonymsParams,
|
|
325
|
+
page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
|
|
326
326
|
hitsPerPage: 1e3
|
|
327
327
|
};
|
|
328
328
|
return createIterablePromise({
|
|
@@ -881,7 +881,7 @@ function createSearchClient({
|
|
|
881
881
|
/**
|
|
882
882
|
* This method lets you send requests to the Algolia REST API.
|
|
883
883
|
* @param customDelete - The customDelete object.
|
|
884
|
-
* @param customDelete.path - Path of the endpoint,
|
|
884
|
+
* @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
|
|
885
885
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
886
886
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
887
887
|
*/
|
|
@@ -903,7 +903,7 @@ function createSearchClient({
|
|
|
903
903
|
/**
|
|
904
904
|
* This method lets you send requests to the Algolia REST API.
|
|
905
905
|
* @param customGet - The customGet object.
|
|
906
|
-
* @param customGet.path - Path of the endpoint,
|
|
906
|
+
* @param customGet.path - Path of the endpoint, for example `1/newFeature`.
|
|
907
907
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
908
908
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
909
909
|
*/
|
|
@@ -925,7 +925,7 @@ function createSearchClient({
|
|
|
925
925
|
/**
|
|
926
926
|
* This method lets you send requests to the Algolia REST API.
|
|
927
927
|
* @param customPost - The customPost object.
|
|
928
|
-
* @param customPost.path - Path of the endpoint,
|
|
928
|
+
* @param customPost.path - Path of the endpoint, for example `1/newFeature`.
|
|
929
929
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
930
930
|
* @param customPost.body - Parameters to send with the custom request.
|
|
931
931
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -949,7 +949,7 @@ function createSearchClient({
|
|
|
949
949
|
/**
|
|
950
950
|
* This method lets you send requests to the Algolia REST API.
|
|
951
951
|
* @param customPut - The customPut object.
|
|
952
|
-
* @param customPut.path - Path of the endpoint,
|
|
952
|
+
* @param customPut.path - Path of the endpoint, for example `1/newFeature`.
|
|
953
953
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
954
954
|
* @param customPut.body - Parameters to send with the custom request.
|
|
955
955
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|