Skip to content

Commit 308bc13

Browse files
committed
Update dependencies, supported node versions
1 parent 942e174 commit 308bc13

File tree

4 files changed

+1808
-762
lines changed

4 files changed

+1808
-762
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
language: node_js
22
node_js:
33
- "node"
4-
- "6"
5-
- "5"
6-
- "4"
4+
- "lts/*"
75
os:
86
- linux
97
- osx

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var smartcrop = require('smartcrop');
22
var sharp = require('sharp');
33

44
function rgb2rgba(input) {
5-
var output = new Buffer(input.length / 3 * 4);
5+
var output = Buffer.alloc(input.length / 3 * 4);
66
for (var i = 0; i < input.length; i += 3) {
77
output[i / 3 * 4] = input[i];
88
output[i / 3 * 4 + 1] = input[i + 1];

0 commit comments

Comments
 (0)