Compare commits

...

1 Commits

Author SHA1 Message Date
Ivan
6f6018501b chore: 更新 auth 依赖。 2021-07-22 10:51:57 +08:00
5 changed files with 18 additions and 12 deletions

18
package-lock.json generated
View File

@ -1,14 +1,14 @@
{
"name": "blog-be",
"version": "0.0.1",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.0.1",
"version": "0.1.0",
"license": "UNLICENSED",
"dependencies": {
"@nestjs-lib/auth": "^0.1.1",
"@nestjs-lib/auth": "^0.2.1",
"@nestjs/bull": "^0.3.1",
"@nestjs/common": "^7.6.15",
"@nestjs/config": "^0.6.2",
@ -2503,9 +2503,9 @@
}
},
"node_modules/@nestjs-lib/auth": {
"version": "0.1.1",
"resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.1.1.tgz",
"integrity": "sha512-fYje3oHErN/1ZKyrzTlZ+3+w7fp3XplkKz26U9OycTA5hu+/LlM6EEvuMt7pfdo02KllVtcUWMtmKbezzr4Ujw==",
"version": "0.2.1",
"resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.2.1.tgz",
"integrity": "sha512-HNOjIWh6H/PVTjp+nQ11LmKY/09zNhlLZqruukTteAPKQGvkeLUU51/OIp/vj0WWzMxp4qMWnfCrLaRYjkQ1Yw==",
"license": "MIT",
"peerDependencies": {
"@nestjs/common": "^7.0.0",
@ -17744,9 +17744,9 @@
}
},
"@nestjs-lib/auth": {
"version": "0.1.1",
"resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.1.1.tgz",
"integrity": "sha512-fYje3oHErN/1ZKyrzTlZ+3+w7fp3XplkKz26U9OycTA5hu+/LlM6EEvuMt7pfdo02KllVtcUWMtmKbezzr4Ujw==",
"version": "0.2.1",
"resolved": "https://npm.ivanli.cc/@nestjs-lib%2fauth/-/auth-0.2.1.tgz",
"integrity": "sha512-HNOjIWh6H/PVTjp+nQ11LmKY/09zNhlLZqruukTteAPKQGvkeLUU51/OIp/vj0WWzMxp4qMWnfCrLaRYjkQ1Yw==",
"requires": {}
},
"@nestjs/bull": {

View File

@ -21,7 +21,7 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs-lib/auth": "^0.1.1",
"@nestjs-lib/auth": "^0.2.1",
"@nestjs/bull": "^0.3.1",
"@nestjs/common": "^7.6.15",
"@nestjs/config": "^0.6.2",

View File

@ -1,3 +1,4 @@
import { CommonsModule } from './../commons/commons.module';
import { Module } from '@nestjs/common';
import { ArticlesService } from './articles.service';
import { ArticlesResolver } from './articles.resolver';
@ -5,7 +6,7 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { Article } from './entities/article.entity';
@Module({
imports: [TypeOrmModule.forFeature([Article])],
imports: [TypeOrmModule.forFeature([Article]), CommonsModule],
providers: [ArticlesResolver, ArticlesService],
})
export class ArticlesModule {}

View File

@ -1,3 +1,4 @@
import { JwtService } from '@nestjs-lib/auth';
import { Test, TestingModule } from '@nestjs/testing';
import { ArticlesResolver } from './articles.resolver';
import { ArticlesService } from './articles.service';
@ -13,6 +14,10 @@ describe('ArticlesResolver', () => {
provide: ArticlesService,
useValue: {},
},
{
provide: JwtService,
useValue: {},
},
],
}).compile();

View File

@ -6,6 +6,6 @@ import { AuthModule } from '@nestjs-lib/auth';
@Module({
imports: [PubSubModule, AuthModule],
providers: [PasswordConverter],
exports: [PasswordConverter],
exports: [PasswordConverter, AuthModule],
})
export class CommonsModule {}