Skip to content

Commit 17c1a29

Browse files
forresstsindresorhus
authored andcommitted
Require Node.js 6 (#84)
1 parent fa2f07d commit 17c1a29

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3+
- '10'
34
- '9'
45
- '8'
56
- '6'
6-
- '4'

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Ora {
5959
}
6060

6161
frame() {
62-
const frames = this.spinner.frames;
62+
const {frames} = this.spinner;
6363
let frame = frames[this.frameIndex];
6464

6565
if (this.color) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "sindresorhus.com"
1111
},
1212
"engines": {
13-
"node": ">=4"
13+
"node": ">=6"
1414
},
1515
"scripts": {
1616
"test": "xo && ava"

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test('`.id` is not set when created', t => {
6868
test('ignore consecutive calls to `.start()`', t => {
6969
const spinner = new Ora('foo');
7070
spinner.start();
71-
const id = spinner.id;
71+
const {id} = spinner;
7272
spinner.start();
7373
t.is(id, spinner.id);
7474
});

0 commit comments

Comments
 (0)