@advanced-rest-client/oauth-authorization
Advanced tools
Comparing version 5.1.1 to 5.1.2
{ | ||
"name": "@advanced-rest-client/oauth-authorization", | ||
"description": "A set of elements that perform oauth authorization", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -35,3 +35,3 @@ /* eslint-disable class-methods-use-this */ | ||
async [authorizeHandler](e) { | ||
e.detail.result = new Promise(resolve => { //here | ||
e.detail.result = new Promise((resolve, reject) => { | ||
setTimeout(() => { | ||
@@ -42,3 +42,5 @@ if (e.defaultPrevented) { | ||
const config = { ...e.detail }; | ||
this.authorize(config).then(result => resolve(result)) | ||
this.authorize(config) | ||
.then(result => resolve(result)) | ||
.catch(error => reject(error)) | ||
}, 0); | ||
@@ -45,0 +47,0 @@ }) |
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
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
146781
3323
2