twitch-auth
Advanced tools
Comparing version 4.3.0-pre.4 to 4.3.0-pre.5
@@ -38,3 +38,3 @@ "use strict"; | ||
if (scopes && scopes.length > 0) { | ||
throw new Error("Scope " + (typeof scopes === 'string' ? scopes : scopes.join(',')) + " requested but the client credentials flow does not support scopes"); | ||
throw new Error("Scope " + (typeof scopes === 'string' ? scopes : scopes.join(', ')) + " requested but the client credentials flow does not support scopes"); | ||
} | ||
@@ -41,0 +41,0 @@ if (!this._token || this._token.isExpired) { |
@@ -72,3 +72,3 @@ "use strict"; | ||
if (scopes.some(function (scope) { return !_this._scopes.includes(scope); })) { | ||
throw new Error("This token does not have the requested scopes (" + scopes.join(', ') + ") and can not be upgraded"); | ||
throw new Error("This token does not have the requested scopes (" + scopes.join(', ') + ") and can not be upgraded.\nIf you need dynamically upgrading scopes, please implement the AuthProvider interface accordingly:\n\n\thttps://d-fischer.github.io/twitch-auth/reference/interfaces/AuthProvider.html"); | ||
} | ||
@@ -75,0 +75,0 @@ _a.label = 3; |
{ | ||
"name": "twitch-auth", | ||
"version": "4.3.0-pre.4", | ||
"version": "4.3.0-pre.5", | ||
"description": "Authenticate with Twitch and stop caring about refreshing tokens.", | ||
@@ -33,5 +33,5 @@ "keywords": [ | ||
"@d-fischer/deprecate": "^2.0.2", | ||
"@d-fischer/shared-utils": "^2.4.0", | ||
"tslib": "^2.0.0", | ||
"twitch-api-call": "^4.3.0-pre.4" | ||
"@d-fischer/shared-utils": "^2.4.1", | ||
"tslib": "^2.0.3", | ||
"twitch-api-call": "^4.3.0-pre.5" | ||
}, | ||
@@ -48,3 +48,3 @@ "files": [ | ||
}, | ||
"gitHead": "d68ad1df12a6816c35ed903de7a8abe9eba15d8e" | ||
"gitHead": "c2e3adc41a1e6294f07609065d290082d08d205d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79067
1944
Updatedtslib@^2.0.3
Updatedtwitch-api-call@^4.3.0-pre.5