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
7.1.0

10

base.js

@@ -26,4 +26,8 @@ var inherits = require('inherits')

Base.extract = function (opt) {
return Base.prototype.extract.call(opt)
}
Base.unwrap = function (opt) {
return opt[VALUE]
return Base.prototype.extract.call(opt)
}

@@ -35,2 +39,6 @@

Base.prototype.extract = function () {
return this[VALUE]
}
Base.prototype.or = function (fallback) {

@@ -37,0 +45,0 @@ return this.isValid ? this : new this.constructor(fallback)

2

package.json
{
"name": "stdopt",
"version": "7.0.1",
"version": "7.1.0",
"description": "Wrap and validate optional values",

@@ -5,0 +5,0 @@ "main": "index.js",