This commit is contained in:
2026-03-03 15:23:00 +00:00
parent 5e3726de39
commit 8e223bfbec
3689 changed files with 955330 additions and 1011 deletions

23
node_modules/node-mocks-http/lib/mockWritableStream.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
/*
* http://nodejs.org/api/stream.html#stream_writable_stream
*/
function WritableStream() {}
Object.defineProperty(WritableStream, 'writable', {
configurable: true,
enumerable: true,
get() {
return true;
}
});
// WritableStream.prototype.write = function(string, [encoding], [fd]){}
// WritableStream.prototype.write = function(buffer){}
WritableStream.prototype.end = () => {};
// WritableStream.prototype.end = function(string, encoding){}
// WritableStream.prototype.end = function(buffer){}
WritableStream.prototype.destroy = () => {};
WritableStream.prototype.destroySoon = () => {};
module.exports = WritableStream;