@unboundcx/sdk 1.2.3 → 1.2.5

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": "@unboundcx/sdk",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -163,7 +163,7 @@ export class StorageService {
163
163
 
164
164
  return {
165
165
  formData,
166
- headers: {} // Don't set Content-Type - let browser handle it automatically
166
+ headers: { 'content-type': '' } // Explicitly set empty content-type to prevent JSON default
167
167
  };
168
168
  }
169
169
 
@@ -427,11 +427,11 @@ export class StorageService {
427
427
  );
428
428
  }
429
429
 
430
- // Build form fields for profile image upload - minimal fields since controller handles the logic
430
+ // Build form fields exactly like the regular upload but only include classification
431
431
  const formFields = [];
432
432
  formFields.push(['classification', classification]);
433
433
 
434
- // Use the dedicated profile image endpoint
434
+ // Use the correct profile image endpoint with proper FormData
435
435
  return this._performUpload(file, fileName || 'profile-image.jpg', formFields, '/storage/upload-profile-image');
436
436
  }
437
437