diff --git a/package.json b/package.json index a714bc8..2be405f 100644 --- a/package.json +++ b/package.json @@ -42,21 +42,21 @@ "configstore": "^6.0.0", "import-lazy": "^4.0.0", "is-in-ci": "^0.1.0", - "is-installed-globally": "^0.4.0", + "is-installed-globally": "^1.0.0", "is-npm": "^6.0.0", - "latest-version": "^7.0.0", + "latest-version": "^9.0.0", "pupa": "^3.1.0", - "semver": "^7.5.4", + "semver": "^7.6.2", "semver-diff": "^4.0.0", "xdg-basedir": "^5.1.0" }, "devDependencies": { "ava": "^5.3.1", "clear-module": "^4.1.2", - "esmock": "^2.5.8", + "esmock": "^2.6.6", "fixture-stdout": "^0.2.1", "strip-ansi": "^7.1.0", - "xo": "^0.56.0" + "xo": "^0.58.0" }, "ava": { "timeout": "20s", diff --git a/update-notifier.js b/update-notifier.js index 0a9f539..619754a 100644 --- a/update-notifier.js +++ b/update-notifier.js @@ -35,8 +35,8 @@ export default class UpdateNotifier { constructor(options = {}) { this.#options = options; - options.pkg = options.pkg ?? {}; - options.distTag = options.distTag ?? 'latest'; + options.pkg ??= {}; + options.distTag ??= 'latest'; // Reduce pkg to the essential keys. with fallback to deprecated options // TODO: Remove deprecated options at some point far into the future