@malevich-studio/strapi-sdk-typescript 1.2.12 → 1.2.14

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
@@ -21296,7 +21296,7 @@ class Strapi {
21296
21296
  this.token = token;
21297
21297
  }
21298
21298
  async fetch(endpoint, data = {}, params = {}) {
21299
- return await this.fetchData(endpoint, { data }, params);
21299
+ return await this.fetchData(endpoint, params.method === 'GET' ? data : { data }, params);
21300
21300
  }
21301
21301
  async fetchData(endpoint, data = {}, params = {}) {
21302
21302
  const queryString = params.method === 'GET' ? qs.stringify(data) : '';