-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: export the shouldRetryRequest method #74
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feature! I am fine accepting the exported function, but would like to keep that separate from the other changes (which I honestly still don't understand). Could I trouble you to back those out?
It would also be rad to add a note about the method to the README!
Hi mate, I've removed the changes unrelated to |
🎉 This PR is included in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I wanted to make it available to use in my own
shouldRetry
function, rather than duplicate too much logic. So I added 'export' to the function declaration, ran the tests and it all seems to work!Also included the fix for #1 that @opyate / @JustinBeckwith wrote. Hope that's okay. I just copied it into my fork so I could use the fix and couldn't be bothered removing it for this PR 😅