github-pages-deploy-action/node_modules/@octokit/rest/lib/factory.js
James Ives a5a215d318 Revert
2020-06-06 12:27:02 -04:00

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