UNPKG

@octokit/plugin-rest-endpoint-methods

Version:

Octokit plugin adding one method for all of api.github.com REST API endpoints

23 lines (22 loc) 533 B
import { VERSION } from "./version.js"; import { endpointsToMethods } from "./endpoints-to-methods.js"; function restEndpointMethods(octokit) { const api = endpointsToMethods(octokit); return { rest: api }; } restEndpointMethods.VERSION = VERSION; function legacyRestEndpointMethods(octokit) { const api = endpointsToMethods(octokit); return { ...api, rest: api }; } legacyRestEndpointMethods.VERSION = VERSION; export { legacyRestEndpointMethods, restEndpointMethods }; //# sourceMappingURL=index.js.map