Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isGlobal: false,
rootFolder: path.join(rootPath, '.sfdx'),
filename: 'sfdx-config.json'
});
const localValue = myLocalConfig.get(key);
if (!isNullOrUndefined(localValue)) {
return localValue;
}
} catch (err) {
telemetryService.sendException('get_config_value_local', err.message);
return undefined;
}
}
if (isUndefined(source) || source === ConfigSource.Global) {
try {
const aggregator = await ConfigAggregator.create();
const globalValue = aggregator.getPropertyValue(key);
if (!isNullOrUndefined(globalValue)) {
return globalValue;
}
} catch (err) {
telemetryService.sendException('get_config_value_global', err.message);
return undefined;
}
}
return undefined;
}
}