Comparing version 1.0.12 to 1.0.13
14
index.js
@@ -15,5 +15,13 @@ var path = require('path'); | ||
Object.keys(inst).forEach(function (key) { | ||
Argv[key] = typeof inst[key] == 'function' | ||
? inst[key].bind(inst) | ||
: inst[key]; | ||
if (key === 'argv') { | ||
Object.defineProperty(Argv, 'argv', { | ||
get: function() { return inst.argv; }, | ||
enumerable: true, | ||
}); | ||
} | ||
else { | ||
Argv[key] = typeof inst[key] == 'function' | ||
? inst[key].bind(inst) | ||
: inst[key]; | ||
} | ||
}); | ||
@@ -20,0 +28,0 @@ |
{ | ||
"name": "yargs", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Light-weight option parsing with an argv hash. No optstrings attached.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70322
1808