@umituz/react-native-ai-generation-content 1.89.38 → 1.89.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-ai-generation-content",
3
- "version": "1.89.38",
3
+ "version": "1.89.39",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -84,6 +84,11 @@ export async function extractPhotosAsBase64(
84
84
  // ✅ Direct base64 conversion - no resize or modification
85
85
  const base64 = await readFileAsBase64(uri);
86
86
 
87
+ // Check if base64 conversion succeeded
88
+ if (!base64) {
89
+ throw new Error(`Failed to convert photo to base64: ${uri}`);
90
+ }
91
+
87
92
  if (enableDebugLogs && typeof __DEV__ !== "undefined" && __DEV__) {
88
93
  console.log(`[PhotoExtraction] Photo ${index + 1} processed`, {
89
94
  sizeKB: (base64.length / 1024).toFixed(1),