react-native-inapp-inspector 1.0.14 → 1.0.16
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/README.md +203 -44
- package/dist/commonjs/components/AnimatedEntrance.d.ts +12 -0
- package/dist/commonjs/components/AnimatedEntrance.js +72 -0
- package/dist/commonjs/components/ConsoleLogCard.js +114 -29
- package/dist/commonjs/components/EmptyState.js +56 -5
- package/dist/commonjs/components/ReduxTreeView.js +96 -27
- package/dist/commonjs/components/TouchableScale.js +18 -2
- package/dist/commonjs/customHooks/analyticsLogger.d.ts +1 -0
- package/dist/commonjs/customHooks/analyticsLogger.js +57 -17
- package/dist/commonjs/customHooks/networkLogger.d.ts +1 -1
- package/dist/commonjs/customHooks/networkLogger.js +54 -46
- package/dist/commonjs/index.js +1595 -822
- package/dist/esm/components/AnimatedEntrance.d.ts +12 -0
- package/dist/esm/components/AnimatedEntrance.js +37 -0
- package/dist/esm/components/ConsoleLogCard.js +116 -31
- package/dist/esm/components/EmptyState.js +24 -6
- package/dist/esm/components/ReduxTreeView.js +95 -29
- package/dist/esm/components/TouchableScale.js +18 -2
- package/dist/esm/customHooks/analyticsLogger.d.ts +1 -0
- package/dist/esm/customHooks/analyticsLogger.js +55 -16
- package/dist/esm/customHooks/networkLogger.d.ts +1 -1
- package/dist/esm/customHooks/networkLogger.js +56 -48
- package/dist/esm/index.js +1597 -824
- package/example/App.tsx +1 -3
- package/package.json +5 -3
package/example/App.tsx
CHANGED
|
@@ -17,7 +17,6 @@ import NetworkInspector, {
|
|
|
17
17
|
ErrorBoundary,
|
|
18
18
|
connectReduxStore,
|
|
19
19
|
setupNetworkLogger,
|
|
20
|
-
addAxiosInterceptors,
|
|
21
20
|
subscribeNetworkLogs,
|
|
22
21
|
subscribeConsoleLogs,
|
|
23
22
|
logAnalyticsEvent,
|
|
@@ -130,8 +129,7 @@ function HomeScreen({ navigation }: any) {
|
|
|
130
129
|
};
|
|
131
130
|
}, []);
|
|
132
131
|
|
|
133
|
-
//
|
|
134
|
-
// Note: No manual addAxiosInterceptors call is performed! It is now automatic.
|
|
132
|
+
// Axios client — interceptors are automatically applied by setupNetworkLogger()
|
|
135
133
|
const axiosClient = React.useMemo(() => axios.create({
|
|
136
134
|
baseURL: 'https://jsonplaceholder.typicode.com',
|
|
137
135
|
}), []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-inapp-inspector",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "A self-contained network, console, analytics, and webview inspector for React Native applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
32
32
|
"watch": "tsc -w",
|
|
33
|
-
"prepack": "npm run build"
|
|
33
|
+
"prepack": "npm run build",
|
|
34
|
+
"publish": "node scripts/publish.js"
|
|
34
35
|
},
|
|
35
36
|
"keywords": [
|
|
36
37
|
"react-native",
|
|
@@ -65,11 +66,12 @@
|
|
|
65
66
|
"@react-navigation/native": "^6.1.9",
|
|
66
67
|
"@types/react": "^19.1.0",
|
|
67
68
|
"@types/react-native": "^0.72.0",
|
|
69
|
+
"axios": "^1.7.2",
|
|
70
|
+
"prettier": "^2.8.8",
|
|
68
71
|
"react": "19.1.0",
|
|
69
72
|
"react-native": "0.81.4",
|
|
70
73
|
"react-native-linear-gradient": "^2.8.3",
|
|
71
74
|
"react-native-svg": "^15.14.0",
|
|
72
|
-
"axios": "^1.7.2",
|
|
73
75
|
"typescript": "^5.8.3"
|
|
74
76
|
}
|
|
75
77
|
}
|