1
0
mirror of https://gitea.com/actions/setup-node.git synced 2025-05-12 02:36:49 +08:00
2019-08-05 15:18:52 -04:00

11 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
}