ora
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -105,2 +105,6 @@ 'use strict'; | ||
stopAndPersist(options) { | ||
if (!this.enabled) { | ||
return this; | ||
} | ||
// Legacy argument | ||
@@ -107,0 +111,0 @@ // TODO: Deprecate sometime in the future |
{ | ||
"name": "ora", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Elegant terminal spinner", | ||
@@ -38,6 +38,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"chalk": "^1.1.1", | ||
"chalk": "^2.1.0", | ||
"cli-cursor": "^2.1.0", | ||
"cli-spinners": "^1.0.0", | ||
"log-symbols": "^1.0.2" | ||
"cli-spinners": "^1.0.1", | ||
"log-symbols": "^2.1.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
@@ -5,3 +5,5 @@ # ora [![Build Status](https://travis-ci.org/sindresorhus/ora.svg?branch=master)](https://travis-ci.org/sindresorhus/ora) | ||
<img src="screenshot.gif" width="629"> | ||
<p align="center"> | ||
<img src="https://rawgit.com/sindresorhus/ora/master/screenshot.svg" width="500"> | ||
</p> | ||
@@ -15,3 +17,5 @@ | ||
*Show your support for Ora by buying this excellent [Node.js course](https://LearnNode.com/friend/AWESOME).* | ||
## Usage | ||
@@ -167,7 +171,7 @@ | ||
#### .promise(action, [options|text]) | ||
### ora.promise(action, [options|text]) | ||
Starts a spinner for a promise. The spinner is stopped with `.succeed()` if the promise fulfills or with `.fail()` if it rejects. Returns the spinner instance. | ||
##### action | ||
#### action | ||
@@ -181,2 +185,5 @@ Type: `Promise` | ||
- [listr](https://github.com/SamVerschueren/listr) - Terminal task list | ||
- [CLISpinner](https://github.com/kiliankoe/CLISpinner) - Terminal spinner library for Swift | ||
- [halo](https://github.com/ManrajGrover/halo) - Python port | ||
- [spinners](https://github.com/FGRibreau/spinners) - Terminal spinners for Rust | ||
@@ -183,0 +190,0 @@ |
9088
123
190
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedlog-symbols@2.2.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedchalk@1.1.3(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedlog-symbols@1.0.2(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
Updatedchalk@^2.1.0
Updatedcli-spinners@^1.0.1
Updatedlog-symbols@^2.1.0