Comparing version 5.4.5 to 5.4.6
@@ -83,7 +83,12 @@ "use strict"; | ||
}).join(''); | ||
let output; | ||
output = '\r\u001B[K'; | ||
let output = ''; | ||
const bottom = (0, _drawBorder.drawBorderBottom)(columnWidthIndex, config.border); | ||
if (bottom !== '\n') { | ||
output = '\r\u001B[K'; | ||
} | ||
output += (0, _drawBorder.drawBorderJoin)(columnWidthIndex, config.border); | ||
output += body; | ||
output += (0, _drawBorder.drawBorderBottom)(columnWidthIndex, config.border); | ||
output += bottom; | ||
output = (0, _trimEnd2.default)(output); | ||
@@ -90,0 +95,0 @@ process.stdout.write(output); |
@@ -45,3 +45,3 @@ "use strict"; | ||
const drawBorderTop = (columnSizeIndex, parts) => { | ||
return drawBorder(columnSizeIndex, { | ||
const border = drawBorder(columnSizeIndex, { | ||
body: parts.topBody, | ||
@@ -52,2 +52,8 @@ join: parts.topJoin, | ||
}); | ||
if (border === '\n') { | ||
return ''; | ||
} | ||
return border; | ||
}; | ||
@@ -54,0 +60,0 @@ /** |
@@ -83,3 +83,3 @@ { | ||
}, | ||
"version": "5.4.5" | ||
"version": "5.4.6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
197631
2865