Skip to content

Commit 8c00dca

Browse files
committed
fix an issue with falsey options
1 parent c588565 commit 8c00dca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ module.exports = (options) => {
3333

3434
function selectiveMerge (opts, optNames) {
3535
return optNames.reduce((m, opt) => {
36-
if (opts[opt]) { m[opt] = opts[opt] }; return m
36+
if (typeof opts[opt] !== 'undefined') { m[opt] = opts[opt] }; return m
3737
}, {})
3838
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"nyc": "^8.1.0",
2121
"rewire": "^2.5.2",
2222
"snazzy": "^4.0.1",
23-
"standard": "^7.1.2"
23+
"standard": "^8.0.0"
2424
},
2525
"engines": {
2626
"node": ">= 6"

0 commit comments

Comments
 (0)