render-help
Advanced tools
Comparing version 1.0.1 to 1.0.2
# render-help | ||
## 1.0.2 | ||
### Patch Changes | ||
- bd957ab: Passess columns in correct format to the table lib. | ||
## 1.0.1 | ||
### Patch Changes | ||
- 16f8bec: Update table to v6. |
@@ -37,7 +37,7 @@ "use strict"; | ||
const descriptionColumnWidth = Math.max(2, width - firstColumnMaxWidth - nameColumnWidth - 2 - 2 - 1); | ||
return multiTrim(table_1.table(data, Object.assign(Object.assign({}, TABLE_OPTIONS), { columns: [ | ||
Object.assign(Object.assign({}, SHORT_OPTION_COLUMN), FIRST_COLUMN), | ||
Object.assign({ width: nameColumnWidth }, LONG_OPTION_COLUMN), | ||
Object.assign({ width: descriptionColumnWidth }, DESCRIPTION_COLUMN), | ||
] }))); | ||
return multiTrim(table_1.table(data, Object.assign(Object.assign({}, TABLE_OPTIONS), { columns: { | ||
0: Object.assign(Object.assign({}, SHORT_OPTION_COLUMN), FIRST_COLUMN), | ||
1: Object.assign({ width: nameColumnWidth }, LONG_OPTION_COLUMN), | ||
2: Object.assign({ width: descriptionColumnWidth }, DESCRIPTION_COLUMN), | ||
} }))); | ||
} | ||
@@ -44,0 +44,0 @@ function multiTrim(str) { |
{ | ||
"name": "render-help", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Creates a nice output for a CLI --help", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"files": ["lib"], | ||
"files": [ | ||
"lib" | ||
], | ||
"engines": { | ||
@@ -29,13 +31,13 @@ "node": ">=10" | ||
"dependencies": { | ||
"table": "^6.0.3" | ||
"table": "^6.0.7" | ||
}, | ||
"devDependencies": { | ||
"@types/common-tags": "^1.8.0", | ||
"@types/jest": "^26.0.14", | ||
"@types/node": "^14.11.2", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "14.14.6", | ||
"@types/table": "^6.0.0", | ||
"common-tags": "^1.8.0", | ||
"jest": "^26.4.2", | ||
"ts-jest": "^26.4.1", | ||
"typescript": "^4.0.3" | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.5.1", | ||
"typescript": "^4.1.5" | ||
}, | ||
@@ -42,0 +44,0 @@ "jest": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9916
Updatedtable@^6.0.7