@fastify/reply-from
Advanced tools
Comparing version 9.2.0 to 9.3.0
@@ -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 @@ |
{ | ||
"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", |
177539
105
5223