mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2024-11-24 02:23:51 +08:00
22 lines
493 B
JavaScript
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
|
|
};
|