Skip to content

Commit

Permalink
Require Node.js 6 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch authored Nov 30, 2018
1 parent 6c44164 commit eabdc8c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '10'
- '8'
- '6'
- '4'
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
environment:
matrix:
- nodejs_version: '10'
- nodejs_version: '8'
- nodejs_version: '6'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ module.exports = opts => buf => {
input: buf,
bin: cwebp,
args
}).catch(err => {
err.message = err.stderr || err.message;
throw err;
}).catch(error => {
error.message = error.stderr || error.message;
throw error;
});
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
],
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -43,14 +43,14 @@
"webp"
],
"dependencies": {
"cwebp-bin": "^4.0.0",
"cwebp-bin": "^5.0.0",
"exec-buffer": "^3.0.0",
"is-cwebp-readable": "^2.0.1"
},
"devDependencies": {
"ava": "*",
"ava": "^0.25.0",
"is-webp": "^1.0.0",
"pify": "^3.0.0",
"xo": "*"
"pify": "^4.0.0",
"xo": "^0.23.0"
}
}

0 comments on commit eabdc8c

Please sign in to comment.