types-nora-api 0.0.338 → 0.0.339

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.
Files changed (2) hide show
  1. package/dist/classes.js +1 -1
  2. package/package.json +1 -1
package/dist/classes.js CHANGED
@@ -543,7 +543,7 @@ function decidirAcessoPagina_Rec(pagina, ctx, opts, visitados) {
543
543
  return { permitido: false, motivo: 'NAO_AUTENTICADO', redirecionarPara: opts.redirectNaoAutenticado };
544
544
  if (temSudoBurlarCapacidades(ctx))
545
545
  return { permitido: true };
546
- const folhas = opts.resolverMenuInterno?.(pagina) ?? [];
546
+ const folhas = (opts.resolverMenuInterno?.(pagina) ?? []).filter((p) => String(p.template) !== String(pagina.template));
547
547
  const permitido = folhas.some((p) => decidirAcessoPagina_Rec(p, ctx, opts, visitados).permitido);
548
548
  if (!permitido)
549
549
  return { permitido: false, motivo: 'SEM_CAPACIDADE', redirecionarPara: opts.redirectSemCapacidade };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.338",
3
+ "version": "0.0.339",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",