Comparing version
{ | ||
"name": "stdopt", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Wrap and validate optional values", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,4 +12,4 @@ # stdopt | ||
opt('some data').value() // => 'some data' | ||
opt(null).or('other data').value() => 'other data' | ||
opt(null).or(undefined).value() => throws error | ||
opt(null).or('other data').value() // => 'other data' | ||
opt(null).or(undefined).value() // => throws error | ||
@@ -19,3 +19,3 @@ // string primitive | ||
string('some text').value() // => 'some text' | ||
string(true).or('other text').value() => 'other text' | ||
string(true).or('other text').value() // => 'other text' | ||
string(5).value() // '5' | ||
@@ -22,0 +22,0 @@ |
18596
0.05%