change-string-case/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js

22 lines
493 B
JavaScript
Raw Normal View History

2022-11-04 00:55:07 +08:00
import { VERSION } from "./version";
import { endpointsToMethods } from "./endpoints-to-methods";
2023-10-26 04:27:07 +08:00
function restEndpointMethods(octokit) {
const api = endpointsToMethods(octokit);
return {
rest: api
};
2022-11-04 00:55:07 +08:00
}
restEndpointMethods.VERSION = VERSION;
2023-10-26 04:27:07 +08:00
function legacyRestEndpointMethods(octokit) {
const api = endpointsToMethods(octokit);
return {
...api,
rest: api
};
}
legacyRestEndpointMethods.VERSION = VERSION;
export {
legacyRestEndpointMethods,
restEndpointMethods
};