mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-11-24 17:11:04 -05:00
10 lines
268 B
JavaScript
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
|
|
}
|