You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,12 @@ class Ora {
59
59
this._indent=indent;
60
60
}
61
61
62
+
_updateInterval(interval){
63
+
if(interval!==undefined){
64
+
this.interval=interval;
65
+
}
66
+
}
67
+
62
68
getspinner(){
63
69
returnthis._spinner;
64
70
}
@@ -71,10 +77,6 @@ class Ora {
71
77
thrownewError('The given spinner must have a `frames` property');
72
78
}
73
79
74
-
if(spinner.interval!==undefined){
75
-
this.interval=spinner.interval;
76
-
}
77
-
78
80
this._spinner=spinner;
79
81
}elseif(process.platform==='win32'){
80
82
this._spinner=cliSpinners.line;
@@ -86,6 +88,8 @@ class Ora {
86
88
}else{
87
89
thrownewError(`There is no built-in spinner named '${spinner}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);
0 commit comments