diff --git a/index.js b/index.js index 503e105..377a704 100644 --- a/index.js +++ b/index.js @@ -67,7 +67,7 @@ GHash.prototype.calculate = function(callback) { return hash.then(function(hash) { callback(null, hash); }) - .error(callback); + .catch(callback); } return hash; diff --git a/package.json b/package.json index 6946083..327db7f 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ }, "dependencies": { "bluebird": "^3.4.1", - "sharp": "^0.15.0" + "sharp": "^0.17.3" } }