Skip to content

Commit

Permalink
fix(build): Adds flush method to transform stream...
Browse files Browse the repository at this point in the history
  • Loading branch information
lupomontero committed May 26, 2019
1 parent f5dd027 commit 0d5a2d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ internals.parse = new Transform({
}
}

cb();
},
flush(cb) {
if (this._last) {
this.push(this._last);
}
cb();
}
});
Expand Down

0 comments on commit 0d5a2d8

Please sign in to comment.