From 5291bfe8d4f628514b1893389c790a527340b2e3 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 30 Sep 2025 18:03:16 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=BD=91=E7=BB=9C=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/basic/src/utils/util.sp.ts | 4 ++-- packages/plugins/plugin-cert/package.json | 1 - packages/plugins/plugin-lib/package.json | 4 +--- .../src/views/sys/nettest/DomainTestCard.vue | 6 ++---- pnpm-lock.yaml | 17 ----------------- 5 files changed, 5 insertions(+), 27 deletions(-) diff --git a/packages/core/basic/src/utils/util.sp.ts b/packages/core/basic/src/utils/util.sp.ts index 414c17cb..aad85e35 100644 --- a/packages/core/basic/src/utils/util.sp.ts +++ b/packages/core/basic/src/utils/util.sp.ts @@ -129,9 +129,9 @@ async function spawn(opts: SpawnOption): Promise { log.error(`child process exited with code ${code}`); const e = new Error(stderr || "return " + code); //@ts-ignore - error.stderr = stderr; + e.stderr = stderr; //@ts-ignore - error.stdout = stdout; + e.stdout = stdout; reject(e); } else { resolve(stdout); diff --git a/packages/plugins/plugin-cert/package.json b/packages/plugins/plugin-cert/package.json index 1eefc09c..213a4435 100644 --- a/packages/plugins/plugin-cert/package.json +++ b/packages/plugins/plugin-cert/package.json @@ -31,7 +31,6 @@ "devDependencies": { "@types/chai": "^4.3.3", "@types/mocha": "^10.0.0", - "@types/psl": "^1.1.3", "@typescript-eslint/eslint-plugin": "^8.26.1", "@typescript-eslint/parser": "^8.26.1", "chai": "^4.3.6", diff --git a/packages/plugins/plugin-lib/package.json b/packages/plugins/plugin-lib/package.json index d3664c2d..7def5947 100644 --- a/packages/plugins/plugin-lib/package.json +++ b/packages/plugins/plugin-lib/package.json @@ -36,13 +36,11 @@ "socks-proxy-agent": "^8.0.4", "ssh2": "^1.15.0", "strip-ansi": "^7.1.0", - "tencentcloud-sdk-nodejs": "^4.0.1005", - "psl": "^1.9.0" + "tencentcloud-sdk-nodejs": "^4.0.1005" }, "devDependencies": { "@types/chai": "^4.3.3", "@types/mocha": "^10.0.0", - "@types/psl": "^1.1.3", "@typescript-eslint/eslint-plugin": "^8.26.1", "@typescript-eslint/parser": "^8.26.1", "chai": "^4.3.6", diff --git a/packages/ui/certd-client/src/views/sys/nettest/DomainTestCard.vue b/packages/ui/certd-client/src/views/sys/nettest/DomainTestCard.vue index c09e52e6..8188ec09 100644 --- a/packages/ui/certd-client/src/views/sys/nettest/DomainTestCard.vue +++ b/packages/ui/certd-client/src/views/sys/nettest/DomainTestCard.vue @@ -78,7 +78,7 @@ const createPingTestMethod = async () => { const createTelnetTestMethod = async () => { const domain = getCurrentDomain(); const port = getCurrentPort(); - + return TelnetTest(domain, port); }; @@ -95,7 +95,7 @@ const getCurrentPort = () => { // 运行全部测试 async function runAllTests() { const domain = getCurrentDomain(); - + // 检查是否有域名 if (!domain) { message.error("请输入域名"); @@ -107,8 +107,6 @@ async function runAllTests() { // 通过组件引用调用测试方法 try { await Promise.allSettled([domainResolveRef.value?.test(), pingTestRef.value?.test(), telnetTestRef.value?.test()]); - - message.success("所有测试已完成"); } catch (error) { message.error("部分测试执行失败,请查看详细结果"); } finally { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d7b09221..fd8a049e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -652,9 +652,6 @@ importers: '@types/mocha': specifier: ^10.0.0 version: 10.0.10 - '@types/psl': - specifier: ^1.1.3 - version: 1.11.0 '@typescript-eslint/eslint-plugin': specifier: ^8.26.1 version: 8.45.0(@typescript-eslint/parser@8.45.0(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3) @@ -730,9 +727,6 @@ importers: lodash-es: specifier: ^4.17.21 version: 4.17.21 - psl: - specifier: ^1.15.0 - version: 1.15.0 qiniu: specifier: ^7.12.0 version: 7.14.0 @@ -761,9 +755,6 @@ importers: '@types/mocha': specifier: ^10.0.0 version: 10.0.10 - '@types/psl': - specifier: ^1.1.3 - version: 1.11.0 '@typescript-eslint/eslint-plugin': specifier: ^8.26.1 version: 8.45.0(@typescript-eslint/parser@8.45.0(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3) @@ -4612,10 +4603,6 @@ packages: resolution: {integrity: sha512-EULJ8LApcVEPbrfND0cRQqutIOdiIgJ1Mgrhpy755r14xMohPTEpkV/k28SJvuOs9bHRFW8x+KeDAEPiGQPB9Q==} deprecated: This is a stub types definition. parse-path provides its own type definitions, so you do not need this installed. - '@types/psl@1.11.0': - resolution: {integrity: sha512-OeASqmnreaSJyxwljqCZjRIf7jpbwswaqbSPahE99PZrizNAOXEl9HRWhXvCt3fkAc/WuF8wcZ6zkDHXaE7X4g==} - deprecated: This is a stub types definition. psl provides its own type definitions, so you do not need this installed. - '@types/qs@6.9.18': resolution: {integrity: sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==} @@ -17932,10 +17919,6 @@ snapshots: dependencies: parse-path: 7.1.0 - '@types/psl@1.11.0': - dependencies: - psl: 1.15.0 - '@types/qs@6.9.18': {} '@types/range-parser@1.2.7': {}