@rushstack/terminal
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -85,2 +85,10 @@ "use strict"; | ||
} | ||
if (previousWhitespaceMatch && | ||
line.length + linePrefixLength - currentLineStartIndex > maxLineLength) { | ||
const whitespaceToSplitAt = previousWhitespaceMatch; | ||
wrappedLines.push(linePrefix + | ||
lineAdditionalPrefix + | ||
line.substring(currentLineStartIndex, whitespaceToSplitAt.index)); | ||
currentLineStartIndex = whitespaceToSplitAt.index + whitespaceToSplitAt[0].length; | ||
} | ||
if (currentLineStartIndex < line.length) { | ||
@@ -87,0 +95,0 @@ wrappedLines.push(linePrefix + lineAdditionalPrefix + line.substring(currentLineStartIndex)); |
{ | ||
"name": "@rushstack/terminal", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "User interface primitives for console applications", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
364097
4667