@semacode/cli 1.5.5 → 1.5.7

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.
@@ -10,6 +10,7 @@ import { extrairRotasJava, extrairSimbolosJava } from "./java-http.js";
10
10
  import { extrairParametrosCaminhoFlask, extrairRotasFlaskDecoradas } from "./python-http.js";
11
11
  import { extrairRotasRust, extrairSimbolosRust } from "./rust-http.js";
12
12
  import { extrairRotasTypeScriptHttp, inferirSemanticaHandlerTypeScriptHttp, localizarExportacaoTypeScriptHttp, } from "./typescript-http.js";
13
+ import { coletarSuperficiesAngularStandaloneConsumer } from "./angular-consumer-standalone.js";
13
14
  const DIRETORIOS_IGNORADOS = new Set([
14
15
  ".git",
15
16
  ".hg",
@@ -1189,7 +1190,14 @@ async function coletarSuperficiesAngularConsumer(baseProjeto, arquivos) {
1189
1190
  }
1190
1191
  }
1191
1192
  }
1192
- return superficies;
1193
+ if (superficies.length > 0) {
1194
+ return superficies;
1195
+ }
1196
+ return (await coletarSuperficiesAngularStandaloneConsumer(baseProjeto, arquivos)).map((superficie) => ({
1197
+ caminho: superficie.rota,
1198
+ arquivo: superficie.arquivo,
1199
+ tipoArquivo: superficie.tipoArquivo,
1200
+ }));
1193
1201
  }
1194
1202
  async function importarNextJsConsumerBase(diretorio, namespaceBase) {
1195
1203
  return importarConsumerBase(diretorio, namespaceBase, "Next.js", arquivoEhBridgeNextJsConsumer, coletarSuperficiesNextJsConsumer);