Bump prettier from 3.8.4 to 3.9.9 and package.json from 7.0.0 to 7.1.0 (#1363)

* Bump prettier from 3.8.4 to 3.9.9

Bumps [prettier](https://github.com/prettier/prettier) from 3.8.4 to 3.9.9.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.4...3.9.9)

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

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

* Bump version from 7.0.0 to 7.1.0 in package.json and package-lock.json

* Refactor isRateLimitError function for improved readability

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com>
Co-authored-by: priyagupta108 <priyagupta108@github.com>
This commit is contained in:
dependabot[bot]
2026-10-14 11:24:18 -05:00
committed by GitHub
parent 0e40890053
commit ff73b2463e
3 changed files with 9 additions and 11 deletions

View File

@@ -275,9 +275,7 @@ function sleep(ms: number): Promise<void> {
// HTTP 403/429 from http-client (`statusCode`) or tool-cache (`httpStatusCode`).
function isRateLimitError(err: unknown): boolean {
const e = err as
| {httpStatusCode?: number; statusCode?: number}
| null
| undefined;
{httpStatusCode?: number; statusCode?: number} | null | undefined;
const status = e?.httpStatusCode ?? e?.statusCode;
return status === 403 || status === 429;
}