@umituz/react-native-ai-generation-content 1.72.36 → 1.72.37

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.72.36",
3
+ "version": "1.72.37",
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",
@@ -81,5 +81,15 @@ export function extractResultUrl(result: GenerationResult): GenerationUrls {
81
81
  return { imageUrl: result.image.url };
82
82
  }
83
83
 
84
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
85
+ console.error("[extractResultUrl] ❌ No URL found in result:", {
86
+ hasVideo: !!result.video,
87
+ hasOutput: !!result.output,
88
+ hasImages: !!result.images,
89
+ hasImage: !!result.image,
90
+ resultKeys: Object.keys(result),
91
+ });
92
+ }
93
+
84
94
  return {};
85
95
  }
@@ -47,10 +47,20 @@ export const pollQueueStatus = async (params: PollParams): Promise<void> => {
47
47
  if (status.status === QUEUE_STATUS.COMPLETED) {
48
48
  try {
49
49
  const result = await provider.getJobResult(model, requestId);
50
- await onComplete(extractResultUrl(result));
50
+ if (__DEV__) {
51
+ console.log("[VideoQueuePoller] 📦 Raw result from provider:", JSON.stringify(result, null, 2));
52
+ }
53
+ const urls = extractResultUrl(result);
54
+ if (__DEV__) {
55
+ console.log("[VideoQueuePoller] 🎬 Extracted URLs:", urls);
56
+ }
57
+ await onComplete(urls);
51
58
  } catch (resultErr) {
52
59
  const errorMessage = resultErr instanceof Error ? resultErr.message : "Generation failed";
53
- if (__DEV__) console.error("[VideoQueueGeneration] Result error:", errorMessage);
60
+ if (__DEV__) {
61
+ console.error("[VideoQueueGeneration] ❌ Result error:", errorMessage);
62
+ console.error("[VideoQueueGeneration] ❌ Full error:", resultErr);
63
+ }
54
64
  await onError(errorMessage);
55
65
  }
56
66
  } else {