Skip to content

Commit

Permalink
Bump typescript from 4.3.5 to 4.4.2 (#333)
Browse files Browse the repository at this point in the history
* Bump typescript from 4.3.5 to 4.4.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix compile errors

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ichinose Shogo <shogo82148@gmail.com>
  • Loading branch information
dependabot[bot] and shogo82148 authored Aug 28, 2021
1 parent bcd2e1c commit 52b89f5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"js-yaml": "^4.1.0",
"prettier": "^2.3.2",
"ts-jest": "^27.0.5",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
}
}
6 changes: 5 additions & 1 deletion src/cleanup-mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ async function run(): Promise<void> {
await cleanup.shutdownMySQL(state)
}
} catch (error) {
core.warning(`failed to clean up: ${error.message}`)
if (error instanceof Error) {
core.warning(`failed to clean up: ${error.message}`)
} else {
core.warning(`failed to clean up: ${error}`)
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ async function acquireMySQL(
core.info(`downloading from ${downloadUrl}`)
downloadPath = await tc.downloadTool(downloadUrl)
} catch (error) {
core.info(error)
if (error instanceof Error) {
core.info(error.message)
} else {
core.info(`${error}`)
}

throw `Failed to download version ${version}: ${error}`
}
Expand Down
6 changes: 5 additions & 1 deletion src/setup-mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ async function run(): Promise<void> {
starter.saveState(state)
}
} catch (error) {
core.setFailed(error.message)
if (error instanceof Error) {
core.setFailed(error.message)
} else {
core.setFailed(`${error}`)
}
}
}

Expand Down

0 comments on commit 52b89f5

Please sign in to comment.