@platformatic/client
Advanced tools
Comparing version 0.35.4 to 0.35.5
@@ -1,2 +0,2 @@ | ||
import { FastifyPluginAsync } from 'fastify' | ||
import { FastifyPluginAsync, FastifyRequest } from 'fastify' | ||
@@ -16,3 +16,3 @@ interface Headers { | ||
serviceId?: string; | ||
getHeaders?: () => Headers; | ||
getHeaders?: (request: FastifyRequest) => Headers; | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -29,3 +29,3 @@ import { expectError, expectType } from 'tsd' | ||
const check2 = server.register(pltClient, { | ||
server.register(pltClient, { | ||
fullResponse: false, | ||
@@ -35,5 +35,3 @@ throwOnError: false, | ||
url: 'http://127.0.0.1/path/42', | ||
getHeaders: () => { | ||
return { foo: 'bar' } | ||
}, | ||
getHeaders: ({ url }) => ({ foo: 'bar', url }), | ||
headers: { foo: 'bar' }, | ||
@@ -40,0 +38,0 @@ name: 'Frassica', |
{ | ||
"name": "@platformatic/client", | ||
"version": "0.35.4", | ||
"version": "0.35.5", | ||
"description": "A client for all platformatic backends", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"tsd": "^0.28.1", | ||
"@platformatic/telemetry": "0.35.4" | ||
"@platformatic/telemetry": "0.35.5" | ||
}, | ||
@@ -29,0 +29,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134108
4887