mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-01 20:13:38 +00:00
updated all commands and removed some weird files
This commit is contained in:
24
node_modules/snekfetch/src/node/transports/ResponseStream.js
generated
vendored
Normal file
24
node_modules/snekfetch/src/node/transports/ResponseStream.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
const Stream = require('stream');
|
||||
|
||||
class ResponseStream extends Stream.Readable {
|
||||
constructor() {
|
||||
super();
|
||||
this.statusCode = 200;
|
||||
this.status = 'OK';
|
||||
}
|
||||
|
||||
error(code, message) {
|
||||
this.statusCode = code;
|
||||
this.status = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
on(event, handler) {
|
||||
if (['end', 'open'].includes(event))
|
||||
handler();
|
||||
}
|
||||
|
||||
_read() {} // eslint-disable-line no-empty-function
|
||||
}
|
||||
|
||||
module.exports = ResponseStream;
|
Reference in New Issue
Block a user