wishthis/node_modules/@octokit/rest/lib/factory.js

11 lines
273 B
JavaScript
Raw Normal View History

2022-01-21 08:28:41 +00:00
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;
}