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 40
40
"pg" : " ^8.5.1" ,
41
41
"stream-spec" : " ~0.3.5" ,
42
42
"stream-tester" : " 0.0.5" ,
43
- "through" : " ~2.3.4" ,
44
43
"ts-node" : " ^8.5.4" ,
45
44
"typescript" : " ^4.0.3"
46
45
},
Original file line number Diff line number Diff line change 1
1
import assert from 'assert'
2
2
import concat from 'concat-stream'
3
- import through from 'through '
3
+ import { Transform } from 'stream '
4
4
import helper from './helper'
5
5
import QueryStream from '../src'
6
6
@@ -10,8 +10,11 @@ helper('concat', function (client) {
10
10
const query = client . query ( stream )
11
11
query
12
12
. 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 ,
15
18
} )
16
19
)
17
20
. pipe (
You can’t perform that action at this time.
0 commit comments