Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: React Native support with fetchOption and callOptions (#653)
* experimental changes * added callOptions, and changed assignment logic of this._fetchOptions * Typo error. In case options.source is correctly implemented I've still included the logic: - `this._fetchOptions = options.source._fetchOptions || options.fetchOptions;` - `this._callOptions = options.source._callOptions || options.callOptions;` * When source isn't provided in constructing the HttpAgent, this._fetchOptions and this._callOptions will automatically get fromm provided options. * experimental changes * added callOptions, and changed assignment logic of this._fetchOptions * Typo error. In case options.source is correctly implemented I've still included the logic: - `this._fetchOptions = options.source._fetchOptions || options.fetchOptions;` - `this._callOptions = options.source._callOptions || options.callOptions;` * When source isn't provided in constructing the HttpAgent, this._fetchOptions and this._callOptions will automatically get fromm provided options. * Migration Change from port 8000 to 4943 for new DFX 0.12.0 -made changes mainly inside tests and yml setup * Node 12 support deprecated, along with recent latest npm version 9.1.1 does not support node 12. * Unit test added for agent/http.test.ts * Test both call and query behavior Co-authored-by: Kyle Peacock <kylpeacock@gmail.com> Co-authored-by: rvanasa <ryan.vandersmith@dfinity.org>
- Loading branch information
1 parent
7acaf70
commit 6e5b2c6
Showing
8 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ jobs: | |
spec: | ||
- '0.16.1' | ||
node: | ||
- 12 | ||
- 14 | ||
- 16 | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"/api": { | ||
"target": "http://localhost:8000/", | ||
"target": "http://localhost:4943/", | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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