Comparing version
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) |
{ | ||
"name": "stdopt", | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"description": "Wrap and validate optional values", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
22642
0.72%256
2.4%