@oclif/plugin-help 3.2.7 → 3.2.11

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/lib/list.js CHANGED
@@ -17,13 +17,13 @@ function renderList(input, opts) {
17
17
  if (left) {
18
18
  if (opts.stripAnsi)
19
19
  left = stripAnsi(left);
20
- output += wrap(left.trim(), opts.maxWidth, { hard: true, trim: false });
20
+ output += wrap(left.trim(), opts.maxWidth, { hard: true, trim: true });
21
21
  }
22
22
  if (right) {
23
23
  if (opts.stripAnsi)
24
24
  right = stripAnsi(right);
25
25
  output += '\n';
26
- output += indent(wrap(right.trim(), opts.maxWidth - 2, { hard: true, trim: false }), 4);
26
+ output += indent(wrap(right.trim(), opts.maxWidth - 2, { hard: true, trim: true }), 4);
27
27
  }
28
28
  output += '\n\n';
29
29
  }
@@ -50,7 +50,7 @@ function renderList(input, opts) {
50
50
  }
51
51
  if (opts.stripAnsi)
52
52
  right = stripAnsi(right);
53
- right = wrap(right.trim(), opts.maxWidth - (maxLength + 2), { hard: true, trim: false });
53
+ right = wrap(right.trim(), opts.maxWidth - (maxLength + 2), { hard: true, trim: true });
54
54
  // right = wrap(right.trim(), screen.stdtermwidth - (maxLength + 4), {hard: true, trim: false})
55
55
  const [first, ...lines] = right.split('\n').map(s => s.trim());
56
56
  cur += ' '.repeat(maxLength - width(cur) + 2);
@@ -1 +1 @@
1
- {"version":"3.2.7","commands":{"help":{"id":"help","description":"display help for <%= config.bin %>","pluginName":"@oclif/plugin-help","pluginType":"core","aliases":[],"flags":{"all":{"name":"all","type":"boolean","description":"see all commands in CLI","allowNo":false}},"args":[{"name":"command","description":"command to show help for","required":false}]}}}
1
+ {"version":"3.2.11","commands":{"help":{"id":"help","description":"display help for <%= config.bin %>","pluginName":"@oclif/plugin-help","pluginType":"core","aliases":[],"flags":{"all":{"name":"all","type":"boolean","description":"see all commands in CLI","allowNo":false}},"args":[{"name":"command","description":"command to show help for","required":false}]}}}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@oclif/plugin-help",
3
3
  "description": "standard help for oclif",
4
- "version": "3.2.7",
4
+ "version": "3.2.11",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bugs": "https://github.com/oclif/plugin-help/issues",
7
7
  "dependencies": {
8
- "@oclif/command": "^1.8.4",
9
- "@oclif/config": "^1.17.1",
8
+ "@oclif/command": "^1.8.7",
9
+ "@oclif/config": "^1.18.2",
10
10
  "@oclif/errors": "^1.3.5",
11
11
  "chalk": "^4.1.2",
12
12
  "indent-string": "^4.0.0",
@@ -14,12 +14,12 @@
14
14
  "string-width": "^4.2.0",
15
15
  "strip-ansi": "^6.0.0",
16
16
  "widest-line": "^3.1.0",
17
- "wrap-ansi": "^4.0.0"
17
+ "wrap-ansi": "^6.2.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@oclif/dev-cli": "^1.26.1",
21
- "@oclif/plugin-legacy": "^1.2.1",
22
- "@oclif/plugin-plugins": "^1.10.2",
20
+ "@oclif/dev-cli": "^1.26.6",
21
+ "@oclif/plugin-legacy": "^1.2.4",
22
+ "@oclif/plugin-plugins": "^1.10.7",
23
23
  "@oclif/test": "^1.2.8",
24
24
  "@types/chai": "^4.1.7",
25
25
  "@types/lodash": "^4.14.176",