smartcar / node-sdk

Smartcar Node.js SDK
MIT License
49 stars 14 forks source link

feat(smartcar-error): retryAfter header #160

Closed nbry closed 1 year ago

nbry commented 1 year ago

This PR adds a check in SmartcarError. If the error response has the header retry-after, the int value will be attached as a field named retryAfter to the SmartcarError instance.

Asama: https://app.asana.com/0/0/1204283924950787

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (72e06d7) 99.59% compared to head (7dc8078) 99.59%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #160 +/- ## ======================================= Coverage 99.59% 99.59% ======================================= Files 6 6 Lines 244 246 +2 ======================================= + Hits 243 245 +2 Misses 1 1 ``` | [Impacted Files](https://codecov.io/gh/smartcar/node-sdk/pull/160?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=smartcar) | Coverage Δ | | |---|---|---| | [lib/smartcar-error.js](https://codecov.io/gh/smartcar/node-sdk/pull/160?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=smartcar#diff-bGliL3NtYXJ0Y2FyLWVycm9yLmpz) | `96.15% <100.00%> (+0.32%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=smartcar). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=smartcar)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

smartcar-ci commented 1 year ago

:tada: This PR is included in version 9.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: