Skip to content

Commit

Permalink
Upgrade all libraries. New canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneware committed Dec 18, 2018
1 parent d24baeb commit 6a38902
Show file tree
Hide file tree
Showing 5 changed files with 734 additions and 346 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
@@ -1,10 +1,8 @@
language: node_js
dist: trusty
node_js:
- "4"
- "6"
- "7"
- "8"
- node
- lts/*
addons:
apt:
sources:
Expand Down
4 changes: 2 additions & 2 deletions lib/GIFEncoder.js
Expand Up @@ -17,7 +17,7 @@ function ByteArray() {
}

ByteArray.prototype.getData = function() {
return new Buffer(this.data);
return new Buffer.from(this.data);
};

ByteArray.prototype.writeByte = function(val) {
Expand Down Expand Up @@ -113,7 +113,7 @@ GIFEncoder.prototype.emit = function() {
if (this.readStreams.length === 0) return;
if (this.out.data.length) {
this.readStreams.forEach(function (rs) {
rs.push(new Buffer(self.out.data));
rs.push(Buffer.from(self.out.data));
});
this.out.data = [];
}
Expand Down

0 comments on commit 6a38902

Please sign in to comment.