@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/index.cjs CHANGED
@@ -20209,14 +20209,6 @@ class Strapi {
20209
20209
  }
20210
20210
  } : {}),
20211
20211
  }, params));
20212
- if (!response.ok) {
20213
- console.log(`${this.url}/api/${endpoint}`);
20214
- console.log(response);
20215
- const data = await response.json();
20216
- console.log(data);
20217
- console.log(data?.error?.details?.errors);
20218
- throw new Error(`Помилка запиту до Strapi: ${response.status} ${response.statusText}`);
20219
- }
20220
20212
  return (await response.json());
20221
20213
  }
20222
20214
  }