Skip to content

Commit fe961eb

Browse files
committed
fix(deps): 修复多个安全漏洞
升级直接依赖: - @google/genai: 1.19.0 → 1.32.0 (修复 jws HMAC 签名验证漏洞) - vite: 6.x → 7.2.7 (修复 3 个安全漏洞) - electron: 37.1.0 → 39.2.6 (修复 ASAR 完整性绕过) - electron-builder: 24.13.3 → 26.0.12 - electron-builder-squirrel-windows: 新增 26.0.12 - electron-updater: 6.3.9 → 6.6.2 - vue-i18n: 10.0.6 → 11.2.2 (修复 XSS 漏洞) - @modelcontextprotocol/sdk: 1.16.0 → 1.24.3 (修复 DNS 重绑定) - element-plus: 2.10.2 → 2.12.0 (修复 el-link href 验证) - @typescript-eslint/*: 6.21.0 → 8.49.0 (支持 TypeScript 5.8.3) 自动修复的传递依赖: - jws: 4.0.1, form-data: 4.0.5, tmp: 0.2.5 - body-parser: 2.2.1, @eslint/plugin-kit: 0.3.5 其他: - 修复 lint 错误 (未使用的 catch 变量添加 _ 前缀)
1 parent 2b0ef7c commit fe961eb

File tree

11 files changed

+2428
-1098
lines changed

11 files changed

+2428
-1098
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
"kill:dev": "node scripts/kill-dev.js"
5050
},
5151
"devDependencies": {
52-
"@intlify/unplugin-vue-i18n": "^6.0.3",
52+
"@intlify/unplugin-vue-i18n": "^11.0.1",
5353
"@playwright/test": "^1.56.1",
5454
"concurrently": "^8.2.2",
5555
"cross-env": "^7.0.3",
56-
"electron": "^37.1.0",
56+
"electron": "^39.2.6",
5757
"i18next": "^24.2.2",
5858
"i18next-browser-languagedetector": "^8.0.4",
5959
"lodash-unified": "^1.0.3",
@@ -81,7 +81,7 @@
8181
"lodash-es": "^4.17.21",
8282
"memoize-one": "^6.0.0",
8383
"normalize-wheel-es": "^1.2.0",
84-
"vue-i18n": "^10.0.6"
84+
"vue-i18n": "^11.2.2"
8585
},
8686
"keywords": [],
8787
"author": "",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"@anthropic-ai/sdk": "^0.65.0",
34-
"@google/genai": "^1.0.0",
34+
"@google/genai": "^1.32.0",
3535
"@types/mustache": "^4.2.5",
3636
"dexie": "^4.0.11",
3737
"diff": "^8.0.2",

packages/desktop/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
},
1818
"devDependencies": {
1919
"cross-env": "^7.0.3",
20-
"electron": "^37.1.0",
21-
"electron-builder": "^24.0.0"
20+
"electron": "^39.2.6",
21+
"electron-builder": "^26.0.12",
22+
"electron-builder-squirrel-windows": "^26.0.12"
2223
},
2324
"dependencies": {
2425
"@prompt-optimizer/core": "workspace:*",
2526
"dotenv": "^16.0.0",
2627
"electron-log": "^5.4.1",
27-
"electron-updater": "6.3.9",
28+
"electron-updater": "6.6.2",
2829
"node-fetch": "^2.7.0",
2930
"undici": "^6.19.8"
3031
},

packages/extension/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@prompt-optimizer/ui": "workspace:*",
15-
"element-plus": "^2.9.3",
15+
"element-plus": "^2.12.0",
1616
"uuid": "^11.0.5",
1717
"vue": "^3.5.13"
1818
},
@@ -22,16 +22,16 @@
2222
"@tsconfig/node18": "^18.2.4",
2323
"@types/node": "^22.13.4",
2424
"@types/uuid": "^10.0.0",
25-
"@vitejs/plugin-basic-ssl": "^1.2.0",
26-
"@vitejs/plugin-vue": "^5.2.1",
25+
"@vitejs/plugin-basic-ssl": "^2.1.0",
26+
"@vitejs/plugin-vue": "^6.0.2",
2727
"@vue/tsconfig": "^0.5.1",
2828
"autoprefixer": "^10.4.20",
29+
"dotenv": "^16.4.7",
30+
"js-yaml": "^4.1.0",
2931
"postcss": "^8.5.1",
3032
"tailwindcss": "^3.4.17",
3133
"typescript": "^5.0.0",
32-
"vite": "^6.0.7",
33-
"vitest": "^3.0.2",
34-
"dotenv": "^16.4.7",
35-
"js-yaml": "^4.1.0"
34+
"vite": "^7.2.7",
35+
"vitest": "^3.0.2"
3636
}
3737
}

packages/mcp-server/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"author": "Prompt Optimizer Team",
2727
"license": "AGPL-3.0-only",
2828
"dependencies": {
29-
"@modelcontextprotocol/sdk": "^1.16.0",
29+
"@modelcontextprotocol/sdk": "^1.24.3",
3030
"@prompt-optimizer/core": "workspace:*",
3131
"debug": "^4.4.1",
3232
"dotenv": "^16.4.7",
@@ -36,8 +36,8 @@
3636
"@types/debug": "^4.1.12",
3737
"@types/express": "^4.17.23",
3838
"@types/node": "^20.11.0",
39-
"@typescript-eslint/eslint-plugin": "^6.21.0",
40-
"@typescript-eslint/parser": "^6.21.0",
39+
"@typescript-eslint/eslint-plugin": "^8.49.0",
40+
"@typescript-eslint/parser": "^8.49.0",
4141
"eslint": "^8.57.0",
4242
"tsup": "^8.0.2",
4343
"typescript": "^5.3.3",

packages/ui/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848
"devDependencies": {
4949
"@types/node": "^22.13.10",
5050
"@types/uuid": "^10.0.0",
51-
"@typescript-eslint/eslint-plugin": "^6.21.0",
52-
"@typescript-eslint/parser": "^6.21.0",
53-
"@vitejs/plugin-vue": "^5.2.1",
51+
"@typescript-eslint/eslint-plugin": "^8.49.0",
52+
"@typescript-eslint/parser": "^8.49.0",
53+
"@vitejs/plugin-vue": "^6.0.2",
5454
"@vue/test-utils": "^2.4.5",
5555
"@vue/tsconfig": "^0.5.1",
5656
"eslint": "^8.57.0",
5757
"eslint-plugin-vue": "^10.4.0",
5858
"jsdom": "^26.0.0",
5959
"typescript": "^5.8.2",
60-
"vite": "^6.2.0",
60+
"vite": "^7.2.7",
6161
"vite-plugin-dts": "^4.5.3",
6262
"vitest": "^3.0.7"
6363
}

packages/ui/src/components/DataManager.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ const handleContextImportFromFile = async (file: File) => {
458458
let importData: unknown
459459
try {
460460
importData = JSON.parse(content)
461-
} catch (parseError) {
461+
} catch (_parseError) {
462462
toast.error('无效的JSON格式,请检查文件内容')
463463
return
464464
}
@@ -520,7 +520,7 @@ const handleContextImportFromClipboard = async () => {
520520
let importData: unknown
521521
try {
522522
importData = JSON.parse(clipboardContent)
523-
} catch (parseError) {
523+
} catch (_parseError) {
524524
toast.error('无效的JSON格式,请检查数据格式')
525525
return
526526
}

packages/ui/src/components/ImageModelEditModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ const refreshModels = async () => {
403403
count: models.value.length
404404
}
405405
toast.success(t('image.model.refreshSuccess'))
406-
} catch (error) {
406+
} catch (_error) {
407407
modelLoadingStatus.value = { type: 'error', messageKey: 'image.model.refreshError' }
408408
toast.error(t('image.model.refreshError'))
409409
} finally {
@@ -425,7 +425,7 @@ const save = async () => {
425425
toast.success(isEditing.value ? t('image.config.updateSuccess') : t('image.config.createSuccess'))
426426
emit('saved')
427427
close()
428-
} catch (error) {
428+
} catch (_error) {
429429
console.error('保存配置失败:', error)
430430
toast.error(t('image.config.saveFailed'))
431431
}

packages/ui/src/components/variable/VariableImporter.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ const handleFile = (file: File) => {
352352
try {
353353
const variables = parseVariables(content, textFormat.value)
354354
previewVariables.value = variables
355-
} catch (err) {
355+
} catch (_err) {
356356
error.value = err instanceof Error ? err.message : t('variables.importer.errors.parseError')
357357
previewVariables.value = {}
358358
}
@@ -427,7 +427,7 @@ watch([importText, textFormat], () => {
427427
const variables = parseVariables(importText.value, textFormat.value)
428428
previewVariables.value = variables
429429
error.value = ''
430-
} catch (err) {
430+
} catch (_err) {
431431
previewVariables.value = {}
432432
// 不立即显示错误,等用户完成输入
433433
}

packages/web/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
"@pinia/testing": "^0.1.7",
2222
"@tailwindcss/forms": "^0.5.10",
2323
"@tailwindcss/typography": "^0.5.16",
24-
"@vitejs/plugin-basic-ssl": "^1.2.0",
25-
"@vitejs/plugin-vue": "^5.2.1",
24+
"@vitejs/plugin-basic-ssl": "^2.1.0",
25+
"@vitejs/plugin-vue": "^6.0.2",
2626
"@vue/test-utils": "^2.4.6",
2727
"autoprefixer": "^10.4.20",
28+
"dotenv": "^16.4.7",
29+
"js-yaml": "^4.1.0",
2830
"jsdom": "^26.0.0",
2931
"postcss": "^8.5.1",
3032
"tailwindcss": "^3.4.17",
31-
"vite": "^6.0.7",
32-
"vitest": "^3.0.2",
33-
"dotenv": "^16.4.7",
34-
"js-yaml": "^4.1.0"
33+
"vite": "^7.2.7",
34+
"vitest": "^3.0.2"
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)