mirror of
https://github.com/actions/setup-python.git
synced 2026-10-23 06:53:07 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user