|
|
|
|
|
|
|
|
...baseHooks.beforeRequest || [], |
|
|
...baseHooks.beforeRequest || [], |
|
|
isPublicAPI && beforeRequestPublicAuthorization, |
|
|
isPublicAPI && beforeRequestPublicAuthorization, |
|
|
!isPublicAPI && !isMarketplaceAPI && beforeRequestAuthorization, |
|
|
!isPublicAPI && !isMarketplaceAPI && beforeRequestAuthorization, |
|
|
].filter(Boolean), |
|
|
|
|
|
|
|
|
].filter((h): h is BeforeRequestHook => Boolean(h)), |
|
|
afterResponse: [ |
|
|
afterResponse: [ |
|
|
...baseHooks.afterResponse || [], |
|
|
...baseHooks.afterResponse || [], |
|
|
afterResponseErrorCode(otherOptions), |
|
|
afterResponseErrorCode(otherOptions), |