From b89c19e9a7674b0bd9d336c14dee1bf381843648 Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 2 Nov 2022 09:40:50 -0700 Subject: [PATCH] deps: cli-table3@0.6.3 --- node_modules/cli-table3/package.json | 2 +- node_modules/cli-table3/src/cell.js | 7 +++++-- package-lock.json | 7 ++++--- package.json | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/node_modules/cli-table3/package.json b/node_modules/cli-table3/package.json index 4e6689621968c..6e84bf6667505 100644 --- a/node_modules/cli-table3/package.json +++ b/node_modules/cli-table3/package.json @@ -1,6 +1,6 @@ { "name": "cli-table3", - "version": "0.6.2", + "version": "0.6.3", "description": "Pretty unicode tables for the command line. Based on the original cli-table.", "main": "index.js", "types": "index.d.ts", diff --git a/node_modules/cli-table3/src/cell.js b/node_modules/cli-table3/src/cell.js index 8f507442bb8fc..8c3df35d19407 100644 --- a/node_modules/cli-table3/src/cell.js +++ b/node_modules/cli-table3/src/cell.js @@ -73,7 +73,9 @@ class Cell { } computeLines(tableOptions) { - if (this.fixedWidth && (tableOptions.wordWrap || tableOptions.textWrap)) { + const tableWordWrap = tableOptions.wordWrap || tableOptions.textWrap; + const { wordWrap = tableWordWrap } = this.options; + if (this.fixedWidth && wordWrap) { this.fixedWidth -= this.paddingLeft + this.paddingRight; if (this.colSpan) { let i = 1; @@ -82,7 +84,8 @@ class Cell { i++; } } - const { wrapOnWordBoundary = true } = tableOptions; + const { wrapOnWordBoundary: tableWrapOnWordBoundary = true } = tableOptions; + const { wrapOnWordBoundary = tableWrapOnWordBoundary } = this.options; return this.wrapLines(utils.wordWrap(this.fixedWidth, this.content, wrapOnWordBoundary)); } return this.wrapLines(this.content.split('\n')); diff --git a/package-lock.json b/package-lock.json index b26762ab0cead..75629a2bc6fec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -97,7 +97,7 @@ "cacache": "^17.0.1", "chalk": "^4.1.2", "cli-columns": "^4.0.0", - "cli-table3": "^0.6.2", + "cli-table3": "^0.6.3", "columnify": "^1.6.0", "fastest-levenshtein": "^1.0.16", "fs-minipass": "^2.1.0", @@ -3310,9 +3310,10 @@ } }, "node_modules/cli-table3": { - "version": "0.6.2", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.3.tgz", + "integrity": "sha512-w5Jac5SykAeZJKntOxJCrm63Eg5/4dhMWIcuTbo9rpE+brgaSZo0RuNJZeOyMgsUdhDeojvgyQLmjI+K50ZGyg==", "inBundle": true, - "license": "MIT", "dependencies": { "string-width": "^4.2.0" }, diff --git a/package.json b/package.json index 096ae466bef7f..86735a62f41af 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "cacache": "^17.0.1", "chalk": "^4.1.2", "cli-columns": "^4.0.0", - "cli-table3": "^0.6.2", + "cli-table3": "^0.6.3", "columnify": "^1.6.0", "fastest-levenshtein": "^1.0.16", "fs-minipass": "^2.1.0",