@malevich-studio/strapi-sdk-typescript 1.0.5 → 1.0.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/index.cjs CHANGED
@@ -21279,10 +21279,10 @@ class Strapi {
21279
21279
  return await this.uploadForm(form);
21280
21280
  }
21281
21281
  async uploadForm(form) {
21282
- return await this.baseRequest('upload', {
21282
+ return (await this.baseRequest('upload', {
21283
21283
  method: 'POST',
21284
21284
  body: form,
21285
- });
21285
+ })).data;
21286
21286
  }
21287
21287
  async baseRequest(endpoint, params = {}) {
21288
21288
  const response = await fetch(`${this.url}/api/${endpoint}`, _.merge({