@malevich-studio/strapi-sdk-typescript 1.2.13 → 1.2.15
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 +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -176,4 +176,4 @@ declare class Strapi {
|
|
|
176
176
|
private baseFetch;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
export { type AuthResponse, type DynamiczoneComponent, type DynamiczonePopulate, type File, type FilterValue, type Filters, type Folder, type Locale, type Query, type RelationInput, Strapi };
|
|
179
|
+
export { type AuthResponse, type DynamiczoneComponent, type DynamiczonePopulate, type ErrorResponse, type File, type FilterValue, type Filters, type Folder, type Locale, type Query, type RelationInput, type Response, Strapi, type SuccessResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -21294,7 +21294,7 @@ class Strapi {
|
|
|
21294
21294
|
this.token = token;
|
|
21295
21295
|
}
|
|
21296
21296
|
async fetch(endpoint, data = {}, params = {}) {
|
|
21297
|
-
return await this.fetchData(endpoint, { data }, params);
|
|
21297
|
+
return await this.fetchData(endpoint, params.method === 'GET' ? data : { data }, params);
|
|
21298
21298
|
}
|
|
21299
21299
|
async fetchData(endpoint, data = {}, params = {}) {
|
|
21300
21300
|
const queryString = params.method === 'GET' ? qs.stringify(data) : '';
|