mirror of
https://github.com/actions/setup-node.git
synced 2025-04-23 17:56:28 +00:00
10 lines
273 B
JavaScript
10 lines
273 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;
|
|
}
|