@fluwa-tool/sdk 1.0.51 → 1.0.53
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/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -91,11 +91,12 @@ async function initFluwaTool(partialConfig = {}) {
|
|
|
91
91
|
logger.debug(`URL Filter configurado com ${urlFilter.getExcludedPatterns().length} padrões excluídos`);
|
|
92
92
|
// 7. Criar interceptador de fetch
|
|
93
93
|
fetchInterceptor = new FetchInterceptor_1.FetchInterceptor(logger, requestLogger, mockResolver, sessionId, config.getAppName(), urlFilter);
|
|
94
|
-
// 7b. Criar interceptador de XMLHttpRequest (
|
|
94
|
+
// 7b. Criar interceptador de XMLHttpRequest (DESABILITADO)
|
|
95
|
+
// axios agora usa fetch via configureAxiosToUseFetch(), então não precisa mais de XHR
|
|
95
96
|
xmlHttpRequestInterceptor = new XMLHttpRequestInterceptor_1.XMLHttpRequestInterceptor(logger, requestLogger, mockResolver, sessionId, config.getAppName(), urlFilter);
|
|
96
97
|
// 8. Instalar interceptadores
|
|
97
98
|
fetchInterceptor.install();
|
|
98
|
-
xmlHttpRequestInterceptor.install();
|
|
99
|
+
xmlHttpRequestInterceptor.install(); // ✅ Re-ativado - axios em React Native usa XMLHttpRequest
|
|
99
100
|
// 9. Conectar WebSocket
|
|
100
101
|
logger.debug('Conectando ao WebSocket...');
|
|
101
102
|
try {
|