Comparing version 4.0.3 to 4.0.4
@@ -97,3 +97,3 @@ /// <reference types="node"/> | ||
Discard stdin input (except Ctrl+C) while running if it's TTY. This prevents the spinner from twitching on input, outputting broken lines on `Enter` key presses, and prevents buffering of input while the spinner is running. | ||
This has no effect on Windows as there's no good way to implement discarding stdin properly there. | ||
@@ -100,0 +100,0 @@ |
@@ -254,3 +254,6 @@ 'use strict'; | ||
if (!this.isEnabled) { | ||
this.stream.write(`- ${this.text}\n`); | ||
if (this.text) { | ||
this.stream.write(`- ${this.text}\n`); | ||
} | ||
return this; | ||
@@ -257,0 +260,0 @@ } |
{ | ||
"name": "ora", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Elegant terminal spinner", | ||
"license": "MIT", | ||
"repository": "sindresorhus/ora", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
@@ -12,0 +13,0 @@ "engines": { |
@@ -1,2 +0,2 @@ | ||
# ora [![Build Status](https://travis-ci.org/sindresorhus/ora.svg?branch=master)](https://travis-ci.org/sindresorhus/ora) | ||
# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/sindresorhus/ora) | ||
@@ -11,3 +11,2 @@ > Elegant terminal spinner | ||
## Install | ||
@@ -19,3 +18,2 @@ | ||
## Usage | ||
@@ -34,3 +32,2 @@ | ||
## API | ||
@@ -79,3 +76,3 @@ | ||
Default: `'cyan'`\ | ||
Values: `'black'` `'red'` `'green'` `'yellow'` `'blue'` `'magenta'` `'cyan'` `'white'` `'gray'` | ||
Values: `'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray'` | ||
@@ -235,3 +232,2 @@ Color of the spinner. | ||
## FAQ | ||
@@ -254,3 +250,2 @@ | ||
## Related | ||
@@ -267,1 +262,2 @@ | ||
- [observablehq.com/@victordidenko/ora](https://observablehq.com/@victordidenko/ora) - Ora port to Observable notebooks | ||
- [spinnies](https://github.com/jcarpanelli/spinnies) - Terminal multi-spinner library for Node.js |
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
21755
485
257