"use strict";const stream=require("stream");class BaseStream extends stream.Readable{addEntry(){throw new Error(".addEntry not implemented in sub class!")}_read(){}emit(e,r){if("error"===e){const e=r;"Error"===e.name&&(e.name=this.constructor.name+"Error")}super.emit(e,r)}}module.exports=BaseStream;