multi-progress-bars
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -5,2 +5,9 @@ # Changelog | ||
### [3.2.4](https://github.com/kamiyo/multi-progress-bars/compare/v3.2.3...v3.2.4) (2021-04-16) | ||
### Bug Fixes | ||
* when stdout is not a TTY, updates to the UI cause scrolling ([2e74297](https://github.com/kamiyo/multi-progress-bars/commit/2e742971c182e9c92872dfab723afd268d04714a)), closes [#7](https://github.com/kamiyo/multi-progress-bars/issues/7) | ||
### [3.2.3](https://github.com/kamiyo/multi-progress-bars/compare/v3.2.2...v3.2.3) (2021-03-14) | ||
@@ -7,0 +14,0 @@ |
@@ -126,4 +126,6 @@ 'use strict'; | ||
resize() { | ||
this.width = process.stdout.columns; | ||
this.height = process.stdout.rows - 1; | ||
// see https://github.com/kamiyo/multi-progress-bars/issues/7 | ||
const stdout = process.stdout.isTTY ? process.stdout : process.stderr; | ||
this.width = stdout.columns; | ||
this.height = stdout.rows - 1; | ||
} | ||
@@ -130,0 +132,0 @@ gotoBottom() { |
@@ -118,4 +118,6 @@ import { green } from 'chalk'; | ||
resize() { | ||
this.width = process.stdout.columns; | ||
this.height = process.stdout.rows - 1; | ||
// see https://github.com/kamiyo/multi-progress-bars/issues/7 | ||
const stdout = process.stdout.isTTY ? process.stdout : process.stderr; | ||
this.width = stdout.columns; | ||
this.height = stdout.rows - 1; | ||
} | ||
@@ -122,0 +124,0 @@ gotoBottom() { |
{ | ||
"name": "multi-progress-bars", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"description": "Multiple progress bars with option for indefinite spinners", | ||
@@ -5,0 +5,0 @@ "main": "dist/multi-progress-bars.cjs.js", |
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
77552
1364