diff --git a/package.json b/package.json index d57d95a4..3212c996 100644 --- a/package.json +++ b/package.json @@ -43,12 +43,12 @@ "github-url-from-git": "^1.5.0", "hosted-git-info": "^7.0.1", "ignore-walk": "^6.0.4", - "import-local": "^3.1.0", + "import-local": "^3.2.0", "inquirer": "^9.2.15", "is-installed-globally": "^1.0.0", "is-interactive": "^2.0.0", "is-scoped": "^3.0.0", - "issue-regex": "^4.1.0", + "issue-regex": "^4.3.0", "listr": "^0.14.3", "listr-input": "^0.2.1", "log-symbols": "^6.0.0", @@ -58,7 +58,7 @@ "onetime": "^7.0.0", "open": "^10.0.4", "p-memoize": "^7.1.1", - "p-timeout": "^6.1.2", + "p-timeout": "^6.1.3", "path-exists": "^5.0.0", "pkg-dir": "^8.0.0", "read-package-up": "^11.0.0", @@ -67,21 +67,21 @@ "semver": "^7.6.0", "symbol-observable": "^4.0.0", "terminal-link": "^3.0.0", - "update-notifier": "^7.0.0" + "update-notifier": "^7.3.1" }, "devDependencies": { - "@sindresorhus/is": "^6.2.0", + "@sindresorhus/is": "^7.0.1", "@types/semver": "^7.5.8", - "ava": "^6.1.2", + "ava": "^6.2.0", "common-tags": "^1.8.2", - "esmock": "^2.6.4", + "esmock": "^2.6.9", "fs-extra": "^11.2.0", "map-obj": "^5.0.2", - "sinon": "^17.0.1", + "sinon": "^19.0.2", "strip-ansi": "^7.1.0", "tempy": "^3.1.0", - "write-package": "^7.0.1", - "xo": "^0.57.0" + "write-package": "^7.1.0", + "xo": "^0.59.3" }, "ava": { "files": [ diff --git a/source/version.js b/source/version.js index 064edfef..5b1fc999 100644 --- a/source/version.js +++ b/source/version.js @@ -30,10 +30,8 @@ const formatFirstDifference = (current, previous, diffColor) => { export default class Version { /** @type {SemVerInstance} */ #version; - /** @type {SemVerIncrement | undefined} */ #diff = undefined; - /** @type {string | undefined} */ #prereleasePrefix = undefined; diff --git a/test/_helpers/mock-inquirer.js b/test/_helpers/mock-inquirer.js index 1af5d6ce..2306237d 100644 --- a/test/_helpers/mock-inquirer.js +++ b/test/_helpers/mock-inquirer.js @@ -48,7 +48,7 @@ const mockPrompt = async ({t, inputAnswers, prompts}) => { continue; } - if (is.function_(prompt.when) && !prompt.when(answers)) { + if (is.function(prompt.when) && !prompt.when(answers)) { t.log(`skipping prompt '${name}'`); continue; } @@ -91,7 +91,7 @@ const mockPrompt = async ({t, inputAnswers, prompts}) => { if (is.asyncFunction(prompt.choices)) { choices = await prompt.choices(answers); - } else if (is.function_(prompt.choices)) { + } else if (is.function(prompt.choices)) { choices = prompt.choices(answers); } else { choices = prompt.choices;