Merge branch 'cleanPackages' into 'main'

Clean packages

See merge request v3/service/auth!46
This commit is contained in:
Sylvain Briat 2023-07-20 12:11:44 +00:00
commit 8b8cda0d01
3 changed files with 1078 additions and 1874 deletions

2923
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@mobicoop/auth",
"version": "0.3.1",
"version": "0.4.0",
"description": "Mobicoop V3 Auth Service",
"author": "sbriat",
"private": true,
@ -30,14 +30,11 @@
"migrate:deploy": "npx prisma migrate deploy"
},
"dependencies": {
"@automapper/classes": "^8.7.7",
"@automapper/core": "^8.7.7",
"@automapper/nestjs": "^8.7.7",
"@golevelup/nestjs-rabbitmq": "^3.4.0",
"@grpc/grpc-js": "^1.8.0",
"@grpc/proto-loader": "^0.7.4",
"@mobicoop/ddd-library": "^0.3.0",
"@mobicoop/health-module": "^1.1.0",
"@mobicoop/health-module": "^2.0.0",
"@mobicoop/message-broker-module": "^1.2.0",
"@nestjs/axios": "^1.0.1",
"@nestjs/common": "^9.0.0",

View File

@ -2,7 +2,11 @@ import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AuthenticationModule } from '@modules/authentication/authentication.module';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { HealthModule, HealthModuleOptions } from '@mobicoop/health-module';
import {
HealthModule,
HealthModuleOptions,
HealthRepositoryPort,
} from '@mobicoop/health-module';
import { AuthorizationModule } from '@modules/authorization/authorization.module';
import {
AUTHENTICATION_REPOSITORY,
@ -10,7 +14,6 @@ import {
} from '@modules/authentication/authentication.di-tokens';
import { MESSAGE_PUBLISHER } from './modules/messager/messager.di-tokens';
import { MessagePublisherPort } from '@mobicoop/ddd-library';
import { ICheckRepository } from '@mobicoop/health-module/dist/core/domain/types/health.types';
import { MessagerModule } from './modules/messager/messager.module';
@Module({
@ -25,13 +28,22 @@ import { MessagerModule } from './modules/messager/messager.module';
MESSAGE_PUBLISHER,
],
useFactory: async (
authenticationRepository: ICheckRepository,
usernameRepository: ICheckRepository,
authenticationRepository: HealthRepositoryPort,
usernameRepository: HealthRepositoryPort,
messagePublisher: MessagePublisherPort,
): Promise<HealthModuleOptions> => ({
serviceName: 'auth',
criticalLoggingKey: 'logging.auth.health.crit',
checkRepositories: [authenticationRepository, usernameRepository],
checkRepositories: [
{
name: 'AuthenticationRepository',
repository: authenticationRepository,
},
{
name: 'UsernameRepository',
repository: usernameRepository,
},
],
messagePublisher,
}),
}),