diff --git a/package.json b/package.json index eef9b8e..5f7d092 100644 --- a/package.json +++ b/package.json @@ -38,26 +38,26 @@ "version" ], "dependencies": { - "boxen": "^7.1.1", + "boxen": "^8.0.0", "chalk": "^5.3.0", - "configstore": "^6.0.0", + "configstore": "^7.0.0", "import-lazy": "^4.0.0", - "is-in-ci": "^0.1.0", + "is-in-ci": "^1.0.0", "is-installed-globally": "^1.0.0", "is-npm": "^6.0.0", "latest-version": "^9.0.0", "pupa": "^3.1.0", - "semver": "^7.6.2", + "semver": "^7.6.3", "semver-diff": "^4.0.0", "xdg-basedir": "^5.1.0" }, "devDependencies": { - "ava": "^5.3.1", + "ava": "^6.1.3", "clear-module": "^4.1.2", - "esmock": "^2.6.6", + "esmock": "^2.6.7", "fixture-stdout": "^0.2.1", "strip-ansi": "^7.1.0", - "xo": "^0.58.0" + "xo": "^0.59.2" }, "ava": { "timeout": "20s", diff --git a/test/update-notifier.js b/test/update-notifier.js index 8976f97..56bf398 100644 --- a/test/update-notifier.js +++ b/test/update-notifier.js @@ -24,8 +24,11 @@ test.beforeEach(() => { test.afterEach(() => { delete process.env.NO_UPDATE_NOTIFIER; process.argv = argv; + setTimeout(() => { - fs.unlinkSync(configstorePath); + try { + fs.unlinkSync(configstorePath); + } catch {} }, 10_000); }); diff --git a/update-notifier.js b/update-notifier.js index 619754a..b239c8d 100644 --- a/update-notifier.js +++ b/update-notifier.js @@ -25,10 +25,10 @@ export default class UpdateNotifier { update; // Semi-private (used for tests) - _packageName; + _packageName; // eslint-disable-line lines-between-class-members _shouldNotifyInNpmScript; - #options; + #options; // eslint-disable-line lines-between-class-members #packageVersion; #updateCheckInterval; #isDisabled;