@algolia/client-search 5.36.0 → 5.37.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 +8 -3
- package/dist/builds/browser.js +6 -2
- 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 +1 -1
- package/dist/builds/fetch.js +6 -2
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +6 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +6 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +6 -2
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +8 -3
- package/dist/node.d.cts +8 -3
- package/dist/node.d.ts +8 -3
- package/dist/src/searchClient.cjs +6 -2
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +8 -7
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +8 -3
- package/package.json +5 -5
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.37.0";
|
|
34
34
|
function getDefaultHosts(appId) {
|
|
35
35
|
return [
|
|
36
36
|
{
|
|
@@ -1388,15 +1388,19 @@ function createSearchClient({
|
|
|
1388
1388
|
* - settings
|
|
1389
1389
|
* @param getSettings - The getSettings object.
|
|
1390
1390
|
* @param getSettings.indexName - Name of the index on which to perform the operation.
|
|
1391
|
+
* @param getSettings.getVersion - When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
|
|
1391
1392
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1392
1393
|
*/
|
|
1393
|
-
getSettings({ indexName }, requestOptions) {
|
|
1394
|
+
getSettings({ indexName, getVersion }, requestOptions) {
|
|
1394
1395
|
if (!indexName) {
|
|
1395
1396
|
throw new Error("Parameter `indexName` is required when calling `getSettings`.");
|
|
1396
1397
|
}
|
|
1397
1398
|
const requestPath = "/1/indexes/{indexName}/settings".replace("{indexName}", encodeURIComponent(indexName));
|
|
1398
1399
|
const headers = {};
|
|
1399
1400
|
const queryParameters = {};
|
|
1401
|
+
if (getVersion !== void 0) {
|
|
1402
|
+
queryParameters["getVersion"] = getVersion.toString();
|
|
1403
|
+
}
|
|
1400
1404
|
const request = {
|
|
1401
1405
|
method: "GET",
|
|
1402
1406
|
path: requestPath,
|