setup-dotnet/node_modules/@octokit/rest/lib/factory.js
2019-10-03 16:35:25 -07: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
}