From ae80bc00455ebbe97251b788e8a5db028815acb5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 03:04:27 +0000 Subject: [PATCH 1/2] Bump typescript from 4.3.5 to 4.4.3 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 744fc657..1ef419d7 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,6 @@ "@vercel/ncc": "0.31.1", "husky": "7.0.2", "prettier": "2.4.0", - "typescript": "4.3.5" + "typescript": "4.4.3" } } diff --git a/yarn.lock b/yarn.lock index 15628b52..dd36b859 100644 --- a/yarn.lock +++ b/yarn.lock @@ -158,10 +158,10 @@ tunnel@0.0.6: resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== -typescript@4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@4.4.3: + version "4.4.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324" + integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA== universal-user-agent@^6.0.0: version "6.0.0" From 5616cb7a2eaa92455a2c779fde9cc2fd3a5d912d Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 16 Sep 2021 16:21:40 -0400 Subject: [PATCH 2/2] Fix catch --- dist/index.js | 2 +- src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3f613e47..0779230a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6168,7 +6168,7 @@ async function main() { } main() .then(() => _actions_core__WEBPACK_IMPORTED_MODULE_0__.info('Cancel Complete.')) - .catch(e => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(e.message)); + .catch((e) => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(e.message)); })(); diff --git a/src/index.ts b/src/index.ts index cfbb846e..dac9aaa5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,7 @@ async function main() { }); console.log(`Cancel run ${id} responded with status ${res.status}`); } - } catch (e) { + } catch (e: any) { const msg = e.message || e; console.log(`Error while canceling workflow_id ${workflow_id}: ${msg}`); } @@ -111,4 +111,4 @@ async function main() { main() .then(() => core.info('Cancel Complete.')) - .catch(e => core.setFailed(e.message)); + .catch((e: any) => core.setFailed(e.message));