@malevich-studio/strapi-sdk-typescript 1.2.22 → 1.2.24

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
@@ -21409,7 +21409,7 @@ class Strapi {
21409
21409
  ...params,
21410
21410
  });
21411
21411
  }
21412
- async updateUser(endpoint, id, data, params = {}) {
21412
+ async updateBaseUser(endpoint, id, data, params = {}) {
21413
21413
  return await this.fetchData(`${endpoint}/${id}`, data, {
21414
21414
  method: 'PUT',
21415
21415
  ...params,
@@ -21440,7 +21440,10 @@ class Strapi {
21440
21440
  try {
21441
21441
  data = await response?.json() || null;
21442
21442
  }
21443
- catch (error) { }
21443
+ catch (error) {
21444
+ console.error(await response.text());
21445
+ throw error;
21446
+ }
21444
21447
  log(mergedParams);
21445
21448
  log(response);
21446
21449
  log(data);