From 0ff29cca85c71cf18d86919e6e900ed4d3bbaca5 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 14 Sep 2021 01:16:41 +0700 Subject: [PATCH] Upgrade dependencies --- index.js | 2 +- package.json | 14 +++++++------- test.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index cd331f5..d80c74c 100755 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ import ansiStyles from 'ansi-styles'; const ESCAPES = new Set([ '\u001B', - '\u009B' + '\u009B', ]); const END_CODE = 39; diff --git a/package.json b/package.json index 87541ef..86080fa 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/test.js b/test.js index afcee76..fb5245d 100755 --- a/test.js +++ b/test.js @@ -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 => {