@ts-rest/core
Advanced tools
Comparing version 3.37.0 to 3.38.0
# @ts-rest/core | ||
## 3.38.0 | ||
### Patch Changes | ||
- 0b9f249: Fix ts-rest overwriting a supplied content-type header | ||
- 15d4926: Fix invalid `extraHeaders` type when no headers are defined in the contract | ||
## 3.37.0 | ||
@@ -4,0 +11,0 @@ |
@@ -294,4 +294,4 @@ 'use strict'; | ||
headers: { | ||
'content-type': 'application/x-www-form-urlencoded', | ||
...fetcherArgs.headers, | ||
'content-type': 'application/x-www-form-urlencoded', | ||
}, | ||
@@ -308,4 +308,4 @@ body: typeof body === 'string' | ||
headers: { | ||
'content-type': 'application/json', | ||
...fetcherArgs.headers, | ||
'content-type': 'application/json', | ||
}, | ||
@@ -312,0 +312,0 @@ body: JSON.stringify(body), |
@@ -290,4 +290,4 @@ const isZodType = (obj) => { | ||
headers: { | ||
'content-type': 'application/x-www-form-urlencoded', | ||
...fetcherArgs.headers, | ||
'content-type': 'application/x-www-form-urlencoded', | ||
}, | ||
@@ -304,4 +304,4 @@ body: typeof body === 'string' | ||
headers: { | ||
'content-type': 'application/json', | ||
...fetcherArgs.headers, | ||
'content-type': 'application/json', | ||
}, | ||
@@ -308,0 +308,0 @@ body: JSON.stringify(body), |
{ | ||
"name": "@ts-rest/core", | ||
"version": "3.37.0", | ||
"version": "3.38.0", | ||
"description": "RPC-like experience over a regular REST API, with type safe server implementations 🪄", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -55,3 +55,3 @@ import { AppRoute, AppRouteMutation, AppRouter, AppRouteStrictStatusCodes, ContractAnyType, ContractOtherResponse } from './dsl'; | ||
headers: THeaders; | ||
extraHeaders?: { | ||
extraHeaders?: [THeaders] extends [never] ? Record<string, string | undefined> : { | ||
[K in NonNullable<keyof THeaders>]?: never; | ||
@@ -58,0 +58,0 @@ } & Record<string, string | undefined>; |
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
79539