@platformatic/client
Advanced tools
Comparing version 0.37.0 to 0.37.1
@@ -1,2 +0,2 @@ | ||
import { FastifyPluginAsync, FastifyRequest } from 'fastify' | ||
import { FastifyPluginAsync, FastifyReply, FastifyRequest } from 'fastify' | ||
@@ -16,3 +16,3 @@ interface Headers { | ||
serviceId?: string; | ||
getHeaders?: (request: FastifyRequest) => Headers; | ||
getHeaders?: (request: FastifyRequest, reply: FastifyReply) => Headers; | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -34,3 +34,3 @@ import { expectError, expectType } from 'tsd' | ||
url: 'http://127.0.0.1/path/42', | ||
getHeaders: ({ url }) => ({ foo: 'bar', url }), | ||
getHeaders: ({ url }, { sent }) => ({ foo: 'bar', url, baz: sent.toString() }), | ||
headers: { foo: 'bar' }, | ||
@@ -37,0 +37,0 @@ name: 'Frassica', |
{ | ||
"name": "@platformatic/client", | ||
"version": "0.37.0", | ||
"version": "0.37.1", | ||
"description": "A client for all platformatic backends", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"tsd": "^0.28.1", | ||
"@platformatic/telemetry": "0.37.0" | ||
"@platformatic/telemetry": "0.37.1" | ||
}, | ||
@@ -29,0 +29,0 @@ "dependencies": { |
134175