@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/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -21462,10 +21462,10 @@ class Strapi {
|
|
|
21462
21462
|
const response = await fetch(`${this.url}/api/${endpoint}`, mergedParams);
|
|
21463
21463
|
let data = null;
|
|
21464
21464
|
try {
|
|
21465
|
-
data = await response?.json() || null;
|
|
21465
|
+
data = await response?.clone().json() || null;
|
|
21466
21466
|
}
|
|
21467
21467
|
catch (error) {
|
|
21468
|
-
console.error(await response.
|
|
21468
|
+
console.error(await response.text());
|
|
21469
21469
|
throw error;
|
|
21470
21470
|
}
|
|
21471
21471
|
log(mergedParams);
|