File tree 3 files changed +8
-9
lines changed
connectivity/src/scp-cf/destination
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ import {
4
4
propertyExists ,
5
5
removeTrailingSlashes
6
6
} from '@sap-cloud-sdk/util' ;
7
- // eslint-disable-next-line import/named
8
7
import axios from 'axios' ;
9
8
import { executeWithMiddleware } from '@sap-cloud-sdk/resilience/internal' ;
10
9
import { resilience } from '@sap-cloud-sdk/resilience' ;
11
- import * as asyncRetry from 'async-retry' ;
10
+ import asyncRetry from 'async-retry' ;
12
11
import { decodeJwt , getTenantId , wrapJwtInHeader } from '../jwt' ;
13
12
import { urlAndAgent } from '../../http-agent' ;
14
13
import { buildAuthorizationHeaders } from '../authorization-header' ;
@@ -313,7 +312,7 @@ function retryDestination(
313
312
> {
314
313
return options => arg => {
315
314
let retryCount = 1 ;
316
- return asyncRetry . default (
315
+ return asyncRetry (
317
316
async bail => {
318
317
try {
319
318
const destination = await options . fn ( arg ) ;
@@ -340,7 +339,7 @@ function retryDestination(
340
339
} ,
341
340
{
342
341
retries : 3 ,
343
- onRetry : err =>
342
+ onRetry : ( err : Error ) =>
344
343
logger . warn (
345
344
`Failed to retrieve destination ${ destinationName } - doing a retry. Original Error ${ err . message } `
346
345
)
Original file line number Diff line number Diff line change 44
44
"opossum" : " ^8.1.4"
45
45
},
46
46
"devDependencies" : {
47
- "@types/async-retry" : " ^1.4.8 " ,
47
+ "@types/async-retry" : " ^1.4.9 " ,
48
48
"@types/opossum" : " ^8.1.8" ,
49
49
"nock" : " ^14.0.0-beta.6" ,
50
50
"typescript" : " ~5.6.2"
Original file line number Diff line number Diff line change 1635
1635
resolved "https://registry.npmjs.org/@tsd/typescript/-/typescript-5.4.5.tgz#a7c11d3a97ddfa201f831f4e4270a169a87f7655"
1636
1636
integrity sha512-saiCxzHRhUrRxQV2JhH580aQUZiKQUXI38FcAcikcfOomAil4G4lxT0RfrrKywoAYP/rqAdYXYmNRLppcd+hQQ==
1637
1637
1638
- " @types/async-retry@^1.4.8 " :
1639
- version "1.4.8 "
1640
- resolved "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.8 .tgz#eb32df13aceb9ba1a8a80e7fe518ff4e3fe46bb3 "
1641
- integrity sha512-Qup/B5PWLe86yI5I3av6ePGaeQrIHNKCwbsQotD6aHQ6YkHsMUxVZkZsmx/Ry3VZQ6uysHwTjQ7666+k6UjVJA ==
1638
+ " @types/async-retry@^1.4.9 " :
1639
+ version "1.4.9 "
1640
+ resolved "https://registry.npmjs.org/@types/async-retry/-/async-retry-1.4.9 .tgz#47d118e835864d633b5208a78a6907b1b44e50bc "
1641
+ integrity sha512-s1ciZQJzRh3708X/m3vPExr5KJlzlZJvXsKpbtE2luqNcbROr64qU+3KpJsYHqWMeaxI839OvXf9PrUSw1Xtyg ==
1642
1642
dependencies :
1643
1643
" @types/retry" " *"
1644
1644
You can’t perform that action at this time.
0 commit comments