Compare commits

..

No commits in common. "f908a46d7022d9fcbc5cdffb84233d903a2780c3" and "8c858038e794ce2b088464b33815eeef2902f325" have entirely different histories.

3 changed files with 4 additions and 6 deletions

View File

@ -103,7 +103,7 @@ export class AppModule {}
```ts ```ts
import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; import { Inject, Injectable, OnModuleInit } from '@nestjs/common';
import { ClientGrpc } from '@nestjs/microservices'; import { ClientGrpc } from '@nestjs/microservices';
import { AuthServiceClient } from '@teacinema/contracts/gen/ts/auth'; import { AuthServiceClient } from '@teacinema/contracts/gen/auth';
@Injectable() @Injectable()
export class AuthProxy implements OnModuleInit { export class AuthProxy implements OnModuleInit {
@ -126,7 +126,7 @@ export class AuthProxy implements OnModuleInit {
```ts ```ts
import { Controller } from '@nestjs/common'; import { Controller } from '@nestjs/common';
import { GrpcMethod } from '@nestjs/microservices'; import { GrpcMethod } from '@nestjs/microservices';
import { AuthServiceController, AuthServiceControllerMethods } from '@teacinema/contracts/gen/ts/auth'; import { AuthServiceController, AuthServiceControllerMethods } from '@teacinema/contracts/gen/auth';
@Controller() @Controller()
@AuthServiceControllerMethods() @AuthServiceControllerMethods()

View File

@ -1,6 +1,6 @@
{ {
"name": "@teacinema/contracts", "name": "@teacinema/contracts",
"version": "1.1.7", "version": "1.1.6",
"description": "Protocol Buffers contracts for microservices", "description": "Protocol Buffers contracts for microservices",
"scripts": { "scripts": {
"build": "tsc -p tsconfig.build.json", "build": "tsc -p tsconfig.build.json",

View File

@ -28,6 +28,4 @@ export const PROTO_PATHS = {
ACCOUNT: join(__dirname, '../../proto/account.proto'), ACCOUNT: join(__dirname, '../../proto/account.proto'),
/** Путь к `users.proto` (пакет `users.v1`) */ /** Путь к `users.proto` (пакет `users.v1`) */
USERS: join(__dirname, '../../proto/users.proto'), USERS: join(__dirname, '../../proto/users.proto'),
/** Путь к `media.proto` (пакет `media.v1`) */
MEDIA: join(__dirname, '../../proto/media.proto'),
} as const } as const