Skip to content

Commit

Permalink
chore(api): update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Jul 15, 2023
1 parent 06a0c78 commit 852b0e2
Show file tree
Hide file tree
Showing 6 changed files with 1,424 additions and 1,148 deletions.
3 changes: 2 additions & 1 deletion apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"dayjs": "^1.11.7",
"echarts": "^5.4.2",
"exceljs": "^4.3.0",
"ids": "1.0.0",
"intro.js": "^7.0.1",
"lodash-es": "^4.17.21",
"mockjs": "^1.1.0",
Expand Down Expand Up @@ -123,4 +124,4 @@
"node": ">=16.15.1",
"pnpm": ">=8.1.0"
}
}
}
123 changes: 62 additions & 61 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.2.0",
"private": true,
"description": "基于NestJs + TypeScript + TypeORM + Redis + MySql + Vben Admin编写的一款前后端分离的权限管理系统",
"packageManager": "pnpm@8.2.0",
"packageManager": "pnpm@8.6.7",
"license": "MIT",
"scripts": {
"prebuild": "rimraf dist",
Expand Down Expand Up @@ -31,92 +31,93 @@
"migration:revert": "typeorm -- migration:revert"
},
"dependencies": {
"@fastify/multipart": "^7.3.0",
"@fastify/static": "^6.5.0",
"@fastify/multipart": "^7.7.0",
"@fastify/static": "^6.10.2",
"@liaoliaots/nestjs-redis": "^9.0.5",
"@nestjs-modules/mailer": "^1.8.1",
"@nestjs/axios": "^0.1.0",
"@nestjs/bull": "^0.6.1",
"@nestjs/common": "^9.3.9",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "^9.3.9",
"@nestjs/jwt": "^9.0.0",
"@nestjs/passport": "^9.0.0",
"@nestjs/platform-fastify": "^9.2.0",
"@nestjs/platform-socket.io": "^9.2.0",
"@nestjs/schedule": "^2.2.1",
"@nestjs/swagger": "^6.1.3",
"@nestjs/terminus": "^9.2.2",
"@nestjs/throttler": "^4.0.0",
"@nestjs/typeorm": "^9.0.1",
"@nestjs/websockets": "^9.2.0",
"@types/lodash": "^4.14.186",
"axios": "^1.1.3",
"bull": "^4.10.1",
"cache-manager": "^5.1.1",
"chalk": "^5.1.2",
"@nestjs/axios": "^3.0.0",
"@nestjs/bull": "^10.0.1",
"@nestjs/cache-manager": "^2.0.1",
"@nestjs/common": "^10.0.5",
"@nestjs/config": "^3.0.0",
"@nestjs/core": "^10.0.5",
"@nestjs/jwt": "^10.1.0",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-fastify": "^10.0.5",
"@nestjs/platform-socket.io": "^10.0.5",
"@nestjs/schedule": "^3.0.1",
"@nestjs/swagger": "^7.1.1",
"@nestjs/terminus": "^10.0.1",
"@nestjs/throttler": "^4.2.1",
"@nestjs/typeorm": "^10.0.0",
"@nestjs/websockets": "^10.0.5",
"@types/lodash": "^4.14.195",
"axios": "^1.4.0",
"bull": "^4.10.4",
"cache-manager": "^5.2.3",
"chalk": "^5.3.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"cron-parser": "^4.6.0",
"class-validator": "^0.14.0",
"cron-parser": "^4.8.1",
"cross-env": "^7.0.3",
"crypto-js": "^4.1.1",
"dayjs": "^1.11.6",
"dotenv": "16.0.3",
"fastify": "^4.9.2",
"dayjs": "^1.11.9",
"dotenv": "16.3.1",
"fastify": "^4.19.2",
"fastify-multer": "^2.0.3",
"helmet": "^6.0.0",
"ioredis": "^5.2.3",
"helmet": "^7.0.0",
"ioredis": "^5.3.2",
"lodash": "^4.17.21",
"log4js": "^6.7.0",
"log4js": "^6.9.1",
"mysql": "^2.18.1",
"nanoid": "^3.3.4",
"nodemailer": "^6.8.0",
"nanoid": "^3.3.6",
"nodemailer": "^6.9.3",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.5.7",
"socket.io": "^4.5.3",
"rimraf": "^5.0.1",
"rxjs": "^7.8.1",
"socket.io": "^4.7.1",
"stacktrace-js": "^2.0.2",
"svg-captcha": "^1.4.0",
"systeminformation": "^5.12.11",
"systeminformation": "^5.18.7",
"typeorm": "^0.3.17",
"ua-parser-js": "^1.0.32"
"ua-parser-js": "^1.0.35"
},
"devDependencies": {
"@compodoc/compodoc": "^1.1.21",
"@nestjs/cli": "^9.1.5",
"@nestjs/schematics": "^9.0.3",
"@nestjs/testing": "^9.2.0",
"@nestjs/cli": "^10.1.8",
"@nestjs/schematics": "^10.0.1",
"@nestjs/testing": "^10.0.5",
"@types/cache-manager": "^4.0.2",
"@types/cron": "^2.0.1",
"@types/jest": "29.2.0",
"@types/jest": "29.5.3",
"@types/multer": "^1.4.7",
"@types/node": "^16.18.3",
"@types/node": "^20.4.2",
"@types/supertest": "^2.0.12",
"@types/ua-parser-js": "^0.7.36",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"eslint": "^8.26.0",
"@types/webpack-env": "^1.18.1",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.45.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "^29.2.2",
"prettier": "^2.7.1",
"run-script-webpack-plugin": "^0.1.1",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "^29.6.1",
"prettier": "^3.0.0",
"run-script-webpack-plugin": "^0.2.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.1",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.8.4",
"webpack": "^5.75.0",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.6",
"webpack": "^5.88.1",
"webpack-node-externals": "^3.0.0"
},
"jest": {
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/modules/auth/dto/captcha.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export class ImageCaptchaDto {

export class SendEmailCodeDto {
@ApiProperty({ description: '邮箱' })
@IsEmail({ message: ErrorEnum.CODE_1025 })
@IsEmail({}, { message: ErrorEnum.CODE_1025 })
email: string;
}

export class SendSmsCodeDto {
@ApiProperty({ description: '手机号' })
@IsMobilePhone('zh-CN', { message: ErrorEnum.CODE_1026 })
@IsMobilePhone('zh-CN', {}, { message: ErrorEnum.CODE_1026 })
phone: string;
}

Expand Down
7 changes: 4 additions & 3 deletions apps/api/src/modules/shared/shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { RedisModule } from '@liaoliaots/nestjs-redis';
import { MailerModule } from '@nestjs-modules/mailer';
import { HttpModule } from '@nestjs/axios';
import { Global, CacheModule, Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { Global, Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { ThrottlerModule } from '@nestjs/throttler';
import { MailerModule } from '@nestjs-modules/mailer';

import { IMailerConfig, IRedisConfig } from '@/config';

Expand Down Expand Up @@ -33,7 +34,7 @@ const providers = [AppLoggerService, MailerService, IpService, QQService];
ThrottlerModule.forRootAsync({
imports: [],
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
useFactory: () => ({
ttl: 60,
limit: 5,
}),
Expand Down
12 changes: 3 additions & 9 deletions apps/api/src/modules/system/serve/serve.controller.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import {
CacheInterceptor,
CacheKey,
CacheTTL,
Controller,
Get,
UseInterceptors,
} from '@nestjs/common';
import { CacheInterceptor, CacheKey, CacheTTL } from '@nestjs/cache-manager';
import { Controller, Get, UseInterceptors } from '@nestjs/common';
import { ApiExtraModels, ApiOperation, ApiTags } from '@nestjs/swagger';

import { ApiResult } from '@/decorators/api-result.decorator';
Expand All @@ -23,7 +17,7 @@ import { ServeService } from './serve.service';
@Controller('serve')
@UseInterceptors(CacheInterceptor)
@CacheKey('serve_stat')
@CacheTTL(10)
@CacheTTL(10000)
export class ServeController {
constructor(private serveService: ServeService) {}

Expand Down
Loading

0 comments on commit 852b0e2

Please sign in to comment.