-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Add custom request API #174
Add custom request API #174
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.
1 item to change. Also the tests are failing, due to object spreading.. You can use Object.assign
instead if that helps.
@perry-mitchell sorry but I don't get where have I used object spreading? Can you please point to it. I'll then fix asap so it can be merged. I looked at the logs and I don't think I have changed any of the files mentioned in the logs. |
@ubarsaiyan You’re right, sorry, it seems that it’s a dependency - hoek. No idea why it’s failing now but I can’t merge this until the tests pass. |
@perry-mitchell So the last fully passing tests were 3 months ago. 2 months ago, this PR branch and your platform-upgrade branch both started failing on Node 6 and WEB. It might be worth forcing tests to run against master right now, to make sure it's still fully passing. Perhaps one of your dependencies is no longer compatible with Node 6, so you perhaps need to add a restriction on the dependency version. That being said, while I'm sure some people use the browser support, how important is it to continue servicing Node 6? Node 6 stopped being supported in May 2019. I'd suggest you at least drop Node 6. |
@ubarsaiyan Thanks for this branch. Testing this, I would expect customRequest to behave the same as the other requests, in that the base URL should be prepended to a partial URL path. Otherwise, I don't see what benefit is gained from using customRequest on the client instance with the same auth/credentials but the potential to post to a wholly different domain. |
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.
@ubarsaiyan something like this might work
@intel352 Thank you for your suggestions. I have made the required changes. cc: @perry-mitchell @ggazzo |
Great, so all that's left is to solve the failing tests.. Node 6:
And web:
Looking into this on master now.. |
@perry-mitchell yes I think this is not specific to my PR. Thanks! |
Node issue related to: jeffbski/wait-on#44 |
@ubarsaiyan Master should be fixed.. could you please merge? |
@perry-mitchell done |
I won’t be home for a bit, but I’ll most likely release later today. Thanks! |
Released under 2.10.0! Thanks |
Closes #169
This PR also includes #168 by @yoh1496 as it is instrumental in sending custom requests that contain a body.
I have included one test that sends a stat request and passes the stat checks.