From 4fef67b997a2bd09b46beb779c185ad8f85e3e1a Mon Sep 17 00:00:00 2001
From: Gareth Jones <Jones258@Gmail.com>
Date: Mon, 8 Nov 2021 22:55:26 +1300
Subject: [PATCH] fix: replace `ansi-html` with `ansi-html-community` (#4011)

---
 client-src/default/overlay.js | 2 +-
 package-lock.json             | 8 ++++----
 package.json                  | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/client-src/default/overlay.js b/client-src/default/overlay.js
index a1bb6cef2b..f7bdb9f752 100644
--- a/client-src/default/overlay.js
+++ b/client-src/default/overlay.js
@@ -3,7 +3,7 @@
 // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)
 // They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
 
-const ansiHTML = require('ansi-html');
+const ansiHTML = require('ansi-html-community');
 const { AllHtmlEntities } = require('html-entities');
 
 const entities = new AllHtmlEntities();
diff --git a/package-lock.json b/package-lock.json
index 475ad96ef5..0a5158962d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2148,10 +2148,10 @@
         }
       }
     },
-    "ansi-html": {
-      "version": "0.0.7",
-      "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz",
-      "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4="
+    "ansi-html-community": {
+      "version": "0.0.8",
+      "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz",
+      "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw=="
     },
     "ansi-regex": {
       "version": "2.1.1",
diff --git a/package.json b/package.json
index ef337acd6d..7874d2f4db 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,7 @@
     "release": "standard-version"
   },
   "dependencies": {
-    "ansi-html": "0.0.7",
+    "ansi-html-community": "0.0.8",
     "bonjour": "^3.5.0",
     "chokidar": "^2.1.8",
     "compression": "^1.7.4",