@umituz/react-native-ai-pruna-provider 1.0.54 → 1.0.56

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.54",
3
+ "version": "1.0.56",
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",
@@ -116,7 +116,7 @@ export async function uploadFileToStorage(
116
116
  (formData as unknown as { append: (name: string, value: typeof fileObject) => void }).append('content', fileObject);
117
117
 
118
118
  generationLogCollector.log(sessionId, TAG, 'FormData created', {
119
- hasContent: (formData as any).has?.('content') ?? true,
119
+ hasContent: (formData as unknown as { has?: (key: string) => boolean }).has?.('content') ?? true,
120
120
  fileName: fileObject.name,
121
121
  mimeType: fileObject.type,
122
122
  });
@@ -124,7 +124,7 @@ export async function uploadFileToStorage(
124
124
  // __DEV__ log FormData
125
125
  if (typeof __DEV__ !== 'undefined' && __DEV__) {
126
126
  console.log(`[DEV] [${TAG}] FormData created (file object format):`, {
127
- hasContent: (formData as any).has?.('content') ?? true,
127
+ hasContent: (formData as unknown as { has?: (key: string) => boolean }).has?.('content') ?? true,
128
128
  fileObject: {
129
129
  uri: fileObject.uri.substring(0, 50) + '...',
130
130
  type: fileObject.type,
@@ -138,7 +138,7 @@ export async function uploadFileToStorage(
138
138
  console.log(`[DEV] [${TAG}] Sending upload request:`, {
139
139
  url: PRUNA_FILES_URL,
140
140
  method: 'POST',
141
- hasContent: (formData as any).has?.('content') ?? true,
141
+ hasContent: (formData as unknown as { has?: (key: string) => boolean }).has?.('content') ?? true,
142
142
  });
143
143
  }
144
144
 
@@ -210,8 +210,8 @@ export async function uploadFileToStorage(
210
210
  errorDetails,
211
211
  url: PRUNA_FILES_URL,
212
212
  formDataPreview: {
213
- hasContent: (formData as any).has?.('content') ?? true,
214
- contentType: (formData as any).get?.('content')?.toString().substring(0, 100) + '...',
213
+ hasContent: (formData as unknown as { has?: (key: string) => boolean }).has?.('content') ?? true,
214
+ contentType: (formData as unknown as { get?: (key: string) => unknown }).get?.('content')?.toString().substring(0, 100) + '...',
215
215
  },
216
216
  });
217
217
  }