New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stdopt

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stdopt - npm Package Compare versions

Comparing version

to
2.0.2

2

package.json
{
"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 @@