Skip to content

Commit

Permalink
[MOB-9148] Release v11.0.2 (#739)
Browse files Browse the repository at this point in the history
* Bump version

* [MOB-9082] Fix a crash on XMLHttpRequest error (#735)

* Add a check to ensure `responseBody` validity

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Ali Abdelfattah <[email protected]>

Co-authored-by: David Mina <[email protected]>
  • Loading branch information
Ali Abdelfattah and DavidMina96 authored Jul 20, 2022
1 parent cacec43 commit 7a0a6f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 11.0.2 (2022-07-20)

* Fixes a crash that occurs when logging some failed network requests

## 11.0.1 (2022-06-13)

* Fixes an issue with network responses of type JSON not getting logged
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instabug-reactnative",
"version": "11.0.1",
"version": "11.0.2",
"description": "React Native plugin for integrating the Instabug SDK",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion utils/XhrNetworkInterceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const XHRInterceptor = {

cloneNetwork.requestBodySize = cloneNetwork.requestBody.length;

if(cloneNetwork.responseBodySize === 0){
if(cloneNetwork.responseBodySize === 0 && cloneNetwork.responseBody){
cloneNetwork.responseBodySize = cloneNetwork.responseBody.length;
}

Expand Down

0 comments on commit 7a0a6f5

Please sign in to comment.