chore: update dependencies and improve health controller

- Updated various dependencies in package.json and pnpm-lock.yaml, including:
  - `@aws-sdk/client-s3` from 3.782.0 to 3.802.0
  - `@babel/core` from 7.26.10 to 7.27.1
  - `@nestjs/common` and `@nestjs/core` from 11.0.13 to 11.1.0
  - `axios` from 1.8.3 to 1.9.0
  - `mongoose` from 8.13.2 to 8.14.1
  - Other minor updates across various packages.

- Refactored `getAllCron` method in `cron.controller.ts` to use `job?.isActive` instead of `job?.running` for better clarity on job status.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-05-04 15:05:24 +08:00
parent 7a4ee66011
commit e055f5cd27
3 changed files with 1417 additions and 1012 deletions

View File

@@ -54,37 +54,37 @@
"dependencies": {
"@algolia/client-search": "^4.22.1",
"@antfu/install-pkg": "1.0.0",
"@aws-sdk/client-s3": "3.782.0",
"@babel/core": "7.26.10",
"@babel/plugin-transform-modules-commonjs": "7.26.3",
"@babel/plugin-transform-typescript": "7.27.0",
"@babel/types": "^7.27.0",
"@aws-sdk/client-s3": "3.802.0",
"@babel/core": "7.27.1",
"@babel/plugin-transform-modules-commonjs": "7.27.1",
"@babel/plugin-transform-typescript": "7.27.1",
"@babel/types": "^7.27.1",
"@fastify/cookie": "11.0.2",
"@fastify/multipart": "9.0.3",
"@fastify/static": "8.1.1",
"@innei/next-async": "0.3.0",
"@innei/pretty-logger-nestjs": "0.3.3",
"@keyv/redis": "4.3.3",
"@langchain/openai": "0.5.4",
"@keyv/redis": "4.4.0",
"@langchain/openai": "0.5.10",
"@mx-space/compiled": "workspace:*",
"@nestjs/cache-manager": "3.0.1",
"@nestjs/common": "11.0.13",
"@nestjs/core": "11.0.13",
"@nestjs/common": "11.1.0",
"@nestjs/core": "11.1.0",
"@nestjs/event-emitter": "3.0.1",
"@nestjs/mapped-types": "^2.1.0",
"@nestjs/platform-fastify": "11.0.13",
"@nestjs/platform-socket.io": "11.0.13",
"@nestjs/schedule": "5.0.1",
"@nestjs/platform-fastify": "11.1.0",
"@nestjs/platform-socket.io": "11.1.0",
"@nestjs/schedule": "6.0.0",
"@nestjs/throttler": "6.4.0",
"@nestjs/websockets": "11.0.13",
"@nestjs/websockets": "11.1.0",
"@simplewebauthn/server": "10.0.1",
"@socket.io/redis-adapter": "8.3.0",
"@socket.io/redis-emitter": "5.1.0",
"@typegoose/auto-increment": "4.13.0",
"@typegoose/typegoose": "12.14.0",
"@typegoose/typegoose": "12.15.0",
"@types/jsonwebtoken": "9.0.9",
"algoliasearch": "4.24.0",
"axios": "^1.8.3",
"axios": "^1.9.0",
"axios-retry": "4.5.0",
"bcryptjs": "^3.0.2",
"blurhash": "2.0.5",
@@ -98,32 +98,32 @@
"ejs": "3.1.10",
"form-data": "4.0.2",
"inquirer": "^10.2.2",
"isbot": "5.1.25",
"isbot": "5.1.27",
"js-yaml": "^4.1.0",
"json5": "2.2.3",
"jsonwebtoken": "9.0.2",
"jszip": "3.10.1",
"keyv": "5.3.2",
"langchain": "0.3.20",
"linkedom": "0.18.9",
"keyv": "5.3.3",
"langchain": "0.3.24",
"linkedom": "0.18.10",
"lodash": "^4.17.21",
"lru-cache": "11.1.0",
"marked": "15.0.7",
"marked": "15.0.11",
"mime-types": "^3.0.1",
"mkdirp": "^3.0.1",
"mongoose": "8.13.2",
"mongoose": "8.14.1",
"mongoose-aggregate-paginate-v2": "1.1.4",
"mongoose-autopopulate": "1.1.0",
"mongoose-lean-getters": "2.2.1",
"mongoose-lean-virtuals": "1.1.0",
"mongoose-paginate-v2": "1.9.0",
"node-machine-id": "1.1.12",
"nodemailer": "6.10.0",
"openai": "4.91.1",
"nodemailer": "7.0.0",
"openai": "4.97.0",
"pluralize": "^8.0.0",
"qs": "6.14.0",
"reflect-metadata": "0.2.2",
"remove-markdown": "0.6.0",
"remove-markdown": "0.6.2",
"remove-md-codeblock": "0.0.4",
"rxjs": "7.8.2",
"semver": "7.7.1",
@@ -137,11 +137,11 @@
"zx-cjs": "7.0.7-0"
},
"devDependencies": {
"@langchain/core": "0.3.43",
"@nestjs/cli": "11.0.6",
"@nestjs/schematics": "11.0.3",
"@nestjs/testing": "11.0.13",
"@swc/core": "1.11.16",
"@langchain/core": "0.3.51",
"@nestjs/cli": "11.0.7",
"@nestjs/schematics": "11.0.5",
"@nestjs/testing": "11.1.0",
"@swc/core": "1.11.24",
"@types/babel__core": "7.20.5",
"@types/bcryptjs": "^3.0.0",
"@types/cls-hooked": "^4.3.9",
@@ -151,19 +151,19 @@
"@types/lodash": "4.17.16",
"@types/mime-types": "2.1.4",
"@types/mongoose-aggregate-paginate-v2": "1.0.12",
"@types/node": "22.14.0",
"@types/node": "22.15.3",
"@types/nodemailer": "6.4.17",
"@types/qs": "6.9.18",
"@types/remove-markdown": "0.3.4",
"@types/semver": "7.7.0",
"@types/ua-parser-js": "0.7.39",
"@types/validator": "13.12.3",
"@types/validator": "13.15.0",
"@vercel/ncc": "0.38.3",
"cron": "^3.5.0",
"ioredis": "5.6.0",
"sharp": "0.34.0",
"ioredis": "5.6.1",
"sharp": "0.34.1",
"socket.io": "^4.8.1",
"unplugin-swc": "1.5.1",
"unplugin-swc": "1.5.2",
"vite": "5.4.10",
"vite-tsconfig-paths": "5.1.4",
"vitest": "1.5.2",

View File

@@ -30,7 +30,6 @@ export class HealthCronController {
private readonly taskQueue: TaskQueueService,
) {}
@Get('/')
// 跳过 JSON 结构转换
@HTTPDecorators.Bypass
async getAllCron() {
const cron = Object.getPrototypeOf(this.cronService)
@@ -49,7 +48,7 @@ export class HealthCronController {
description,
lastDate: job?.lastDate() || null,
nextDate: job?.nextDate() || null,
status: job?.running ? 'running' : 'stopped',
status: job?.isActive ? 'running' : 'stopped',
}
}

2358
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff