Skip to content

Commit

Permalink
chore(deps-dev): bump @types/async-retry from 1.4.8 to 1.4.9 (#5055)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump @types/async-retry from 1.4.8 to 1.4.9

Bumps [@types/async-retry](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/async-retry) from 1.4.8 to 1.4.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/async-retry)

---
updated-dependencies:
- dependency-name: "@types/async-retry"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix type

* fix types

* error not errorwithcause

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marika Marszalkowski <[email protected]>
  • Loading branch information
dependabot[bot] and marikaner authored Oct 4, 2024
1 parent 39994b6 commit a0ce5aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import {
propertyExists,
removeTrailingSlashes
} from '@sap-cloud-sdk/util';
// eslint-disable-next-line import/named
import axios from 'axios';
import { executeWithMiddleware } from '@sap-cloud-sdk/resilience/internal';
import { resilience } from '@sap-cloud-sdk/resilience';
import * as asyncRetry from 'async-retry';
import asyncRetry from 'async-retry';
import { decodeJwt, getTenantId, wrapJwtInHeader } from '../jwt';
import { urlAndAgent } from '../../http-agent';
import { buildAuthorizationHeaders } from '../authorization-header';
Expand Down Expand Up @@ -313,7 +312,7 @@ function retryDestination(
> {
return options => arg => {
let retryCount = 1;
return asyncRetry.default(
return asyncRetry(
async bail => {
try {
const destination = await options.fn(arg);
Expand All @@ -340,7 +339,7 @@ function retryDestination(
},
{
retries: 3,
onRetry: err =>
onRetry: (err: Error) =>
logger.warn(
`Failed to retrieve destination ${destinationName} - doing a retry. Original Error ${err.message}`
)
Expand Down
2 changes: 1 addition & 1 deletion packages/resilience/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"opossum": "^8.1.4"
},
"devDependencies": {
"@types/async-retry": "^1.4.8",
"@types/async-retry": "^1.4.9",
"@types/opossum": "^8.1.8",
"nock": "^14.0.0-beta.6",
"typescript": "~5.6.2"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1635,10 +1635,10 @@
resolved "https://registry.npmjs.org/@tsd/typescript/-/typescript-5.4.5.tgz#a7c11d3a97ddfa201f831f4e4270a169a87f7655"
integrity sha512-saiCxzHRhUrRxQV2JhH580aQUZiKQUXI38FcAcikcfOomAil4G4lxT0RfrrKywoAYP/rqAdYXYmNRLppcd+hQQ==

"@types/async-retry@^1.4.8":
version "1.4.8"
resolved "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.8.tgz#eb32df13aceb9ba1a8a80e7fe518ff4e3fe46bb3"
integrity sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA==
"@types/async-retry@^1.4.9":
version "1.4.9"
resolved "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.9.tgz#47d118e835864d633b5208a78a6907b1b44e50bc"
integrity sha512-s1ciZQJzRh3708X/m3vPExr5KJlzlZJvXsKpbtE2luqNcbROr64qU+3KpJsYHqWMeaxI839OvXf9PrUSw1Xtyg==
dependencies:
"@types/retry" "*"

Expand Down

0 comments on commit a0ce5aa

Please sign in to comment.