Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yargs-parser

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yargs-parser - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

10

CHANGELOG.md

@@ -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

5

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc