node_modules

This commit is contained in:
softprops committed 2019-09-18 13:19:04 +09:00
1 parent 2984051a42
commit b28d8151ad
445 files changed
+83959 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
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)}`)
}