react-native-inapp-inspector 2.3.13 → 2.3.15
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/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +1 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +1 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +104 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +128 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +31 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +18 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +177 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +20 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/android/build/reports/problems/problems-report.html +659 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/bin/cli.js +6 -0
- package/dist/commonjs/components/AnimatedEntrance.js +3 -3
- package/dist/commonjs/components/ConsoleLogCard.js +174 -100
- package/dist/commonjs/components/Inspector/ConsoleTab.js +25 -16
- package/dist/commonjs/components/Inspector/CrashTab.js +19 -5
- package/dist/commonjs/components/Inspector/DebuggingTab.js +741 -438
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +198 -98
- package/dist/commonjs/components/Inspector/InspectorHeader.js +2 -2
- package/dist/commonjs/components/Inspector/MainScreen.js +58 -55
- package/dist/commonjs/components/Inspector/NetworkTab.js +1 -335
- package/dist/commonjs/components/Inspector/PerformanceTab.js +32 -6
- package/dist/commonjs/components/Inspector/ReduxTab.js +3 -1
- package/dist/commonjs/components/Inspector/SettingsPanel.js +6 -4
- package/dist/commonjs/components/Inspector/StorageTab.js +23 -5
- package/dist/commonjs/components/Inspector/TabBar.js +6 -2
- package/dist/commonjs/components/JsonViewer.js +14 -2
- package/dist/commonjs/components/LogCard.js +428 -227
- package/dist/commonjs/components/QRCodeView.js +1 -1
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -1
- package/dist/commonjs/customHooks/consoleLogger.js +34 -2
- package/dist/commonjs/customHooks/crashHandler.js +1 -1
- package/dist/commonjs/customHooks/networkLogger.js +184 -26
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +11 -1
- package/dist/commonjs/helpers/qrGenerator.d.ts +1 -0
- package/dist/commonjs/helpers/qrGenerator.js +356 -33
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +37 -291
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +146 -30
- package/dist/commonjs/metro.d.ts +25 -0
- package/dist/commonjs/metro.js +478 -0
- package/dist/esm/components/AnimatedEntrance.js +3 -3
- package/dist/esm/components/ConsoleLogCard.js +141 -100
- package/dist/esm/components/Inspector/ConsoleTab.js +25 -16
- package/dist/esm/components/Inspector/CrashTab.js +19 -5
- package/dist/esm/components/Inspector/DebuggingTab.js +744 -441
- package/dist/esm/components/Inspector/DeviceInfoTab.js +198 -98
- package/dist/esm/components/Inspector/InspectorHeader.js +3 -3
- package/dist/esm/components/Inspector/MainScreen.js +58 -55
- package/dist/esm/components/Inspector/NetworkTab.js +2 -336
- package/dist/esm/components/Inspector/PerformanceTab.js +32 -6
- package/dist/esm/components/Inspector/ReduxTab.js +3 -1
- package/dist/esm/components/Inspector/SettingsPanel.js +7 -5
- package/dist/esm/components/Inspector/StorageTab.js +23 -5
- package/dist/esm/components/Inspector/TabBar.js +7 -3
- package/dist/esm/components/JsonViewer.js +14 -2
- package/dist/esm/components/LogCard.js +422 -221
- package/dist/esm/components/QRCodeView.js +1 -1
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +3 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/analyticsLogger.js +1 -1
- package/dist/esm/customHooks/consoleLogger.js +34 -2
- package/dist/esm/customHooks/crashHandler.js +1 -1
- package/dist/esm/customHooks/networkLogger.js +184 -26
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +9 -0
- package/dist/esm/helpers/qrGenerator.d.ts +1 -0
- package/dist/esm/helpers/qrGenerator.js +356 -30
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +37 -291
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +144 -29
- package/dist/esm/metro.d.ts +25 -0
- package/dist/esm/metro.js +469 -0
- package/metro.d.ts +1 -0
- package/metro.js +1 -0
- package/package.json +16 -5
- package/src/components/AnimatedEntrance.tsx +3 -3
- package/src/components/ConsoleLogCard.tsx +154 -103
- package/src/components/Inspector/ConsoleTab.tsx +27 -18
- package/src/components/Inspector/CrashTab.tsx +19 -5
- package/src/components/Inspector/DebuggingTab.tsx +842 -514
- package/src/components/Inspector/DeviceInfoTab.tsx +224 -102
- package/src/components/Inspector/InspectorHeader.tsx +5 -3
- package/src/components/Inspector/MainScreen.tsx +6 -4
- package/src/components/Inspector/NetworkTab.tsx +1 -402
- package/src/components/Inspector/PerformanceTab.tsx +36 -7
- package/src/components/Inspector/ReduxTab.tsx +9 -1
- package/src/components/Inspector/SettingsPanel.tsx +85 -75
- package/src/components/Inspector/StorageTab.tsx +27 -7
- package/src/components/Inspector/TabBar.tsx +16 -2
- package/src/components/JsonViewer.tsx +15 -2
- package/src/components/LogCard.tsx +528 -339
- package/src/components/QRCodeView.tsx +2 -2
- package/src/constants/telemetryConfig.ts +5 -3
- package/src/constants/version.ts +1 -1
- package/src/customHooks/analyticsLogger.ts +1 -1
- package/src/customHooks/consoleLogger.ts +36 -3
- package/src/customHooks/crashHandler.ts +1 -1
- package/src/customHooks/networkLogger.ts +214 -26
- package/src/helpers/index.ts +15 -0
- package/src/helpers/qrGenerator.ts +418 -37
- package/src/helpers/searchQueryParser.ts +40 -285
- package/src/index.tsx +337 -214
- package/src/metro.ts +598 -0
|
@@ -19,8 +19,8 @@ export const QRCodeView: React.FC<QRCodeViewProps> = ({
|
|
|
19
19
|
}) => {
|
|
20
20
|
const matrix = useMemo(() => generateQRMatrix(value || 'http://localhost:8081'), [value]);
|
|
21
21
|
const numCells = matrix.length || 21;
|
|
22
|
-
//
|
|
23
|
-
const margin =
|
|
22
|
+
// Standard 4-module quiet zone (white border) for 100% instant phone camera / Google Lens recognition
|
|
23
|
+
const margin = 4;
|
|
24
24
|
const totalCells = numCells + margin * 2;
|
|
25
25
|
const cellSize = size / totalCells;
|
|
26
26
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED FILE — do not edit by hand.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const
|
|
2
|
+
// Generated by scripts/gen-telemetry.js from .env at build time.
|
|
3
|
+
|
|
4
|
+
export const ENC_MID = 'df8ace0290a695bd05986213';
|
|
5
|
+
export const ENC_SEC = 'db93cb0186b1f7bb0ba63a0d0a64997586849455ce37';
|
|
6
|
+
export const TELEMETRY_SALT = 'rn-inapp-inspector-telemetry-v1';
|
package/src/constants/version.ts
CHANGED
|
@@ -42,7 +42,7 @@ let currentUserId: string | undefined;
|
|
|
42
42
|
let currentDefaultEventParameters: Record<string, any> = {};
|
|
43
43
|
let isCollectionEnabled = true;
|
|
44
44
|
|
|
45
|
-
let maxAnalyticsLogsLimit =
|
|
45
|
+
let maxAnalyticsLogsLimit = 150;
|
|
46
46
|
|
|
47
47
|
export const setMaxAnalyticsLogsLimit = (limit: number): void => {
|
|
48
48
|
maxAnalyticsLogsLimit = Math.max(10, limit);
|
|
@@ -15,7 +15,7 @@ export const setConsoleModuleEnabled = (enabled: boolean) => {
|
|
|
15
15
|
|
|
16
16
|
export const getConsoleModuleEnabled = () => isConsoleModuleEnabled;
|
|
17
17
|
|
|
18
|
-
let maxConsoleLogsLimit =
|
|
18
|
+
let maxConsoleLogsLimit = 250;
|
|
19
19
|
|
|
20
20
|
export const setMaxConsoleLogsLimit = (limit: number): void => {
|
|
21
21
|
maxConsoleLogsLimit = Math.max(10, limit);
|
|
@@ -293,9 +293,9 @@ const addLog = (
|
|
|
293
293
|
logs = logs.slice(0, maxConsoleLogsLimit);
|
|
294
294
|
notify();
|
|
295
295
|
|
|
296
|
-
// Asynchronously symbolicate stack trace via Metro in development
|
|
296
|
+
// Asynchronously symbolicate stack trace via Metro in development (errors only)
|
|
297
297
|
const stackToSymbolicate = errorStack || stackToUse || stack;
|
|
298
|
-
if (stackToSymbolicate && typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
298
|
+
if (type === 'error' && stackToSymbolicate && typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
299
299
|
const currentLogId = newLog.id;
|
|
300
300
|
symbolicateStack(stackToSymbolicate)
|
|
301
301
|
.then(symFrames => {
|
|
@@ -443,6 +443,8 @@ export const setupConsoleLogger = () => {
|
|
|
443
443
|
info: console.info,
|
|
444
444
|
warn: console.warn,
|
|
445
445
|
error: console.error,
|
|
446
|
+
debug: console.debug,
|
|
447
|
+
trace: console.trace,
|
|
446
448
|
};
|
|
447
449
|
|
|
448
450
|
// Intercept console.log
|
|
@@ -461,6 +463,30 @@ export const setupConsoleLogger = () => {
|
|
|
461
463
|
originalConsole.info(...args);
|
|
462
464
|
};
|
|
463
465
|
|
|
466
|
+
// Intercept console.debug
|
|
467
|
+
console.debug = (...args: any[]) => {
|
|
468
|
+
try {
|
|
469
|
+
addLog('info', args, 'info');
|
|
470
|
+
} catch {}
|
|
471
|
+
if (typeof originalConsole.debug === 'function') {
|
|
472
|
+
originalConsole.debug(...args);
|
|
473
|
+
} else {
|
|
474
|
+
originalConsole.log(...args);
|
|
475
|
+
}
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
// Intercept console.trace
|
|
479
|
+
console.trace = (...args: any[]) => {
|
|
480
|
+
try {
|
|
481
|
+
addLog('info', args, 'info');
|
|
482
|
+
} catch {}
|
|
483
|
+
if (typeof originalConsole.trace === 'function') {
|
|
484
|
+
originalConsole.trace(...args);
|
|
485
|
+
} else {
|
|
486
|
+
originalConsole.log(...args);
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
|
|
464
490
|
// Intercept console.warn
|
|
465
491
|
console.warn = (...args: any[]) => {
|
|
466
492
|
try {
|
|
@@ -495,3 +521,10 @@ export const setupConsoleLogger = () => {
|
|
|
495
521
|
|
|
496
522
|
(globalThis as any).__CONSOLE_LOGGER_INITIALIZED__ = true;
|
|
497
523
|
};
|
|
524
|
+
|
|
525
|
+
// Auto-initialize console logger on module load
|
|
526
|
+
if (typeof globalThis !== 'undefined') {
|
|
527
|
+
try {
|
|
528
|
+
setupConsoleLogger();
|
|
529
|
+
} catch {}
|
|
530
|
+
}
|
|
@@ -36,7 +36,7 @@ let lastHandledErrorTimestamp = 0;
|
|
|
36
36
|
let crashRecordsStore: CrashRecord[] = [];
|
|
37
37
|
let breadcrumbsStore: CrashBreadcrumb[] = [];
|
|
38
38
|
const MAX_BREADCRUMBS = 50;
|
|
39
|
-
let maxStoredCrashes =
|
|
39
|
+
let maxStoredCrashes = 100;
|
|
40
40
|
const appStartTime = Date.now();
|
|
41
41
|
let isCrashModuleEnabled = false;
|
|
42
42
|
|
|
@@ -36,17 +36,23 @@ export const setNetworkModuleEnabled = (enabled: boolean) => {
|
|
|
36
36
|
|
|
37
37
|
export const getNetworkModuleEnabled = () => isNetworkModuleEnabled;
|
|
38
38
|
|
|
39
|
-
const ALLOWED_METHODS = [
|
|
39
|
+
const ALLOWED_METHODS = [
|
|
40
|
+
"GET",
|
|
41
|
+
"POST",
|
|
42
|
+
"PUT",
|
|
43
|
+
"PATCH",
|
|
44
|
+
"DELETE",
|
|
45
|
+
"HEAD",
|
|
46
|
+
"OPTIONS",
|
|
47
|
+
"CONNECT",
|
|
48
|
+
"TRACE",
|
|
49
|
+
];
|
|
40
50
|
|
|
41
51
|
const IGNORED_URL_PATTERNS: RegExp[] = [
|
|
42
|
-
/\/symbolicate(
|
|
52
|
+
/\/symbolicate(?:\?|$)/i,
|
|
43
53
|
/\/index\.bundle(?:\?|$)/i,
|
|
44
|
-
/\/hot(?:\?|$)/i,
|
|
45
|
-
/\/message(?:\?|$)/i,
|
|
46
54
|
/\/open-debugger(?:\?|$)/i,
|
|
47
|
-
|
|
48
|
-
/127\.0\.0\.1:(?:8081|8082|8083|19000|19001|19002|3000|8000)/i,
|
|
49
|
-
/localhost:(?:8081|8082|8083|19000|19001|19002|3000|8000)\/index\.bundle/i,
|
|
55
|
+
/:(?:8081|8082|8083|19000|19001)\/(?:index\.bundle|symbolicate|hot|message|status)/i,
|
|
50
56
|
/google-analytics\.com\/mp\/collect/i,
|
|
51
57
|
/analytics\.google\.com/i,
|
|
52
58
|
];
|
|
@@ -58,6 +64,23 @@ function shouldIgnoreUrl(url: string | undefined | null): boolean {
|
|
|
58
64
|
|
|
59
65
|
// ─── Helpers ──────────────────────────────────────────────────────────────────
|
|
60
66
|
|
|
67
|
+
function parseXHRResponseHeaders(
|
|
68
|
+
headerStr: string | null | undefined,
|
|
69
|
+
): Record<string, string> | undefined {
|
|
70
|
+
if (!headerStr || typeof headerStr !== "string") return undefined;
|
|
71
|
+
const lines = headerStr.trim().split(/[\r\n]+/);
|
|
72
|
+
const result: Record<string, string> = {};
|
|
73
|
+
lines.forEach((line) => {
|
|
74
|
+
const idx = line.indexOf(":");
|
|
75
|
+
if (idx > 0) {
|
|
76
|
+
const key = line.substring(0, idx).trim().toLowerCase();
|
|
77
|
+
const val = line.substring(idx + 1).trim();
|
|
78
|
+
result[key] = val;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return Object.keys(result).length > 0 ? result : undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
61
84
|
function normaliseHeaders(
|
|
62
85
|
raw: Headers | undefined | null,
|
|
63
86
|
): Record<string, string> | undefined {
|
|
@@ -158,7 +181,7 @@ export const clearNetworkLogs = () => {
|
|
|
158
181
|
|
|
159
182
|
export const getNetworkLogs = () => [...logs];
|
|
160
183
|
|
|
161
|
-
let maxNetworkLogsLimit =
|
|
184
|
+
let maxNetworkLogsLimit = 250;
|
|
162
185
|
|
|
163
186
|
export const setMaxNetworkLogsLimit = (limit: number): void => {
|
|
164
187
|
maxNetworkLogsLimit = Math.max(10, limit);
|
|
@@ -191,7 +214,7 @@ const addOrUpdateLog = (log: NetworkLog) => {
|
|
|
191
214
|
if (!isNetworkModuleEnabled) return;
|
|
192
215
|
const method = log.method?.toUpperCase();
|
|
193
216
|
|
|
194
|
-
if (!ALLOWED_METHODS.includes(method)) return;
|
|
217
|
+
if (method && !ALLOWED_METHODS.includes(method)) return;
|
|
195
218
|
|
|
196
219
|
if (shouldIgnoreUrl(log.url)) return;
|
|
197
220
|
|
|
@@ -207,19 +230,167 @@ const addOrUpdateLog = (log: NetworkLog) => {
|
|
|
207
230
|
notify();
|
|
208
231
|
};
|
|
209
232
|
|
|
233
|
+
let isInsideFetch = false;
|
|
234
|
+
|
|
210
235
|
// ─── Setup ────────────────────────────────────────────────────────────────────
|
|
211
236
|
|
|
212
237
|
export const setupNetworkLogger = () => {
|
|
213
238
|
if ((globalThis as any).__NETWORK_LOGGER_INITIALIZED__) return;
|
|
214
239
|
(globalThis as any).__NETWORK_LOGGER__ = addOrUpdateLog;
|
|
215
240
|
|
|
241
|
+
// 1. Hook XMLHttpRequest
|
|
242
|
+
const globalXHR = (globalThis as any).XMLHttpRequest;
|
|
243
|
+
if (globalXHR && globalXHR.prototype && !(globalThis as any).__XHR_LOGGER_INITIALIZED__) {
|
|
244
|
+
(globalThis as any).__XHR_LOGGER_INITIALIZED__ = true;
|
|
245
|
+
const originalOpen = globalXHR.prototype.open;
|
|
246
|
+
const originalSend = globalXHR.prototype.send;
|
|
247
|
+
const originalSetRequestHeader = globalXHR.prototype.setRequestHeader;
|
|
248
|
+
|
|
249
|
+
globalXHR.prototype.open = function (
|
|
250
|
+
method: string,
|
|
251
|
+
url: string | any,
|
|
252
|
+
async?: boolean,
|
|
253
|
+
user?: string | null,
|
|
254
|
+
password?: string | null,
|
|
255
|
+
) {
|
|
256
|
+
this.__logMethod = (method || "GET").toUpperCase();
|
|
257
|
+
this.__logUrl = typeof url === "string" ? url : String(url);
|
|
258
|
+
this.__logRequestHeaders = {};
|
|
259
|
+
this.__logStartTime = Date.now();
|
|
260
|
+
this.__logCaller = getCallerFromStack();
|
|
261
|
+
|
|
262
|
+
return originalOpen.apply(this, [method, url, async !== false, user, password]);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
globalXHR.prototype.setRequestHeader = function (header: string, value: string) {
|
|
266
|
+
if (header && value != null) {
|
|
267
|
+
if (!this.__logRequestHeaders) this.__logRequestHeaders = {};
|
|
268
|
+
this.__logRequestHeaders[header.toLowerCase()] = String(value);
|
|
269
|
+
}
|
|
270
|
+
return originalSetRequestHeader.apply(this, [header, value]);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
globalXHR.prototype.send = function (body?: any) {
|
|
274
|
+
if (!isNetworkModuleEnabled || isInsideFetch || this.__inAppInspectorTracked) {
|
|
275
|
+
return originalSend.apply(this, [body]);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const url = this.__logUrl || "";
|
|
279
|
+
const method = this.__logMethod || "GET";
|
|
280
|
+
|
|
281
|
+
if (shouldIgnoreUrl(url)) {
|
|
282
|
+
return originalSend.apply(this, [body]);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const id = counter++;
|
|
286
|
+
this.__logId = id;
|
|
287
|
+
const start = this.__logStartTime || Date.now();
|
|
288
|
+
const caller = this.__logCaller || "Unknown";
|
|
289
|
+
const requestHeaders = this.__logRequestHeaders;
|
|
290
|
+
|
|
291
|
+
let client = "xhr";
|
|
292
|
+
if (
|
|
293
|
+
requestHeaders?.["apollographql-client-name"] ||
|
|
294
|
+
url.toLowerCase().includes("/graphql")
|
|
295
|
+
) {
|
|
296
|
+
client = "apollo";
|
|
297
|
+
} else if (caller.toLowerCase().includes("axios")) {
|
|
298
|
+
client = "axios";
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
const currentRoute = currentRouteProvider ? currentRouteProvider() : null;
|
|
302
|
+
|
|
303
|
+
addOrUpdateLog({
|
|
304
|
+
id,
|
|
305
|
+
url,
|
|
306
|
+
method,
|
|
307
|
+
startTime: start,
|
|
308
|
+
caller,
|
|
309
|
+
client,
|
|
310
|
+
routeInfo: currentRoute || undefined,
|
|
311
|
+
request: method === "GET" ? undefined : parseRequestData(body),
|
|
312
|
+
requestHeaders:
|
|
313
|
+
Object.keys(requestHeaders || {}).length > 0 ? requestHeaders : undefined,
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
const onFinished = () => {
|
|
317
|
+
if (this.__logFinished) return;
|
|
318
|
+
this.__logFinished = true;
|
|
319
|
+
const duration = Date.now() - start;
|
|
320
|
+
let responseData: any = null;
|
|
321
|
+
|
|
322
|
+
try {
|
|
323
|
+
if (this.responseType === "" || this.responseType === "text") {
|
|
324
|
+
const raw = this.responseText;
|
|
325
|
+
try {
|
|
326
|
+
responseData = JSON.parse(raw);
|
|
327
|
+
} catch {
|
|
328
|
+
responseData = raw;
|
|
329
|
+
}
|
|
330
|
+
} else if (this.responseType === "json") {
|
|
331
|
+
responseData = this.response;
|
|
332
|
+
} else if (this.responseType === "blob") {
|
|
333
|
+
responseData = `[Blob: ${this.response?.size || 0} bytes]`;
|
|
334
|
+
} else {
|
|
335
|
+
responseData = `[${this.responseType || "Unknown"} Data]`;
|
|
336
|
+
}
|
|
337
|
+
} catch {
|
|
338
|
+
responseData = this.response || null;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const rawRespHeaders = this.getAllResponseHeaders
|
|
342
|
+
? this.getAllResponseHeaders()
|
|
343
|
+
: "";
|
|
344
|
+
const responseHeaders = parseXHRResponseHeaders(rawRespHeaders);
|
|
345
|
+
|
|
346
|
+
addOrUpdateLog({
|
|
347
|
+
id,
|
|
348
|
+
url,
|
|
349
|
+
method,
|
|
350
|
+
status: this.status,
|
|
351
|
+
response: responseData,
|
|
352
|
+
duration,
|
|
353
|
+
startTime: start,
|
|
354
|
+
caller,
|
|
355
|
+
client,
|
|
356
|
+
responseHeaders,
|
|
357
|
+
});
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
const onErrorOrAbort = () => {
|
|
361
|
+
if (this.__logFinished) return;
|
|
362
|
+
this.__logFinished = true;
|
|
363
|
+
const duration = Date.now() - start;
|
|
364
|
+
|
|
365
|
+
addOrUpdateLog({
|
|
366
|
+
id,
|
|
367
|
+
url,
|
|
368
|
+
method,
|
|
369
|
+
status: this.status || 0,
|
|
370
|
+
response: "Network request failed",
|
|
371
|
+
duration,
|
|
372
|
+
startTime: start,
|
|
373
|
+
caller,
|
|
374
|
+
client,
|
|
375
|
+
});
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
this.addEventListener("load", onFinished);
|
|
379
|
+
this.addEventListener("error", onErrorOrAbort);
|
|
380
|
+
this.addEventListener("abort", onErrorOrAbort);
|
|
381
|
+
this.addEventListener("timeout", onErrorOrAbort);
|
|
382
|
+
|
|
383
|
+
return originalSend.apply(this, [body]);
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
// 2. Hook fetch
|
|
216
388
|
const originalFetch = (globalThis as any).fetch;
|
|
217
389
|
|
|
218
390
|
if (originalFetch) {
|
|
219
391
|
(globalThis as any).fetch = async (url: any, options: any = {}) => {
|
|
220
392
|
if (!isNetworkModuleEnabled) return originalFetch(url, options);
|
|
221
393
|
const method = (options?.method || "GET").toUpperCase();
|
|
222
|
-
if (!ALLOWED_METHODS.includes(method)) return originalFetch(url, options);
|
|
223
394
|
|
|
224
395
|
const id = counter++;
|
|
225
396
|
const start = Date.now();
|
|
@@ -229,18 +400,23 @@ export const setupNetworkLogger = () => {
|
|
|
229
400
|
|
|
230
401
|
let caller = "Unknown";
|
|
231
402
|
let requestHeaders: Record<string, string> | undefined;
|
|
232
|
-
let client =
|
|
403
|
+
let client = "fetch";
|
|
233
404
|
|
|
234
405
|
try {
|
|
235
406
|
requestHeaders = normaliseHeaders(options?.headers);
|
|
236
407
|
caller = getCallerFromStack(); // ✅ Capture call line
|
|
237
408
|
|
|
238
|
-
if (
|
|
239
|
-
client
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
409
|
+
if (
|
|
410
|
+
requestHeaders?.["apollographql-client-name"] ||
|
|
411
|
+
finalUrl?.toLowerCase().includes("/graphql")
|
|
412
|
+
) {
|
|
413
|
+
client = "apollo";
|
|
414
|
+
} else if (
|
|
415
|
+
requestHeaders?.["x-requested-with"]?.toLowerCase().includes("xmlhttprequest")
|
|
416
|
+
) {
|
|
417
|
+
client = "xhr";
|
|
418
|
+
} else if (caller?.toLowerCase().includes("axios")) {
|
|
419
|
+
client = "axios";
|
|
244
420
|
}
|
|
245
421
|
|
|
246
422
|
const currentRoute = currentRouteProvider ? currentRouteProvider() : null;
|
|
@@ -259,7 +435,13 @@ export const setupNetworkLogger = () => {
|
|
|
259
435
|
} catch {}
|
|
260
436
|
|
|
261
437
|
try {
|
|
262
|
-
|
|
438
|
+
isInsideFetch = true;
|
|
439
|
+
let response: any;
|
|
440
|
+
try {
|
|
441
|
+
response = await originalFetch(url, options);
|
|
442
|
+
} finally {
|
|
443
|
+
isInsideFetch = false;
|
|
444
|
+
}
|
|
263
445
|
const duration = Date.now() - start;
|
|
264
446
|
|
|
265
447
|
try {
|
|
@@ -317,7 +499,7 @@ export const setupNetworkLogger = () => {
|
|
|
317
499
|
};
|
|
318
500
|
}
|
|
319
501
|
|
|
320
|
-
// Hook Axios — patches
|
|
502
|
+
// 3. Hook Axios — patches default instance and future axios.create() instances
|
|
321
503
|
try {
|
|
322
504
|
if (axios) {
|
|
323
505
|
addAxiosInterceptors(axios);
|
|
@@ -331,7 +513,7 @@ export const setupNetworkLogger = () => {
|
|
|
331
513
|
}
|
|
332
514
|
}
|
|
333
515
|
} catch (_e) {
|
|
334
|
-
// Axios not available — fetch
|
|
516
|
+
// Axios not available — fetch/XHR mode
|
|
335
517
|
}
|
|
336
518
|
|
|
337
519
|
try {
|
|
@@ -345,7 +527,6 @@ export const setupNetworkLogger = () => {
|
|
|
345
527
|
export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
346
528
|
axiosInstance.interceptors.request.use(async (config: any) => {
|
|
347
529
|
const method = (config.method || "GET").toUpperCase();
|
|
348
|
-
if (!ALLOWED_METHODS.includes(method)) return config;
|
|
349
530
|
|
|
350
531
|
const id = counter++;
|
|
351
532
|
const start = Date.now();
|
|
@@ -369,7 +550,7 @@ export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
|
369
550
|
method,
|
|
370
551
|
startTime: start,
|
|
371
552
|
caller,
|
|
372
|
-
client:
|
|
553
|
+
client: "axios",
|
|
373
554
|
routeInfo: currentRoute || undefined,
|
|
374
555
|
request: method === "GET" ? undefined : parseRequestData(config.data),
|
|
375
556
|
requestHeaders: normaliseHeaders(config.headers),
|
|
@@ -386,7 +567,7 @@ export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
|
386
567
|
const caller = config.__logCaller;
|
|
387
568
|
const method = (config.method || "GET").toUpperCase();
|
|
388
569
|
|
|
389
|
-
if (id == null
|
|
570
|
+
if (id == null) return response;
|
|
390
571
|
|
|
391
572
|
let url = config.url ?? "";
|
|
392
573
|
if (!url.startsWith("http")) url = `${config.baseURL ?? ""}${url}`;
|
|
@@ -400,7 +581,7 @@ export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
|
400
581
|
startTime: start || Date.now(),
|
|
401
582
|
duration: start != null ? Date.now() - start : undefined,
|
|
402
583
|
caller,
|
|
403
|
-
client:
|
|
584
|
+
client: "axios",
|
|
404
585
|
responseHeaders: normaliseHeaders(response.headers),
|
|
405
586
|
});
|
|
406
587
|
|
|
@@ -413,7 +594,7 @@ export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
|
413
594
|
const caller = config.__logCaller;
|
|
414
595
|
const method = (config.method || "GET").toUpperCase();
|
|
415
596
|
|
|
416
|
-
if (id != null
|
|
597
|
+
if (id != null) {
|
|
417
598
|
let url = config.url ?? "";
|
|
418
599
|
if (!url.startsWith("http")) url = `${config.baseURL ?? ""}${url}`;
|
|
419
600
|
|
|
@@ -426,7 +607,7 @@ export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
|
426
607
|
startTime: start || Date.now(),
|
|
427
608
|
duration: start != null ? Date.now() - start : undefined,
|
|
428
609
|
caller,
|
|
429
|
-
client:
|
|
610
|
+
client: "axios",
|
|
430
611
|
responseHeaders: normaliseHeaders(error.response?.headers),
|
|
431
612
|
});
|
|
432
613
|
}
|
|
@@ -434,3 +615,10 @@ export const addAxiosInterceptors = (axiosInstance: any) => {
|
|
|
434
615
|
},
|
|
435
616
|
);
|
|
436
617
|
};
|
|
618
|
+
|
|
619
|
+
// Auto-initialize logger on module load so startup requests are never missed
|
|
620
|
+
if (typeof globalThis !== "undefined") {
|
|
621
|
+
try {
|
|
622
|
+
setupNetworkLogger();
|
|
623
|
+
} catch {}
|
|
624
|
+
}
|
package/src/helpers/index.ts
CHANGED
|
@@ -25,6 +25,21 @@ import {
|
|
|
25
25
|
export * from './searchQueryParser';
|
|
26
26
|
export * from './memoryManager';
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Returns true if running in local debug environment (connected to Metro/dev server, __DEV__ is true).
|
|
30
|
+
* Returns false in standalone release / signed APKs.
|
|
31
|
+
*/
|
|
32
|
+
export const isLocalDebugEnvironment = (): boolean => {
|
|
33
|
+
const isDev = typeof __DEV__ !== 'undefined' && Boolean(__DEV__);
|
|
34
|
+
const scriptURL: string = NativeModules.SourceCode?.scriptURL || '';
|
|
35
|
+
const hasDevServer =
|
|
36
|
+
scriptURL.startsWith('http://') ||
|
|
37
|
+
scriptURL.startsWith('https://') ||
|
|
38
|
+
scriptURL.includes(':8081') ||
|
|
39
|
+
scriptURL.includes(':8082');
|
|
40
|
+
return isDev || hasDevServer;
|
|
41
|
+
};
|
|
42
|
+
|
|
28
43
|
export const getDomainColor = (domain: string): string => {
|
|
29
44
|
if (!domain) return DOMAIN_COLORS[0];
|
|
30
45
|
let hash = 0;
|