Repository navigation
Release 5.10.0 - Security hardening (#485)
This release brings security hardening of the HTTP layer, with both HTTP
clients. Some responses that were handled as a success now return an SDK
error with their status code: check http_code of the error, or
body.status of an AuthenticationError. The report file download keeps
working. With axios, SDK requests use axios's built-in http/https
transport, whatever the application's transport default. Connection
errors keep their type and add a cause with the client's error name,
message and code.
- Security hardening of the HTTP client and access token handling.
- Errors of the HTTP layer are SDK error types; connection errors carry a
cause. - Type declarations:
getReportFilereturnsPromise<Buffer>, and
ApiErrordeclarescause.