/dragnet/bin/dn:915
stream.vsHead().vsWalk(function (s) {
^
TypeError: Object #<PassThrough> has no method 'vsHead'
at dnPrintCounters (/dragnet/bin/dn:915:9)
at PassThrough.<anonymous> (/dragnet/bin/dn:964:4)
at PassThrough.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)
where the "input" datasource is:
produces:
The reason is that we need to wrap this PassThrough using vstream: https://github.com/joyent/dragnet/blob/91039bfbd09d7d7095a13793ab133850a2e1fac5/lib/datasource-file.js#L702
the way we do in these places: https://github.com/joyent/dragnet/blob/91039bfbd09d7d7095a13793ab133850a2e1fac5/lib/datasource-file.js#L203 https://github.com/joyent/dragnet/blob/91039bfbd09d7d7095a13793ab133850a2e1fac5/lib/datasource-file.js#L637
We should also add a test for this.