-
Notifications
You must be signed in to change notification settings - Fork 665
Use createRequire with createRequireFromPath as fallback #90
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,7 +208,7 @@ export function createBridgeFromChildProcess<B extends Bridge>( | |
}); | ||
|
||
proc.on('message', msg => { | ||
bridge.handleMessage(msg); | ||
bridge.handleMessage(msg as BridgeMessage); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this change necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the update of
Alternatively, I could change the argument type in |
||
}); | ||
|
||
// Catch process dying and reject any requests in flight | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
end
doesn't exist on this response type (https://nodejs.org/api/http.html#http_class_http_incomingmessage).socket.end()
should be enough.