@bagelink/sdk 1.1.27 → 1.1.31

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/dist/index.cjs CHANGED
@@ -152,14 +152,12 @@ function generateAxiosFunction(method, formattedPath, allParams, responseTypeStr
152
152
  formData.append('upload', file)
153
153
  return axios.${method}(${formattedPath}, formData, {
154
154
  headers: { 'Content-Type': 'multipart/form-data' },
155
- onUploadProgress: options?.onUploadProgress${paramStr ? `,
156
- ${paramStr}` : ""}
155
+ onUploadProgress: options?.onUploadProgress${paramStr ? `, ${paramStr}` : ""}
157
156
  })`;
158
157
  } else {
159
158
  axiosFunction += `
160
159
  return axios.${method}(${formattedPath}, formData, {
161
- headers: { 'Content-Type': 'multipart/form-data' }${paramStr ? `,
162
- ${paramStr}` : ""}
160
+ headers: { 'Content-Type': 'multipart/form-data' }${paramStr ? `, ${paramStr}` : ""}
163
161
  })`;
164
162
  }
165
163
  } else {
package/dist/index.mjs CHANGED
@@ -146,14 +146,12 @@ function generateAxiosFunction(method, formattedPath, allParams, responseTypeStr
146
146
  formData.append('upload', file)
147
147
  return axios.${method}(${formattedPath}, formData, {
148
148
  headers: { 'Content-Type': 'multipart/form-data' },
149
- onUploadProgress: options?.onUploadProgress${paramStr ? `,
150
- ${paramStr}` : ""}
149
+ onUploadProgress: options?.onUploadProgress${paramStr ? `, ${paramStr}` : ""}
151
150
  })`;
152
151
  } else {
153
152
  axiosFunction += `
154
153
  return axios.${method}(${formattedPath}, formData, {
155
- headers: { 'Content-Type': 'multipart/form-data' }${paramStr ? `,
156
- ${paramStr}` : ""}
154
+ headers: { 'Content-Type': 'multipart/form-data' }${paramStr ? `, ${paramStr}` : ""}
157
155
  })`;
158
156
  }
159
157
  } else {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "1.1.27",
4
+ "version": "1.1.31",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "axios": "^1.8.3"
53
+ "axios": "^1.8.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@apidevtools/swagger-parser": "^10.1.1",
@@ -107,13 +107,13 @@ function generateAxiosFunction(
107
107
  formData.append('upload', file)
108
108
  return axios.${method}(${formattedPath}, formData, {
109
109
  headers: { 'Content-Type': 'multipart/form-data' },
110
- onUploadProgress: options?.onUploadProgress${paramStr ? `,\n ${paramStr}` : ''}
110
+ onUploadProgress: options?.onUploadProgress${paramStr ? `, ${paramStr}` : ''}
111
111
  })`
112
112
  } else {
113
113
  // Generic FormData handling
114
114
  axiosFunction += `
115
115
  return axios.${method}(${formattedPath}, formData, {
116
- headers: { 'Content-Type': 'multipart/form-data' }${paramStr ? `,\n ${paramStr}` : ''}
116
+ headers: { 'Content-Type': 'multipart/form-data' }${paramStr ? `, ${paramStr}` : ''}
117
117
  })`
118
118
  }
119
119
  } else {