Vue Storefront is now Alokai!
Learn More ri:search-line Search material-symbols:keyboard-command-key K ri:github-fill ri:menu-2-fill @vsf-enterprise/unified-sdk
@vsf-enterprise/unified-sdk adc5bf9: Added new option - errorHandler - that allows to define custom error handling for all reqests. This option also allows to use createRefreshTokenAndRetryHandler() from @vsf-enterprise/sapcc-sdk to refreshing expired user token. 1f52ffa: Update dependencies 5aa28292: Infer sdk method type helpers Added utils types for error handling:isCausedBySdkError
isSpecificSdkError
isSdkRequestError
isSdkUnauthorizedError
Added extra configration option - headers - that takes function which is resolved on every request and that result is spread to the request's headers sdk now tries to parse all responses as JSON and fallbacks to text in case of unsuccessful attempt Export SDKError
, fix response statusCode
Improved error messages - now Unifed SDK module, uses the SDKError class that contains a message, statusCode & cause of the error Fix problem with handling empty responses from Middleware in Unifed SDK module The package has been rewritten into an SDK module, compatible with other integrations. Update packages for SI demo preparation Update packages for SI demo preparation Update packages in order to prepare unified storefront demo Update packages for demo purposes