Skip to content

Commit

Permalink
chore(deps): update (#3055)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Feb 27, 2021
1 parent bc0ec5b commit c773d1f
Show file tree
Hide file tree
Showing 3 changed files with 588 additions and 466 deletions.
5 changes: 2 additions & 3 deletions client-src/default/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).

const ansiHTML = require('ansi-html');
const { AllHtmlEntities } = require('html-entities');
const { encode } = require('html-entities');

const entities = new AllHtmlEntities();
const colors = {
reset: ['transparent', 'transparent'],
black: '181818',
Expand Down Expand Up @@ -114,7 +113,7 @@ function showMessage(messages) {
ensureOverlayDivExists((div) => {
// Make it look similar to our terminal.
const errorMessage = messages[0].message || messages[0];
const text = ansiHTML(entities.encode(errorMessage));
const text = ansiHTML(encode(errorMessage));

div.innerHTML = `<span style="color: #${colors.red}">Failed to compile.</span><br><br>${text}`;
});
Expand Down

0 comments on commit c773d1f

Please sign in to comment.