From 3bb8c3c63462b3bd819589ed6478f1c16526697c Mon Sep 17 00:00:00 2001 From: alexander-akait Date: Thu, 11 Sep 2025 17:54:41 +0300 Subject: [PATCH] chore(deps): remove strip-ansi --- package-lock.json | 1 - package.json | 1 - test/logging.test.js | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 46c3b2505..efef30632 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,7 +64,6 @@ "prettier": "^3.6.0", "router": "^2.2.0", "standard-version": "^9.3.0", - "strip-ansi": "^6.0.0", "supertest": "^7.0.0", "typescript": "^5.3.3", "webpack": "^5.101.0" diff --git a/package.json b/package.json index 614a105a4..edeedacac 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,6 @@ "prettier": "^3.6.0", "router": "^2.2.0", "standard-version": "^9.3.0", - "strip-ansi": "^6.0.0", "supertest": "^7.0.0", "typescript": "^5.3.3", "webpack": "^5.101.0" diff --git a/test/logging.test.js b/test/logging.test.js index eef6021d4..aa9109818 100644 --- a/test/logging.test.js +++ b/test/logging.test.js @@ -2,8 +2,8 @@ import fs from "node:fs"; import os from "node:os"; import path from "node:path"; +import { stripVTControlCharacters } from "node:util"; import execa from "execa"; -import stripAnsi from "strip-ansi"; function extractErrorEntry(string) { const matches = string.match(/error:\s\D[^:||\n||\r]+/gim); @@ -12,7 +12,7 @@ function extractErrorEntry(string) { } function stdoutToSnapshot(stdout) { - let cleanedStdout = stripAnsi(stdout.trim()); + let cleanedStdout = stripVTControlCharacters(stdout.trim()); // Bugs in `strip-ansi` cleanedStdout = cleanedStdout.replaceAll("null main ", "main");