From 80e24a0caaab7a576ae6b810f0dc7a115c1d2d9b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Mar 2021 15:09:17 +0000 Subject: [PATCH 1/2] Bump @types/yargs from 15.0.10 to 16.0.0 Bumps [@types/yargs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yargs) from 15.0.10 to 16.0.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yargs) Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1fb158af..ac5575bb 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "devDependencies": { "@types/jest": "^26.0.0", "@types/node": "^14.0.5", - "@types/yargs": "^15.0.0", + "@types/yargs": "^16.0.0", "@typescript-eslint/eslint-plugin": "^4.0.0", "@typescript-eslint/parser": "^3.2.0", "codecov": "^3.6.1", diff --git a/yarn.lock b/yarn.lock index e46f4367..cd9997c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -856,6 +856,13 @@ dependencies: "@types/yargs-parser" "*" +"@types/yargs@^16.0.0": + version "16.0.0" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.0.tgz#0e033b23452da5d61b6c44747612cb80ac528751" + integrity sha512-2nN6AGeMwe8+O6nO9ytQfbMQOJy65oi1yK2y/9oReR08DaXSGtMsrLyCM1ooKqfICpCx4oITaR4LkOmdzz41Ww== + dependencies: + "@types/yargs-parser" "*" + "@typescript-eslint/eslint-plugin@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.0.0.tgz#99349a501447fed91de18346705c0c65cf603bee" From 011dd946ff9cbee73b1e660f548140d404e042e6 Mon Sep 17 00:00:00 2001 From: Nikolay Blagoev Date: Wed, 17 Mar 2021 20:19:31 +0200 Subject: [PATCH 2/2] Cast arg to string to avoid type error due to the latest yargs type definitions --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 031d9d64..7313e333 100644 --- a/src/main.ts +++ b/src/main.ts @@ -23,7 +23,7 @@ Logger.verbose = argv.verbose === true || false const spanRegex = /(.+)(?:[\.]{3})(.+)/ const repoRegex = /([^\/]+)\/([^\/]+)/ -const tags = spanRegex.exec(argv._[0]) || [] +const tags = spanRegex.exec(argv._[0] as string) || [] const repoLink = repoRegex.exec(argv.repo) || [] const [, fromTag, toTag] = tags