@aws-amplify/amplify-prompts
Advanced tools
Comparing version 2.8.3 to 2.8.4-rc.0d5077acf100296.0
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.8.4-rc.0d5077acf100296.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.8.3...@aws-amplify/amplify-prompts@2.8.4-rc.0d5077acf100296.0) (2023-09-21) | ||
### Bug Fixes | ||
* don't render spinner in non-TTY terminal ([#13242](https://github.com/aws-amplify/amplify-cli/issues/13242)) ([d75d0b2](https://github.com/aws-amplify/amplify-cli/commit/d75d0b295d9fb3cd85b3e9cb0de177f60091def1)) | ||
## [2.8.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-prompts@2.8.2...@aws-amplify/amplify-prompts@2.8.3) (2023-08-31) | ||
@@ -8,0 +19,0 @@ |
@@ -14,3 +14,3 @@ "use strict"; | ||
render() { | ||
if (!this.terminal) { | ||
if (!this.terminal || !this.terminal.isTTY()) { | ||
return; | ||
@@ -35,2 +35,5 @@ } | ||
} | ||
if (!this.terminal.isTTY()) { | ||
return; | ||
} | ||
this.prefixText = text ? text.replace('\n', '') : this.prefixText; | ||
@@ -41,3 +44,3 @@ this.terminal.cursor(false); | ||
resetMessage(text) { | ||
if (!this.terminal) { | ||
if (!this.terminal || !this.terminal.isTTY()) { | ||
this.start(text); | ||
@@ -52,11 +55,13 @@ return; | ||
} | ||
const lines = [ | ||
{ | ||
renderString: text || '', | ||
color: success ? 'green' : 'red', | ||
}, | ||
]; | ||
clearTimeout(this.timer); | ||
this.terminal.writeLines(lines); | ||
this.terminal.cursor(true); | ||
if (this.terminal.isTTY()) { | ||
const lines = [ | ||
{ | ||
renderString: text || '', | ||
color: success ? 'green' : 'red', | ||
}, | ||
]; | ||
clearTimeout(this.timer); | ||
this.terminal.writeLines(lines); | ||
this.terminal.cursor(true); | ||
} | ||
this.terminal = null; | ||
@@ -63,0 +68,0 @@ } |
{ | ||
"name": "@aws-amplify/amplify-prompts", | ||
"version": "2.8.3", | ||
"version": "2.8.4-rc.0d5077acf100296.0", | ||
"description": "Utility functions for Amplify CLI terminal I/O", | ||
@@ -67,3 +67,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "bea1cf90ee95af8961beb5f2f6133a67c47ccfba" | ||
"gitHead": "2bf4dcc763df8abd94ba277bcfc8fb8afb586862" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
127453
1187
1