@advanced-rest-client/oauth-authorization
Advanced tools
Comparing version 5.1.0 to 5.1.1
{ | ||
"name": "@advanced-rest-client/oauth-authorization", | ||
"description": "A set of elements that perform oauth authorization", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -34,10 +34,12 @@ /* eslint-disable class-methods-use-this */ | ||
*/ | ||
[authorizeHandler](e) { | ||
setTimeout(() => { | ||
if (e.defaultPrevented) { | ||
return; | ||
} | ||
const config = { ...e.detail }; | ||
e.detail.result = this.authorize(config); | ||
}, 0); | ||
async [authorizeHandler](e) { | ||
e.detail.result = new Promise(resolve => { //here | ||
setTimeout(() => { | ||
if (e.defaultPrevented) { | ||
return resolve(); | ||
} | ||
const config = { ...e.detail }; | ||
this.authorize(config).then(result => resolve(result)) | ||
}, 0); | ||
}) | ||
} | ||
@@ -55,4 +57,4 @@ | ||
auth.checkConfig(); | ||
return auth.authorize(); | ||
return await auth.authorize(); | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
146726
3321