[JavaScript] Make JavaScript client work in both Node.js and browser#1922
Merged
wing328 merged 7 commits intoswagger-api:masterfrom Jan 20, 2016
xhh:javascript-nodejs
Merged
[JavaScript] Make JavaScript client work in both Node.js and browser#1922wing328 merged 7 commits intoswagger-api:masterfrom xhh:javascript-nodejs
wing328 merged 7 commits intoswagger-api:masterfrom
xhh:javascript-nodejs
Conversation
* Replace jQuery with SuperAgent which works in both Node.js and browser * Use UMD pattern (returnExports.js) to make the module exporting compatible with all major systems: AMD, Node.js (CommonJS) and browser * Implement support of header and form parameters. Closes #1736 * Move HTTP requesting code to `ApiClient` and allow customizing options in it, e.g. "basePath" * Update unit tests accordingly and add some tests for `ApiClient`
wing328
added a commit
that referenced
this pull request
Jan 20, 2016
[JavaScript] Make JavaScript client work in both Node.js and browser
Contributor
|
Upgrade note from 2.1.5 to 2.1.6 Starting from 2.1.6, JS API client will use superagent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with all major systems: AMD, Node.js (CommonJS) and browser
ApiClientand allow customizing optionsin it, e.g. "basePath"
ApiClientAlso fixed occasional test failures for Java and Ruby clients.