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.19.0 to 3.19.1

4

index.js

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

3

package.json
{
"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

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