File tree 2 files changed +16
-6
lines changed 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pg-promise" ,
3
- "version" : " 5.2.5 " ,
3
+ "version" : " 5.2.6 " ,
4
4
"description" : " Promises interface for PostgreSQL" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
44
44
"pg" : " 5.1" ,
45
45
"spex" : " 1.x" ,
46
46
"pg-minify" : " 0.3" ,
47
- "manakin" : " 0.4"
47
+ "manakin" : " ^ 0.4.6 "
48
48
},
49
49
"devDependencies" : {
50
50
"JSONStream" : " 1.x" ,
Original file line number Diff line number Diff line change @@ -4,16 +4,26 @@ var util = require('util');
4
4
5
5
function hookConsole ( callback ) {
6
6
7
- var std = process . stdout , old_write = std . write ;
7
+ var stdout = process . stdout ,
8
+ stderr = process . stderr ,
9
+ oldOutWrite = stdout . write ,
10
+ oldErrWrite = stderr . write ;
8
11
9
- std . write = ( function ( ) {
12
+ stdout . write = ( function ( ) {
10
13
return function ( string ) {
11
14
callback ( string ) ;
12
15
}
13
- } ) ( std . write ) ;
16
+ } ) ( stdout . write ) ;
17
+
18
+ stderr . write = ( function ( ) {
19
+ return function ( string ) {
20
+ callback ( string ) ;
21
+ }
22
+ } ) ( stderr . write ) ;
14
23
15
24
return function ( ) {
16
- std . write = old_write ;
25
+ stdout . write = oldOutWrite ;
26
+ stderr . write = oldErrWrite ;
17
27
}
18
28
}
19
29
You can’t perform that action at this time.
0 commit comments