From f7c45f94b033226875c1aa0b5448d263f513060c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 29 Aug 2021 16:20:20 +0000 Subject: [PATCH] fix(deps): update dependency html-entities to v2 (#805) * fix(deps): update dependency html-entities to v2 * Changes Co-authored-by: Renovate Bot Co-authored-by: Nathan Bierema --- .../redux-devtools-inspector-monitor-trace-tab/package.json | 2 +- .../src/react-error-overlay/utils/generateAnsiHTML.ts | 6 ++---- yarn.lock | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/redux-devtools-inspector-monitor-trace-tab/package.json b/packages/redux-devtools-inspector-monitor-trace-tab/package.json index b1cdee9d..8f23f413 100644 --- a/packages/redux-devtools-inspector-monitor-trace-tab/package.json +++ b/packages/redux-devtools-inspector-monitor-trace-tab/package.json @@ -31,7 +31,7 @@ "@babel/code-frame": "^7.14.5", "@types/chrome": "^0.0.154", "anser": "^1.4.10", - "html-entities": "^1.4.0", + "html-entities": "^2.3.2", "redux-devtools-themes": "^1.0.0", "settle-promise": "^1.0.0" }, diff --git a/packages/redux-devtools-inspector-monitor-trace-tab/src/react-error-overlay/utils/generateAnsiHTML.ts b/packages/redux-devtools-inspector-monitor-trace-tab/src/react-error-overlay/utils/generateAnsiHTML.ts index e35d7a29..c8a64ff2 100644 --- a/packages/redux-devtools-inspector-monitor-trace-tab/src/react-error-overlay/utils/generateAnsiHTML.ts +++ b/packages/redux-devtools-inspector-monitor-trace-tab/src/react-error-overlay/utils/generateAnsiHTML.ts @@ -7,9 +7,7 @@ import Anser from 'anser'; import { nicinabox as theme } from 'redux-devtools-themes'; -import { AllHtmlEntities as Entities } from 'html-entities'; - -const entities = new Entities(); +import { encode } from 'html-entities'; const anserMap = { 'ansi-bright-black': theme.base03, @@ -27,7 +25,7 @@ const anserMap = { }; function generateAnsiHTML(txt: string): string { - const arr = new Anser().ansiToJson(entities.encode(txt), { + const arr = new Anser().ansiToJson(encode(txt), { use_classes: true, }); diff --git a/yarn.lock b/yarn.lock index 7eb13e46..e622e4a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5067,7 +5067,7 @@ __metadata: enzyme: ^3.11.0 enzyme-adapter-react-16: ^1.15.6 enzyme-to-json: ^3.6.2 - html-entities: ^1.4.0 + html-entities: ^2.3.2 react: ^16.14.0 react-dom: ^16.14.0 react-test-renderer: ^16.14.0 @@ -16810,7 +16810,7 @@ fsevents@^1.2.7: languageName: node linkType: hard -"html-entities@npm:^1.2.0, html-entities@npm:^1.2.1, html-entities@npm:^1.4.0": +"html-entities@npm:^1.2.0, html-entities@npm:^1.2.1": version: 1.4.0 resolution: "html-entities@npm:1.4.0" checksum: 4b73ffb9eead200f99146e4fbe70acb0af2fea136901a131fc3a782e9ef876a7cbb07dec303ca1f8804232b812249dbf3643a270c9c524852065d9224a8dcdd0