react-azure-config
Version:
🚀 The Ultimate Multi-App Configuration Library! CRITICAL BUG FIXES: Prefixed environment keys no longer sent to Azure. Complete architectural redesign with bulletproof fallback system. Enterprise-grade Azure integration and monorepo support.
44 lines • 1.62 kB
TypeScript
import type { ConfigurationValue } from './types';
export declare class AppScopedConfigurationProvider {
private cache;
private enhancedCache;
private basePath;
private appConfigCache;
private envVarPrefix;
private discoveredApps;
private azureClients;
constructor(basePath?: string, envVarPrefix?: string);
getAppConfiguration(appId: string): Promise<ConfigurationValue>;
getAppConfigValue(appId: string, key: string): Promise<any>;
refreshAppConfiguration(appId: string): void;
refreshAllConfigurations(): void;
getAvailableApps(): string[];
private getFilesystemApps;
private isValidAppId;
private getNestedValue;
private discoverAppsFromEnvironment;
private loadAppConfigurationWithPrecedence;
private parseAppSpecificEnvVars;
private parseGenericEnvVars;
private parseProcessEnvDirectly;
private isAppSpecificVariable;
private transformVariableName;
private loadEnvFileConfig;
private deepMerge;
private setNestedValue;
private loadAzureAppConfiguration;
private getOrCreateAzureClient;
private getAzureConfigOptions;
private parseAzureCredentials;
refreshAzureConfiguration(appId: string): Promise<void>;
getAzureConfigInfo(appId: string): any;
private loadEnvFileConfigWithCache;
private parseGenericEnvVarsWithCache;
private parseAppSpecificEnvVarsWithCache;
private loadAzureAppConfigurationWithCache;
getCacheStats(): any;
clearAllCaches(): void;
warmCache(apps: string[]): void;
destroy(): void;
}
//# sourceMappingURL=app-scoped-config.d.ts.map