@particle-network/auth
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -149,3 +149,4 @@ "use strict"; | ||
}; | ||
Auth.prototype.logout = function () { | ||
Auth.prototype.logout = function (hideLoading) { | ||
if (hideLoading === void 0) { hideLoading = false; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -156,14 +157,16 @@ var iframe, container; | ||
iframe = this.openUrl(this.buildUrl("/logout")); | ||
container = document.getElementById("particle-network-container"); | ||
if (container) { | ||
container.style.display = "none"; | ||
} | ||
try { | ||
if (iframe && "remove" in iframe) { | ||
iframe.style.display = "none"; | ||
if (hideLoading) { | ||
container = document.getElementById("particle-network-container"); | ||
if (container) { | ||
container.style.display = "none"; | ||
} | ||
try { | ||
if (iframe && "remove" in iframe) { | ||
iframe.style.display = "none"; | ||
} | ||
} | ||
catch (e) { | ||
//ignore | ||
} | ||
} | ||
catch (e) { | ||
//ignore | ||
} | ||
return [2 /*return*/, new Promise(function (resolve, reject) { | ||
@@ -170,0 +173,0 @@ _this.setAuthResult({ |
@@ -24,3 +24,3 @@ /// <reference types="node" /> | ||
}): Promise<UserInfo>; | ||
logout(): Promise<void>; | ||
logout(hideLoading?: boolean): Promise<void>; | ||
sign(method: string, message: Base58String | PrefixedHexString): Promise<string>; | ||
@@ -27,0 +27,0 @@ signAllTransactions(messages: Base58String[]): Promise<string[]>; |
{ | ||
"name": "@particle-network/auth", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"files": [ | ||
@@ -15,4 +15,4 @@ "lib", | ||
"dependencies": { | ||
"@particle-network/common": "^0.1.6", | ||
"@particle-network/crypto": "^0.1.1", | ||
"@particle-network/common": "^0.1.7", | ||
"@particle-network/crypto": "^0.1.2", | ||
"crypto-js": "^4.1.1", | ||
@@ -33,3 +33,3 @@ "uuid": "^8.3.2" | ||
}, | ||
"gitHead": "ed67e3124ec04d25a2b243ef20b12aa43eb07caa" | ||
"gitHead": "ad391f0c90eb6b7c4ed5bf83982015c27a542328" | ||
} |
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
66901
846