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
|
@@ -6,7 +6,7 @@ import { AppColors } from '../styles/AppColors';
|
|
|
6
6
|
export const QRCodeView = ({ value, size = 200, color = '#000000', backgroundColor = '#FFFFFF', }) => {
|
|
7
7
|
const matrix = useMemo(() => generateQRMatrix(value || 'http://localhost:8081'), [value]);
|
|
8
8
|
const numCells = matrix.length || 21;
|
|
9
|
-
const margin =
|
|
9
|
+
const margin = 4;
|
|
10
10
|
const totalCells = numCells + margin * 2;
|
|
11
11
|
const cellSize = size / totalCells;
|
|
12
12
|
return (<View style={[
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ENC_MID = "";
|
|
2
|
-
export declare const ENC_SEC = "";
|
|
3
|
-
export declare const TELEMETRY_SALT = "";
|
|
1
|
+
export declare const ENC_MID = "df8ace0290a695bd05986213";
|
|
2
|
+
export declare const ENC_SEC = "db93cb0186b1f7bb0ba63a0d0a64997586849455ce37";
|
|
3
|
+
export declare const TELEMETRY_SALT = "rn-inapp-inspector-telemetry-v1";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const ENC_MID = '';
|
|
2
|
-
export const ENC_SEC = '';
|
|
3
|
-
export const TELEMETRY_SALT = '';
|
|
1
|
+
export const ENC_MID = 'df8ace0290a695bd05986213';
|
|
2
|
+
export const ENC_SEC = 'db93cb0186b1f7bb0ba63a0d0a64997586849455ce37';
|
|
3
|
+
export const TELEMETRY_SALT = 'rn-inapp-inspector-telemetry-v1';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "2.3.
|
|
1
|
+
export declare const LIB_VERSION = "2.3.15";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = '2.3.
|
|
1
|
+
export const LIB_VERSION = '2.3.15';
|
|
@@ -10,7 +10,7 @@ let currentUserProperties = {};
|
|
|
10
10
|
let currentUserId;
|
|
11
11
|
let currentDefaultEventParameters = {};
|
|
12
12
|
let isCollectionEnabled = true;
|
|
13
|
-
let maxAnalyticsLogsLimit =
|
|
13
|
+
let maxAnalyticsLogsLimit = 150;
|
|
14
14
|
export const setMaxAnalyticsLogsLimit = (limit) => {
|
|
15
15
|
maxAnalyticsLogsLimit = Math.max(10, limit);
|
|
16
16
|
if (events.length > maxAnalyticsLogsLimit) {
|
|
@@ -10,7 +10,7 @@ export const setConsoleModuleEnabled = (enabled) => {
|
|
|
10
10
|
isConsoleModuleEnabled = enabled;
|
|
11
11
|
};
|
|
12
12
|
export const getConsoleModuleEnabled = () => isConsoleModuleEnabled;
|
|
13
|
-
let maxConsoleLogsLimit =
|
|
13
|
+
let maxConsoleLogsLimit = 250;
|
|
14
14
|
export const setMaxConsoleLogsLimit = (limit) => {
|
|
15
15
|
maxConsoleLogsLimit = Math.max(10, limit);
|
|
16
16
|
if (logs.length > maxConsoleLogsLimit) {
|
|
@@ -237,7 +237,7 @@ const addLog = (type, args, sourceMethod) => {
|
|
|
237
237
|
logs = logs.slice(0, maxConsoleLogsLimit);
|
|
238
238
|
notify();
|
|
239
239
|
const stackToSymbolicate = errorStack || stackToUse || stack;
|
|
240
|
-
if (stackToSymbolicate && typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
240
|
+
if (type === 'error' && stackToSymbolicate && typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
241
241
|
const currentLogId = newLog.id;
|
|
242
242
|
symbolicateStack(stackToSymbolicate)
|
|
243
243
|
.then(symFrames => {
|
|
@@ -355,6 +355,8 @@ export const setupConsoleLogger = () => {
|
|
|
355
355
|
info: console.info,
|
|
356
356
|
warn: console.warn,
|
|
357
357
|
error: console.error,
|
|
358
|
+
debug: console.debug,
|
|
359
|
+
trace: console.trace,
|
|
358
360
|
};
|
|
359
361
|
console.log = (...args) => {
|
|
360
362
|
try {
|
|
@@ -370,6 +372,30 @@ export const setupConsoleLogger = () => {
|
|
|
370
372
|
catch { }
|
|
371
373
|
originalConsole.info(...args);
|
|
372
374
|
};
|
|
375
|
+
console.debug = (...args) => {
|
|
376
|
+
try {
|
|
377
|
+
addLog('info', args, 'info');
|
|
378
|
+
}
|
|
379
|
+
catch { }
|
|
380
|
+
if (typeof originalConsole.debug === 'function') {
|
|
381
|
+
originalConsole.debug(...args);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
originalConsole.log(...args);
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
console.trace = (...args) => {
|
|
388
|
+
try {
|
|
389
|
+
addLog('info', args, 'info');
|
|
390
|
+
}
|
|
391
|
+
catch { }
|
|
392
|
+
if (typeof originalConsole.trace === 'function') {
|
|
393
|
+
originalConsole.trace(...args);
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
originalConsole.log(...args);
|
|
397
|
+
}
|
|
398
|
+
};
|
|
373
399
|
console.warn = (...args) => {
|
|
374
400
|
try {
|
|
375
401
|
addLog('warn', args, 'warn');
|
|
@@ -398,3 +424,9 @@ export const setupConsoleLogger = () => {
|
|
|
398
424
|
catch { }
|
|
399
425
|
globalThis.__CONSOLE_LOGGER_INITIALIZED__ = true;
|
|
400
426
|
};
|
|
427
|
+
if (typeof globalThis !== 'undefined') {
|
|
428
|
+
try {
|
|
429
|
+
setupConsoleLogger();
|
|
430
|
+
}
|
|
431
|
+
catch { }
|
|
432
|
+
}
|
|
@@ -10,7 +10,7 @@ let lastHandledErrorTimestamp = 0;
|
|
|
10
10
|
let crashRecordsStore = [];
|
|
11
11
|
let breadcrumbsStore = [];
|
|
12
12
|
const MAX_BREADCRUMBS = 50;
|
|
13
|
-
let maxStoredCrashes =
|
|
13
|
+
let maxStoredCrashes = 100;
|
|
14
14
|
const appStartTime = Date.now();
|
|
15
15
|
let isCrashModuleEnabled = false;
|
|
16
16
|
export const setCrashModuleEnabled = (enabled) => {
|
|
@@ -12,16 +12,22 @@ export const setNetworkModuleEnabled = (enabled) => {
|
|
|
12
12
|
isNetworkModuleEnabled = enabled;
|
|
13
13
|
};
|
|
14
14
|
export const getNetworkModuleEnabled = () => isNetworkModuleEnabled;
|
|
15
|
-
const ALLOWED_METHODS = [
|
|
15
|
+
const ALLOWED_METHODS = [
|
|
16
|
+
"GET",
|
|
17
|
+
"POST",
|
|
18
|
+
"PUT",
|
|
19
|
+
"PATCH",
|
|
20
|
+
"DELETE",
|
|
21
|
+
"HEAD",
|
|
22
|
+
"OPTIONS",
|
|
23
|
+
"CONNECT",
|
|
24
|
+
"TRACE",
|
|
25
|
+
];
|
|
16
26
|
const IGNORED_URL_PATTERNS = [
|
|
17
|
-
/\/symbolicate(
|
|
27
|
+
/\/symbolicate(?:\?|$)/i,
|
|
18
28
|
/\/index\.bundle(?:\?|$)/i,
|
|
19
|
-
/\/hot(?:\?|$)/i,
|
|
20
|
-
/\/message(?:\?|$)/i,
|
|
21
29
|
/\/open-debugger(?:\?|$)/i,
|
|
22
|
-
|
|
23
|
-
/127\.0\.0\.1:(?:8081|8082|8083|19000|19001|19002|3000|8000)/i,
|
|
24
|
-
/localhost:(?:8081|8082|8083|19000|19001|19002|3000|8000)\/index\.bundle/i,
|
|
30
|
+
/:(?:8081|8082|8083|19000|19001)\/(?:index\.bundle|symbolicate|hot|message|status)/i,
|
|
25
31
|
/google-analytics\.com\/mp\/collect/i,
|
|
26
32
|
/analytics\.google\.com/i,
|
|
27
33
|
];
|
|
@@ -30,6 +36,21 @@ function shouldIgnoreUrl(url) {
|
|
|
30
36
|
return false;
|
|
31
37
|
return IGNORED_URL_PATTERNS.some((re) => re.test(url));
|
|
32
38
|
}
|
|
39
|
+
function parseXHRResponseHeaders(headerStr) {
|
|
40
|
+
if (!headerStr || typeof headerStr !== "string")
|
|
41
|
+
return undefined;
|
|
42
|
+
const lines = headerStr.trim().split(/[\r\n]+/);
|
|
43
|
+
const result = {};
|
|
44
|
+
lines.forEach((line) => {
|
|
45
|
+
const idx = line.indexOf(":");
|
|
46
|
+
if (idx > 0) {
|
|
47
|
+
const key = line.substring(0, idx).trim().toLowerCase();
|
|
48
|
+
const val = line.substring(idx + 1).trim();
|
|
49
|
+
result[key] = val;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return Object.keys(result).length > 0 ? result : undefined;
|
|
53
|
+
}
|
|
33
54
|
function normaliseHeaders(raw) {
|
|
34
55
|
if (!raw)
|
|
35
56
|
return undefined;
|
|
@@ -112,7 +133,7 @@ export const clearNetworkLogs = () => {
|
|
|
112
133
|
notify();
|
|
113
134
|
};
|
|
114
135
|
export const getNetworkLogs = () => [...logs];
|
|
115
|
-
let maxNetworkLogsLimit =
|
|
136
|
+
let maxNetworkLogsLimit = 250;
|
|
116
137
|
export const setMaxNetworkLogsLimit = (limit) => {
|
|
117
138
|
maxNetworkLogsLimit = Math.max(10, limit);
|
|
118
139
|
if (logs.length > maxNetworkLogsLimit) {
|
|
@@ -138,7 +159,7 @@ const addOrUpdateLog = (log) => {
|
|
|
138
159
|
if (!isNetworkModuleEnabled)
|
|
139
160
|
return;
|
|
140
161
|
const method = log.method?.toUpperCase();
|
|
141
|
-
if (!ALLOWED_METHODS.includes(method))
|
|
162
|
+
if (method && !ALLOWED_METHODS.includes(method))
|
|
142
163
|
return;
|
|
143
164
|
if (shouldIgnoreUrl(log.url))
|
|
144
165
|
return;
|
|
@@ -152,18 +173,143 @@ const addOrUpdateLog = (log) => {
|
|
|
152
173
|
logs = logs.slice(0, maxNetworkLogsLimit);
|
|
153
174
|
notify();
|
|
154
175
|
};
|
|
176
|
+
let isInsideFetch = false;
|
|
155
177
|
export const setupNetworkLogger = () => {
|
|
156
178
|
if (globalThis.__NETWORK_LOGGER_INITIALIZED__)
|
|
157
179
|
return;
|
|
158
180
|
globalThis.__NETWORK_LOGGER__ = addOrUpdateLog;
|
|
181
|
+
const globalXHR = globalThis.XMLHttpRequest;
|
|
182
|
+
if (globalXHR && globalXHR.prototype && !globalThis.__XHR_LOGGER_INITIALIZED__) {
|
|
183
|
+
globalThis.__XHR_LOGGER_INITIALIZED__ = true;
|
|
184
|
+
const originalOpen = globalXHR.prototype.open;
|
|
185
|
+
const originalSend = globalXHR.prototype.send;
|
|
186
|
+
const originalSetRequestHeader = globalXHR.prototype.setRequestHeader;
|
|
187
|
+
globalXHR.prototype.open = function (method, url, async, user, password) {
|
|
188
|
+
this.__logMethod = (method || "GET").toUpperCase();
|
|
189
|
+
this.__logUrl = typeof url === "string" ? url : String(url);
|
|
190
|
+
this.__logRequestHeaders = {};
|
|
191
|
+
this.__logStartTime = Date.now();
|
|
192
|
+
this.__logCaller = getCallerFromStack();
|
|
193
|
+
return originalOpen.apply(this, [method, url, async !== false, user, password]);
|
|
194
|
+
};
|
|
195
|
+
globalXHR.prototype.setRequestHeader = function (header, value) {
|
|
196
|
+
if (header && value != null) {
|
|
197
|
+
if (!this.__logRequestHeaders)
|
|
198
|
+
this.__logRequestHeaders = {};
|
|
199
|
+
this.__logRequestHeaders[header.toLowerCase()] = String(value);
|
|
200
|
+
}
|
|
201
|
+
return originalSetRequestHeader.apply(this, [header, value]);
|
|
202
|
+
};
|
|
203
|
+
globalXHR.prototype.send = function (body) {
|
|
204
|
+
if (!isNetworkModuleEnabled || isInsideFetch || this.__inAppInspectorTracked) {
|
|
205
|
+
return originalSend.apply(this, [body]);
|
|
206
|
+
}
|
|
207
|
+
const url = this.__logUrl || "";
|
|
208
|
+
const method = this.__logMethod || "GET";
|
|
209
|
+
if (shouldIgnoreUrl(url)) {
|
|
210
|
+
return originalSend.apply(this, [body]);
|
|
211
|
+
}
|
|
212
|
+
const id = counter++;
|
|
213
|
+
this.__logId = id;
|
|
214
|
+
const start = this.__logStartTime || Date.now();
|
|
215
|
+
const caller = this.__logCaller || "Unknown";
|
|
216
|
+
const requestHeaders = this.__logRequestHeaders;
|
|
217
|
+
let client = "xhr";
|
|
218
|
+
if (requestHeaders?.["apollographql-client-name"] ||
|
|
219
|
+
url.toLowerCase().includes("/graphql")) {
|
|
220
|
+
client = "apollo";
|
|
221
|
+
}
|
|
222
|
+
else if (caller.toLowerCase().includes("axios")) {
|
|
223
|
+
client = "axios";
|
|
224
|
+
}
|
|
225
|
+
const currentRoute = currentRouteProvider ? currentRouteProvider() : null;
|
|
226
|
+
addOrUpdateLog({
|
|
227
|
+
id,
|
|
228
|
+
url,
|
|
229
|
+
method,
|
|
230
|
+
startTime: start,
|
|
231
|
+
caller,
|
|
232
|
+
client,
|
|
233
|
+
routeInfo: currentRoute || undefined,
|
|
234
|
+
request: method === "GET" ? undefined : parseRequestData(body),
|
|
235
|
+
requestHeaders: Object.keys(requestHeaders || {}).length > 0 ? requestHeaders : undefined,
|
|
236
|
+
});
|
|
237
|
+
const onFinished = () => {
|
|
238
|
+
if (this.__logFinished)
|
|
239
|
+
return;
|
|
240
|
+
this.__logFinished = true;
|
|
241
|
+
const duration = Date.now() - start;
|
|
242
|
+
let responseData = null;
|
|
243
|
+
try {
|
|
244
|
+
if (this.responseType === "" || this.responseType === "text") {
|
|
245
|
+
const raw = this.responseText;
|
|
246
|
+
try {
|
|
247
|
+
responseData = JSON.parse(raw);
|
|
248
|
+
}
|
|
249
|
+
catch {
|
|
250
|
+
responseData = raw;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
else if (this.responseType === "json") {
|
|
254
|
+
responseData = this.response;
|
|
255
|
+
}
|
|
256
|
+
else if (this.responseType === "blob") {
|
|
257
|
+
responseData = `[Blob: ${this.response?.size || 0} bytes]`;
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
responseData = `[${this.responseType || "Unknown"} Data]`;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
catch {
|
|
264
|
+
responseData = this.response || null;
|
|
265
|
+
}
|
|
266
|
+
const rawRespHeaders = this.getAllResponseHeaders
|
|
267
|
+
? this.getAllResponseHeaders()
|
|
268
|
+
: "";
|
|
269
|
+
const responseHeaders = parseXHRResponseHeaders(rawRespHeaders);
|
|
270
|
+
addOrUpdateLog({
|
|
271
|
+
id,
|
|
272
|
+
url,
|
|
273
|
+
method,
|
|
274
|
+
status: this.status,
|
|
275
|
+
response: responseData,
|
|
276
|
+
duration,
|
|
277
|
+
startTime: start,
|
|
278
|
+
caller,
|
|
279
|
+
client,
|
|
280
|
+
responseHeaders,
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
const onErrorOrAbort = () => {
|
|
284
|
+
if (this.__logFinished)
|
|
285
|
+
return;
|
|
286
|
+
this.__logFinished = true;
|
|
287
|
+
const duration = Date.now() - start;
|
|
288
|
+
addOrUpdateLog({
|
|
289
|
+
id,
|
|
290
|
+
url,
|
|
291
|
+
method,
|
|
292
|
+
status: this.status || 0,
|
|
293
|
+
response: "Network request failed",
|
|
294
|
+
duration,
|
|
295
|
+
startTime: start,
|
|
296
|
+
caller,
|
|
297
|
+
client,
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
this.addEventListener("load", onFinished);
|
|
301
|
+
this.addEventListener("error", onErrorOrAbort);
|
|
302
|
+
this.addEventListener("abort", onErrorOrAbort);
|
|
303
|
+
this.addEventListener("timeout", onErrorOrAbort);
|
|
304
|
+
return originalSend.apply(this, [body]);
|
|
305
|
+
};
|
|
306
|
+
}
|
|
159
307
|
const originalFetch = globalThis.fetch;
|
|
160
308
|
if (originalFetch) {
|
|
161
309
|
globalThis.fetch = async (url, options = {}) => {
|
|
162
310
|
if (!isNetworkModuleEnabled)
|
|
163
311
|
return originalFetch(url, options);
|
|
164
312
|
const method = (options?.method || "GET").toUpperCase();
|
|
165
|
-
if (!ALLOWED_METHODS.includes(method))
|
|
166
|
-
return originalFetch(url, options);
|
|
167
313
|
const id = counter++;
|
|
168
314
|
const start = Date.now();
|
|
169
315
|
const finalUrl = typeof url === "string" ? url : url?.url;
|
|
@@ -171,18 +317,19 @@ export const setupNetworkLogger = () => {
|
|
|
171
317
|
return originalFetch(url, options);
|
|
172
318
|
let caller = "Unknown";
|
|
173
319
|
let requestHeaders;
|
|
174
|
-
let client =
|
|
320
|
+
let client = "fetch";
|
|
175
321
|
try {
|
|
176
322
|
requestHeaders = normaliseHeaders(options?.headers);
|
|
177
323
|
caller = getCallerFromStack();
|
|
178
|
-
if (requestHeaders?.[
|
|
179
|
-
|
|
324
|
+
if (requestHeaders?.["apollographql-client-name"] ||
|
|
325
|
+
finalUrl?.toLowerCase().includes("/graphql")) {
|
|
326
|
+
client = "apollo";
|
|
180
327
|
}
|
|
181
|
-
else if (requestHeaders?.[
|
|
182
|
-
client =
|
|
328
|
+
else if (requestHeaders?.["x-requested-with"]?.toLowerCase().includes("xmlhttprequest")) {
|
|
329
|
+
client = "xhr";
|
|
183
330
|
}
|
|
184
|
-
else if (caller?.toLowerCase().includes(
|
|
185
|
-
client =
|
|
331
|
+
else if (caller?.toLowerCase().includes("axios")) {
|
|
332
|
+
client = "axios";
|
|
186
333
|
}
|
|
187
334
|
const currentRoute = currentRouteProvider ? currentRouteProvider() : null;
|
|
188
335
|
addOrUpdateLog({
|
|
@@ -199,7 +346,14 @@ export const setupNetworkLogger = () => {
|
|
|
199
346
|
}
|
|
200
347
|
catch { }
|
|
201
348
|
try {
|
|
202
|
-
|
|
349
|
+
isInsideFetch = true;
|
|
350
|
+
let response;
|
|
351
|
+
try {
|
|
352
|
+
response = await originalFetch(url, options);
|
|
353
|
+
}
|
|
354
|
+
finally {
|
|
355
|
+
isInsideFetch = false;
|
|
356
|
+
}
|
|
203
357
|
const duration = Date.now() - start;
|
|
204
358
|
try {
|
|
205
359
|
const responseHeaders = normaliseHeaders(response.headers);
|
|
@@ -282,8 +436,6 @@ export const setupNetworkLogger = () => {
|
|
|
282
436
|
export const addAxiosInterceptors = (axiosInstance) => {
|
|
283
437
|
axiosInstance.interceptors.request.use(async (config) => {
|
|
284
438
|
const method = (config.method || "GET").toUpperCase();
|
|
285
|
-
if (!ALLOWED_METHODS.includes(method))
|
|
286
|
-
return config;
|
|
287
439
|
const id = counter++;
|
|
288
440
|
const start = Date.now();
|
|
289
441
|
const caller = getCallerFromStack();
|
|
@@ -302,7 +454,7 @@ export const addAxiosInterceptors = (axiosInstance) => {
|
|
|
302
454
|
method,
|
|
303
455
|
startTime: start,
|
|
304
456
|
caller,
|
|
305
|
-
client:
|
|
457
|
+
client: "axios",
|
|
306
458
|
routeInfo: currentRoute || undefined,
|
|
307
459
|
request: method === "GET" ? undefined : parseRequestData(config.data),
|
|
308
460
|
requestHeaders: normaliseHeaders(config.headers),
|
|
@@ -315,7 +467,7 @@ export const addAxiosInterceptors = (axiosInstance) => {
|
|
|
315
467
|
const start = config.__logStart;
|
|
316
468
|
const caller = config.__logCaller;
|
|
317
469
|
const method = (config.method || "GET").toUpperCase();
|
|
318
|
-
if (id == null
|
|
470
|
+
if (id == null)
|
|
319
471
|
return response;
|
|
320
472
|
let url = config.url ?? "";
|
|
321
473
|
if (!url.startsWith("http"))
|
|
@@ -329,7 +481,7 @@ export const addAxiosInterceptors = (axiosInstance) => {
|
|
|
329
481
|
startTime: start || Date.now(),
|
|
330
482
|
duration: start != null ? Date.now() - start : undefined,
|
|
331
483
|
caller,
|
|
332
|
-
client:
|
|
484
|
+
client: "axios",
|
|
333
485
|
responseHeaders: normaliseHeaders(response.headers),
|
|
334
486
|
});
|
|
335
487
|
return response;
|
|
@@ -339,7 +491,7 @@ export const addAxiosInterceptors = (axiosInstance) => {
|
|
|
339
491
|
const start = config.__logStart;
|
|
340
492
|
const caller = config.__logCaller;
|
|
341
493
|
const method = (config.method || "GET").toUpperCase();
|
|
342
|
-
if (id != null
|
|
494
|
+
if (id != null) {
|
|
343
495
|
let url = config.url ?? "";
|
|
344
496
|
if (!url.startsWith("http"))
|
|
345
497
|
url = `${config.baseURL ?? ""}${url}`;
|
|
@@ -352,10 +504,16 @@ export const addAxiosInterceptors = (axiosInstance) => {
|
|
|
352
504
|
startTime: start || Date.now(),
|
|
353
505
|
duration: start != null ? Date.now() - start : undefined,
|
|
354
506
|
caller,
|
|
355
|
-
client:
|
|
507
|
+
client: "axios",
|
|
356
508
|
responseHeaders: normaliseHeaders(error.response?.headers),
|
|
357
509
|
});
|
|
358
510
|
}
|
|
359
511
|
return Promise.reject(error);
|
|
360
512
|
});
|
|
361
513
|
};
|
|
514
|
+
if (typeof globalThis !== "undefined") {
|
|
515
|
+
try {
|
|
516
|
+
setupNetworkLogger();
|
|
517
|
+
}
|
|
518
|
+
catch { }
|
|
519
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NetworkLog, RouteInfo, DiffResult, JsonContent, StackFrameType } from '../types';
|
|
2
2
|
export * from './searchQueryParser';
|
|
3
3
|
export * from './memoryManager';
|
|
4
|
+
export declare const isLocalDebugEnvironment: () => boolean;
|
|
4
5
|
export declare const getDomainColor: (domain: string) => string;
|
|
5
6
|
export declare const formatDateTime: (timestamp: number) => string;
|
|
6
7
|
export declare const formatTimestamp: (timestamp: number) => string;
|
|
@@ -5,6 +5,15 @@ import { AppColors } from '../styles/AppColors';
|
|
|
5
5
|
import { DOMAIN_COLORS, DURATION_FAST_MS, DURATION_SLOW_MS } from '../constants';
|
|
6
6
|
export * from './searchQueryParser';
|
|
7
7
|
export * from './memoryManager';
|
|
8
|
+
export const isLocalDebugEnvironment = () => {
|
|
9
|
+
const isDev = typeof __DEV__ !== 'undefined' && Boolean(__DEV__);
|
|
10
|
+
const scriptURL = NativeModules.SourceCode?.scriptURL || '';
|
|
11
|
+
const hasDevServer = scriptURL.startsWith('http://') ||
|
|
12
|
+
scriptURL.startsWith('https://') ||
|
|
13
|
+
scriptURL.includes(':8081') ||
|
|
14
|
+
scriptURL.includes(':8082');
|
|
15
|
+
return isDev || hasDevServer;
|
|
16
|
+
};
|
|
8
17
|
export const getDomainColor = (domain) => {
|
|
9
18
|
if (!domain)
|
|
10
19
|
return DOMAIN_COLORS[0];
|