mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Replace use of deprecated util.inherits
This commit is contained in:
@@ -288,7 +288,8 @@ const Sharp = function (input, options) {
|
|||||||
this.options.input = this._createInputDescriptor(input, options, { allowStream: true });
|
this.options.input = this._createInputDescriptor(input, options, { allowStream: true });
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
util.inherits(Sharp, stream.Duplex);
|
Object.setPrototypeOf(Sharp.prototype, stream.Duplex.prototype);
|
||||||
|
Object.setPrototypeOf(Sharp, stream.Duplex);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Take a "snapshot" of the Sharp instance, returning a new instance.
|
* Take a "snapshot" of the Sharp instance, returning a new instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user