Added node module dependencies into version control
Test / test (push) Failing after 9s

This commit is contained in:
2023-07-27 20:18:19 +02:00
parent 4af7ecf55f
commit 9710f9c8a2
366 changed files with 95223 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import ENDPOINTS from "./generated/endpoints";
import { VERSION } from "./version";
import { endpointsToMethods } from "./endpoints-to-methods";
export function restEndpointMethods(octokit) {
const api = endpointsToMethods(octokit, ENDPOINTS);
return {
rest: api,
};
}
restEndpointMethods.VERSION = VERSION;
export function legacyRestEndpointMethods(octokit) {
const api = endpointsToMethods(octokit, ENDPOINTS);
return {
...api,
rest: api,
};
}
legacyRestEndpointMethods.VERSION = VERSION;