@stokr/components-library 3.0.69 → 3.0.71

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.
@@ -375,7 +375,7 @@ class Auth {
375
375
  */
376
376
  static getAvatar() {
377
377
  return new Promise((resolve, reject) => {
378
- axiosInstance.post(`media/user/avatar/get`, null, { responseType: "blob" }).then((response) => {
378
+ axiosInstance.post(`media/user/avatar/get`, void 0, { responseType: "blob" }).then((response) => {
379
379
  resolve(response.data);
380
380
  }).catch((err) => {
381
381
  if (err?.response?.status === 404) {
@@ -393,7 +393,10 @@ class Auth {
393
393
  */
394
394
  static uploadPhoto(data) {
395
395
  return new Promise((resolve, reject) => {
396
- axiosInstance.post(`media/user/avatar/upload`, data, { responseType: "blob" }).then((response) => {
396
+ axiosInstance.post(`media/user/avatar/upload`, data, {
397
+ responseType: "blob",
398
+ headers: { "Content-Type": "multipart/form-data" }
399
+ }).then((response) => {
397
400
  resolve(response.data);
398
401
  }).catch((err) => {
399
402
  reject(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "3.0.69",
3
+ "version": "3.0.71",
4
4
  "description": "STOKR - Components Library",
5
5
  "author": "Bilal Hodzic <bilal@stokr.io>",
6
6
  "license": "MIT",