@colearn/microservices-kit
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -11,3 +11,4 @@ "use strict"; | ||
function authUser(auth) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
var _d; | ||
if (!auth) { | ||
@@ -24,2 +25,3 @@ return undefined; | ||
for (const [entity, id, role] of entityRoles) { | ||
(_c = (_d = user.roles)[entity]) !== null && _c !== void 0 ? _c : (_d[entity] = {}); | ||
user.roles[entity][id] = role; | ||
@@ -26,0 +28,0 @@ } |
{ | ||
"name": "@colearn/microservices-kit", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "colearn microservice kit", | ||
@@ -5,0 +5,0 @@ "author": "Colearn", |
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
36080
570