Fix dependabot issues

This commit is contained in:
Andrew Eisenberg 2021-10-21 15:24:20 -07:00
parent c89d9bd8b0
commit 531c6ba7c8
705 changed files with 53406 additions and 20466 deletions

24
node_modules/ora/index.d.ts generated vendored
View file

@ -1,4 +1,3 @@
/// <reference types="node"/>
import {SpinnerName} from 'cli-spinners';
declare namespace ora {
@ -18,6 +17,8 @@ declare namespace ora {
| 'white'
| 'gray';
type PrefixTextGenerator = () => string;
interface Options {
/**
Text to display after the spinner.
@ -25,12 +26,12 @@ declare namespace ora {
readonly text?: string;
/**
Text to display before the spinner. No prefix text will be displayed if set to an empty string.
Text or a function that returns text to display before the spinner. No prefix text will be displayed if set to an empty string.
*/
readonly prefixText?: string;
readonly prefixText?: string | PrefixTextGenerator;
/**
Name of one of the provided spinners. See [`example.js`](https://github.com/BendingBender/ora/blob/master/example.js) in this repo if you want to test out different spinners. On Windows, it will always use the line spinner as the Windows command-line doesn't have proper Unicode support.
Name of one of the provided spinners. See [`example.js`](https://github.com/BendingBender/ora/blob/main/example.js) in this repo if you want to test out different spinners. On Windows, it will always use the line spinner as the Windows command-line doesn't have proper Unicode support.
@default 'dots'
@ -92,6 +93,13 @@ declare namespace ora {
*/
readonly isEnabled?: boolean;
/**
Disable the spinner and all log text. All output is suppressed and `isEnabled` will be considered `false`.
@default false
*/
readonly isSilent?: boolean;
/**
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.
@ -118,11 +126,11 @@ declare namespace ora {
readonly text?: string;
/**
Text to be persisted before the symbol. No prefix text will be displayed if set to an empty string.
Text or a function that returns text to be persisted before the symbol. No prefix text will be displayed if set to an empty string.
Default: Current `prefixText`.
*/
readonly prefixText?: string;
readonly prefixText?: string | PrefixTextGenerator;
}
interface Ora {
@ -137,9 +145,9 @@ declare namespace ora {
text: string;
/**
Change the text before the spinner. No prefix text will be displayed if set to an empty string.
Change the text or function that returns text before the spinner. No prefix text will be displayed if set to an empty string.
*/
prefixText: string;
prefixText: string | PrefixTextGenerator;
/**
Change the spinner color.