yargs 12.0.1 → 12.0.2

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,18 @@
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.2"></a>
6
+ ## [12.0.2](https://github.com/yargs/yargs/compare/v12.0.1...v12.0.2) (2018-09-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * middleware should work regardless of when method is called ([664b265](https://github.com/yargs/yargs/commit/664b265)), closes [#1178](https://github.com/yargs/yargs/issues/1178)
12
+ * translation not working when using __ with a single parameter ([#1183](https://github.com/yargs/yargs/issues/1183)) ([f449aea](https://github.com/yargs/yargs/commit/f449aea))
13
+ * upgrade os-locale to version that addresses license issue ([#1195](https://github.com/yargs/yargs/issues/1195)) ([efc0970](https://github.com/yargs/yargs/commit/efc0970))
14
+
15
+
16
+
5
17
  <a name="12.0.1"></a>
6
18
  ## [12.0.1](https://github.com/yargs/yargs/compare/v12.0.0...v12.0.1) (2018-06-29)
7
19
 
package/lib/command.js CHANGED
@@ -19,7 +19,8 @@ module.exports = function command (yargs, usage, validation, globalMiddleware) {
19
19
  let aliases = []
20
20
  handler = handler || (() => {})
21
21
  middlewares = middlewares || []
22
- middlewares = globalMiddleware.concat(middlewares)
22
+ globalMiddleware.push(...middlewares)
23
+ middlewares = globalMiddleware
23
24
  if (Array.isArray(cmd)) {
24
25
  aliases = cmd.slice(1)
25
26
  cmd = cmd[0]
package/lib/validation.js CHANGED
@@ -292,7 +292,7 @@ module.exports = function validation (yargs, usage, y18n) {
292
292
  // we default keys to 'undefined' that have been configured, we should not
293
293
  // apply conflicting check unless they are a value other than 'undefined'.
294
294
  if (value && argv[key] !== undefined && argv[value] !== undefined) {
295
- usage.fail(__(`Arguments ${key} and ${value} are mutually exclusive`))
295
+ usage.fail(__('Arguments %s and %s are mutually exclusive', key, value))
296
296
  }
297
297
  })
298
298
  }
@@ -8,5 +8,6 @@
8
8
  "other": "Ye be havin' to set the followin' arguments land lubber: %s"
9
9
  },
10
10
  "Show help": "Parlay this here code of conduct",
11
- "Show version number": "'Tis the version ye be askin' fer"
11
+ "Show version number": "'Tis the version ye be askin' fer",
12
+ "Arguments %s and %s are mutually exclusive" : "Yon scurvy dogs %s and %s be as bad as rum and a prudish wench"
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yargs",
3
- "version": "12.0.1",
3
+ "version": "12.0.2",
4
4
  "description": "yargs the modern, pirate-themed, successor to optimist.",
5
5
  "main": "./index.js",
6
6
  "files": [
@@ -16,7 +16,7 @@
16
16
  "decamelize": "^2.0.0",
17
17
  "find-up": "^3.0.0",
18
18
  "get-caller-file": "^1.0.1",
19
- "os-locale": "^2.0.0",
19
+ "os-locale": "^3.0.0",
20
20
  "require-directory": "^2.1.1",
21
21
  "require-main-filename": "^1.0.1",
22
22
  "set-blocking": "^2.0.0",
@@ -28,7 +28,7 @@
28
28
  "devDependencies": {
29
29
  "chai": "^4.1.2",
30
30
  "chalk": "^1.1.3",
31
- "coveralls": "^3.0.1",
31
+ "coveralls": "^3.0.2",
32
32
  "cpr": "^2.0.0",
33
33
  "cross-spawn": "^6.0.4",
34
34
  "es6-promise": "^4.0.2",