mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Update (and reduce) dependencies ahead of v0.5.1
This commit is contained in:
parent
012edb4379
commit
430e04d894
6
index.js
6
index.js
@ -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);
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user