forked from mirrors/action-gh-release
vendor node_modules for release
This commit is contained in:
parent
6ecc92f5ad
commit
83407ce885
446 changed files with 83961 additions and 2 deletions
21
node_modules/@octokit/rest/plugins/authentication/index.js
generated
vendored
Normal file
21
node_modules/@octokit/rest/plugins/authentication/index.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
module.exports = authenticationPlugin
|
||||
|
||||
const beforeRequest = require('./before-request')
|
||||
const requestError = require('./request-error')
|
||||
const validate = require('./validate')
|
||||
|
||||
function authenticationPlugin (octokit, options) {
|
||||
if (!options.auth) {
|
||||
return
|
||||
}
|
||||
|
||||
validate(options.auth)
|
||||
|
||||
const state = {
|
||||
octokit,
|
||||
auth: options.auth
|
||||
}
|
||||
|
||||
octokit.hook.before('request', beforeRequest.bind(null, state))
|
||||
octokit.hook.error('request', requestError.bind(null, state))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue