@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.cjs
CHANGED
|
@@ -30,7 +30,7 @@ var import_client_common2 = require("@algolia/client-common");
|
|
|
30
30
|
|
|
31
31
|
// src/searchClient.ts
|
|
32
32
|
var import_client_common = require("@algolia/client-common");
|
|
33
|
-
var apiClientVersion = "5.
|
|
33
|
+
var apiClientVersion = "5.29.0";
|
|
34
34
|
function getDefaultHosts(appId) {
|
|
35
35
|
return [
|
|
36
36
|
{
|
|
@@ -294,8 +294,8 @@ function createSearchClient({
|
|
|
294
294
|
*/
|
|
295
295
|
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
|
|
296
296
|
const params = {
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
...searchRulesParams,
|
|
298
|
+
hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
|
|
299
299
|
};
|
|
300
300
|
return (0, import_client_common.createIterablePromise)({
|
|
301
301
|
func: (previousResponse) => {
|
|
@@ -331,8 +331,8 @@ function createSearchClient({
|
|
|
331
331
|
...browseSynonymsOptions
|
|
332
332
|
}, requestOptions) {
|
|
333
333
|
const params = {
|
|
334
|
-
page: 0,
|
|
335
334
|
...searchSynonymsParams,
|
|
335
|
+
page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
|
|
336
336
|
hitsPerPage: 1e3
|
|
337
337
|
};
|
|
338
338
|
return (0, import_client_common.createIterablePromise)({
|
|
@@ -891,7 +891,7 @@ function createSearchClient({
|
|
|
891
891
|
/**
|
|
892
892
|
* This method lets you send requests to the Algolia REST API.
|
|
893
893
|
* @param customDelete - The customDelete object.
|
|
894
|
-
* @param customDelete.path - Path of the endpoint,
|
|
894
|
+
* @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
|
|
895
895
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
896
896
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
897
897
|
*/
|
|
@@ -913,7 +913,7 @@ function createSearchClient({
|
|
|
913
913
|
/**
|
|
914
914
|
* This method lets you send requests to the Algolia REST API.
|
|
915
915
|
* @param customGet - The customGet object.
|
|
916
|
-
* @param customGet.path - Path of the endpoint,
|
|
916
|
+
* @param customGet.path - Path of the endpoint, for example `1/newFeature`.
|
|
917
917
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
918
918
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
919
919
|
*/
|
|
@@ -935,7 +935,7 @@ function createSearchClient({
|
|
|
935
935
|
/**
|
|
936
936
|
* This method lets you send requests to the Algolia REST API.
|
|
937
937
|
* @param customPost - The customPost object.
|
|
938
|
-
* @param customPost.path - Path of the endpoint,
|
|
938
|
+
* @param customPost.path - Path of the endpoint, for example `1/newFeature`.
|
|
939
939
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
940
940
|
* @param customPost.body - Parameters to send with the custom request.
|
|
941
941
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -959,7 +959,7 @@ function createSearchClient({
|
|
|
959
959
|
/**
|
|
960
960
|
* This method lets you send requests to the Algolia REST API.
|
|
961
961
|
* @param customPut - The customPut object.
|
|
962
|
-
* @param customPut.path - Path of the endpoint,
|
|
962
|
+
* @param customPut.path - Path of the endpoint, for example `1/newFeature`.
|
|
963
963
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
964
964
|
* @param customPut.body - Parameters to send with the custom request.
|
|
965
965
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|