Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
vaultClient = dynamicConfig.get(HVAULT_CONFIG_KEY).then((vaultConfig: IHVConfig) => {
return Promise.resolve(new Just(new VaultClient(vaultConfig)))
}, (err: any) => {
logger.log(`Unable to find valid configuration for Vault`)