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 9.0.1 to 9.0.2

10

CHANGELOG.md

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

<a name="9.0.2"></a>
## [9.0.2](https://github.com/yargs/yargs-parser/compare/v9.0.1...v9.0.2) (2018-01-20)
### Bug Fixes
* nargs was still aggressively consuming too many arguments ([9b28aad](https://github.com/yargs/yargs-parser/commit/9b28aad))
<a name="9.0.1"></a>

@@ -7,0 +17,0 @@ ## [9.0.1](https://github.com/yargs/yargs-parser/compare/v9.0.0...v9.0.1) (2018-01-20)

7

index.js

@@ -306,3 +306,3 @@ var camelCase = require('camelcase')

var ii
var toEat = checkAllAliases(key, flags.nargs)
const toEat = checkAllAliases(key, flags.nargs)

@@ -319,7 +319,8 @@ // nargs will not consume flag arguments, e.g., -abc, --foo,

for (ii = i + 1; ii < (Math.min(available, toEat) + i + 1); ii++) {
const consumed = Math.min(available, toEat)
for (ii = i + 1; ii < (consumed + i + 1); ii++) {
setArg(key, args[ii])
}
return (i + toEat)
return (i + consumed)
}

@@ -326,0 +327,0 @@

{
"name": "yargs-parser",
"version": "9.0.1",
"version": "9.0.2",
"description": "the mighty option parser used by yargs",

@@ -5,0 +5,0 @@ "main": "index.js",

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