Skip to content

Commit 98d3529

Browse files
committed
Update dev dependencies
1 parent 56de27f commit 98d3529

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,20 @@ class Ora {
181181
return this[TEXT];
182182
}
183183

184+
set text(value) {
185+
this[TEXT] = value;
186+
this.updateLineCount();
187+
}
188+
184189
get prefixText() {
185190
return this[PREFIX_TEXT];
186191
}
187192

193+
set prefixText(value) {
194+
this[PREFIX_TEXT] = value;
195+
this.updateLineCount();
196+
}
197+
188198
get isSpinning() {
189199
return this.id !== undefined;
190200
}
@@ -210,16 +220,6 @@ class Ora {
210220
}
211221
}
212222

213-
set text(value) {
214-
this[TEXT] = value;
215-
this.updateLineCount();
216-
}
217-
218-
set prefixText(value) {
219-
this[PREFIX_TEXT] = value;
220-
this.updateLineCount();
221-
}
222-
223223
get isEnabled() {
224224
return this._isEnabled && !this.isSilent;
225225
}
@@ -398,7 +398,7 @@ module.exports.promise = (action, options) => {
398398
try {
399399
await action;
400400
spinner.succeed();
401-
} catch (_) {
401+
} catch {
402402
spinner.fail();
403403
}
404404
})();

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040
"bl": "^4.0.3",
4141
"chalk": "^4.1.0",
4242
"cli-cursor": "^3.1.0",
43-
"cli-spinners": "^2.4.0",
43+
"cli-spinners": "^2.5.0",
4444
"is-interactive": "^1.0.0",
4545
"log-symbols": "^4.0.0",
4646
"strip-ansi": "^6.0.0",
4747
"wcwidth": "^1.0.1"
4848
},
4949
"devDependencies": {
50-
"@types/node": "^14.0.27",
50+
"@types/node": "^14.14.16",
5151
"ava": "^2.4.0",
52-
"get-stream": "^5.1.0",
53-
"tsd": "^0.13.1",
54-
"xo": "^0.25.0"
52+
"get-stream": "^6.0.0",
53+
"tsd": "^0.14.0",
54+
"xo": "^0.36.1"
5555
}
5656
}

test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,27 +88,27 @@ test('chain call to `.start()` with constructor', t => {
8888

8989
test('.succeed()', macro, spinner => {
9090
spinner.succeed();
91-
}, /(?:|) foo\n$/);
91+
}, /[] foo\n$/);
9292

9393
test('.succeed() - with new text', macro, spinner => {
9494
spinner.succeed('fooed');
95-
}, /(?:|) fooed\n$/);
95+
}, /[] fooed\n$/);
9696

9797
test('.fail()', macro, spinner => {
9898
spinner.fail();
99-
}, /(?:|×) foo\n$/);
99+
}, /[×] foo\n$/);
100100

101101
test('.fail() - with new text', macro, spinner => {
102102
spinner.fail('failed to foo');
103-
}, /(?:|×) failed to foo\n$/);
103+
}, /[×] failed to foo\n$/);
104104

105105
test('.warn()', macro, spinner => {
106106
spinner.warn();
107-
}, /(?:|) foo\n$/);
107+
}, /[] foo\n$/);
108108

109109
test('.info()', macro, spinner => {
110110
spinner.info();
111-
}, /(?:|i) foo\n$/);
111+
}, /[i] foo\n$/);
112112

113113
test('.stopAndPersist() - with new text', macro, spinner => {
114114
spinner.stopAndPersist({text: 'all done'});
@@ -159,7 +159,7 @@ test('.promise() - resolves', async t => {
159159
await resolves;
160160
stream.end();
161161

162-
t.regex(stripAnsi(await output), /(?:|) foo\n$/);
162+
t.regex(stripAnsi(await output), /[] foo\n$/);
163163
});
164164

165165
test('.promise() - rejects', async t => {
@@ -176,11 +176,11 @@ test('.promise() - rejects', async t => {
176176

177177
try {
178178
await rejects;
179-
} catch (_) {}
179+
} catch {}
180180

181181
stream.end();
182182

183-
t.regex(stripAnsi(await output), /(?:|×) foo\n$/);
183+
t.regex(stripAnsi(await output), /[×] foo\n$/);
184184
});
185185

186186
test('erases wrapped lines', t => {

0 commit comments

Comments
 (0)