This commit is contained in:
NoryiE
2025-02-16 14:12:49 +00:00
parent c6a89e5b35
commit e0aeb9b06e
2737 changed files with 5220 additions and 1039045 deletions

View File

@@ -1,5 +0,0 @@
import type { SearchClient } from '../types';
export declare function getAppIdAndApiKey(searchClient: SearchClient): {
appId: string;
apiKey: string;
};

View File

@@ -1,15 +0,0 @@
export function getAppIdAndApiKey(searchClient) {
var _ref = searchClient.transporter || {},
_ref$headers = _ref.headers,
headers = _ref$headers === void 0 ? {} : _ref$headers,
_ref$queryParameters = _ref.queryParameters,
queryParameters = _ref$queryParameters === void 0 ? {} : _ref$queryParameters;
var APP_ID = 'x-algolia-application-id';
var API_KEY = 'x-algolia-api-key';
var appId = headers[APP_ID] || queryParameters[APP_ID];
var apiKey = headers[API_KEY] || queryParameters[API_KEY];
return {
appId: appId,
apiKey: apiKey
};
}

View File

@@ -1 +0,0 @@
export * from './getAppIdAndApiKey';

View File

@@ -1 +0,0 @@
export * from './getAppIdAndApiKey';