3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00
setup-node/node_modules/@octokit/rest/lib/factory.js
Danny McCormick 5273d0df9c Add auth
2019-08-06 18:29:44 -04:00

10 lines
268 B
JavaScript

module.exports = factory
const Octokit = require('./constructor')
const registerPlugin = require('./register-plugin')
function factory (plugins) {
const Api = Octokit.bind(null, plugins || [])
Api.plugin = registerPlugin.bind(null, plugins || [])
return Api
}