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