mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-11-18 03:49:48 +00:00
remove node_modules
This commit is contained in:
21
node_modules/@octokit/rest/plugins/authentication/validate.js
generated
vendored
21
node_modules/@octokit/rest/plugins/authentication/validate.js
generated
vendored
@@ -1,21 +0,0 @@
|
||||
module.exports = validateAuth
|
||||
|
||||
function validateAuth (auth) {
|
||||
if (typeof auth === 'string') {
|
||||
return
|
||||
}
|
||||
|
||||
if (typeof auth === 'function') {
|
||||
return
|
||||
}
|
||||
|
||||
if (auth.username && auth.password) {
|
||||
return
|
||||
}
|
||||
|
||||
if (auth.clientId && auth.clientSecret) {
|
||||
return
|
||||
}
|
||||
|
||||
throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`)
|
||||
}
|
||||
Reference in New Issue
Block a user