@malevich-studio/strapi-sdk-typescript 1.2.6 → 1.2.7

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
@@ -20234,14 +20234,6 @@ class Strapi {
20234
20234
  }
20235
20235
  } : {}),
20236
20236
  }, params));
20237
- if (!response.ok) {
20238
- console.log(`${this.url}/api/${endpoint}`);
20239
- console.log(response);
20240
- const data = await response.json();
20241
- console.log(data);
20242
- console.log(data?.error?.details?.errors);
20243
- throw new Error(`Помилка запиту до Strapi: ${response.status} ${response.statusText}`);
20244
- }
20245
20237
  return (await response.json());
20246
20238
  }
20247
20239
  }