@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
- // Verificar se mock disponível
98
- const mockResponse = await this.mockResolver.resolve(method, url);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluwa-tool/sdk",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Fluwa DevTools SDK for network interception and mocking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",