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

@ts-rest/nest

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-rest/nest - npm Package Compare versions

Comparing version 3.4.2 to 3.5.0

LICENCE

6

CHANGELOG.md
# @ts-rest/nest
## 3.5.0
### Minor Changes
- 068822d: Add support for multipart/form-data
## 3.4.2

@@ -4,0 +10,0 @@

6

package.json
{
"name": "@ts-rest/nest",
"version": "3.4.2",
"version": "3.5.0",
"description": "Nest server integration for @ts-rest",

@@ -28,3 +28,3 @@ "type": "commonjs",

"@nestjs/common": "^9.0.11",
"@ts-rest/core": "3.4.2",
"@ts-rest/core": "3.5.0",
"zod": "^3.18.0",

@@ -34,2 +34,2 @@ "rxjs": "^7.0.0",

}
}
}
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common';
import { AppRoute, AppRouteMutation, PathParams, Without } from '@ts-rest/core';
import { AppRoute, AppRouteMutation, PathParams, Without, ZodInferOrType } from '@ts-rest/core';
import { Observable } from 'rxjs';
import { z, ZodTypeAny } from 'zod';
declare type BodyWithoutFileIfMultiPart<T extends AppRouteMutation> = T['contentType'] extends 'multipart/form-data' ? Without<ZodInferOrType<T['body']>, File> : ZodInferOrType<T['body']>;
export declare type ApiDecoratorShape<TRoute extends AppRoute> = Without<{
params: PathParams<TRoute>;
body: TRoute extends AppRouteMutation ? TRoute['body'] extends ZodTypeAny ? z.infer<TRoute['body']> : TRoute['body'] : never;
query: TRoute['query'] extends ZodTypeAny ? z.infer<TRoute['query']> : TRoute['query'];
body: TRoute extends AppRouteMutation ? BodyWithoutFileIfMultiPart<TRoute> : never;
query: ZodInferOrType<TRoute['query']>;
}, never>;

@@ -17,1 +17,2 @@ export declare const ApiDecorator: (...dataOrPipes: unknown[]) => ParameterDecorator;

export declare const Api: (appRoute: AppRoute) => MethodDecorator;
export {};

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