Socket
Socket
Sign inDemoInstall

@fastify/reply-from

Package Overview
Dependencies
11
Maintainers
19
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.2.0 to 9.3.0

test/undici-custom-dispatcher.test.js

9

lib/request.js

@@ -25,6 +25,13 @@ 'use strict'

function isRequestable (obj) {
return obj !== null &&
typeof obj === 'object' &&
typeof obj.request === 'function'
}
function isUndiciInstance (obj) {
return obj instanceof undici.Pool ||
obj instanceof undici.Client ||
obj instanceof undici.Dispatcher
obj instanceof undici.Dispatcher ||
isRequestable(obj)
}

@@ -31,0 +38,0 @@

4

package.json
{
"name": "@fastify/reply-from",
"version": "9.2.0",
"version": "9.3.0",
"description": "forward your HTTP request to another server, for fastify",

@@ -34,3 +34,3 @@ "main": "index.js",

"@fastify/pre-commit": "^2.0.2",
"@sinonjs/fake-timers": "^10.0.0",
"@sinonjs/fake-timers": "^11.0.0",
"@types/node": "^20.1.4",

@@ -37,0 +37,0 @@ "@types/tap": "^15.0.7",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc