@malevich-studio/strapi-sdk-typescript 1.2.29 → 1.2.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
@@ -21400,7 +21400,9 @@ class Strapi {
21400
21400
  const response = await fetch(`${this.url}/api/${endpoint}`, mergedParams);
21401
21401
  let data = null;
21402
21402
  try {
21403
- data = await response?.clone().json() || null;
21403
+ if (response.status !== 204) {
21404
+ data = await response?.clone().json() || null;
21405
+ }
21404
21406
  }
21405
21407
  catch (error) {
21406
21408
  console.error(await response.text());