chore(deps): update package dependencies to use catalog references

- Updated `package.json` and `pnpm-lock.yaml` to replace specific version references with catalog entries for various dependencies, including `@types/cors`, `@types/express`, `abort-controller`, `axios`, `camelcase-keys`, `cors`, `express`, `form-data`, `lodash`, `tsup`, `umi-request`, and `vite`.
- Removed obsolete conflict catalog for `@types/node`.
- Adjusted `pnpm-workspace.yaml` to reflect the new catalog structure for dependencies.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-05-06 00:36:30 +08:00
parent 8a5048f067
commit 423cc7de14
12 changed files with 82 additions and 509 deletions

View File

@@ -1,13 +1,9 @@
import { AgentExecutor, createOpenAIToolsAgent } from 'langchain/agents'
import { StructuredOutputParser } from 'langchain/output_parsers'
import type { PagerDto } from '~/shared/dto/pager.dto'
import { ToolDefinition } from '@langchain/core/language_models/base'
import { JsonOutputParser } from '@langchain/core/output_parsers'
import { JsonOutputToolsParser } from '@langchain/core/output_parsers/openai_tools'
import {
ChatPromptTemplate,
HumanMessagePromptTemplate,
MessagesPlaceholder,
SystemMessagePromptTemplate,
} from '@langchain/core/prompts'

View File

@@ -1,4 +1,3 @@
import { JsonOutputFunctionsParser } from 'langchain/output_parsers'
import removeMdCodeblock from 'remove-md-codeblock'
import type { PagerDto } from '~/shared/dto/pager.dto'

View File

@@ -2,7 +2,6 @@ import { URL } from 'node:url'
import { render } from 'ejs'
import { omit, pick } from 'lodash'
import { isObjectIdOrHexString, Types } from 'mongoose'
import { pipe } from 'rxjs'
import type { OnModuleInit } from '@nestjs/common'
import type { ReturnModelType } from '@typegoose/typegoose/lib/types'
import type { WriteBaseModel } from '~/shared/model/write-base.model'

View File

@@ -15,7 +15,6 @@ import {
ValidateNested,
} from 'class-validator'
import { JSONSchema } from 'class-validator-jsonschema'
import type { ChatModel } from 'openai/resources'
import { IsAllowedUrl } from '~/decorators/dto/isAllowedUrl'

View File

@@ -143,13 +143,13 @@ export class TextMacroService {
}
if (condition.search(RegMap.$) != -1) {
const variable = condition
.replace(RegMap.$, '$1')
.replaceAll(RegMap.$, '$1')
.replaceAll(/\s/g, '')
return model[variable] ?? extraContext[variable]
}
if (condition.search(RegMap['#']) != -1) {
const functions = condition.replace(RegMap['#'], '$1')
const functions = condition.replaceAll(RegMap['#'], '$1')
if (typeof cacheMap[functions] != 'undefined') {
return cacheMap[functions]

View File

@@ -27,14 +27,14 @@
"resolveJsonModule": true,
"allowJs": true,
"strictNullChecks": false,
"noImplicitAny": false,
"declaration": true,
"noEmit": true,
"outDir": "./dist",
"removeComments": true,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"outDir": "./dist",
"sourceMap": true,
"noEmit": true,
"noImplicitAny": false,
"skipLibCheck": true
},
"include": [

View File

@@ -29,7 +29,7 @@
"devDependencies": {
"@innei/prettier": "catalog:",
"@sxzz/eslint-config": "catalog:",
"@types/node": "catalog:conflicts_@types/node_22_14_0",
"@types/node": "catalog:",
"cross-env": "catalog:",
"eslint": "catalog:",
"lint-staged": "catalog:",
@@ -60,4 +60,4 @@
]
},
"issues": "https://github.com/mx-space/core/issues"
}
}

View File

@@ -44,19 +44,19 @@
"dev": "vitest"
},
"devDependencies": {
"@types/cors": "2.8.17",
"@types/express": "5.0.1",
"@types/lodash": "4.17.16",
"abort-controller": "3.0.0",
"axios": "^1.7.9",
"camelcase-keys": "^9.1.3",
"cors": "2.8.5",
"express": "4.21.2",
"form-data": "4.0.2",
"lodash": "4.17.21",
"tsup": "8.4.0",
"umi-request": "1.4.0",
"vite": "^6.0.3",
"vitest": "2.1.8"
"@types/cors": "catalog:",
"@types/express": "catalog:",
"@types/lodash": "catalog:",
"abort-controller": "catalog:",
"axios": "catalog:",
"camelcase-keys": "catalog:",
"cors": "catalog:",
"express": "catalog:",
"form-data": "catalog:",
"lodash": "catalog:",
"tsup": "catalog:",
"umi-request": "catalog:",
"vite": "catalog:",
"vitest": "catalog:"
}
}

View File

@@ -18,4 +18,4 @@
"zod": "catalog:",
"zx": "catalog:"
}
}
}

View File

@@ -21,7 +21,7 @@
"build": "node scripts/generate.js && tsup && node scripts/post-build.cjs"
},
"devDependencies": {
"express": "4.21.2"
"express": "catalog:"
},
"bump": {
"before": [

526
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -42,7 +42,9 @@ catalog:
'@types/babel__core': 7.20.5
'@types/bcryptjs': ^3.0.0
'@types/cls-hooked': ^4.3.9
'@types/cors': 2.8.17
'@types/ejs': 3.1.5
'@types/express': 5.0.1
'@types/get-image-colors': 4.0.5
'@types/js-yaml': 4.0.9
'@types/jsonwebtoken': 9.0.9
@@ -57,6 +59,7 @@ catalog:
'@types/ua-parser-js': 0.7.39
'@types/validator': 13.15.0
'@vercel/ncc': 0.38.3
abort-controller: 3.0.0
algoliasearch: 4.24.0
axios: ^1.9.0
axios-retry: 4.5.0
@@ -64,16 +67,19 @@ catalog:
better-auth: 1.2.5
blurhash: 2.0.5
cache-manager: 6.4.2
camelcase-keys: ^9.1.3
class-transformer: 0.5.1
class-validator: 0.13.2
class-validator-jsonschema: npm:@innei/class-validator-jsonschema@3.1.2
cls-hooked: ^4.2.2
commander: 13.1.0
cors: 2.8.5
cron: ^3.5.0
cross-env: 7.0.3
dayjs: 1.11.13
ejs: 3.1.10
eslint: ^9.24.0
express: 4.21.2
form-data: 4.0.2
inquirer: ^10.2.2
ioredis: 5.6.1
@@ -121,6 +127,7 @@ catalog:
tsup: 8.4.0
typescript: 5.8.3
ua-parser-js: 2.0.3
umi-request: 1.4.0
unplugin-swc: 1.5.2
vite: 5.4.10
vite-tsconfig-paths: 5.1.4
@@ -131,6 +138,3 @@ catalog:
zod: 3.24.3
zx: 7.2.3
zx-cjs: 7.0.7-0
catalogs:
conflicts_@types/node_22_14_0:
'@types/node': 22.14.0