From 0d5a2d8a57ae2325f9f5705efd54c654f48f2ae8 Mon Sep 17 00:00:00 2001 From: Lupo Montero Date: Sun, 26 May 2019 02:23:52 -0500 Subject: [PATCH] fix(build): Adds flush method to transform stream... --- data/build.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/build.js b/data/build.js index ce9799a..cc6dab4 100644 --- a/data/build.js +++ b/data/build.js @@ -80,6 +80,12 @@ internals.parse = new Transform({ } } + cb(); + }, + flush(cb) { + if (this._last) { + this.push(this._last); + } cb(); } });