File tree Expand file tree Collapse file tree 3 files changed +4
-35
lines changed Expand file tree Collapse file tree 3 files changed +4
-35
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ sudo: required
3
3
language : node_js
4
4
node_js :
5
5
- node
6
+ - ' 14.6.0' # Bundled version
6
7
- ' 12'
7
- - ' 10.15.1 '
8
+ - ' 10'
8
9
- ' 8'
9
10
before_install :
10
11
- sudo apt-get install p7zip-full xterm
@@ -25,7 +26,7 @@ addons:
25
26
jobs :
26
27
include :
27
28
- stage : Build and release binaries
28
- node_js : ' 10.15.1 '
29
+ node_js : ' 14.6.0 '
29
30
echo : ' Building binaries...'
30
31
script :
31
32
- |
Original file line number Diff line number Diff line change 145
145
}
146
146
},
147
147
"node" : {
148
- "version" : " 10.15.1 " ,
148
+ "version" : " 14.6.0 " ,
149
149
"targets" : [
150
150
" win32-x64" ,
151
151
" linux-x64" ,
Original file line number Diff line number Diff line change @@ -126,36 +126,4 @@ export async function runHTK(options: {
126
126
127
127
console . log ( 'Server started in' , Date . now ( ) - certSetupTime , 'ms' ) ;
128
128
console . log ( 'Total startup took' , Date . now ( ) - startTime , 'ms' ) ;
129
- }
130
-
131
- import SocketWrapper = require( '_stream_wrap' ) ;
132
-
133
- // Quick monkey-patches to guard against a bug in SocketWrapper that can break
134
- // some of the Mockttp internals in certain WS-based cases:
135
- const originalFinishShutdown = ( < any > SocketWrapper . prototype ) . finishShutdown ;
136
- ( < any > SocketWrapper . prototype ) . finishShutdown = function ( handle : any ) {
137
- if ( ! handle ) {
138
- // We still run the code anyway (since there are cases where it
139
- // might be fine, and we can't check them externally), but we
140
- // report issues, so we can work out how widespread this is.
141
- try {
142
- return originalFinishShutdown . apply ( this , arguments ) ;
143
- } catch ( e ) {
144
- reportError ( e ) ;
145
- return ;
146
- }
147
- }
148
- else return originalFinishShutdown . apply ( this , arguments ) ;
149
- }
150
- const originalFinishWrite = ( < any > SocketWrapper . prototype ) . finishWrite ;
151
- ( < any > SocketWrapper . prototype ) . finishWrite = function ( handle : any ) {
152
- if ( ! handle ) {
153
- try {
154
- return originalFinishWrite . apply ( this , arguments ) ;
155
- } catch ( e ) {
156
- reportError ( e ) ;
157
- return ;
158
- }
159
- }
160
- else return originalFinishWrite . apply ( this , arguments ) ;
161
129
}
You can’t perform that action at this time.
0 commit comments