@ts-rest/core
Advanced tools
Comparing version 3.19.0 to 3.19.1
@@ -141,2 +141,4 @@ const isAppRoute = (obj) => { | ||
body: body instanceof FormData ? body : createFormData(body), | ||
rawBody: body, | ||
contentType: 'multipart/form-data', | ||
...extraInputArgs, | ||
@@ -154,2 +156,4 @@ }); | ||
body: body !== null && body !== undefined ? JSON.stringify(body) : undefined, | ||
rawBody: body, | ||
contentType: route.method !== 'GET' ? 'application/json' : undefined, | ||
...extraInputArgs, | ||
@@ -156,0 +160,0 @@ }); |
{ | ||
"name": "@ts-rest/core", | ||
"version": "3.19.0", | ||
"version": "3.19.1", | ||
"description": "RPC-like experience over a regular REST API, with type safe server implementations 🪄", | ||
@@ -35,3 +35,2 @@ "license": "MIT", | ||
"main": "./index.cjs", | ||
"type": "module", | ||
"types": "./src/index.d.ts", | ||
@@ -38,0 +37,0 @@ "exports": { |
@@ -67,2 +67,4 @@ import { AppRoute, AppRouteMutation, AppRouter } from './dsl'; | ||
body: FormData | string | null | undefined; | ||
rawBody: unknown; | ||
contentType: AppRouteMutation['contentType']; | ||
credentials?: RequestCredentials; | ||
@@ -69,0 +71,0 @@ }; |
Sorry, the diff of this file is not supported yet
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
43977
902
No