mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-12-16 06:57:01 +00:00
Update packages, change to node16
This commit is contained in:
18
node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
generated
vendored
Normal file
18
node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
generated
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user