yargs-parser
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.0.1"></a> | ||
## [4.0.1](https://github.com/yargs/yargs-parser/compare/v4.0.0...v4.0.1) (2016-09-30) | ||
### Bug Fixes | ||
* lodash.assign was deprecated ([#59](https://github.com/yargs/yargs-parser/issues/59)) ([5e7eb11](https://github.com/yargs/yargs-parser/commit/5e7eb11)) | ||
<a name="4.0.0"></a> | ||
@@ -7,0 +17,0 @@ # [4.0.0](https://github.com/yargs/yargs-parser/compare/v3.2.0...v4.0.0) (2016-09-26) |
17
index.js
@@ -1,2 +0,1 @@ | ||
var assign = require('lodash.assign') | ||
var camelCase = require('camelcase') | ||
@@ -14,3 +13,3 @@ var path = require('path') | ||
var aliases = combineAliases(opts.alias || {}) | ||
var configuration = assign({}, { | ||
var configuration = assign({ | ||
'short-option-groups': true, | ||
@@ -696,2 +695,16 @@ 'camel-case-expansion': true, | ||
function assign (defaults, configuration) { | ||
var o = {} | ||
configuration = configuration || {} | ||
Object.keys(configuration).forEach(function (k) { | ||
o[k] = configuration[k] | ||
}) | ||
Object.keys(defaults).forEach(function (k) { | ||
if (o[k] === undefined) o[k] = defaults[k] | ||
}) | ||
return o | ||
} | ||
// this function should only be called when a count is given as an arg | ||
@@ -698,0 +711,0 @@ // it is NOT called to set a default value |
{ | ||
"name": "yargs-parser", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "the mighty option parser used by yargs", | ||
@@ -37,4 +37,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"camelcase": "^3.0.0", | ||
"lodash.assign": "^4.1.0" | ||
"camelcase": "^3.0.0" | ||
}, | ||
@@ -41,0 +40,0 @@ "files": [ |
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
34105
1
646
- Removedlodash.assign@^4.1.0
- Removedlodash.assign@4.2.0(transitive)