devstar插件
This commit is contained in:
4
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.d.ts
generated
vendored
Normal file
4
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare function getAppIdAndApiKey(searchClient: any): {
|
||||
appId: string;
|
||||
apiKey: string;
|
||||
};
|
14
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.js
generated
vendored
Normal file
14
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// typed as any, since it accepts the _real_ js clients, not the interface we otherwise expect
|
||||
export function getAppIdAndApiKey(searchClient) {
|
||||
var transporter = searchClient.transporter || {};
|
||||
var headers = transporter.headers || transporter.baseHeaders || {};
|
||||
var queryParameters = transporter.queryParameters || transporter.baseQueryParameters || {};
|
||||
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
|
||||
};
|
||||
}
|
1
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/index.d.ts
generated
vendored
Normal file
1
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './getAppIdAndApiKey';
|
1
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/index.js
generated
vendored
Normal file
1
node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './getAppIdAndApiKey';
|
Reference in New Issue
Block a user