@crumbsdk/react-native 0.0.1-rc.3 → 0.0.1-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +270 -8
- package/android/build.gradle +0 -1
- package/android/src/main/java/com/margelo/nitro/crumbsdk/reactnative/CrumbReactNative.kt +121 -3
- package/app.plugin.js +22 -0
- package/ios/CrumbReactNative.swift +135 -3
- package/lib/module/NativeCrumbReactNative.web.js +5 -1
- package/lib/module/NativeCrumbReactNative.web.js.map +1 -1
- package/lib/module/index.js +91 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/javascript-crash-capture.js +497 -0
- package/lib/module/javascript-crash-capture.js.map +1 -0
- package/lib/module/log-buffer.js +22 -2
- package/lib/module/log-buffer.js.map +1 -1
- package/lib/module/screen-context.js +127 -0
- package/lib/module/screen-context.js.map +1 -0
- package/lib/typescript/src/CrumbReactNative.nitro.d.ts +5 -1
- package/lib/typescript/src/CrumbReactNative.nitro.d.ts.map +1 -1
- package/lib/typescript/src/NativeCrumbReactNative.web.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +7 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/javascript-crash-capture.d.ts +74 -0
- package/lib/typescript/src/javascript-crash-capture.d.ts.map +1 -0
- package/lib/typescript/src/log-buffer.d.ts +1 -0
- package/lib/typescript/src/log-buffer.d.ts.map +1 -1
- package/lib/typescript/src/screen-context.d.ts +19 -0
- package/lib/typescript/src/screen-context.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +38 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/native/ios/CrumbSDKCore.podspec +28 -0
- package/native/ios/CrumbSDKUI.podspec +38 -0
- package/native/ios/LICENSE +201 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/Info.plist +96 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_arm64e/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Resources/Info.plist +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Resources/Info.plist +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Resources/Info.plist +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-maccatalyst/CrashReporter.framework/Versions/Current/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeDirectory +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeResources +462 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/ios-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeSignature +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Resources/Info.plist +48 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Resources/Info.plist +48 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/A/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Resources/Info.plist +48 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/macos-arm64_x86_64/CrashReporter.framework/Versions/Current/Resources/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/CrashReporter +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/CrashReporter.h +366 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashFeatureConfig.h +108 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashMacros.h +143 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashNamespace.h +320 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReport.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportApplicationInfo.h +52 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportBinaryImageInfo.h +76 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportExceptionInfo.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportFormatter.h +55 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachExceptionInfo.h +41 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportMachineInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessInfo.h +80 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportProcessorInfo.h +64 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportRegisterInfo.h +45 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSignalInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportStackFrameInfo.h +50 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSymbolInfo.h +51 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportSystemInfo.h +158 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportTextFormatter.h +59 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReportThreadInfo.h +75 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporter.h +131 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Headers/PLCrashReporterConfig.h +193 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Info.plist +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/Modules/module.modulemap +8 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/PrivacyInfo.xcprivacy +39 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeDirectory +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeResources +462 -0
- package/native/ios/PLCrashReporter/CrashReporter.xcframework/tvos-arm64_x86_64-simulator/CrashReporter.framework/_CodeSignature/CodeSignature +0 -0
- package/native/ios/PLCrashReporter/LICENSE.txt +54 -0
- package/native/ios/PLCrashReporter/PLCrashReporter.podspec +19 -0
- package/native/ios/VERSION +1 -0
- package/native/ios/packages/ios/Sources/CrumbCore/Crumb.swift +108 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbConfiguration.swift +212 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbDiagnostics.swift +158 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbFailureStacks.swift +94 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbInfrastructureHealthProbe.swift +110 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptCrashRecovery.swift +136 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptCrashStore.swift +502 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbJavaScriptFailureContext.swift +166 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbLogs.swift +138 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbPolicy.swift +336 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbRendering.swift +68 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportEnvelope.swift +666 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportQueue.swift +543 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbReportUploader.swift +304 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbRuntime.swift +306 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbSDKVersion.swift +5 -0
- package/native/ios/packages/ios/Sources/CrumbCore/CrumbScreenContext.swift +29 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbDesign.swift +151 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbLocalization.swift +23 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbQualityInstrumentation.swift +30 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbRenderingMonitor.swift +40 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbReporter.swift +1705 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbReporterLifecycle.swift +119 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbScreenshotArtifact.swift +186 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbShakeGestureRecognizer.swift +62 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbUploadCoordinator.swift +113 -0
- package/native/ios/packages/ios/Sources/CrumbUI/CrumbWorkspacePolicyCoordinator.swift +86 -0
- package/native/ios/packages/ios/Sources/CrumbUI/OnDemandDiagnosticsCollector.swift +269 -0
- package/native/ios/packages/ios/Sources/CrumbUI/OnDemandLogCollector.swift +213 -0
- package/native/ios/packages/ios/Sources/CrumbUI/Resources/en.lproj/Localizable.strings +75 -0
- package/native/ios/provenance.json +8 -0
- package/nitrogen/generated/android/c++/JHybridCrumbReactNativeSpec.cpp +32 -3
- package/nitrogen/generated/android/c++/JHybridCrumbReactNativeSpec.hpp +5 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/crumbsdk/reactnative/HybridCrumbReactNativeSpec.kt +17 -1
- package/nitrogen/generated/ios/CrumbReactNative-Swift-Cxx-Bridge.hpp +9 -0
- package/nitrogen/generated/ios/c++/HybridCrumbReactNativeSpecSwift.hpp +30 -2
- package/nitrogen/generated/ios/swift/HybridCrumbReactNativeSpec.swift +5 -1
- package/nitrogen/generated/ios/swift/HybridCrumbReactNativeSpec_cxx.swift +55 -2
- package/nitrogen/generated/shared/c++/HybridCrumbReactNativeSpec.cpp +4 -0
- package/nitrogen/generated/shared/c++/HybridCrumbReactNativeSpec.hpp +5 -1
- package/package.json +15 -5
- package/plugin/podfile.cjs +21 -0
- package/scripts/ios.rb +23 -0
- package/src/CrumbReactNative.nitro.ts +5 -1
- package/src/NativeCrumbReactNative.web.ts +4 -0
- package/src/index.ts +218 -1
- package/src/javascript-crash-capture.ts +774 -0
- package/src/log-buffer.ts +27 -2
- package/src/screen-context.ts +154 -0
- package/src/types.ts +53 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import NativeCrumbReactNative from './NativeCrumbReactNative';
|
|
4
|
+
import { snapshotLogEntries } from "./log-buffer.js";
|
|
5
|
+
const DEFAULT_MAXIMUM_BREADCRUMBS = 32;
|
|
6
|
+
const DEFAULT_MAXIMUM_BREADCRUMB_BYTES = 16_384;
|
|
7
|
+
const MAXIMUM_BREADCRUMB_MESSAGE_BYTES = 2_048;
|
|
8
|
+
const MAXIMUM_CRASH_TYPE_BYTES = 128;
|
|
9
|
+
const MAXIMUM_CRASH_MESSAGE_BYTES = 4_000;
|
|
10
|
+
const MAXIMUM_CRASH_STACK_BYTES = 16_384;
|
|
11
|
+
const MAXIMUM_CONTEXT_VALUE_BYTES = 512;
|
|
12
|
+
const MAXIMUM_CONTEXT_BYTES = 8_192;
|
|
13
|
+
const MAXIMUM_HANDOFF_RECORD_BYTES = 32_768;
|
|
14
|
+
const DEDUPLICATION_WINDOW_MS = 10_000;
|
|
15
|
+
const globalObject = globalThis;
|
|
16
|
+
let state = emptyState();
|
|
17
|
+
export function configureJavaScriptCrashCapture(options, configuration, native = NativeCrumbReactNative) {
|
|
18
|
+
if (!options?.enabled) {
|
|
19
|
+
disableJavaScriptCrashCapture();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (state.configured) {
|
|
23
|
+
state.release = configuration.release;
|
|
24
|
+
state.context = allowlistedContext(configuration);
|
|
25
|
+
state.maximumBreadcrumbs = options.maximumBreadcrumbs ?? DEFAULT_MAXIMUM_BREADCRUMBS;
|
|
26
|
+
state.maximumBreadcrumbBytes = options.maximumBreadcrumbBytes ?? DEFAULT_MAXIMUM_BREADCRUMB_BYTES;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
state = {
|
|
30
|
+
...emptyState(),
|
|
31
|
+
native,
|
|
32
|
+
release: configuration.release,
|
|
33
|
+
context: allowlistedContext(configuration),
|
|
34
|
+
maximumBreadcrumbs: options.maximumBreadcrumbs ?? DEFAULT_MAXIMUM_BREADCRUMBS,
|
|
35
|
+
maximumBreadcrumbBytes: options.maximumBreadcrumbBytes ?? DEFAULT_MAXIMUM_BREADCRUMB_BYTES,
|
|
36
|
+
configured: true,
|
|
37
|
+
fingerprints: new Map()
|
|
38
|
+
};
|
|
39
|
+
installErrorUtilsHandler();
|
|
40
|
+
installReactNativeExceptionsManagerHandler();
|
|
41
|
+
installUnhandledRejectionHandler();
|
|
42
|
+
installHermesPromiseRejectionTracker();
|
|
43
|
+
}
|
|
44
|
+
export async function recoverJavaScriptCrashes() {
|
|
45
|
+
if (!state.configured) return;
|
|
46
|
+
try {
|
|
47
|
+
await state.native.recoverJavaScriptCrashes();
|
|
48
|
+
} catch {
|
|
49
|
+
// Crash recovery must never make application startup fail.
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export function disableJavaScriptCrashCapture() {
|
|
53
|
+
restoreErrorUtilsHandler();
|
|
54
|
+
restoreReactNativeExceptionsManagerHandler();
|
|
55
|
+
restoreUnhandledRejectionHandler();
|
|
56
|
+
state = emptyState();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Used by the deterministic adapter tests to release process-global handlers. */
|
|
60
|
+
export function resetJavaScriptCrashCaptureForTesting() {
|
|
61
|
+
disableJavaScriptCrashCapture();
|
|
62
|
+
}
|
|
63
|
+
function installErrorUtilsHandler() {
|
|
64
|
+
const errorUtils = globalObject.ErrorUtils;
|
|
65
|
+
if (!errorUtils || typeof errorUtils.getGlobalHandler !== 'function' || typeof errorUtils.setGlobalHandler !== 'function') {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
let previous;
|
|
69
|
+
try {
|
|
70
|
+
previous = errorUtils.getGlobalHandler();
|
|
71
|
+
} catch {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (typeof previous !== 'function') return;
|
|
75
|
+
const wrapper = (error, isFatal) => {
|
|
76
|
+
if (isFatal) captureFailure('exception', error, true);else if (isUnhandledRejectionFailure(error)) {
|
|
77
|
+
captureFailure('unhandled_rejection', rejectionReason(error), false);
|
|
78
|
+
}
|
|
79
|
+
return previous(error, isFatal);
|
|
80
|
+
};
|
|
81
|
+
try {
|
|
82
|
+
errorUtils.setGlobalHandler(wrapper);
|
|
83
|
+
state.errorUtils = {
|
|
84
|
+
target: errorUtils,
|
|
85
|
+
previous,
|
|
86
|
+
wrapper
|
|
87
|
+
};
|
|
88
|
+
} catch {
|
|
89
|
+
// A host-owned handler remains authoritative if its setter rejects us.
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function installReactNativeExceptionsManagerHandler() {
|
|
93
|
+
if (typeof require !== 'function') return;
|
|
94
|
+
let moduleValue;
|
|
95
|
+
try {
|
|
96
|
+
// React Native does not expose its promise tracker through a public API.
|
|
97
|
+
// This optional bridge preserves the existing ExceptionsManager chain.
|
|
98
|
+
// eslint-disable-next-line @react-native/no-deep-imports
|
|
99
|
+
moduleValue = require('react-native/Libraries/Core/ExceptionsManager');
|
|
100
|
+
} catch {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const moduleObject = asObject(moduleValue);
|
|
104
|
+
const targetValue = moduleObject?.default ?? moduleValue;
|
|
105
|
+
const targetObject = asObject(targetValue);
|
|
106
|
+
if (!targetObject || typeof targetObject.handleException !== 'function') {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const target = targetObject;
|
|
110
|
+
const previous = target.handleException;
|
|
111
|
+
const wrapper = (error, isFatal) => {
|
|
112
|
+
if (!isFatal && isUnhandledRejectionFailure(error)) {
|
|
113
|
+
captureFailure('unhandled_rejection', rejectionReason(error), false);
|
|
114
|
+
}
|
|
115
|
+
return previous.call(target, error, isFatal);
|
|
116
|
+
};
|
|
117
|
+
try {
|
|
118
|
+
target.handleException = wrapper;
|
|
119
|
+
state.reactNativeExceptionsManager = {
|
|
120
|
+
target,
|
|
121
|
+
previous,
|
|
122
|
+
wrapper
|
|
123
|
+
};
|
|
124
|
+
} catch {
|
|
125
|
+
// A runtime with an immutable module surface keeps the existing handler.
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function installUnhandledRejectionHandler() {
|
|
129
|
+
const previous = globalObject.onunhandledrejection;
|
|
130
|
+
const wrapper = event => {
|
|
131
|
+
captureFailure('unhandled_rejection', event?.reason, false);
|
|
132
|
+
return previous?.call(globalObject, event);
|
|
133
|
+
};
|
|
134
|
+
try {
|
|
135
|
+
// React Native does not consistently predeclare this browser-compatible
|
|
136
|
+
// hook. Defining it only while opted in gives runtimes that dispatch the
|
|
137
|
+
// standard event a stable handoff without touching disabled mode.
|
|
138
|
+
globalObject.onunhandledrejection = wrapper;
|
|
139
|
+
state.property = {
|
|
140
|
+
target: globalObject,
|
|
141
|
+
previous,
|
|
142
|
+
wrapper
|
|
143
|
+
};
|
|
144
|
+
} catch {
|
|
145
|
+
// Some runtimes expose a read-only event property; use their fallback.
|
|
146
|
+
}
|
|
147
|
+
if (typeof globalObject.addEventListener === 'function' && typeof globalObject.removeEventListener === 'function') {
|
|
148
|
+
const eventWrapper = event => {
|
|
149
|
+
captureFailure('unhandled_rejection', event?.reason, false);
|
|
150
|
+
};
|
|
151
|
+
try {
|
|
152
|
+
globalObject.addEventListener('unhandledrejection', eventWrapper);
|
|
153
|
+
state.eventTarget = {
|
|
154
|
+
target: globalObject,
|
|
155
|
+
wrapper: eventWrapper
|
|
156
|
+
};
|
|
157
|
+
} catch {
|
|
158
|
+
// Continue to the process fallback when available.
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const process = globalObject.process;
|
|
162
|
+
if (!process || typeof process.on !== 'function' || typeof process.removeListener !== 'function') {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const processWrapper = (...args) => {
|
|
166
|
+
captureFailure('unhandled_rejection', args[0], false);
|
|
167
|
+
};
|
|
168
|
+
try {
|
|
169
|
+
process.on('unhandledRejection', processWrapper);
|
|
170
|
+
state.process = {
|
|
171
|
+
target: process,
|
|
172
|
+
wrapper: processWrapper
|
|
173
|
+
};
|
|
174
|
+
} catch {
|
|
175
|
+
// A runtime without a usable rejection hook remains unsupported safely.
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function installHermesPromiseRejectionTracker() {
|
|
179
|
+
// React Native and Expo already install their Hermes tracker in development.
|
|
180
|
+
// Release builds leave it disabled, which is the gap Crumb needs to fill.
|
|
181
|
+
if (typeof __DEV__ !== 'undefined' && __DEV__) return;
|
|
182
|
+
const hermes = globalObject.HermesInternal;
|
|
183
|
+
if (!hermes?.hasPromise?.() || typeof hermes.enablePromiseRejectionTracker !== 'function') {
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
const exceptionsManager = state.reactNativeExceptionsManager?.target;
|
|
187
|
+
const errorUtils = state.errorUtils?.target;
|
|
188
|
+
try {
|
|
189
|
+
hermes.enablePromiseRejectionTracker({
|
|
190
|
+
allRejections: true,
|
|
191
|
+
onUnhandled: (id, rejection) => {
|
|
192
|
+
captureFailure('unhandled_rejection', rejection, false);
|
|
193
|
+
const error = unhandledRejectionError(id, rejection);
|
|
194
|
+
if (errorUtils) {
|
|
195
|
+
errorUtils.getGlobalHandler()(error, false);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
exceptionsManager?.handleException(error, false);
|
|
199
|
+
},
|
|
200
|
+
onHandled: id => {
|
|
201
|
+
console.warn(`Promise rejection handled (id: ${id}); the earlier unhandled-rejection record may be ignored.`);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
} catch {
|
|
205
|
+
// Runtimes without a usable Hermes tracker keep the other handlers.
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function unhandledRejectionError(id, rejection) {
|
|
209
|
+
const normalized = normalizeFailure(rejection);
|
|
210
|
+
const prefix = `Uncaught (in promise, id: ${id})`;
|
|
211
|
+
const error = new Error(`${prefix}: ${normalized.message}`);
|
|
212
|
+
error.cause = rejection;
|
|
213
|
+
if (normalized.stack) error.stack = `${prefix} ${normalized.stack}`;
|
|
214
|
+
return error;
|
|
215
|
+
}
|
|
216
|
+
function restoreErrorUtilsHandler() {
|
|
217
|
+
const installed = state.errorUtils;
|
|
218
|
+
if (!installed) return;
|
|
219
|
+
try {
|
|
220
|
+
if (installed.target.getGlobalHandler() === installed.wrapper) {
|
|
221
|
+
installed.target.setGlobalHandler(installed.previous);
|
|
222
|
+
}
|
|
223
|
+
} catch {
|
|
224
|
+
// Never replace a host handler that became unavailable during teardown.
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function restoreReactNativeExceptionsManagerHandler() {
|
|
228
|
+
const installed = state.reactNativeExceptionsManager;
|
|
229
|
+
if (!installed) return;
|
|
230
|
+
try {
|
|
231
|
+
if (installed.target.handleException === installed.wrapper) {
|
|
232
|
+
installed.target.handleException = installed.previous;
|
|
233
|
+
}
|
|
234
|
+
} catch {
|
|
235
|
+
// Never replace a host handler that became unavailable during teardown.
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
function restoreUnhandledRejectionHandler() {
|
|
239
|
+
const property = state.property;
|
|
240
|
+
if (property) {
|
|
241
|
+
try {
|
|
242
|
+
if (property.target.onunhandledrejection === property.wrapper) {
|
|
243
|
+
if (property.previous === undefined) {
|
|
244
|
+
delete property.target.onunhandledrejection;
|
|
245
|
+
} else {
|
|
246
|
+
property.target.onunhandledrejection = property.previous;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
} catch {
|
|
250
|
+
// Leave a host replacement untouched.
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
const eventTarget = state.eventTarget;
|
|
254
|
+
if (eventTarget) {
|
|
255
|
+
try {
|
|
256
|
+
eventTarget.target.removeEventListener?.('unhandledrejection', eventTarget.wrapper);
|
|
257
|
+
} catch {
|
|
258
|
+
// Teardown is best effort and never affects the application.
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const process = state.process;
|
|
262
|
+
if (process) {
|
|
263
|
+
try {
|
|
264
|
+
process.target.removeListener?.('unhandledRejection', process.wrapper);
|
|
265
|
+
} catch {
|
|
266
|
+
// Teardown is best effort and never affects the application.
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function isUnhandledRejectionFailure(value) {
|
|
271
|
+
const message = readStringProperty(value, 'message');
|
|
272
|
+
return message?.startsWith('Uncaught (in promise') === true || message?.startsWith('Possible Unhandled Promise Rejection') === true;
|
|
273
|
+
}
|
|
274
|
+
function rejectionReason(value) {
|
|
275
|
+
if (typeof value !== 'object' && typeof value !== 'function' || value === null) {
|
|
276
|
+
return value;
|
|
277
|
+
}
|
|
278
|
+
try {
|
|
279
|
+
if ('cause' in value) {
|
|
280
|
+
return value.cause;
|
|
281
|
+
}
|
|
282
|
+
} catch {
|
|
283
|
+
// Fall back to the wrapper when its cause is inaccessible.
|
|
284
|
+
}
|
|
285
|
+
return value;
|
|
286
|
+
}
|
|
287
|
+
function asObject(value) {
|
|
288
|
+
return typeof value === 'object' && value !== null ? value : undefined;
|
|
289
|
+
}
|
|
290
|
+
function captureFailure(kind, reason, isFatal) {
|
|
291
|
+
if (!state.configured) return;
|
|
292
|
+
try {
|
|
293
|
+
const normalized = normalizeFailure(reason);
|
|
294
|
+
const fingerprint = fingerprintFor(normalized);
|
|
295
|
+
const now = Date.now();
|
|
296
|
+
pruneFingerprints(now);
|
|
297
|
+
const previous = state.fingerprints.get(fingerprint);
|
|
298
|
+
if (previous !== undefined && now - previous <= DEDUPLICATION_WINDOW_MS) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
state.fingerprints.set(fingerprint, now);
|
|
302
|
+
const record = {
|
|
303
|
+
schema_version: '1.0',
|
|
304
|
+
record_id: makeRecordId(),
|
|
305
|
+
fingerprint,
|
|
306
|
+
source: 'javascript',
|
|
307
|
+
kind,
|
|
308
|
+
type: normalized.type,
|
|
309
|
+
message: normalized.message,
|
|
310
|
+
occurred_at: new Date(now).toISOString(),
|
|
311
|
+
release: state.release ? {
|
|
312
|
+
...(state.release.appVersion ? {
|
|
313
|
+
app_version: state.release.appVersion
|
|
314
|
+
} : {}),
|
|
315
|
+
...(state.release.nativeBuild ? {
|
|
316
|
+
native_build: state.release.nativeBuild
|
|
317
|
+
} : {}),
|
|
318
|
+
...(state.release.bundleVersion ? {
|
|
319
|
+
bundle_version: state.release.bundleVersion
|
|
320
|
+
} : {})
|
|
321
|
+
} : undefined,
|
|
322
|
+
breadcrumbs: [],
|
|
323
|
+
context: state.context,
|
|
324
|
+
is_fatal: isFatal,
|
|
325
|
+
native_termination_wrapper_observed: false
|
|
326
|
+
};
|
|
327
|
+
if (normalized.stack) record.stack = normalized.stack;
|
|
328
|
+
record.breadcrumbs = captureBreadcrumbsWithinRecordBudget(record);
|
|
329
|
+
state.native.recordJavaScriptCrash(JSON.stringify(record));
|
|
330
|
+
} catch {
|
|
331
|
+
// The original host handler must still run if local capture or persistence fails.
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
function normalizeFailure(reason) {
|
|
335
|
+
const type = readStringProperty(reason, 'name') ?? (reason instanceof Error ? 'Error' : reason === null ? 'null' : typeof reason);
|
|
336
|
+
const message = readStringProperty(reason, 'message') ?? (typeof reason === 'string' ? reason : safeRender(reason));
|
|
337
|
+
const stack = readStringProperty(reason, 'stack');
|
|
338
|
+
return {
|
|
339
|
+
type: sanitizeText(type, MAXIMUM_CRASH_TYPE_BYTES),
|
|
340
|
+
message: sanitizeText(message || 'JavaScript failure', MAXIMUM_CRASH_MESSAGE_BYTES),
|
|
341
|
+
...(stack ? {
|
|
342
|
+
stack: sanitizeText(stack, MAXIMUM_CRASH_STACK_BYTES, true)
|
|
343
|
+
} : {})
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
function readStringProperty(value, property) {
|
|
347
|
+
if (typeof value !== 'object' && typeof value !== 'function' || value === null) {
|
|
348
|
+
return undefined;
|
|
349
|
+
}
|
|
350
|
+
try {
|
|
351
|
+
const candidate = value[property];
|
|
352
|
+
return typeof candidate === 'string' ? candidate : undefined;
|
|
353
|
+
} catch {
|
|
354
|
+
return undefined;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function safeRender(value) {
|
|
358
|
+
try {
|
|
359
|
+
if (value === null) return 'null';
|
|
360
|
+
if (value === undefined) return 'undefined';
|
|
361
|
+
if (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {
|
|
362
|
+
return String(value);
|
|
363
|
+
}
|
|
364
|
+
return Object.prototype.toString.call(value);
|
|
365
|
+
} catch {
|
|
366
|
+
return 'Unserializable JavaScript failure';
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function captureBreadcrumbsWithinRecordBudget(record) {
|
|
370
|
+
const availableBytes = Math.max(0, MAXIMUM_HANDOFF_RECORD_BYTES - byteLength(JSON.stringify(record)));
|
|
371
|
+
const breadcrumbs = captureBreadcrumbs(availableBytes);
|
|
372
|
+
while (breadcrumbs.length > 0 && byteLength(JSON.stringify({
|
|
373
|
+
...record,
|
|
374
|
+
breadcrumbs
|
|
375
|
+
})) > MAXIMUM_HANDOFF_RECORD_BYTES) {
|
|
376
|
+
breadcrumbs.shift();
|
|
377
|
+
}
|
|
378
|
+
return breadcrumbs;
|
|
379
|
+
}
|
|
380
|
+
function captureBreadcrumbs(maximumBytes) {
|
|
381
|
+
const entries = snapshotLogEntries();
|
|
382
|
+
const selected = [];
|
|
383
|
+
let bytes = 0;
|
|
384
|
+
for (let index = entries.length - 1; index >= 0; index -= 1) {
|
|
385
|
+
if (selected.length >= state.maximumBreadcrumbs) break;
|
|
386
|
+
const entry = entries[index];
|
|
387
|
+
if (!entry) continue;
|
|
388
|
+
const breadcrumb = {
|
|
389
|
+
timestamp: new Date(entry.timestampMs).toISOString(),
|
|
390
|
+
source: sanitizeText(entry.source, 64),
|
|
391
|
+
category: sanitizeText(entry.category, 256),
|
|
392
|
+
message: sanitizeText(entry.message, MAXIMUM_BREADCRUMB_MESSAGE_BYTES, true)
|
|
393
|
+
};
|
|
394
|
+
const breadcrumbBytes = byteLength(JSON.stringify(breadcrumb));
|
|
395
|
+
if (bytes + breadcrumbBytes > Math.min(state.maximumBreadcrumbBytes, maximumBytes)) {
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
selected.push(breadcrumb);
|
|
399
|
+
bytes += breadcrumbBytes;
|
|
400
|
+
}
|
|
401
|
+
return selected.reverse();
|
|
402
|
+
}
|
|
403
|
+
function allowlistedContext(configuration) {
|
|
404
|
+
const values = configuration.customContext?.values ?? {};
|
|
405
|
+
const allowedKeys = new Set(configuration.customContext?.allowedKeys ?? []);
|
|
406
|
+
const result = {};
|
|
407
|
+
let bytes = 0;
|
|
408
|
+
for (const key of Object.keys(values).sort()) {
|
|
409
|
+
if (!allowedKeys.has(key) || !isValidContextKey(key) || isSensitiveContextKey(key)) {
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
const value = sanitizeText(values[key] ?? '', MAXIMUM_CONTEXT_VALUE_BYTES);
|
|
413
|
+
if (!value) continue;
|
|
414
|
+
const entryBytes = byteLength(key) + byteLength(value);
|
|
415
|
+
if (bytes + entryBytes > MAXIMUM_CONTEXT_BYTES) break;
|
|
416
|
+
result[key] = value;
|
|
417
|
+
bytes += entryBytes;
|
|
418
|
+
if (Object.keys(result).length >= 16) break;
|
|
419
|
+
}
|
|
420
|
+
return result;
|
|
421
|
+
}
|
|
422
|
+
function isValidContextKey(value) {
|
|
423
|
+
return value.length <= 64 && /^[A-Za-z][A-Za-z0-9_.-]*$/.test(value);
|
|
424
|
+
}
|
|
425
|
+
function isSensitiveContextKey(value) {
|
|
426
|
+
return ['password', 'passwd', 'secret', 'token', 'authorization', 'cookie', 'api_key', 'apikey', 'access_key', 'private_key', 'card', 'cvv', 'cvc', 'ssn', 'email', 'phone', 'address'].some(fragment => value.toLowerCase().includes(fragment));
|
|
427
|
+
}
|
|
428
|
+
function sanitizeText(value, maximumBytes, preserveNewlines = false) {
|
|
429
|
+
let sanitized = value.replace(/(https?:\/\/)[^/\s:@]+:[^/@\s]+@/gi, '$1[REDACTED]@').replace(/\bBearer\s+[A-Za-z0-9._~+/=-]+/gi, 'Bearer [REDACTED]').replace(/\b(authorization|cookie|set-cookie|password|passwd|secret|token|api[_-]?key)\s*[:=]\s*("[^"]*"|'[^']*'|[^\s,;]+)/gi, '$1=[REDACTED]').replace(/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi, '[REDACTED_EMAIL]').replace(/\b(?:\d[ -]*?){13,19}\b/g, '[REDACTED_NUMBER]').replace(/([?&][A-Za-z0-9._~-]+)=([^&#\s]*)/g, '$1=[REDACTED]').replace(/\r\n?/g, '\n');
|
|
430
|
+
sanitized = [...sanitized].map(character => {
|
|
431
|
+
if (character === '\n' && preserveNewlines) return character;
|
|
432
|
+
if (character === '\t' && preserveNewlines) return character;
|
|
433
|
+
return character < ' ' || character === '\u007f' ? ' ' : character;
|
|
434
|
+
}).join('');
|
|
435
|
+
return truncateUtf8(sanitized.trim(), maximumBytes);
|
|
436
|
+
}
|
|
437
|
+
function fingerprintFor(normalized) {
|
|
438
|
+
const value = `${normalized.type}\u0000${normalized.message}\u0000${normalized.stack ?? ''}`;
|
|
439
|
+
return `${fnv1a(value, 2_166_136_261)}${fnv1a(value, 2_247_766_997)}`;
|
|
440
|
+
}
|
|
441
|
+
function fnv1a(value, seed) {
|
|
442
|
+
let hash = seed;
|
|
443
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
444
|
+
hash = Math.abs(Math.imul(hash, 16_777_619) + value.charCodeAt(index));
|
|
445
|
+
}
|
|
446
|
+
return hash.toString(16).padStart(8, '0');
|
|
447
|
+
}
|
|
448
|
+
function pruneFingerprints(now) {
|
|
449
|
+
for (const [fingerprint, timestamp] of state.fingerprints) {
|
|
450
|
+
if (now - timestamp > DEDUPLICATION_WINDOW_MS) {
|
|
451
|
+
state.fingerprints.delete(fingerprint);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
let recordSequence = 0;
|
|
456
|
+
function makeRecordId() {
|
|
457
|
+
recordSequence = (recordSequence + 1) % 36 ** 4;
|
|
458
|
+
const random = Math.random().toString(36).slice(2, 14);
|
|
459
|
+
return `jsc_${Date.now().toString(36)}${recordSequence.toString(36)}${random}`.slice(0, 80);
|
|
460
|
+
}
|
|
461
|
+
function truncateUtf8(value, maximumBytes) {
|
|
462
|
+
if (byteLength(value) <= maximumBytes) return value;
|
|
463
|
+
let result = '';
|
|
464
|
+
for (const character of value) {
|
|
465
|
+
if (byteLength(`${result}${character}…`) > maximumBytes) break;
|
|
466
|
+
result += character;
|
|
467
|
+
}
|
|
468
|
+
return `${result}…`;
|
|
469
|
+
}
|
|
470
|
+
function byteLength(value) {
|
|
471
|
+
let bytes = 0;
|
|
472
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
473
|
+
const code = value.charCodeAt(index);
|
|
474
|
+
if (code <= 0x7f) {
|
|
475
|
+
bytes += 1;
|
|
476
|
+
} else if (code <= 0x7ff) {
|
|
477
|
+
bytes += 2;
|
|
478
|
+
} else if (code >= 0xd800 && code <= 0xdbff && index + 1 < value.length && value.charCodeAt(index + 1) >= 0xdc00 && value.charCodeAt(index + 1) <= 0xdfff) {
|
|
479
|
+
bytes += 4;
|
|
480
|
+
index += 1;
|
|
481
|
+
} else {
|
|
482
|
+
bytes += 3;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
return bytes;
|
|
486
|
+
}
|
|
487
|
+
function emptyState() {
|
|
488
|
+
return {
|
|
489
|
+
native: NativeCrumbReactNative,
|
|
490
|
+
context: {},
|
|
491
|
+
maximumBreadcrumbs: DEFAULT_MAXIMUM_BREADCRUMBS,
|
|
492
|
+
maximumBreadcrumbBytes: DEFAULT_MAXIMUM_BREADCRUMB_BYTES,
|
|
493
|
+
configured: false,
|
|
494
|
+
fingerprints: new Map()
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
//# sourceMappingURL=javascript-crash-capture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeCrumbReactNative","snapshotLogEntries","DEFAULT_MAXIMUM_BREADCRUMBS","DEFAULT_MAXIMUM_BREADCRUMB_BYTES","MAXIMUM_BREADCRUMB_MESSAGE_BYTES","MAXIMUM_CRASH_TYPE_BYTES","MAXIMUM_CRASH_MESSAGE_BYTES","MAXIMUM_CRASH_STACK_BYTES","MAXIMUM_CONTEXT_VALUE_BYTES","MAXIMUM_CONTEXT_BYTES","MAXIMUM_HANDOFF_RECORD_BYTES","DEDUPLICATION_WINDOW_MS","globalObject","globalThis","state","emptyState","configureJavaScriptCrashCapture","options","configuration","native","enabled","disableJavaScriptCrashCapture","configured","release","context","allowlistedContext","maximumBreadcrumbs","maximumBreadcrumbBytes","fingerprints","Map","installErrorUtilsHandler","installReactNativeExceptionsManagerHandler","installUnhandledRejectionHandler","installHermesPromiseRejectionTracker","recoverJavaScriptCrashes","restoreErrorUtilsHandler","restoreReactNativeExceptionsManagerHandler","restoreUnhandledRejectionHandler","resetJavaScriptCrashCaptureForTesting","errorUtils","ErrorUtils","getGlobalHandler","setGlobalHandler","previous","wrapper","error","isFatal","captureFailure","isUnhandledRejectionFailure","rejectionReason","target","require","moduleValue","moduleObject","asObject","targetValue","default","targetObject","handleException","call","reactNativeExceptionsManager","onunhandledrejection","event","reason","property","addEventListener","removeEventListener","eventWrapper","eventTarget","process","on","removeListener","processWrapper","args","__DEV__","hermes","HermesInternal","hasPromise","enablePromiseRejectionTracker","exceptionsManager","allRejections","onUnhandled","id","rejection","unhandledRejectionError","onHandled","console","warn","normalized","normalizeFailure","prefix","Error","message","cause","stack","installed","undefined","value","readStringProperty","startsWith","kind","fingerprint","fingerprintFor","now","Date","pruneFingerprints","get","set","record","schema_version","record_id","makeRecordId","source","type","occurred_at","toISOString","appVersion","app_version","nativeBuild","native_build","bundleVersion","bundle_version","breadcrumbs","is_fatal","native_termination_wrapper_observed","captureBreadcrumbsWithinRecordBudget","recordJavaScriptCrash","JSON","stringify","safeRender","sanitizeText","candidate","String","Object","prototype","toString","availableBytes","Math","max","byteLength","captureBreadcrumbs","length","shift","maximumBytes","entries","selected","bytes","index","entry","breadcrumb","timestamp","timestampMs","category","breadcrumbBytes","min","push","reverse","values","customContext","allowedKeys","Set","result","key","keys","sort","has","isValidContextKey","isSensitiveContextKey","entryBytes","test","some","fragment","toLowerCase","includes","preserveNewlines","sanitized","replace","map","character","join","truncateUtf8","trim","fnv1a","seed","hash","abs","imul","charCodeAt","padStart","delete","recordSequence","random","slice","code"],"sourceRoot":"../../src","sources":["javascript-crash-capture.ts"],"mappings":";;AAAA,OAAOA,sBAAsB,MAAM,0BAA0B;AAC7D,SAASC,kBAAkB,QAAQ,iBAAc;AAWjD,MAAMC,2BAA2B,GAAG,EAAE;AACtC,MAAMC,gCAAgC,GAAG,MAAM;AAC/C,MAAMC,gCAAgC,GAAG,KAAK;AAC9C,MAAMC,wBAAwB,GAAG,GAAG;AACpC,MAAMC,2BAA2B,GAAG,KAAK;AACzC,MAAMC,yBAAyB,GAAG,MAAM;AACxC,MAAMC,2BAA2B,GAAG,GAAG;AACvC,MAAMC,qBAAqB,GAAG,KAAK;AACnC,MAAMC,4BAA4B,GAAG,MAAM;AAC3C,MAAMC,uBAAuB,GAAG,MAAM;AAyFtC,MAAMC,YAAY,GAAGC,UAAyC;AAE9D,IAAIC,KAAwB,GAAGC,UAAU,CAAC,CAAC;AAE3C,OAAO,SAASC,+BAA+BA,CAC7CC,OAAuD,EACvDC,aAAiC,EACjCC,MAAmC,GAAGnB,sBAAsB,EACtD;EACN,IAAI,CAACiB,OAAO,EAAEG,OAAO,EAAE;IACrBC,6BAA6B,CAAC,CAAC;IAC/B;EACF;EAEA,IAAIP,KAAK,CAACQ,UAAU,EAAE;IACpBR,KAAK,CAACS,OAAO,GAAGL,aAAa,CAACK,OAAO;IACrCT,KAAK,CAACU,OAAO,GAAGC,kBAAkB,CAACP,aAAa,CAAC;IACjDJ,KAAK,CAACY,kBAAkB,GACtBT,OAAO,CAACS,kBAAkB,IAAIxB,2BAA2B;IAC3DY,KAAK,CAACa,sBAAsB,GAC1BV,OAAO,CAACU,sBAAsB,IAAIxB,gCAAgC;IACpE;EACF;EAEAW,KAAK,GAAG;IACN,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C,KAAK,CAAC;IACpC,IAAI8C,IAAI,IAAI,IAAI,EAAE;MAChB/C,KAAK,IAAI,CAAC;IACZ,CAAC,MAAM,IAAI+C,IAAI,IAAI,KAAK,EAAE;MACxB/C,KAAK,IAAI,CAAC;IACZ,CAAC,MAAM,IACL+C,IAAI,IAAI,MAAM,IACdA,IAAI,IAAI,MAAM,IACd9C,KAAK,GAAG,CAAC,GAAGlD,KAAK,CAAC4C,MAAM,IACxB5C,KAAK,CAAC0F,UAAU,CAACxC,KAAK,GAAG,CAAC,CAAC,IAAI,MAAM,IACrClD,KAAK,CAAC0F,UAAU,CAACxC,KAAK,GAAG,CAAC,CAAC,IAAI,MAAM,EACrC;MACAD,KAAK,IAAI,CAAC;MACVC,KAAK,IAAI,CAAC;IACZ,CAAC,MAAM;MACLD,KAAK,IAAI,CAAC;IACZ;EACF;EACA,OAAOA,KAAK;AACd;AAEA,SAASnI,UAAUA,CAAA,EAAsB;EACvC,OAAO;IACLI,MAAM,EAAEnB,sBAAsB;IAC9BwB,OAAO,EAAE,CAAC,CAAC;IACXE,kBAAkB,EAAExB,2BAA2B;IAC/CyB,sBAAsB,EAAExB,gCAAgC;IACxDmB,UAAU,EAAE,KAAK;IACjBM,YAAY,EAAE,IAAIC,GAAG,CAAC;EACxB,CAAC;AACH","ignoreList":[]}
|
package/lib/module/log-buffer.js
CHANGED
|
@@ -32,18 +32,30 @@ export function configureLogBuffer(options) {
|
|
|
32
32
|
export function markNativeStarted() {
|
|
33
33
|
nativeStarted = true;
|
|
34
34
|
NativeCrumbReactNative.clearLogs();
|
|
35
|
+
if (!canCollectLogs()) {
|
|
36
|
+
clearBufferedEntries();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
35
39
|
for (const entry of entries) {
|
|
36
40
|
NativeCrumbReactNative.addLog(JSON.stringify(entry));
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
export function clearLogs() {
|
|
40
|
-
|
|
41
|
-
usedBytes = 0;
|
|
44
|
+
clearBufferedEntries();
|
|
42
45
|
if (nativeStarted) {
|
|
43
46
|
NativeCrumbReactNative.clearLogs();
|
|
44
47
|
}
|
|
45
48
|
}
|
|
49
|
+
export function snapshotLogEntries() {
|
|
50
|
+
if (!canCollectLogs()) {
|
|
51
|
+
clearBufferedEntries();
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
54
|
+
prune(Date.now());
|
|
55
|
+
return entries.slice();
|
|
56
|
+
}
|
|
46
57
|
export function writeLog(level, message, metadata, category = 'javascript') {
|
|
58
|
+
if (!canCollectLogs()) return;
|
|
47
59
|
const timestampMs = Date.now();
|
|
48
60
|
const metadataText = metadata ? serializeMetadata(metadata) : undefined;
|
|
49
61
|
const entry = {
|
|
@@ -89,12 +101,20 @@ export function disableConsoleCapture() {
|
|
|
89
101
|
capturedError = undefined;
|
|
90
102
|
}
|
|
91
103
|
function writeConsoleLog(level, data) {
|
|
104
|
+
if (!canCollectLogs()) return;
|
|
92
105
|
const suppliedError = data.find(value => value instanceof Error);
|
|
93
106
|
const rendered = data.map(renderConsoleValue).join(' ');
|
|
94
107
|
const stack = suppliedError?.stack ?? new Error(`console.${level}`).stack;
|
|
95
108
|
const message = stack ? `${rendered}\n${stack}` : rendered;
|
|
96
109
|
writeLog(level, message, undefined, 'console');
|
|
97
110
|
}
|
|
111
|
+
function canCollectLogs() {
|
|
112
|
+
return !nativeStarted || NativeCrumbReactNative.canCollectLogs();
|
|
113
|
+
}
|
|
114
|
+
function clearBufferedEntries() {
|
|
115
|
+
entries = [];
|
|
116
|
+
usedBytes = 0;
|
|
117
|
+
}
|
|
98
118
|
function renderConsoleValue(value) {
|
|
99
119
|
if (value instanceof Error) return value.stack ?? value.message;
|
|
100
120
|
if (typeof value === 'string') return value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeCrumbReactNative","DEFAULT_LOOKBACK_MS","DEFAULT_MAXIMUM_ENTRIES","DEFAULT_MAXIMUM_BYTES","MAXIMUM_METADATA_DEPTH","MAXIMUM_OBJECT_KEYS","MAXIMUM_ARRAY_ITEMS","MAXIMUM_STRING_LENGTH","MAXIMUM_ENTRY_BYTES","limits","lookbackMs","maximumEntries","maximumBytes","entries","usedBytes","nativeStarted","originalWarn","originalError","capturedWarn","capturedError","configureLogBuffer","options","prune","Date","now","markNativeStarted","clearLogs","entry","addLog","JSON","stringify","writeLog","level","message","metadata","category","timestampMs","metadataText","serializeMetadata","undefined","source","truncateUtf8","bytes","byteLength","push","includes","enableConsoleCapture","console","warn","error","data","apply","writeConsoleLog","disableConsoleCapture","suppliedError","find","value","Error","rendered","map","renderConsoleValue","join","stack","String","seen","WeakSet","bounded","boundValue","depth","name","truncateString","has","add","Array","isArray","result","
|
|
1
|
+
{"version":3,"names":["NativeCrumbReactNative","DEFAULT_LOOKBACK_MS","DEFAULT_MAXIMUM_ENTRIES","DEFAULT_MAXIMUM_BYTES","MAXIMUM_METADATA_DEPTH","MAXIMUM_OBJECT_KEYS","MAXIMUM_ARRAY_ITEMS","MAXIMUM_STRING_LENGTH","MAXIMUM_ENTRY_BYTES","limits","lookbackMs","maximumEntries","maximumBytes","entries","usedBytes","nativeStarted","originalWarn","originalError","capturedWarn","capturedError","configureLogBuffer","options","prune","Date","now","markNativeStarted","clearLogs","canCollectLogs","clearBufferedEntries","entry","addLog","JSON","stringify","snapshotLogEntries","slice","writeLog","level","message","metadata","category","timestampMs","metadataText","serializeMetadata","undefined","source","truncateUtf8","bytes","byteLength","push","includes","enableConsoleCapture","console","warn","error","data","apply","writeConsoleLog","disableConsoleCapture","suppliedError","find","value","Error","rendered","map","renderConsoleValue","join","stack","String","seen","WeakSet","bounded","boundValue","depth","name","truncateString","has","add","Array","isArray","result","item","delete","key","Object","keys","earliest","removeOldest","length","removed","shift","low","high","middle","Math","ceil","index","code","charCodeAt","next"],"sourceRoot":"../../src","sources":["log-buffer.ts"],"mappings":";;AAAA,OAAOA,sBAAsB,MAAM,0BAA0B;AAQ7D,MAAMC,mBAAmB,GAAG,MAAM;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