@malevich-studio/strapi-sdk-typescript 1.2.29 → 1.2.30
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 +3 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +3 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
package/dist/cli.mjs
CHANGED
|
@@ -21405,7 +21405,9 @@ class Strapi {
|
|
|
21405
21405
|
const response = await fetch(`${this.url}/api/${endpoint}`, mergedParams);
|
|
21406
21406
|
let data = null;
|
|
21407
21407
|
try {
|
|
21408
|
-
|
|
21408
|
+
if (response.status !== 204) {
|
|
21409
|
+
data = await response?.clone().json() || null;
|
|
21410
|
+
}
|
|
21409
21411
|
}
|
|
21410
21412
|
catch (error) {
|
|
21411
21413
|
console.error(await response.text());
|