mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +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 });
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user