Skip to content

Commit 87010c5

Browse files
committedAug 7, 2020
Require Node.js 10
Closes #151
1 parent ffcf7e3 commit 87010c5

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed
 

Diff for: ‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
node_js:
3+
- '14'
34
- '12'
45
- '10'
5-
- '8'

Diff for: ‎package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"engines": {
14-
"node": ">=8"
14+
"node": ">=10"
1515
},
1616
"scripts": {
1717
"test": "xo && ava && tsd"
@@ -37,20 +37,20 @@
3737
"idle"
3838
],
3939
"dependencies": {
40-
"chalk": "^3.0.0",
40+
"chalk": "^4.1.0",
4141
"cli-cursor": "^3.1.0",
42-
"cli-spinners": "^2.2.0",
42+
"cli-spinners": "^2.4.0",
4343
"is-interactive": "^1.0.0",
44-
"log-symbols": "^3.0.0",
44+
"log-symbols": "^4.0.0",
4545
"mute-stream": "0.0.8",
4646
"strip-ansi": "^6.0.0",
4747
"wcwidth": "^1.0.1"
4848
},
4949
"devDependencies": {
50-
"@types/node": "^12.7.5",
50+
"@types/node": "^14.0.27",
5151
"ava": "^2.4.0",
5252
"get-stream": "^5.1.0",
53-
"tsd": "^0.10.0",
54-
"xo": "^0.25.3"
53+
"tsd": "^0.13.1",
54+
"xo": "^0.25.0"
5555
}
5656
}

Diff for: ‎readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/sindresorhus/ora)
1+
# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/github/sindresorhus/ora)
22

33
> Elegant terminal spinner
44

Diff for: ‎test.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -87,27 +87,27 @@ test('chain call to `.start()` with constructor', t => {
8787

8888
test('.succeed()', macro, spinner => {
8989
spinner.succeed();
90-
}, /(|) foo\n$/);
90+
}, /(?:|) foo\n$/);
9191

9292
test('.succeed() - with new text', macro, spinner => {
9393
spinner.succeed('fooed');
94-
}, /(|) fooed\n$/);
94+
}, /(?:|) fooed\n$/);
9595

9696
test('.fail()', macro, spinner => {
9797
spinner.fail();
98-
}, /(|×) foo\n$/);
98+
}, /(?:|×) foo\n$/);
9999

100100
test('.fail() - with new text', macro, spinner => {
101101
spinner.fail('failed to foo');
102-
}, /(|×) failed to foo\n$/);
102+
}, /(?:|×) failed to foo\n$/);
103103

104104
test('.warn()', macro, spinner => {
105105
spinner.warn();
106-
}, /(|) foo\n$/);
106+
}, /(?:|) foo\n$/);
107107

108108
test('.info()', macro, spinner => {
109109
spinner.info();
110-
}, /(|i) foo\n$/);
110+
}, /(?:|i) foo\n$/);
111111

112112
test('.stopAndPersist() - with new text', macro, spinner => {
113113
spinner.stopAndPersist({text: 'all done'});
@@ -145,7 +145,7 @@ test('.promise() - resolves', async t => {
145145
await resolves;
146146
stream.end();
147147

148-
t.regex(stripAnsi(await output), /(|) foo\n$/);
148+
t.regex(stripAnsi(await output), /(?:|) foo\n$/);
149149
});
150150

151151
test('.promise() - rejects', async t => {
@@ -166,7 +166,7 @@ test('.promise() - rejects', async t => {
166166

167167
stream.end();
168168

169-
t.regex(stripAnsi(await output), /(|×) foo\n$/);
169+
t.regex(stripAnsi(await output), /(?:|×) foo\n$/);
170170
});
171171

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

0 commit comments

Comments
 (0)
Please sign in to comment.