Comparing version 9.2.3 to 9.3.0
@@ -1,2 +0,2 @@ | ||
module.exports = function(val) { | ||
module.exports = function(val, defaultVal = false) { | ||
// boolean truthiness is automatic: | ||
@@ -19,4 +19,4 @@ if (typeof val === 'boolean') { | ||
if (val === undefined || val === null) { | ||
return false; | ||
return defaultVal; | ||
} | ||
}; |
{ | ||
"name": "confi", | ||
"description": "a simple configuration library", | ||
"version": "9.2.3", | ||
"version": "9.3.0", | ||
"homepage": "https://github.com/firstandthird/confi", | ||
@@ -6,0 +6,0 @@ "author": "First+Third", |
139961
21