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