Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/amplify-prompts

Package Overview
Dependencies
Maintainers
10
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/amplify-prompts - npm Package Compare versions

Comparing version 2.8.3 to 2.8.4-rc.0d5077acf100296.0

11

CHANGELOG.md

@@ -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 @@

27

lib/progressbars/spinner.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc