Commit Graph

34 Commits

Author SHA1 Message Date
Maciej Sikorski
ec9727093d feat: allow to config cors async
Bump version of the fastify-cors.
Add CorsOptionsDelegate interface.
Add CorsOptionsDelegate as an acceptable type
for every enableCors usage.

Closes nestjs/nest#6118
2021-01-25 22:46:11 +01:00
alex
4ae1750235 feat(microservices): fix "RpcParamtype.GRPC_CALL" enum name 2020-07-29 13:46:17 +03:00
alex
b766c7451d feat(microservices): Add grpc metadata to server responce
example of usage:

import { Metadata } from 'grpc';

@GrpcMethod('Service', 'Method')
public method(request: any, metadata: Metadata, sendMetadata: any): any {
   // 1. nothing to do with request that is empty in this case
   // 2. may something with metadata from client if needed
   // 3. send metadata with responce........
   const srvMetadata = new Metadata();

   srvMetadata.add('Set-Cookie', 'yummy_cookie=choco');

   sendMetadata(srvMetadata);

   return 'Hello World!!!';
}
2020-07-24 10:58:44 +03:00
cojack
0168673d45 refactor(microservices): Revert contact scoped filters to external step 2020-03-23 15:40:39 +01:00
cojack
6f1675f594 fix(websockets): Switch order to concat globalFilter at the end 2020-03-18 11:55:19 +01:00
cojack
182792ef24 feat(microservices): use iterate to reduce number of loops 2020-03-17 10:53:57 +01:00
Kamil Myśliwiec
e8da23cd12 refactor(): minor style improvements 2020-03-03 09:13:25 +01:00
Kamil Myśliwiec
9e44ce5522 fix(): resolve merge conflicts 2020-03-02 16:05:38 +01:00
Kamil Myśliwiec
a08d1aadf3 feat(): update context type in creation methods, add ctx tests 2019-11-29 09:22:55 +01:00
Kamil Myśliwiec
55c9bc7306 feat(): pass execution ctx instead of args host 2019-11-08 12:50:43 +01:00
Kamil Myśliwiec
aaad768504 fix(): pass context to custom decorators in rpc and ws 2019-11-08 12:22:35 +01:00
Kamil Myśliwiec
0b8014d7d8 fix(microservices): ignore context by default when running pipes 2019-10-26 12:34:32 +02:00
Kamil Myśliwiec
afbacbf48a fix() fix default param metadata (rpc & websockets) 2019-10-10 13:25:07 +02:00
Kamil Myśliwiec
1d27dacb2a feat() add rpc & ws decorators, add rpc context 2019-09-26 12:44:44 +02:00
Kamil Myśliwiec
886220d9f8 resolve conflicts 2019-09-10 14:29:12 +02:00
Kamil Myśliwiec
704230eb56 bugfix(core): fix global request enhancers #1916 2019-07-09 15:03:26 +02:00
Kamil Myśliwiec
13ac2a95f1 feature(core): add ExecutionContext, ArgumentsHost type check #1581 2019-07-02 14:58:31 +02:00
Kamil Myśliwiec
7a93b0d91f fix(microservices): fix request scoped enhancers #2489 2019-07-02 13:51:33 +02:00
Kamil Myśliwiec
53687ba46a feature(websockets) extract web sockets drivers 2018-12-12 23:35:27 +01:00
Kamil Myśliwiec
4796023e02 chore() resolve conflicts 2018-12-10 22:03:06 +01:00
Kamil Myśliwiec
efb367e65c bugfix(ws/microservices): add catchError() to observables 2018-12-06 11:47:14 +01:00
Kamil Myśliwiec
ead8d55538 refactor: fix typings (tuples, binding checks) 2018-11-30 14:52:01 +01:00
Kamil Myśliwiec
0b23422ab1 refactor: reduce implicit types 2018-11-24 17:28:28 +01:00
Jean-Baptiste Pionnier
457c57b9dc refactor remove multiple reflect metadata 2018-10-05 15:20:45 +02:00
Jean-Baptiste Pionnier
ac295e68f6 refactor Unnecessary 'await' 2018-09-30 22:14:35 +02:00
Kamil Myśliwiec
e0f5e1d5ca performance(nestjs) context creator improvements 2018-09-09 18:24:54 +02:00
Kamil Myśliwiec
614d57f130 feature(@nestjs) expose default exception filters 2018-07-25 18:47:40 +02:00
Kamil Myśliwiec
17a609cd9c feature(@nestjs/microservices) grpc improvements (add root), cleanup 2018-05-25 12:44:18 +02:00
Kamil Myśliwiec
6016f8d175 feature(@nestjs/microservices) expose connect method, improvements & fixes 2018-05-09 17:21:21 +02:00
Kamil Myśliwiec
944921f2e9 external(@nestjs) update to rxjs@6.0.0 2018-04-27 13:13:02 +02:00
Kamil Myśliwiec
52acfe4ea2 tests(@nestjs) add dynamic modules & express instance integration tests 2018-04-21 00:04:18 +02:00
Kamil Myśliwiec
b49366fd31 feature(@nestjs/core) context creator improvements (injection support) 2018-03-31 16:43:07 +02:00
Kamil Myśliwiec
fdbf364087 feature(@nestjs) enhance execution context, create host 2018-03-24 17:19:47 +01:00
Kamil Myśliwiec
614de27310 refactor(@nestjs) rename directories, add script, fix tests 2018-03-24 15:11:48 +01:00