@algolia/client-search 5.3.0 → 5.3.1
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/dist/browser.d.ts +1 -1
- 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/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/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/src/searchClient.cjs +6 -2
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +6 -2
- package/dist/src/searchClient.js.map +1 -1
- package/package.json +4 -4
package/dist/src/searchClient.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ApiError,
|
|
8
8
|
createIterablePromise
|
|
9
9
|
} from "@algolia/client-common";
|
|
10
|
-
var apiClientVersion = "5.3.
|
|
10
|
+
var apiClientVersion = "5.3.1";
|
|
11
11
|
function getDefaultHosts(appId) {
|
|
12
12
|
return [
|
|
13
13
|
{
|
|
@@ -101,7 +101,11 @@ function createSearchClient({
|
|
|
101
101
|
* @param params.apiKey - The new API Key to use.
|
|
102
102
|
*/
|
|
103
103
|
setClientApiKey({ apiKey }) {
|
|
104
|
-
|
|
104
|
+
if (!authMode || authMode === "WithinHeaders") {
|
|
105
|
+
this.transporter.baseHeaders["x-algolia-api-key"] = apiKey;
|
|
106
|
+
} else {
|
|
107
|
+
this.transporter.baseQueryParameters["x-algolia-api-key"] = apiKey;
|
|
108
|
+
}
|
|
105
109
|
},
|
|
106
110
|
/**
|
|
107
111
|
* Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
|