We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6121bd3 commit d99b574Copy full SHA for d99b574
packages/pg-query-stream/package.json
@@ -40,7 +40,6 @@
40
"pg": "^8.5.1",
41
"stream-spec": "~0.3.5",
42
"stream-tester": "0.0.5",
43
- "through": "~2.3.4",
44
"ts-node": "^8.5.4",
45
"typescript": "^4.0.3"
46
},
packages/pg-query-stream/test/concat.ts
@@ -1,6 +1,6 @@
1
import assert from 'assert'
2
import concat from 'concat-stream'
3
-import through from 'through'
+import { Transform } from 'stream'
4
import helper from './helper'
5
import QueryStream from '../src'
6
@@ -10,8 +10,11 @@ helper('concat', function (client) {
10
const query = client.query(stream)
11
query
12
.pipe(
13
- through(function (row) {
14
- this.push(row.num)
+ new Transform({
+ transform(chunk, _, callback) {
15
+ callback(null, chunk.num)
16
+ },
17
+ objectMode: true,
18
})
19
)
20
0 commit comments