Skip to content

Commit

Permalink
Require Node.js 6 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
forresst authored and sindresorhus committed Jul 17, 2018
1 parent fa2f07d commit 17c1a29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '10'
- '9'
- '8'
- '6'
- '4'
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -59,7 +59,7 @@ class Ora {
}

frame() {
const frames = this.spinner.frames;
const {frames} = this.spinner;
let frame = frames[this.frameIndex];

if (this.color) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
Expand Down
2 changes: 1 addition & 1 deletion test.js
Expand Up @@ -68,7 +68,7 @@ test('`.id` is not set when created', t => {
test('ignore consecutive calls to `.start()`', t => {
const spinner = new Ora('foo');
spinner.start();
const id = spinner.id;
const {id} = spinner;
spinner.start();
t.is(id, spinner.id);
});
Expand Down

0 comments on commit 17c1a29

Please sign in to comment.