File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,15 @@ import { BULLET, TICK } from '../utils/consts';
9
9
10
10
const globalConsole = console ; // eslint-disable-line no-console
11
11
12
+ const renderT = throttle ( ( fn , ...args ) => fn ( ...args ) , 1 , 50 ) ;
13
+
12
14
export default class BarsReporter {
13
15
constructor ( ) {
14
- this . renderT = throttle ( this . render . bind ( this ) , 1 , 100 ) ;
16
+ this . _render = this . _render . bind ( this ) ;
15
17
this . drafts = null ;
16
18
}
17
19
18
20
compiling ( ) {
19
- // eslint-disable-next-line no-console
20
21
if ( ! globalConsole . draft ) {
21
22
draftLog . into ( globalConsole ) ;
22
23
}
@@ -26,14 +27,14 @@ export default class BarsReporter {
26
27
}
27
28
28
29
compiled ( context ) {
29
- this . render ( context ) ;
30
+ this . _render ( context ) ;
30
31
}
31
32
32
33
update ( context ) {
33
- this . renderT ( context ) ;
34
+ renderT ( this . _render , context ) ;
34
35
}
35
36
36
- render ( context ) {
37
+ _render ( context ) {
37
38
const {
38
39
state,
39
40
options : { stream, name } ,
You can’t perform that action at this time.
0 commit comments