endpoint.js icon indicating copy to clipboard operation
endpoint.js copied to clipboard

rename `body` to `data` in request options

Open gr2m opened this issue 4 years ago • 0 comments

The endpoint() method currently returns body as the key holding the request body. We should rename it to data to align with data parameter in @octokit/request: https://github.com/octokit/request.js/#the-data-parameter--set-request-body-directly

We can start by setting both .data and .body and then logging a deprecation message when .body is accessed.

gr2m avatar Sep 16 '21 07:09 gr2m