From ab4ef36bf8d7d91fc8d764e9268a2728d301ade0 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Tue, 20 Jul 2021 20:37:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20Subscription=20?= =?UTF-8?q?=E9=89=B4=E6=9D=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 14 +++++++------- package.json | 2 +- src/commons/commons.module.ts | 2 +- src/pipeline-tasks/pipeline-tasks.module.ts | 2 ++ src/pipelines/pipelines.module.ts | 2 ++ src/projects/projects.module.ts | 2 ++ 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 97cdb4d..77100c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "license": "UNLICENSED", "dependencies": { "@golevelup/nestjs-rabbitmq": "^1.16.1", - "@nestjs-lib/auth": "^0.1.1", + "@nestjs-lib/auth": "^0.2.0", "@nestjs/common": "^7.5.1", "@nestjs/config": "^0.6.2", "@nestjs/core": "^7.5.1", @@ -2894,9 +2894,9 @@ "integrity": "sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==" }, "node_modules/@nestjs-lib/auth": { - "version": "0.1.1", - "resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.1.1.tgz", - "integrity": "sha512-JXKvDsJudBlEXBiGyoODFpbbJabcoSaUqJY0bQHX0imidmhovx3VuGZwudALrlw1BT2NOJEO7ElFoITCfTDfGw==", + "version": "0.2.0", + "resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.2.0.tgz", + "integrity": "sha512-izveLtKIkE9aBjn0CH85B8XOx4gKzhOEfjH03DVZvh1nWVxUVIv91N1Igxd2unnMPgelucsZ3viyTFJzIz0IGw==", "license": "MIT", "peerDependencies": { "@nestjs/common": "^7.0.0", @@ -18836,9 +18836,9 @@ "integrity": "sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==" }, "@nestjs-lib/auth": { - "version": "0.1.1", - "resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.1.1.tgz", - "integrity": "sha512-JXKvDsJudBlEXBiGyoODFpbbJabcoSaUqJY0bQHX0imidmhovx3VuGZwudALrlw1BT2NOJEO7ElFoITCfTDfGw==", + "version": "0.2.0", + "resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.2.0.tgz", + "integrity": "sha512-izveLtKIkE9aBjn0CH85B8XOx4gKzhOEfjH03DVZvh1nWVxUVIv91N1Igxd2unnMPgelucsZ3viyTFJzIz0IGw==", "requires": {} }, "@nestjs/cli": { diff --git a/package.json b/package.json index 6cf3f92..3a58e30 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@golevelup/nestjs-rabbitmq": "^1.16.1", - "@nestjs-lib/auth": "^0.1.1", + "@nestjs-lib/auth": "^0.2.0", "@nestjs/common": "^7.5.1", "@nestjs/config": "^0.6.2", "@nestjs/core": "^7.5.1", diff --git a/src/commons/commons.module.ts b/src/commons/commons.module.ts index 7767952..6be56a4 100644 --- a/src/commons/commons.module.ts +++ b/src/commons/commons.module.ts @@ -6,6 +6,6 @@ import { AuthModule } from '@nestjs-lib/auth'; @Module({ imports: [RedisMutexModule, AuthModule], providers: [PasswordConverter], - exports: [PasswordConverter, RedisMutexModule], + exports: [PasswordConverter, RedisMutexModule, AuthModule], }) export class CommonsModule {} diff --git a/src/pipeline-tasks/pipeline-tasks.module.ts b/src/pipeline-tasks/pipeline-tasks.module.ts index 5c05339..967f8ec 100644 --- a/src/pipeline-tasks/pipeline-tasks.module.ts +++ b/src/pipeline-tasks/pipeline-tasks.module.ts @@ -16,9 +16,11 @@ import { } from './pipeline-tasks.constants'; import { PipelineTaskLogger } from './pipeline-task.logger'; import { PipelineTaskFlushService } from './pipeline-task-flush.service'; +import { CommonsModule } from '../commons/commons.module'; @Module({ imports: [ + CommonsModule, TypeOrmModule.forFeature([PipelineTask, Pipeline]), RedisModule, ReposModule, diff --git a/src/pipelines/pipelines.module.ts b/src/pipelines/pipelines.module.ts index a8e9212..d998ad2 100644 --- a/src/pipelines/pipelines.module.ts +++ b/src/pipelines/pipelines.module.ts @@ -8,9 +8,11 @@ import { PipelineTasksModule } from '../pipeline-tasks/pipeline-tasks.module'; import { ReposModule } from '../repos/repos.module'; import { RabbitMQModule } from '@golevelup/nestjs-rabbitmq'; import { ConfigModule, ConfigService } from '@nestjs/config'; +import { CommonsModule } from '../commons/commons.module'; @Module({ imports: [ + CommonsModule, TypeOrmModule.forFeature([Pipeline]), PipelineTasksModule, RabbitMQModule.forRootAsync(RabbitMQModule, { diff --git a/src/projects/projects.module.ts b/src/projects/projects.module.ts index f5441a8..42aa366 100644 --- a/src/projects/projects.module.ts +++ b/src/projects/projects.module.ts @@ -6,9 +6,11 @@ import { Project } from './project.entity'; import { RabbitMQModule } from '@golevelup/nestjs-rabbitmq'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { EXCHANGE_PROJECT_FANOUT } from './projects.constants'; +import { CommonsModule } from '../commons/commons.module'; @Module({ imports: [ + CommonsModule, TypeOrmModule.forFeature([Project]), RabbitMQModule.forRootAsync(RabbitMQModule, { imports: [ConfigModule],