Skip to content
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 extra params support everywhere #74

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

karlvr
Copy link

@karlvr karlvr commented Apr 3, 2019

Addresses #39.

This PR adds the option to adding extra query params to every method without damaging backwards compatibility, by adding an optional extraParams argument to every method call (except those that already have one).

The tests have not been modified, and all pass. I will add tests for the new style too.

@karlvr
Copy link
Author

karlvr commented Apr 3, 2019

The CI failure looks like it might be a Restler failure with Node 4.

It's on this line:

parsers.xml.options = (typeof options.xml2js == 'undefined') ? {} : options.xml2js;

as parsers.xml is undefined due to a failure to initialise it at the beginning of the tests:

ReferenceError: Invalid left-hand side in assignment

I don't know why it happens on that one test though ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant