From 98f6922a86adfdc2dd396cd93d494a82f6433386 Mon Sep 17 00:00:00 2001 From: SupaJoon Date: Fri, 29 Sep 2023 13:24:56 -0400 Subject: [PATCH] EVG-20837: Install ansi_up@6.0.2 (#2067) --- jest.config.js | 2 ++ package.json | 2 +- src/pages/task/taskTabs/logs/logTypes/LogMessageLine.tsx | 2 +- yarn.lock | 8 ++++---- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/jest.config.js b/jest.config.js index dac2467599..2f5893b712 100644 --- a/jest.config.js +++ b/jest.config.js @@ -27,6 +27,8 @@ module.exports = { }, transformIgnorePatterns: [ `/node_modules/(?!${[ + // jest doesn't officially support ESM so ignore ansi_up: https://jestjs.io/docs/ecmascript-modules + "ansi_up", "antd", // The following modules are all related to the query-string package. "query-string", diff --git a/package.json b/package.json index 707488d372..7b4a866ff3 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@rjsf/core": "4.2.3", "@sentry/react": "7.56.0", "@sentry/types": "7.56.0", - "ansi_up": "5.1.0", + "ansi_up": "6.0.2", "antd": "4.20.0", "axios": "1.3.6", "date-fns": "2.28.0", diff --git a/src/pages/task/taskTabs/logs/logTypes/LogMessageLine.tsx b/src/pages/task/taskTabs/logs/logTypes/LogMessageLine.tsx index db592b48a6..2d46d1dadf 100644 --- a/src/pages/task/taskTabs/logs/logTypes/LogMessageLine.tsx +++ b/src/pages/task/taskTabs/logs/logTypes/LogMessageLine.tsx @@ -1,5 +1,5 @@ import { useMemo } from "react"; -import AnsiUp from "ansi_up"; +import { AnsiUp } from "ansi_up"; import { format, utcToZonedTime } from "date-fns-tz"; import parse from "html-react-parser"; import linkifyHtml from "linkify-html"; diff --git a/yarn.lock b/yarn.lock index d7bc44c87f..c04b633f4d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6793,10 +6793,10 @@ ansi-styles@^6.0.0, ansi-styles@^6.1.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== -ansi_up@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/ansi_up/-/ansi_up-5.1.0.tgz#9cf10e6d359bb434bdcfab5ae4c3abfe1617b6db" - integrity sha512-3wwu+nJCKBVBwOCurm0uv91lMoVkhFB+3qZQz3U11AmAdDJ4tkw1sNPWJQcVxMVYwe0pGEALOjSBOxdxNc+pNQ== +ansi_up@6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/ansi_up/-/ansi_up-6.0.2.tgz#083adb65be5b21ba283fd105d3102e64f3f0b092" + integrity sha512-3G3vKvl1ilEp7J1u6BmULpMA0xVoW/f4Ekqhl8RTrJrhEBkonKn5k3bUc5Xt+qDayA6iDX0jyUh3AbZjB/l0tw== antd@4.20.0: version "4.20.0"