Prepare 1.7.1 release

This commit is contained in:
Nick Cipollo
2020-05-26 14:49:57 -04:00
parent 6f236bd2ff
commit d66ba5159b
581 changed files with 114619 additions and 1 deletions

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)}`)
}