Comparing version 7.0.0 to 7.0.1
@@ -217,3 +217,3 @@ import {LiteralUnion} from 'type-fest'; | ||
/** | ||
__boolean__: Wether or not to fit all available space within the terminal. | ||
__boolean__: Whether or not to fit all available space within the terminal. | ||
@@ -227,3 +227,3 @@ __function__: Pass a callback function to control box dimensions. | ||
console.log(boxen('foo bar', { | ||
fullscreen: (width, height) => [width, height - 1]; | ||
fullscreen: (width, height) => [width, height - 1], | ||
})); | ||
@@ -230,0 +230,0 @@ ``` |
@@ -221,9 +221,7 @@ import process from 'node:process'; | ||
const LINE_SEPARATOR = (contentWidth + BORDERS_WIDTH + options.margin.left >= columns) ? '' : NEWLINE; | ||
const lines = content.split(NEWLINE); | ||
const middle = lines.map(line => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(LINE_SEPARATOR); | ||
const middle = lines.map(line => marginLeft + colorizeBorder(chars.left) + colorizeContent(line) + colorizeBorder(chars.right)).join(NEWLINE); | ||
return top + LINE_SEPARATOR + middle + LINE_SEPARATOR + bottom; | ||
return top + NEWLINE + middle + NEWLINE + bottom; | ||
}; | ||
@@ -230,0 +228,0 @@ |
{ | ||
"name": "boxen", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Create boxes in the terminal", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -235,3 +235,3 @@ # boxen | ||
Wether or not to fit all available space within the terminal. | ||
Whether or not to fit all available space within the terminal. | ||
@@ -244,3 +244,3 @@ Pass a callback function to control box dimensions: | ||
console.log(boxen('foo bar', { | ||
fullscreen: (width, height) => [width, height - 1]; | ||
fullscreen: (width, height) => [width, height - 1], | ||
})); | ||
@@ -247,0 +247,0 @@ ``` |
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
23591
504