@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.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.37.0";
|
|
24
24
|
function getDefaultHosts(appId) {
|
|
25
25
|
return [
|
|
26
26
|
{
|
|
@@ -1378,15 +1378,19 @@ function createSearchClient({
|
|
|
1378
1378
|
* - settings
|
|
1379
1379
|
* @param getSettings - The getSettings object.
|
|
1380
1380
|
* @param getSettings.indexName - Name of the index on which to perform the operation.
|
|
1381
|
+
* @param getSettings.getVersion - When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
|
|
1381
1382
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1382
1383
|
*/
|
|
1383
|
-
getSettings({ indexName }, requestOptions) {
|
|
1384
|
+
getSettings({ indexName, getVersion }, requestOptions) {
|
|
1384
1385
|
if (!indexName) {
|
|
1385
1386
|
throw new Error("Parameter `indexName` is required when calling `getSettings`.");
|
|
1386
1387
|
}
|
|
1387
1388
|
const requestPath = "/1/indexes/{indexName}/settings".replace("{indexName}", encodeURIComponent(indexName));
|
|
1388
1389
|
const headers = {};
|
|
1389
1390
|
const queryParameters = {};
|
|
1391
|
+
if (getVersion !== void 0) {
|
|
1392
|
+
queryParameters["getVersion"] = getVersion.toString();
|
|
1393
|
+
}
|
|
1390
1394
|
const request = {
|
|
1391
1395
|
method: "GET",
|
|
1392
1396
|
path: requestPath,
|