Skip to content

Commit

Permalink
chore(deps): Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Jul 19, 2019
1 parent 04b5f73 commit 41a7127
Show file tree
Hide file tree
Showing 7 changed files with 4,001 additions and 2,123 deletions.
8 changes: 5 additions & 3 deletions client/ansi/filters/ansi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict';

var ansi_up = require('ansi_up');
var AU = require('ansi_up');
var ansi_up = new AU.default;
var stripAnsi = require('strip-ansi');

module.exports = function () {
return function (input, plaintext) {
Expand All @@ -15,8 +17,8 @@ module.exports = function () {
.replace(/^[^\n]*\u001b\[0G/gm, '');

if (startswithcr) input = `\r${input}`;
if (plaintext) return ansi_up.ansi_to_text(input);
if (plaintext) return stripAnsi(input);

return ansi_up.ansi_to_html(ansi_up.escape_for_html(input));
return ansi_up.ansi_to_html(input);
};
};
260 changes: 137 additions & 123 deletions dist/scripts/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scripts/bundle.map

Large diffs are not rendered by default.

Loading

0 comments on commit 41a7127

Please sign in to comment.