File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4040 "pg" : " ^8.5.1" ,
4141 "stream-spec" : " ~0.3.5" ,
4242 "stream-tester" : " 0.0.5" ,
43- "through" : " ~2.3.4" ,
4443 "ts-node" : " ^8.5.4" ,
4544 "typescript" : " ^4.0.3"
4645 },
Original file line number Diff line number Diff line change 11import assert from 'assert'
22import concat from 'concat-stream'
3- import through from 'through '
3+ import { Transform } from 'stream '
44import helper from './helper'
55import QueryStream from '../src'
66
@@ -10,8 +10,11 @@ helper('concat', function (client) {
1010 const query = client . query ( stream )
1111 query
1212 . pipe (
13- through ( function ( row ) {
14- this . push ( row . num )
13+ new Transform ( {
14+ transform ( chunk , _ , callback ) {
15+ callback ( null , chunk . num )
16+ } ,
17+ objectMode : true ,
1518 } )
1619 )
1720 . pipe (
You can’t perform that action at this time.
0 commit comments