@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/cli.cjs CHANGED
@@ -21425,7 +21425,9 @@ class Strapi {
21425
21425
  const response = await fetch(`${this.url}/api/${endpoint}`, mergedParams);
21426
21426
  let data = null;
21427
21427
  try {
21428
- data = await response?.clone().json() || null;
21428
+ if (response.status !== 204) {
21429
+ data = await response?.clone().json() || null;
21430
+ }
21429
21431
  }
21430
21432
  catch (error) {
21431
21433
  console.error(await response.text());