Skip to content

Commit

Permalink
chore(deps-dev): bump typescript from 4.8.4 to 4.9.3 (#196)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump typescript from 4.8.4 to 4.9.3

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.8.4...v4.9.3)

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

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

* fix: fix TS errors

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Federico Grandi <fgrandi30@gmail.com>
  • Loading branch information
dependabot[bot] and EndBug authored Nov 21, 2022
1 parent c373d9f commit 37a4323
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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 @@ -45,6 +45,6 @@
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"prettier": "^2.7.1",
"typescript": "^4.8.4"
"typescript": "^4.9.3"
}
}
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async function checkCommits(
)
for (const commit of commits) {
const { message, sha } = getBasicInfo(commit)
const match = message.match(semverRegex()) || []
const match: string[] = message.match(semverRegex()) || []
if (match.includes(version)) {
if (await checkDiff(sha, version)) {
endGroup()
Expand Down Expand Up @@ -396,7 +396,7 @@ function parseVersionLine(str: string) {
}

function matchVersion(str: string): string {
return (str.match(semverRegex()) || [])[0]
return (str.match(semverRegex()) || ([] as string[]))[0]
}

function output(name: outputKey, value?: string | boolean) {
Expand Down

0 comments on commit 37a4323

Please sign in to comment.