mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 18:20:08 +08:00
23 lines
810 B
JavaScript
23 lines
810 B
JavaScript
import { Octokit as Octokit$1 } from '@octokit/core';
|
|
import { requestLog } from '@octokit/plugin-request-log';
|
|
import { paginateRest } from '@octokit/plugin-paginate-rest';
|
|
import { restEndpointMethods } from '@octokit/plugin-rest-endpoint-methods';
|
|
|
|
const VERSION = "17.1.0";
|
|
|
|
const Octokit = Octokit$1.plugin([
|
|
// Workaround to prevent TypeScript from widening the inferred return type of
|
|
// plugins passed to Octokit, which would result in type information (e.g.
|
|
// methods provided by plugins) not being added to Octokit instances.
|
|
//
|
|
// See https://github.com/octokit/core.js/issues/51#issuecomment-596846088
|
|
requestLog,
|
|
restEndpointMethods,
|
|
paginateRest
|
|
]).defaults({
|
|
userAgent: `octokit-rest.js/${VERSION}`
|
|
});
|
|
|
|
export { Octokit };
|
|
//# sourceMappingURL=index.js.map
|