@umituz/react-native-ai-pruna-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-pruna-provider",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "Pruna AI provider for React Native - implements IAIProvider interface for unified AI generation",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -111,7 +111,7 @@ export async function uploadFileToStorage(
111
111
  (formData as unknown as { append: (name: string, value: typeof fileObject) => void }).append('content', fileObject);
112
112
 
113
113
  generationLogCollector.log(sessionId, TAG, 'FormData created', {
114
- hasContent: formData.has('content'),
114
+ hasContent: (formData as any).has?.('content') ?? true,
115
115
  fileName: fileObject.name,
116
116
  mimeType: fileObject.type,
117
117
  });
@@ -119,7 +119,7 @@ export async function uploadFileToStorage(
119
119
  // __DEV__ log FormData
120
120
  if (typeof __DEV__ !== 'undefined' && __DEV__) {
121
121
  console.log(`[DEV] [${TAG}] FormData created (file object format):`, {
122
- hasContent: formData.has('content'),
122
+ hasContent: (formData as any).has?.('content') ?? true,
123
123
  fileObject: {
124
124
  uri: fileObject.uri.substring(0, 50) + '...',
125
125
  type: fileObject.type,
@@ -133,7 +133,7 @@ export async function uploadFileToStorage(
133
133
  console.log(`[DEV] [${TAG}] Sending upload request:`, {
134
134
  url: PRUNA_FILES_URL,
135
135
  method: 'POST',
136
- hasContent: formData.has('content'),
136
+ hasContent: (formData as any).has?.('content') ?? true,
137
137
  });
138
138
  }
139
139
 
@@ -205,8 +205,8 @@ export async function uploadFileToStorage(
205
205
  errorDetails,
206
206
  url: PRUNA_FILES_URL,
207
207
  formDataPreview: {
208
- hasContent: formData.has('content'),
209
- contentType: formData.get('content')?.toString().substring(0, 100) + '...',
208
+ hasContent: (formData as any).has?.('content') ?? true,
209
+ contentType: (formData as any).get?.('content')?.toString().substring(0, 100) + '...',
210
210
  },
211
211
  });
212
212
  }