fastify-http-proxy
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -91,2 +91,6 @@ 'use strict' | ||
server.on('error', (err) => { | ||
fastify.log.error(err) | ||
}) | ||
server.on('connection', (source, request) => { | ||
@@ -93,0 +97,0 @@ const url = createWebSocketUrl(options, request) |
{ | ||
"name": "fastify-http-proxy", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "proxy http requests, for Fastify", | ||
@@ -50,3 +50,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"fastify-reply-from": "^3.1.3", | ||
"fastify-reply-from": "^4.0.0", | ||
"ws": "^7.4.1" | ||
@@ -53,0 +53,0 @@ }, |
@@ -55,1 +55,16 @@ 'use strict' | ||
}) | ||
test('captures errors on start', async (t) => { | ||
const app = Fastify() | ||
await app.listen(0) | ||
const app2 = Fastify() | ||
app2.register(proxy, { upstream: 'http://localhost', websocket: true }) | ||
const appPort = app.server.address().port | ||
await t.rejects(app2.listen(appPort), /EADDRINUSE/) | ||
t.tearDown(app.close.bind(app)) | ||
t.tearDown(app2.close.bind(app2)) | ||
}) |
32845
754
+ Addedfastify-reply-from@4.0.2(transitive)
- Removedfastify-reply-from@3.5.0(transitive)
Updatedfastify-reply-from@^4.0.0