Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createDefaultConfig ({ name, template }) {
const result = {
name: constants.packageJson.defaultPluginName,
template: 'default'
}
if (typeof name !== 'undefined') {
result.name = name
}
if (typeof template !== 'undefined') {
result.template = template
}
return result
}