@malevich-studio/strapi-sdk-typescript 1.2.25 → 1.2.26

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
@@ -21438,10 +21438,10 @@ class Strapi {
21438
21438
  const response = await fetch(`${this.url}/api/${endpoint}`, mergedParams);
21439
21439
  let data = null;
21440
21440
  try {
21441
- data = await response?.json() || null;
21441
+ data = await response?.clone().json() || null;
21442
21442
  }
21443
21443
  catch (error) {
21444
- console.error(await response.clone().text());
21444
+ console.error(await response.text());
21445
21445
  throw error;
21446
21446
  }
21447
21447
  log(mergedParams);