yargs 12.0.4 → 12.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ <a name="12.0.5"></a>
6
+ ## [12.0.5](https://github.com/yargs/yargs/compare/v12.0.4...v12.0.5) (2018-11-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * allows camel-case, variadic arguments, and strict mode to be combined ([#1247](https://github.com/yargs/yargs/issues/1247)) ([eacc035](https://github.com/yargs/yargs/commit/eacc035))
12
+
13
+
14
+
5
15
  <a name="12.0.4"></a>
6
16
  ## [12.0.4](https://github.com/yargs/yargs/compare/v12.0.3...v12.0.4) (2018-11-10)
7
17
 
package/README.md CHANGED
@@ -10,7 +10,6 @@
10
10
  [![Build Status][travis-image]][travis-url]
11
11
  [![Coverage Status][coveralls-image]][coveralls-url]
12
12
  [![NPM version][npm-image]][npm-url]
13
- [![Windows Tests][windows-image]][windows-url]
14
13
  [![js-standard-style][standard-image]][standard-url]
15
14
  [![Conventional Commits][conventional-commits-image]][conventional-commits-url]
16
15
  [![Slack][slack-image]][slack-url]
@@ -115,8 +114,6 @@ Having problems? want to contribute? join our [community slack](http://devtoolsc
115
114
  [coveralls-image]: https://img.shields.io/coveralls/yargs/yargs.svg
116
115
  [npm-url]: https://www.npmjs.com/package/yargs
117
116
  [npm-image]: https://img.shields.io/npm/v/yargs.svg
118
- [windows-url]: https://ci.appveyor.com/project/bcoe/yargs-ljwvf
119
- [windows-image]: https://img.shields.io/appveyor/ci/bcoe/yargs-ljwvf/master.svg?label=Windows%20Tests
120
117
  [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
121
118
  [standard-url]: http://standardjs.com/
122
119
  [conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
package/lib/command.js CHANGED
@@ -358,6 +358,9 @@ module.exports = function command (yargs, usage, validation, globalMiddleware) {
358
358
 
359
359
  Object.keys(parsed.argv).forEach((key) => {
360
360
  if (positionalKeys.indexOf(key) !== -1) {
361
+ // any new aliases need to be placed in positionalMap, which
362
+ // is used for validation.
363
+ if (!positionalMap[key]) positionalMap[key] = parsed.argv[key]
361
364
  argv[key] = parsed.argv[key]
362
365
  }
363
366
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yargs",
3
- "version": "12.0.4",
3
+ "version": "12.0.5",
4
4
  "description": "yargs the modern, pirate-themed, successor to optimist.",
5
5
  "main": "./index.js",
6
6
  "contributors": [
@@ -29,7 +29,7 @@
29
29
  "string-width": "^2.0.0",
30
30
  "which-module": "^2.0.0",
31
31
  "y18n": "^3.2.1 || ^4.0.0",
32
- "yargs-parser": "^11.1.0"
32
+ "yargs-parser": "^11.1.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "chai": "^4.1.2",