@mojaloop/security-bc-client-lib
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -51,5 +51,5 @@ /***** | ||
fetch(): Promise<void>; | ||
roleHasPrivilege(roleId: string, privilegeId: string): Promise<boolean>; | ||
roleHasPrivilege(roleId: string, privilegeId: string): boolean; | ||
private _hasPrivilege; | ||
addPrivilege(privId: string, labelName: string, description: string): void; | ||
} |
@@ -83,3 +83,3 @@ /***** | ||
} | ||
async roleHasPrivilege(roleId, privilegeId) { | ||
roleHasPrivilege(roleId, privilegeId) { | ||
if (!this._rolePrivileges || !this._rolePrivileges[roleId]) | ||
@@ -86,0 +86,0 @@ return false; |
{ | ||
"name": "@mojaloop/security-bc-client-lib", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "mojaloop security authentication and authorization client library", | ||
@@ -40,3 +40,3 @@ "license": "Apache-2.0", | ||
"@mojaloop/logging-bc-public-types-lib": "^0.0.3", | ||
"@mojaloop/security-bc-public-types-lib": "0.0.4", | ||
"@mojaloop/security-bc-public-types-lib": "0.0.5", | ||
"axios": "^0.25.0", | ||
@@ -43,0 +43,0 @@ "jsonwebtoken": "^8.5.1", |
Sorry, the diff of this file is not supported yet
29429
+ Added@mojaloop/security-bc-public-types-lib@0.0.5(transitive)
- Removed@mojaloop/security-bc-public-types-lib@0.0.4(transitive)