-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allowing complete control of the axios instance at the request level (so we can use any axios feature) #62
Conversation
Retries 3 times by default, and only on network errors and 5xx errors on indempotent requests (GET, HEAD, OPTIONS, PUT, or DELETE).
Update comments
Also added lodash which will be necessary for the next commit (using lodash merge). This won't add overhead since it looks like lodash is already in use indirectly by a dependency (I see it in the package-lock.json file)
this allows users to control axios arguments at the action/request level (e.g. specify timeouts)
…into add-axios-arg
To be honest I'd rather just release a major version with the breaking change than have all this cruft in the code to deal with backwards compatibility. But I'll defer to the others opinions on that. |
@odensc I agree that it'll look cleaner without the backwards compatibility, but I'd wait on a few other potentially breaking changes before releasing the next major update: rewriting b2.js with an ES6 class and (if possible) removing of the .authorize() call and managing that automatically/internally as requested in #56 |
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.
Great to see an update to the README 👍
A few updates, no breaking changes:
axios
andaxiosOverride
config arguments that allow complete control of the axios instance at the request level so we can use any axios feature (including the timeouts in timeout arg for file actions #49 )function(b2, args)
while retaining backwards compatibility - necessary for addingaxios
andaxiosOverride
args.