@umituz/react-native-ai-generation-content 1.17.197 → 1.17.198

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.17.197",
3
+ "version": "1.17.198",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -79,9 +79,20 @@ export async function executeCoupleFuture(
79
79
 
80
80
  onProgress?.(90);
81
81
 
82
- const data = result as { images?: Array<{ url: string }> };
82
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
83
+ console.log("[CoupleFuture] Raw result:", JSON.stringify(result, null, 2));
84
+ console.log("[CoupleFuture] Result keys:", result ? Object.keys(result as object) : "null");
85
+ }
86
+
87
+ const rawResult = result as Record<string, unknown>;
88
+ const data = (rawResult?.data ?? rawResult) as { images?: Array<{ url: string }> };
83
89
  const imageUrl = data?.images?.[0]?.url;
84
90
 
91
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
92
+ console.log("[CoupleFuture] Parsed data:", JSON.stringify(data, null, 2));
93
+ console.log("[CoupleFuture] Image URL:", imageUrl);
94
+ }
95
+
85
96
  onProgress?.(100);
86
97
 
87
98
  if (!imageUrl) {