conventional-changelog-core
Advanced tools
Comparing version
@@ -56,2 +56,18 @@ 'use strict' | ||
function omitUndefinedValueProps (obj) { | ||
if (!obj) { | ||
return {} | ||
} | ||
const omittedObj = {} | ||
for (const key in obj) { | ||
if (obj[key] !== undefined) { | ||
omittedObj[key] = obj[key] | ||
} | ||
} | ||
return omittedObj | ||
} | ||
async function mergeConfig (options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) { | ||
@@ -61,2 +77,3 @@ let configPromise | ||
options = omitUndefinedValueProps(options) | ||
context = context || {} | ||
@@ -63,0 +80,0 @@ gitRawCommitsOpts = gitRawCommitsOpts || {} |
{ | ||
"name": "conventional-changelog-core", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "conventional-changelog core", | ||
@@ -5,0 +5,0 @@ "repository": { |
26064
1.05%510
2.62%