Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 13, 2021
1 parent 03b1cdf commit 0ff29cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ansiStyles from 'ansi-styles';

const ESCAPES = new Set([
'\u001B',
'\u009B'
'\u009B',
]);

const END_CODE = 39;
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@
"text"
],
"dependencies": {
"ansi-styles": "^6.0.0",
"string-width": "^5.0.0",
"strip-ansi": "^7.0.0"
"ansi-styles": "^6.1.0",
"string-width": "^5.0.1",
"strip-ansi": "^7.0.1"
},
"devDependencies": {
"ava": "^3.15.0",
"chalk": "^4.1.0",
"coveralls": "^3.1.0",
"has-ansi": "^5.0.0",
"chalk": "^4.1.2",
"coveralls": "^3.1.1",
"has-ansi": "^5.0.1",
"nyc": "^15.1.0",
"xo": "^0.38.2"
"xo": "^0.44.0"
}
}
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test('does not break strings longer than "cols" characters', t => {
const result = wrapAnsi(fixture, 5, {hard: false});

t.is(result, 'The\nquick\nbrown\n\u001B[31mfox\u001B[39m\n\u001B[31mjumped\u001B[39m\n\u001B[31mover\u001B[39m\n\u001B[31m\u001B[39mthe\nlazy\n\u001B[32mdog\u001B[39m\n\u001B[32mand\u001B[39m\n\u001B[32mthen\u001B[39m\n\u001B[32mran\u001B[39m\n\u001B[32maway\u001B[39m\n\u001B[32mwith\u001B[39m\n\u001B[32mthe\u001B[39m\n\u001B[32municorn.\u001B[39m');
t.true(stripAnsi(result).split('\n').filter(line => line.length > 5).length > 0);
t.true(stripAnsi(result).split('\n').some(line => line.length > 5));
});

test('handles colored string that wraps on to multiple lines', t => {
Expand Down

0 comments on commit 0ff29cc

Please sign in to comment.