Skip to content

Commit

Permalink
fix: remove node request objects from detailed response (#25)
Browse files Browse the repository at this point in the history
fix: remove node request objects from detailed response
  • Loading branch information
germanattanasio committed May 24, 2019
2 parents 2a525b0 + 9ac5673 commit 192d8cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/requestwrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ export function sendRequest(parameters, _callback) {

axios(extend(true, {}, options, requestParams))
.then(res => {
delete res.config;
delete res.request;
// the other sdks use the interface `result` for the body
_callback(null, res.data, res);
})
Expand Down

0 comments on commit 192d8cf

Please sign in to comment.