From 5e163f921e509884330516f2abcab8b9432c3d3a Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Fri, 12 Jul 2024 09:35:49 +0000 Subject: [PATCH 1/2] Update all dependencies --- package.json | 12 ++++++------ update-notifier.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index a714bc8..f865f75 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", + "ava": "^6.1.3", "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 From dad8beac208d623451c99bd59c8e940e36c2ddaa Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Fri, 12 Jul 2024 09:41:28 +0000 Subject: [PATCH 2/2] Undo AVA update --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f865f75..2be405f 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "xdg-basedir": "^5.1.0" }, "devDependencies": { - "ava": "^6.1.3", + "ava": "^5.3.1", "clear-module": "^4.1.2", "esmock": "^2.6.6", "fixture-stdout": "^0.2.1",