Skip to content

Commit

Permalink
Bump ansi/html encoding deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Mailer committed Jan 31, 2021
1 parent 2c31df1 commit aa38d42
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
5 changes: 2 additions & 3 deletions client-overlay.js
Expand Up @@ -35,13 +35,12 @@ var colors = {
darkgrey: '6d7891',
};

var Entities = require('html-entities').AllHtmlEntities;
var entities = new Entities();
var {encode: htmlEncode} = require('html-entities');

function showProblems(type, lines) {
clientOverlay.innerHTML = '';
lines.forEach(function (msg) {
msg = ansiHTML(entities.encode(msg));
msg = ansiHTML(htmlEncode(msg));
var div = document.createElement('div');
div.style.marginBottom = '26px';
div.innerHTML = problemType(type) + ' in ' + msg;
Expand Down
2 changes: 1 addition & 1 deletion example/server.js
Expand Up @@ -48,7 +48,7 @@ app.get('/multientry', function (req, res) {

if (require.main === module) {
var server = http.createServer(app);
server.listen(process.env.PORT || 1616, function () {
server.listen(process.env.PORT || 1616, "localhost", function () {
console.log('Listening on %j', server.address());
});
}
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -27,9 +27,9 @@
"license": "MIT",
"dependencies": {
"ansi-html": "0.0.7",
"html-entities": "^1.2.0",
"html-entities": "^2.1.0",
"querystring": "^0.2.0",
"strip-ansi": "^3.0.0"
"strip-ansi": "^6.0.0"
},
"devDependencies": {
"eslint": "^7.19.0",
Expand Down

0 comments on commit aa38d42

Please sign in to comment.