Skip to content

Commit 090860b

Browse files
committed
Meta tweaks
1 parent a4b2253 commit 090860b

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class StdinDiscarder {
3434
process.emit('SIGINT');
3535
}
3636

37-
self.oldEmit.apply(this, [event, data, ...args]);
37+
Reflect.apply(self.oldEmit, this, [event, data, ...args]);
3838
} else {
39-
process.stdin.emit.apply(this, [event, data, ...args]);
39+
Reflect.apply(process.stdin.emit, this, [event, data, ...args]);
4040
}
4141
};
4242
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@
3636
"idle"
3737
],
3838
"dependencies": {
39-
"chalk": "^2.4.2",
39+
"chalk": "^3.0.0",
4040
"cli-cursor": "^3.1.0",
4141
"cli-spinners": "^2.2.0",
4242
"is-interactive": "^1.0.0",
4343
"log-symbols": "^3.0.0",
4444
"mute-stream": "0.0.8",
45-
"strip-ansi": "^5.2.0",
45+
"strip-ansi": "^6.0.0",
4646
"wcwidth": "^1.0.1"
4747
},
4848
"devDependencies": {
4949
"@types/node": "^12.7.5",
5050
"ava": "^2.4.0",
5151
"get-stream": "^5.1.0",
52-
"tsd": "^0.8.0",
53-
"xo": "^0.24.0"
52+
"tsd": "^0.10.0",
53+
"xo": "^0.25.3"
5454
}
5555
}

readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Text to display before the spinner. No prefix text will be displayed if set to a
5555

5656
##### spinner
5757

58-
Type: `string | object`<br>
58+
Type: `string | object`\
5959
Default: `'dots'` <img src="screenshot-spinner.gif" width="14">
6060

6161
Name of one of the [provided spinners](https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json). See `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.
@@ -71,29 +71,29 @@ Or an object like:
7171

7272
##### color
7373

74-
Type: `string`<br>
75-
Default: `'cyan'`<br>
74+
Type: `string`\
75+
Default: `'cyan'`\
7676
Values: `'black'` `'red'` `'green'` `'yellow'` `'blue'` `'magenta'` `'cyan'` `'white'` `'gray'`
7777

7878
Color of the spinner.
7979

8080
##### hideCursor
8181

82-
Type: `boolean`<br>
82+
Type: `boolean`\
8383
Default: `true`
8484

8585
Set to `false` to stop Ora from hiding the cursor.
8686

8787
##### indent
8888

89-
Type: `number`<br>
89+
Type: `number`\
9090
Default: `0`
9191

9292
Indent the spinner with the given number of spaces.
9393

9494
##### interval
9595

96-
Type: `number`<br>
96+
Type: `number`\
9797
Default: Provided by the spinner or `100`
9898

9999
Interval between each frame.
@@ -102,7 +102,7 @@ Spinners provide their own recommended interval, so you don't really need to spe
102102

103103
##### stream
104104

105-
Type: `stream.Writable`<br>
105+
Type: `stream.Writable`\
106106
Default: `process.stderr`
107107

108108
Stream to write the output.
@@ -119,7 +119,7 @@ Note that `{isEnabled: false}` doesn't mean it won't output anything. It just me
119119

120120
##### discardStdin
121121

122-
Type: `boolean`<br>
122+
Type: `boolean`\
123123
Default: `true`
124124

125125
Discard stdin input (except Ctrl+C) while running if it's TTY. This prevents the spinner from twitching on input, outputting broken lines on <kbd>Enter</kbd> key presses, and prevents buffering of input while the spinner is running.
@@ -166,21 +166,21 @@ Type: `object`
166166

167167
###### symbol
168168

169-
Type: `string`<br>
169+
Type: `string`\
170170
Default: `' '`
171171

172172
Symbol to replace the spinner with.
173173

174174
###### text
175175

176-
Type: `string`<br>
176+
Type: `string`\
177177
Default: Current `'text'`
178178

179179
Text to be persisted after the symbol
180180

181181
###### prefixText
182182

183-
Type: `string`<br>
183+
Type: `string`\
184184
Default: Current `prefixText`
185185

186186
Text to be persisted before the symbol. No prefix text will be displayed if set to an empty string.

0 commit comments

Comments
 (0)