Socket
Socket
Sign inDemoInstall

yargs-parser

Package Overview
Dependencies
1
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.2 to 4.1.0

11

CHANGELOG.md

@@ -5,2 +5,13 @@ # Change Log

<a name="4.1.0"></a>
# [4.1.0](https://github.com/yargs/yargs-parser/compare/v4.0.2...v4.1.0) (2016-11-07)
### Features
* apply coercions to default options ([#65](https://github.com/yargs/yargs-parser/issues/65)) ([c79052b](https://github.com/yargs/yargs-parser/commit/c79052b))
* handle dot notation boolean options ([#63](https://github.com/yargs/yargs-parser/issues/63)) ([02c3545](https://github.com/yargs/yargs-parser/commit/02c3545))
<a name="4.0.2"></a>

@@ -7,0 +18,0 @@ ## [4.0.2](https://github.com/yargs/yargs-parser/compare/v4.0.1...v4.0.2) (2016-09-30)

4

index.js

@@ -282,4 +282,4 @@ var camelCase = require('camelcase')

applyEnvVars(argv, false)
applyDefaultsAndAliases(argv, flags.aliases, defaults)
applyCoercions(argv)
applyDefaultsAndAliases(argv, flags.aliases, defaults)

@@ -544,3 +544,3 @@ // for any counts either not in args or without an explicit default, set to 0

o[key] = Array.isArray(value) ? value : [value]
} else if (o[key] === undefined || checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
} else if (o[key] === undefined || checkAllAliases(key, flags.bools) || checkAllAliases(keys.join('.'), flags.bools) || checkAllAliases(key, flags.counts)) {
o[key] = value

@@ -547,0 +547,0 @@ } else if (Array.isArray(o[key])) {

{
"name": "yargs-parser",
"version": "4.0.2",
"version": "4.1.0",
"description": "the mighty option parser used by yargs",

@@ -34,3 +34,3 @@ "main": "index.js",

"standard": "^8.0.0",
"standard-version": "^2.1.2"
"standard-version": "^3.0.0"
},

@@ -37,0 +37,0 @@ "dependencies": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc