fix(deps): update dependency html-entities to v2 (#805)

* fix(deps): update dependency html-entities to v2

* Changes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
renovate[bot] 2021-08-29 16:20:20 +00:00 committed by GitHub
parent 246af5ad62
commit f7c45f94b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View File

@ -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"
},

View File

@ -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,
});

View File

@ -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