@kt3k/tku 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +3 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -240,7 +240,9 @@ async function main() {
240
240
  const isTTY = process.stderr.isTTY;
241
241
  function status(msg) {
242
242
  if (isTTY) {
243
- process.stderr.write(`\r\x1B[K${msg}`);
243
+ const cols = process.stderr.columns || 80;
244
+ const truncated = msg.length > cols ? msg.slice(0, cols) : msg;
245
+ process.stderr.write(`\r\x1B[K${truncated}`);
244
246
  }
245
247
  }
246
248
  function clearStatus() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kt3k/tku",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "bin": {