@punks/backend-entity-manager 0.0.117 → 0.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -2371,8 +2371,8 @@ const Public = () => common.SetMetadata(AuthenticationGuardsSymbols.Public, true
2371
2371
  const Authenticated = () => common.SetMetadata(AuthenticationGuardsSymbols.Authenticated, true);
2372
2372
  const Roles = (...roles) => common.SetMetadata(AuthenticationGuardsSymbols.Roles, roles);
2373
2373
  const MemberOf = (...groups) => common.SetMetadata(AuthenticationGuardsSymbols.MemberOf, groups);
2374
- const buildRolesGuard = ({ mainRole, inheritedRoles, }, options) => Roles(mainRole.uid, ...(!options?.exact && inheritedRoles
2375
- ? inheritedRoles.map((role) => role.uid)
2374
+ const buildRolesGuard = ({ mainRole, secondaryRoles, }, options) => Roles(mainRole.uid, ...(!options?.exact && secondaryRoles
2375
+ ? secondaryRoles.map((role) => role.uid)
2376
2376
  : []));
2377
2377
 
2378
2378
  const WpRolesService = () => common.applyDecorators(common.Injectable(), common.SetMetadata(AuthenticationExtensionSymbols.RolesService, true));
@@ -21174,7 +21174,9 @@ exports.EntityManagerInitializer = EntityManagerInitializer_1 = class EntityMana
21174
21174
  const adapterDict = backendCore.toDict(adapters, (a) => a.meta.entityName);
21175
21175
  const authDict = backendCore.toDict(auth, (a) => a.meta.entityName);
21176
21176
  const sortedEntities = lodash.exports.orderBy(entities, (x) => x.meta.name);
21177
- this.logger.log(`Discovered entities: \n${sortedEntities.join(" \n")}`);
21177
+ this.logger.log(`Discovered entities: \n${sortedEntities
21178
+ .map((x) => x.discoveredClass.name)
21179
+ .join(" \n")}`);
21178
21180
  for (const entity of sortedEntities) {
21179
21181
  const entityName = entity.meta.name;
21180
21182
  const repository = repositoriesDict[entityName];