@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/browser.d.ts
CHANGED
|
@@ -2952,7 +2952,7 @@ type UpdatedRuleResponse = {
|
|
|
2952
2952
|
taskID: number;
|
|
2953
2953
|
};
|
|
2954
2954
|
|
|
2955
|
-
declare const apiClientVersion = "5.3.
|
|
2955
|
+
declare const apiClientVersion = "5.3.1";
|
|
2956
2956
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
2957
2957
|
transporter: _algolia_client_common.Transporter;
|
|
2958
2958
|
/**
|
package/dist/builds/browser.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ApiError,
|
|
19
19
|
createIterablePromise
|
|
20
20
|
} from "@algolia/client-common";
|
|
21
|
-
var apiClientVersion = "5.3.
|
|
21
|
+
var apiClientVersion = "5.3.1";
|
|
22
22
|
function getDefaultHosts(appId) {
|
|
23
23
|
return [
|
|
24
24
|
{
|
|
@@ -112,7 +112,11 @@ function createSearchClient({
|
|
|
112
112
|
* @param params.apiKey - The new API Key to use.
|
|
113
113
|
*/
|
|
114
114
|
setClientApiKey({ apiKey }) {
|
|
115
|
-
|
|
115
|
+
if (!authMode || authMode === "WithinHeaders") {
|
|
116
|
+
this.transporter.baseHeaders["x-algolia-api-key"] = apiKey;
|
|
117
|
+
} else {
|
|
118
|
+
this.transporter.baseQueryParameters["x-algolia-api-key"] = apiKey;
|
|
119
|
+
}
|
|
116
120
|
},
|
|
117
121
|
/**
|
|
118
122
|
* Helper: Wait for a task to be published (completed) for a given `indexName` and `taskID`.
|