@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/cli.mjs CHANGED
@@ -21300,7 +21300,7 @@ class Strapi {
21300
21300
  this.token = token;
21301
21301
  }
21302
21302
  async fetch(endpoint, data = {}, params = {}) {
21303
- return await this.fetchData(endpoint, { data }, params);
21303
+ return await this.fetchData(endpoint, params.method === 'GET' ? data : { data }, params);
21304
21304
  }
21305
21305
  async fetchData(endpoint, data = {}, params = {}) {
21306
21306
  const queryString = params.method === 'GET' ? qs.stringify(data) : '';
@@ -22010,8 +22010,8 @@ async function generateStrapiTypes(strapi) {
22010
22010
  ` return await this.baseChangePassword<User>(password, currentPassword);`,
22011
22011
  ' }',
22012
22012
  ' ',
22013
- ` public async me(data: UserInput) {`,
22014
- ` return await this.baseMer<User, UserInput>(data);`,
22013
+ ` public async me(data: UserQuery) {`,
22014
+ ` return await this.baseMe<User, UserQuery>(data);`,
22015
22015
  ' }',
22016
22016
  ' ',
22017
22017
  methods.join('\n\n'),