File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- const { isUndefined } = require ( 'lodash' ) ;
1+ const { isNil } = require ( 'lodash' ) ;
22
33module . exports = ( { changelogFile, changelogTitle} ) => ( {
4- changelogFile : isUndefined ( changelogFile ) ? 'CHANGELOG.md' : changelogFile ,
4+ changelogFile : isNil ( changelogFile ) ? 'CHANGELOG.md' : changelogFile ,
55 changelogTitle,
66} ) ;
Original file line number Diff line number Diff line change 1- const { isString, isUndefined } = require ( 'lodash' ) ;
1+ const { isString, isNil } = require ( 'lodash' ) ;
22const AggregateError = require ( 'aggregate-error' ) ;
33const getError = require ( './get-error' ) ;
44const resolveConfig = require ( './resolve-config' ) ;
@@ -15,7 +15,7 @@ module.exports = pluginConfig => {
1515
1616 const errors = Object . entries ( options ) . reduce (
1717 ( errors , [ option , value ] ) =>
18- ! isUndefined ( value ) && value !== false && ! VALIDATORS [ option ] ( value )
18+ ! isNil ( value ) && ! VALIDATORS [ option ] ( value )
1919 ? [ ...errors , getError ( `EINVALID${ option . toUpperCase ( ) } ` , { [ option ] : value } ) ]
2020 : errors ,
2121 [ ]
You can’t perform that action at this time.
0 commit comments