mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Replace use of deprecated util.inherits
This commit is contained in:
parent
2679bb567b
commit
bbf612cb9e
@ -288,7 +288,8 @@ const Sharp = function (input, options) {
|
||||
this.options.input = this._createInputDescriptor(input, options, { allowStream: true });
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user