noibu-react-native 0.2.35-rc.6 → 0.2.36-rc.1

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/constants.js CHANGED
@@ -24,7 +24,7 @@ const CONTENT_TYPE = 'content-type';
24
24
  * Gets the script id from the cookie object, returns default if cannot be found
25
25
  */
26
26
  function GET_SCRIPT_ID() {
27
- return "1.0.104-rn-sdk-0.2.35-rc.6" ;
27
+ return "1.0.104-rn-sdk-0.2.36-rc.1" ;
28
28
  }
29
29
  /**
30
30
  * Gets the max metro recon number
@@ -238,12 +238,13 @@ class RequestMonitor extends Singleton {
238
238
  let request;
239
239
  const { url, method } = RequestMonitor.getMethodUrlFromFetchArgs(resource, options);
240
240
  if (resource instanceof Request) {
241
- /**
242
- * We clone the request object, as its body can only be read once per instance.
243
- * It's important that we do this before the original function is called, as it
244
- * cannot be cloned afterward.
245
- */
246
- request = resource.clone();
241
+ try {
242
+ request = resource.clone();
243
+ }
244
+ catch (_a) {
245
+ // whatwg-fetch polyfill clone() may throw "Already read" if body was
246
+ // already consumed — proceed without request body capture
247
+ }
247
248
  }
248
249
  const startTime = Date.now();
249
250
  const promiseFromOriginalFetch = originalFunction.call(this, resource, options);
@@ -1,4 +1,4 @@
1
- import { NavigationDelegate } from 'react-native-navigation/lib/dist/src/NavigationDelegate';
1
+ import { NavigationDelegate } from 'react-native-navigation/lib/typescript/NavigationDelegate';
2
2
  import { Singleton } from '../BaseMonitor';
3
3
  /** react-native-navigation adapter */
4
4
  export declare class ReactNativeNavigationIntegration extends Singleton implements NavigationIntegration {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noibu-react-native",
3
- "version": "0.2.35-rc.6",
3
+ "version": "0.2.36-rc.1",
4
4
  "targetNjsVersion": "1.0.104",
5
5
  "description": "React-Native SDK for NoibuJS to collect errors in React-Native applications",
6
6
  "main": "dist/entry/index.js",
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "optionalDependencies": {
58
58
  "@react-native-async-storage/async-storage": "^1.19.0",
59
- "react-native-navigation": ">=2.29.0",
59
+ "react-native-navigation": ">=8.8.2",
60
60
  "react-native-url-polyfill": "^1.3.0",
61
61
  "react-native-uuid": "^2.0.1"
62
62
  },
@@ -64,7 +64,7 @@
64
64
  "@react-native-async-storage/async-storage": "^1.19.0",
65
65
  "react": ">=16.13.1",
66
66
  "react-native": ">=0.63.0",
67
- "react-native-navigation": ">=2.29.0",
67
+ "react-native-navigation": ">=8.8.2",
68
68
  "react-native-url-polyfill": "^1.3.0",
69
69
  "react-native-uuid": "^2.0.1",
70
70
  "whatwg-fetch": "^3.6.20"
@@ -100,7 +100,7 @@
100
100
  "prettier": "^3.4.2",
101
101
  "react": "16.13.1",
102
102
  "react-native": "0.63.0",
103
- "react-native-navigation": "^7.40.3",
103
+ "react-native-navigation": "^8.8.2",
104
104
  "react-native-url-polyfill": "1.3.0",
105
105
  "react-native-uuid": "2.0.1",
106
106
  "rimraf": "^5.0.1",