diff --git a/.travis.yml b/.travis.yml index f98fed0..9d7745e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: node_js node_js: + - '14' - '12' - '10' - - '8' diff --git a/package.json b/package.json index c6f2cf5..fb8a900 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "url": "https://sindresorhus.com" }, "engines": { - "node": ">=8" + "node": ">=10" }, "scripts": { "test": "xo && ava && tsd" @@ -37,20 +37,20 @@ "idle" ], "dependencies": { - "chalk": "^3.0.0", + "chalk": "^4.1.0", "cli-cursor": "^3.1.0", - "cli-spinners": "^2.2.0", + "cli-spinners": "^2.4.0", "is-interactive": "^1.0.0", - "log-symbols": "^3.0.0", + "log-symbols": "^4.0.0", "mute-stream": "0.0.8", "strip-ansi": "^6.0.0", "wcwidth": "^1.0.1" }, "devDependencies": { - "@types/node": "^12.7.5", + "@types/node": "^14.0.27", "ava": "^2.4.0", "get-stream": "^5.1.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" + "tsd": "^0.13.1", + "xo": "^0.25.0" } } diff --git a/readme.md b/readme.md index 8211acd..d2f0447 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/sindresorhus/ora) +# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/github/sindresorhus/ora) > Elegant terminal spinner diff --git a/test.js b/test.js index 99a8b36..bdb61d9 100644 --- a/test.js +++ b/test.js @@ -87,27 +87,27 @@ test('chain call to `.start()` with constructor', t => { test('.succeed()', macro, spinner => { spinner.succeed(); -}, /(✔|√) foo\n$/); +}, /(?:✔|√) foo\n$/); test('.succeed() - with new text', macro, spinner => { spinner.succeed('fooed'); -}, /(✔|√) fooed\n$/); +}, /(?:✔|√) fooed\n$/); test('.fail()', macro, spinner => { spinner.fail(); -}, /(✖|×) foo\n$/); +}, /(?:✖|×) foo\n$/); test('.fail() - with new text', macro, spinner => { spinner.fail('failed to foo'); -}, /(✖|×) failed to foo\n$/); +}, /(?:✖|×) failed to foo\n$/); test('.warn()', macro, spinner => { spinner.warn(); -}, /(⚠|‼) foo\n$/); +}, /(?:⚠|‼) foo\n$/); test('.info()', macro, spinner => { spinner.info(); -}, /(ℹ|i) foo\n$/); +}, /(?:ℹ|i) foo\n$/); test('.stopAndPersist() - with new text', macro, spinner => { spinner.stopAndPersist({text: 'all done'}); @@ -145,7 +145,7 @@ test('.promise() - resolves', async t => { await resolves; stream.end(); - t.regex(stripAnsi(await output), /(✔|√) foo\n$/); + t.regex(stripAnsi(await output), /(?:✔|√) foo\n$/); }); test('.promise() - rejects', async t => { @@ -166,7 +166,7 @@ test('.promise() - rejects', async t => { stream.end(); - t.regex(stripAnsi(await output), /(✖|×) foo\n$/); + t.regex(stripAnsi(await output), /(?:✖|×) foo\n$/); }); test('erases wrapped lines', t => {