()
| 19 | } |
| 20 | |
| 21 | const getText = () => { |
| 22 | if (!_text && this.buffer) { |
| 23 | _text = this.buffer.toString('utf-8'); |
| 24 | } else if (!_text && _data) { |
| 25 | _text = JSON.stringify(_data); |
| 26 | } |
| 27 | return _text; |
| 28 | }; |
| 29 | |
| 30 | const getData = () => { |
| 31 | if (!_data) { |