@umituz/react-native-ai-fal-provider 1.0.47 → 1.0.49

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-fal-provider",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "FAL AI provider for React Native - implements IAIProvider interface for unified AI generation",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -120,17 +120,22 @@ export class FalProvider implements IAIProvider {
120
120
  console.log("[FalProvider] Subscribe started:", { model, timeoutMs });
121
121
  }
122
122
 
123
+ let lastStatus = "";
124
+
123
125
  try {
124
126
  const result = await Promise.race([
125
127
  fal.subscribe(model, {
126
128
  input,
127
- logs: true,
129
+ logs: false,
128
130
  pollInterval: DEFAULT_FAL_CONFIG.pollInterval,
129
131
  onQueueUpdate: (update: { status: string; logs?: unknown[] }) => {
130
- if (typeof __DEV__ !== "undefined" && __DEV__) {
131
- console.log("[FalProvider] Queue update:", JSON.stringify(update));
132
- }
133
132
  const jobStatus = mapFalStatusToJobStatus(update as unknown as FalQueueStatus);
133
+ if (jobStatus.status !== lastStatus) {
134
+ lastStatus = jobStatus.status;
135
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
136
+ console.log("[FalProvider] Status:", jobStatus.status);
137
+ }
138
+ }
134
139
  options?.onQueueUpdate?.(jobStatus);
135
140
  },
136
141
  }),