mirror of
https://github.com/actions/setup-node.git
synced 2026-05-01 09:50:40 +03:00
new toolkit and scoped registries
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user