Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ts-rest/core

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-rest/core - npm Package Compare versions

Comparing version 3.37.0 to 3.38.0

7

CHANGELOG.md
# @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 @@

4

index.cjs.js

@@ -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>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc