Socket
Socket
Sign inDemoInstall

yargs-parser

Package Overview
Dependencies
2
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.0.0 to 18.1.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [18.1.0](https://www.github.com/yargs/yargs-parser/compare/v18.0.0...v18.1.0) (2020-03-07)
### Features
* introduce single-digit boolean aliases ([#255](https://www.github.com/yargs/yargs-parser/issues/255)) ([9c60265](https://www.github.com/yargs/yargs-parser/commit/9c60265fd7a03cb98e6df3e32c8c5e7508d9f56f))
## [18.0.0](https://www.github.com/yargs/yargs-parser/compare/v17.1.0...v18.0.0) (2020-03-02)

@@ -7,0 +14,0 @@

7

index.js

@@ -307,2 +307,8 @@ const camelCase = require('camelcase')

}
} else if (arg.match(/^-[0-9]$/) &&
arg.match(negative) &&
checkAllAliases(arg.slice(1), flags.bools)) {
// single-digit boolean alias, e.g: xargs -0
key = arg.slice(1)
setArg(key, defaultValue(key))
} else if (arg === '--') {

@@ -351,3 +357,2 @@ notFlags = args.slice(i + 1)

if (configuration['strip-aliased']) {
// XXX Switch to [].concat(...Object.values(aliases)) once node.js 6 is dropped
;[].concat(...Object.keys(aliases).map(k => aliases[k])).forEach(alias => {

@@ -354,0 +359,0 @@ if (configuration['camel-case-expansion']) {

5

package.json
{
"name": "yargs-parser",
"version": "18.0.0",
"version": "18.1.0",
"description": "the mighty option parser used by yargs",

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

"posttest": "standard",
"coverage": "c8 report --reporter=text-lcov | coveralls"
"coverage": "c8 report --check-coverage check-coverage --lines=100 --branches=97 --statements=100"
},

@@ -33,3 +33,2 @@ "repository": {

"chai": "^4.2.0",
"coveralls": "^3.0.2",
"mocha": "^7.0.0",

@@ -36,0 +35,0 @@ "standard": "^14.3.1"

# yargs-parser
[![Build Status](https://travis-ci.org/yargs/yargs-parser.svg)](https://travis-ci.org/yargs/yargs-parser)
[![Coverage Status](https://coveralls.io/repos/yargs/yargs-parser/badge.svg?branch=)](https://coveralls.io/r/yargs/yargs-parser?branch=master)
[![NPM version](https://img.shields.io/npm/v/yargs-parser.svg)](https://www.npmjs.com/package/yargs-parser)

@@ -6,0 +5,0 @@ [![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)

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