@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.cjs +3 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -21320,7 +21320,7 @@ class Strapi {
|
|
|
21320
21320
|
this.token = token;
|
|
21321
21321
|
}
|
|
21322
21322
|
async fetch(endpoint, data = {}, params = {}) {
|
|
21323
|
-
return await this.fetchData(endpoint, { data }, params);
|
|
21323
|
+
return await this.fetchData(endpoint, params.method === 'GET' ? data : { data }, params);
|
|
21324
21324
|
}
|
|
21325
21325
|
async fetchData(endpoint, data = {}, params = {}) {
|
|
21326
21326
|
const queryString = params.method === 'GET' ? qs.stringify(data) : '';
|
|
@@ -22030,8 +22030,8 @@ async function generateStrapiTypes(strapi) {
|
|
|
22030
22030
|
` return await this.baseChangePassword<User>(password, currentPassword);`,
|
|
22031
22031
|
' }',
|
|
22032
22032
|
' ',
|
|
22033
|
-
` public async me(data:
|
|
22034
|
-
` return await this.
|
|
22033
|
+
` public async me(data: UserQuery) {`,
|
|
22034
|
+
` return await this.baseMe<User, UserQuery>(data);`,
|
|
22035
22035
|
' }',
|
|
22036
22036
|
' ',
|
|
22037
22037
|
methods.join('\n\n'),
|