-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parse json body to response object
`runAction` exposes a `Response` object in its callback. The old `request` library had a slightly different interface than the one for the `Response` object for `node-fetch`. Specifically, both have `body` defined by `request` had `body` as the parsed json body. Add the parsed json body to the `Response` object returned by runAction. `body` has no `setter` and only a `getter` so a new object needs to be created instead.
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 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