@fluwa-tool/sdk 1.0.29 → 1.0.30
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.
|
@@ -94,8 +94,13 @@ class FetchInterceptor {
|
|
|
94
94
|
try {
|
|
95
95
|
// Registrar que começou
|
|
96
96
|
await this.requestLogger.logStart(requestMetadata);
|
|
97
|
-
//
|
|
98
|
-
|
|
97
|
+
// NÃO verificar mock para requisições internas (evita loop infinito)
|
|
98
|
+
// Requisições internas (/api/requests, /api/scenarios/active) devem passar direto
|
|
99
|
+
let mockResponse = null;
|
|
100
|
+
if (!this.isFluwaInternalRequest(init)) {
|
|
101
|
+
// Só verificar mock para requisições do usuário
|
|
102
|
+
mockResponse = await this.mockResolver.resolve(method, url);
|
|
103
|
+
}
|
|
99
104
|
if (mockResponse) {
|
|
100
105
|
// Usar mock
|
|
101
106
|
requestMetadata.source = types_1.RequestSource.MOCK;
|