chore: 升级存在安全风险的依赖

This commit is contained in:
Nixevol
2026-07-14 11:21:58 +08:00
parent 2250869244
commit 5481208973
13 changed files with 1080 additions and 1104 deletions
+3 -3
View File
@@ -14,18 +14,18 @@
"@vicons/ionicons5": "^0.13.0",
"axios": "^1.7.9",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"echarts": "^6.1.0",
"naive-ui": "^2.40.3",
"photoswipe": "^5.4.4",
"pinia": "^2.3.0",
"vue": "^3.5.13",
"vue-echarts": "^7.0.3",
"vue-echarts": "^8.0.1",
"vue-i18n": "^9.14.2",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"typescript": "^5.6.3",
"vite": "^5.4.11"
"vite": "^6.4.3"
}
}
+12 -13
View File
@@ -24,15 +24,14 @@
"@aws-sdk/client-s3": "^3.700.0",
"@aws-sdk/lib-storage": "^3.1075.0",
"@aws-sdk/s3-request-presigner": "^3.700.0",
"@nestjs/bullmq": "^10.2.3",
"@nestjs/common": "^10.4.15",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.4.15",
"@nestjs/jwt": "^10.2.0",
"@nestjs/platform-express": "^10.4.15",
"@nestjs/bullmq": "^11.0.4",
"@nestjs/common": "^11.1.28",
"@nestjs/config": "^4.0.4",
"@nestjs/core": "^11.1.28",
"@nestjs/jwt": "^11.0.2",
"@nestjs/platform-express": "^11.1.28",
"@nestjs/schedule": "^6.1.3",
"@nestjs/serve-static": "^4.0.2",
"@nestjs/swagger": "^8.1.0",
"@nestjs/swagger": "^11.4.5",
"@nestjs/throttler": "^6.5.0",
"@prisma/client": "^5.22.0",
"adm-zip": "^0.5.18",
@@ -53,14 +52,14 @@
"unzipper": "0.10.14"
},
"devDependencies": {
"@nestjs/cli": "^10.4.9",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.15",
"@nestjs/cli": "^11.0.24",
"@nestjs/schematics": "^11.1.0",
"@nestjs/testing": "^11.1.28",
"@types/adm-zip": "^0.5.8",
"@types/bcryptjs": "^2.4.6",
"@types/express": "^4.17.21",
"@types/express": "^5.0.6",
"@types/jest": "^29.5.14",
"@types/multer": "^1.4.12",
"@types/multer": "^2.2.0",
"@types/node": "^22.10.2",
"@types/qrcode": "^1.5.5",
"dotenv-cli": "^7.4.4",
+6 -2
View File
@@ -1,5 +1,5 @@
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { JwtModule, type JwtModuleOptions } from '@nestjs/jwt';
import { ConfigService } from '@nestjs/config';
import { APP_GUARD } from '@nestjs/core';
import { AuthService } from './auth.service';
@@ -14,7 +14,11 @@ import { RolesGuard } from './guards/roles.guard';
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
secret: config.get<string>('jwt.secret'),
signOptions: { expiresIn: config.get<string>('jwt.expiresIn') || '7d' },
signOptions: {
expiresIn:
config.get<NonNullable<JwtModuleOptions['signOptions']>['expiresIn']>('jwt.expiresIn') ||
'7d',
},
}),
}),
],
+1 -1
View File
@@ -23,7 +23,7 @@ function mountSpa(app: NestExpressApplication, prefix: string, root: string): vo
const http = app.getHttpAdapter().getInstance();
const index = resolve(root, 'index.html');
http.get(prefix, (_req, res) => res.sendFile(index));
http.get(`${prefix}/*`, (_req, res) => res.sendFile(index));
http.get(`${prefix}/*splat`, (_req, res) => res.sendFile(index));
}
async function bootstrap(): Promise<void> {
+1 -1
View File
@@ -21,6 +21,6 @@
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"typescript": "^5.6.3",
"vite": "^5.4.11"
"vite": "^6.4.3"
}
}