1 | import { Octokit as Core } from "@octokit/core";
|
2 | import { requestLog } from "@octokit/plugin-request-log";
|
3 | import { paginateRest } from "@octokit/plugin-paginate-rest";
|
4 | import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
5 | import { VERSION } from "./version";
|
6 | const Octokit = Core.plugin(
|
7 | requestLog,
|
8 | legacyRestEndpointMethods,
|
9 | paginateRest
|
10 | ).defaults({
|
11 | userAgent: `octokit-rest.js/${VERSION}`
|
12 | });
|
13 | export {
|
14 | Octokit
|
15 | };
|