Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@advanced-rest-client/oauth-authorization

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@advanced-rest-client/oauth-authorization - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

package.json
{
"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();
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc