Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

render-help

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-help - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

CHANGELOG.md
# 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.

10

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc