Skip to content

Commit

Permalink
upgrade iap and add log to debug axios client error
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalkishor1991 committed Nov 1, 2024
1 parent 702cd19 commit e74f7e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion network/axios.client.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';
import { retrieveUserSession } from '../libs/EncryptedStoreage';
import Storage from '../libs/Storage';
import { notifyMessage } from '../libs/Helpers';
import { notifyMessage, sendClientError } from '../libs/Helpers';

const axiosInstance = axios.create({
baseURL: 'https://huehive.co/',
Expand Down Expand Up @@ -47,6 +47,7 @@ axiosInstance.interceptors.response.use(
} else if (error.request) {
notifyMessage('No response received from the server.');
} else {
sendClientError('error_setting_up_request', JSON.stringify(error));
notifyMessage('Error setting up the request:', error.message);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"react-native-gesture-handler": "^2.19.0",
"react-native-get-random-values": "^1.11.0",
"react-native-google-mobile-ads": "^14.2.5",
"react-native-iap": "^12.15.2",
"react-native-iap": "^12.15.7",
"react-native-image-picker": "^7.1.2",
"react-native-linear-gradient": "^2.8.3",
"react-native-macos": "^0.75.4",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3541,7 +3541,7 @@ __metadata:
react-native-gesture-handler: ^2.19.0
react-native-get-random-values: ^1.11.0
react-native-google-mobile-ads: ^14.2.5
react-native-iap: ^12.15.2
react-native-iap: ^12.15.7
react-native-image-picker: ^7.1.2
react-native-linear-gradient: ^2.8.3
react-native-macos: ^0.75.4
Expand Down Expand Up @@ -10328,17 +10328,17 @@ __metadata:
languageName: node
linkType: hard

"react-native-iap@npm:^12.15.2":
version: 12.15.3
resolution: "react-native-iap@npm:12.15.3"
"react-native-iap@npm:^12.15.7":
version: 12.15.7
resolution: "react-native-iap@npm:12.15.7"
peerDependencies:
expo: ">=47.0.0"
react: ">=16.13.1"
react-native: ">=0.65.1"
peerDependenciesMeta:
expo:
optional: true
checksum: d10a60da888e7c6d7c98207e3e98365e4e5f9d2a5aba3c65822827dbca6f67235c0436e6c6f3461f60ab2698364b5c02d2964e9d98c631ce34f958aa0a3435d0
checksum: e9ce1ea347daf100e663979855183b163b33b378a8688552f024abd609b7fc90ce2456ad773b2f42b52e51a7183111c8f9e29ea344305f6f3ebf4d53f7ab2b7f
languageName: node
linkType: hard

Expand Down

0 comments on commit e74f7e9

Please sign in to comment.