@amityco/ts-sdk-react-native 6.22.1-3033cb6.0 → 6.22.1-431d613.0

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": "@amityco/ts-sdk-react-native",
3
- "version": "6.22.1-3033cb6.0",
3
+ "version": "6.22.1-431d613.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -30,7 +30,7 @@ export const createFile = async <T extends Amity.FileType = any>(
30
30
  const headers =
31
31
  'getHeaders' in formData
32
32
  ? (formData as any).getHeaders()
33
- : { 'Content-Type': 'multipart/form-data' };
33
+ : { 'content-type': 'multipart/form-data' };
34
34
 
35
35
  const { data } = await client.http.post<Amity.CreateFilePayload<T>>('/api/v4/files', formData, {
36
36
  headers,
@@ -28,7 +28,7 @@ export const createImage = async (
28
28
  const headers =
29
29
  'getHeaders' in formData
30
30
  ? (formData as any).getHeaders()
31
- : { 'Content-Type': 'multipart/form-data' };
31
+ : { 'content-type': 'multipart/form-data' };
32
32
  const { data } = await client.http.post<Amity.CreateFilePayload<'image'>>(
33
33
  '/api/v4/images',
34
34
  formData,
@@ -36,7 +36,7 @@ export const createVideo = async (
36
36
  const headers =
37
37
  'getHeaders' in formData
38
38
  ? (formData as any).getHeaders()
39
- : { 'Content-Type': 'multipart/form-data' };
39
+ : { 'content-type': 'multipart/form-data' };
40
40
 
41
41
  const { data } = await client.http.post<Amity.CreateFilePayload<'video'>>(
42
42
  '/api/v4/videos',
@@ -34,7 +34,7 @@ export const uploadFile = async <T extends Amity.FileType = any>(
34
34
  const headers =
35
35
  'getHeaders' in formData
36
36
  ? (formData as any).getHeaders()
37
- : { 'Content-Type': 'multipart/form-data' };
37
+ : { 'content-type': 'multipart/form-data' };
38
38
 
39
39
  const { data } = await client.http.post<Amity.CreateFilePayload<T>>(
40
40
  '/api/v4/files',
@@ -34,7 +34,7 @@ export const uploadImage = async (
34
34
  const headers =
35
35
  'getHeaders' in formData
36
36
  ? (formData as any).getHeaders()
37
- : { 'Content-Type': 'multipart/form-data' };
37
+ : { 'content-type': 'multipart/form-data' };
38
38
 
39
39
  const { data } = await client.http.post<Amity.CreateFilePayload<'image'>>(
40
40
  '/api/v4/images',
@@ -40,7 +40,7 @@ export const uploadVideo = async (
40
40
  const headers =
41
41
  'getHeaders' in formData
42
42
  ? (formData as any).getHeaders()
43
- : { 'Content-Type': 'multipart/form-data' };
43
+ : { 'content-type': 'multipart/form-data' };
44
44
 
45
45
  const { data } = await client.http.post<Amity.CreateFilePayload<'video'>>(
46
46
  '/api/v4/videos',