@fluwa-tool/sdk 1.0.36 → 1.0.37

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.
@@ -27,6 +27,14 @@ class XMLHttpRequestInterceptor {
27
27
  this.logger.debug('XMLHttpRequest não disponível nesse ambiente (requer navegador)');
28
28
  return;
29
29
  }
30
+ // Em React Native, desabilitar XMLHttpRequestInterceptor pois tem problemas ao simular mocks
31
+ // FetchInterceptor já cobre as requisições
32
+ const isReactNative = typeof navigator !== 'undefined' &&
33
+ navigator.product === 'ReactNative';
34
+ if (isReactNative) {
35
+ this.logger.debug('XMLHttpRequest interceptor desabilitado em React Native (usar FetchInterceptor)');
36
+ return;
37
+ }
30
38
  const self = this;
31
39
  const originalXHR = XMLHttpRequest.prototype;
32
40
  // Armazenar referência ao open original
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluwa-tool/sdk",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Fluwa DevTools SDK for network interception and mocking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",