yargs 3.9.0 → 3.9.1

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
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ ### v3.9.1 (2015/05/20 05:14 +00:00)
4
+ - [b6662b6](https://github.com/bcoe/yargs/commit/b6662b6774cfeab4876f41ec5e2f67b7698f4e2f) clarify .config() docs (@linclark)
5
+ - [0291360](https://github.com/bcoe/yargs/commit/02913606285ce31ce81d7f12c48d8a3029776ec7) fixed tests, switched to nyc for coverage, fixed security issue, added Lin as collaborator (@bcoe)
6
+
3
7
  ### v3.9.0 (2015/05/10 18:32 +00:00)
4
8
  - [#157](https://github.com/bcoe/yargs/pull/157) Merge pull request #157 from bcoe/command-yargs. allows handling of command specific arguments. Thanks for the suggestion @ohjames (@bcoe)
5
9
  - [#158](https://github.com/bcoe/yargs/pull/158) Merge pull request #158 from kemitchell/spdx-license. Update license format (@kemitchell)
package/README.md CHANGED
@@ -618,8 +618,9 @@ Optionally `.nargs()` can take an object of `key`/`narg` pairs.
618
618
  .config(key)
619
619
  ------------
620
620
 
621
- Tells the parser to interpret `key` as a path to a JSON config file. The file
622
- is loaded and parsed, and its properties are set as arguments.
621
+ Tells the parser that if the option specified by `key` is passed in, it
622
+ should be interpreted as a path to a JSON config file. The file is loaded
623
+ and parsed, and its properties are set as arguments.
623
624
 
624
625
  .wrap(columns)
625
626
  --------------
package/lib/usage.js CHANGED
@@ -106,7 +106,7 @@ module.exports = function (yargs) {
106
106
  ),
107
107
  ui = cliui({
108
108
  width: wrap,
109
- wrap: wrap ? true : false
109
+ wrap: !!wrap
110
110
  })
111
111
 
112
112
  // the usage string.
@@ -294,7 +294,7 @@ module.exports = function (yargs) {
294
294
  return string + ']'
295
295
  }
296
296
 
297
- // guess the width of the console window, max-width 100.
297
+ // guess the width of the console window, max-width 80.
298
298
  function windowWidth () {
299
299
  return wsize.width ? Math.min(80, wsize.width) : null
300
300
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yargs",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "Light-weight option parsing with an argv hash. No optstrings attached.",
5
5
  "main": "./index.js",
6
6
  "files": [
@@ -20,31 +20,17 @@
20
20
  "coveralls": "^2.11.2",
21
21
  "hashish": "0.0.4",
22
22
  "mocha": "^2.2.1",
23
- "mocha-lcov-reporter": "0.0.2",
24
- "mocoverage": "^1.0.0",
25
- "patched-blanket": "^1.0.1",
26
- "standard": "^3.6.0"
23
+ "nyc": "^2.0.0",
24
+ "standard": "^3.9.0"
27
25
  },
28
26
  "scripts": {
29
- "test": "standard && mocha --check-leaks --ui exports --require patched-blanket -R mocoverage"
27
+ "test": "standard && nyc mocha --check-leaks && nyc report",
28
+ "coverage": "nyc report --reporter=text-lcov | coveralls"
30
29
  },
31
30
  "repository": {
32
31
  "type": "git",
33
32
  "url": "http://github.com/bcoe/yargs.git"
34
33
  },
35
- "config": {
36
- "blanket": {
37
- "pattern": [
38
- "lib",
39
- "index.js"
40
- ],
41
- "data-cover-never": [
42
- "node_modules",
43
- "test"
44
- ],
45
- "output-reporter": "spec"
46
- }
47
- },
48
34
  "standard": {
49
35
  "ignore": [
50
36
  "**/example/**"
@@ -86,6 +72,10 @@
86
72
  {
87
73
  "name": "Benjamin Horsleben",
88
74
  "url": "https://github.com/fizker"
75
+ },
76
+ {
77
+ "name": "Lin Clark",
78
+ "url": "https://github.com/linclark"
89
79
  }
90
80
  ],
91
81
  "license": "MIT",