Update (and reduce) dependencies ahead of v0.5.1

This commit is contained in:
Lovell Fuller 2014-06-17 20:24:22 +01:00
parent 012edb4379
commit 430e04d894
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,6 @@
'use strict';
var Promise = require('bluebird');
var deprecate = require('util-deprecate');
var sharp = require('./build/Release/sharp');
var Sharp = function(input) {
@ -189,7 +188,10 @@ Sharp.prototype.toFile = function(output, callback) {
};
// Deprecated to make way for future stream support - remove in v0.6.0
Sharp.prototype.write = deprecate(Sharp.prototype.toFile, '.write() is deprecated and will be removed in v0.6.0. Use .toFile() instead.');
Sharp.prototype.write = require('util').deprecate(
Sharp.prototype.toFile,
'.write() is deprecated and will be removed in v0.6.0. Use .toFile() instead.'
);
Sharp.prototype.toBuffer = function(callback) {
return this._sharp('__input', callback);

View File

@ -32,9 +32,8 @@
"buffer"
],
"dependencies": {
"nan": "^1.1.2",
"bluebird": "^2.0.5",
"util-deprecate": "^1.0.0"
"nan": "^1.2.0",
"bluebird": "^2.1.2"
},
"devDependencies": {
"imagemagick": "^0.1.3",