@nathapp/nestjs-microservices 1.0.0-rc.11 → 1.0.0-rc.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { Serializer, Deserializer, TcpSocket } from "@nestjs/microservices";
6
6
  import { IORedisOptions } from "../external/redis.interface";
7
7
  import { MqttClientOptions, QoS } from "../external/mqtt-options.interface";
8
8
  import { RmqUrl } from "../external/rmq-url.interface";
9
- import { KafkaConfig, ConsumerConfig, ConsumerRunConfig, ConsumerSubscribeTopic, ProducerConfig, ProducerRecord } from "../external/kafka.interface";
9
+ import { KafkaConfig, ConsumerConfig, ConsumerRunConfig, ConsumerSubscribeTopics, ProducerConfig, ProducerRecord, ConsumerSubscribeTopic } from "../external/kafka.interface";
10
10
  import { ChannelOptions } from "../external/grpc-options.interface";
11
11
  export interface GrpcOptions {
12
12
  transport?: Transport.GRPC;
@@ -167,7 +167,7 @@ export interface KafkaOptions {
167
167
  client?: KafkaConfig;
168
168
  consumer?: ConsumerConfig;
169
169
  run?: Omit<ConsumerRunConfig, 'eachBatch' | 'eachMessage'>;
170
- subscribe?: Omit<ConsumerSubscribeTopic, 'topic'>;
170
+ subscribe?: Omit<ConsumerSubscribeTopics | ConsumerSubscribeTopic, 'topic'>;
171
171
  producer?: ProducerConfig;
172
172
  send?: Omit<ProducerRecord, 'topic' | 'messages'>;
173
173
  serializer?: Serializer;
@@ -1,10 +1,7 @@
1
1
  import { IPrincipal, JwtOptions, JwtStrategyProvider, Req } from "@nathapp/nestjs-auth";
2
- import { Request } from "express";
3
- import { ParamsDictionary } from "express-serve-static-core";
4
- import { ParsedQs } from "qs";
5
2
  export declare abstract class MicroServiceStrategyProvider extends JwtStrategyProvider {
6
- abstract validate(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, payload: any): IPrincipal | Promise<IPrincipal>;
7
- abstract validate<T>(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, payload: any): T | Promise<T>;
3
+ abstract validate(req: Req, payload: any): IPrincipal | Promise<IPrincipal>;
4
+ abstract validate<T>(req: Req, payload: any): T | Promise<T>;
8
5
  }
9
6
  export declare class MicroServiceJwtStrategyProvider extends MicroServiceStrategyProvider {
10
7
  private readonly logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-microservices",
3
- "version": "1.0.0-rc.11",
3
+ "version": "1.0.0-rc.13",
4
4
  "description": "nestjs-microservices",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.json",
@@ -14,9 +14,11 @@
14
14
  "license": "ISC",
15
15
  "devDependencies": {
16
16
  "@golevelup/ts-jest": "^0.3.7",
17
- "@nestjs/platform-express": "^9.0.0",
18
- "@nestjs/platform-fastify": "^9.0.0",
19
- "@nestjs/testing": "^9.4.3",
17
+ "@grpc/grpc-js": "^1.9.5",
18
+ "@grpc/proto-loader": "^0.7.10",
19
+ "@nestjs/platform-express": "^10.0.0",
20
+ "@nestjs/platform-fastify": "^10.0.0",
21
+ "@nestjs/testing": "^10.0.0",
20
22
  "@types/express": "^4.17.17",
21
23
  "@types/jest": "^29.5.2",
22
24
  "@types/json-bigint": "^1.0.1",
@@ -25,10 +27,16 @@
25
27
  "@types/supertest": "^2.0.12",
26
28
  "@typescript-eslint/eslint-plugin": "^4",
27
29
  "@typescript-eslint/parser": "^4",
30
+ "amqp-connection-manager": "^4.1.14",
31
+ "amqplib": "^0.10.3",
28
32
  "eslint": "*",
29
33
  "eslint-config-prettier": "^6",
30
34
  "eslint-plugin-prettier": "^3",
35
+ "ioredis": "^5.3.2",
31
36
  "jest": "^29.5.0",
37
+ "kafkajs": "^2.2.4",
38
+ "mqtt": "^5.1.0",
39
+ "nats": "^2.17.0",
32
40
  "prettier": "^2",
33
41
  "supertest": "^6.3.3",
34
42
  "ts-jest": "^29.1.0",
@@ -40,9 +48,9 @@
40
48
  "lib": "lib"
41
49
  },
42
50
  "dependencies": {
43
- "@nathapp/auth": "^1.0.1",
44
- "@nathapp/nestjs-auth": "^1.0.0-rc.23",
45
- "@nathapp/nestjs-common": "^1.0.1-rc.16",
51
+ "@nathapp/auth": "^1.0.2",
52
+ "@nathapp/nestjs-auth": "^1.0.0-rc.26",
53
+ "@nathapp/nestjs-common": "^1.0.1-rc.21",
46
54
  "axios": "^1.4.0",
47
55
  "json-bigint": "^1.0.0",
48
56
  "passport-jwt": "^4.0.1"