Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Pipe - cleaned up and merged with master #92

Merged
merged 17 commits into from
Apr 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use data event instead of readable to avoid stale state
  • Loading branch information
dotnetCarpenter committed Sep 6, 2016
commit 803edeb35a49aa863208a4291a2d210f9b96da26
5 changes: 2 additions & 3 deletions bin/codecov
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ var args = argv.option([
// listen for piped input for 500ms
var listeningTime = 500;
process.stdin.setEncoding('utf8');
process.stdin.on('readable', function() {
var report = process.stdin.read();
if (report != null) {
process.stdin.on('data', function(report) {
if (report !== null) {
clearTimeout(timer);
if (!args.options.pipe) args.options.pipe = [];
args.options.pipe.push(report);
Expand Down