New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-http-proxy

Package Overview
Dependencies
Maintainers
12
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-http-proxy - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

4

index.js

@@ -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)

4

package.json
{
"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))
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc