change-string-case/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
Alex Szczuczko d0603cd0a7 npm install
2023-10-25 14:27:07 -06:00

22 lines
493 B
JavaScript

import { VERSION } from "./version";
import { endpointsToMethods } from "./endpoints-to-methods";
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
};