From 4452ee8958b1ffc31499f85de150273618f27673 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 28 Feb 2026 11:31:26 +0800 Subject: [PATCH] fix(deps): remove unused ansi-html-community dependency --- .gitignore | 1 + client-src/type.d.ts | 10 ---------- package.json | 1 - pnpm-lock.yaml | 10 ---------- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 0216fc3..949c419 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.local *.log* *.tsbuildinfo +*.cpuprofile # Dist node_modules diff --git a/client-src/type.d.ts b/client-src/type.d.ts index efa0471..554affd 100644 --- a/client-src/type.d.ts +++ b/client-src/type.d.ts @@ -18,13 +18,3 @@ declare interface CommunicationClient { declare interface CommunicationClientConstructor { new (url: string): CommunicationClient; // Defines a constructor that takes a string and returns a GreeterInstance } - -declare module 'ansi-html-community' { - function ansiHtmlCommunity(str: string): string; - - namespace ansiHtmlCommunity { - function setColors(colors: Record): void; - } - - export = ansiHtmlCommunity; -} diff --git a/package.json b/package.json index 0533d3b..777e856 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,6 @@ "@types/serve-static": "^1.15.5", "@types/sockjs": "^0.3.36", "@types/ws": "^8.5.10", - "ansi-html-community": "^0.0.8", "bonjour-service": "^1.2.1", "chokidar": "^3.6.0", "compression": "^1.8.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 577d3c1..1051c3e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,9 +32,6 @@ importers: '@types/ws': specifier: ^8.5.10 version: 8.5.10 - ansi-html-community: - specifier: ^0.0.8 - version: 0.0.8 bonjour-service: specifier: ^1.2.1 version: 1.2.1 @@ -691,11 +688,6 @@ packages: ajv@8.17.1: resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} - ansi-html-community@0.0.8: - resolution: {integrity: sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==} - engines: {'0': node >= 0.8.0} - hasBin: true - ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} @@ -2805,8 +2797,6 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - ansi-html-community@0.0.8: {} - ansi-regex@5.0.1: {} ansi-styles@3.2.1: