mirror of
https://github.com/actions/setup-node.git
synced 2025-12-14 08:37:00 +08:00
.
This commit is contained in:
14
node_modules/@octokit/rest/lib/factory.js
generated
vendored
14
node_modules/@octokit/rest/lib/factory.js
generated
vendored
@@ -1,10 +1,10 @@
|
||||
module.exports = factory
|
||||
module.exports = factory;
|
||||
|
||||
const Octokit = require('./constructor')
|
||||
const registerPlugin = require('./register-plugin')
|
||||
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
|
||||
function factory(plugins) {
|
||||
const Api = Octokit.bind(null, plugins || []);
|
||||
Api.plugin = registerPlugin.bind(null, plugins || []);
|
||||
return Api;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user