@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/cli.cjs CHANGED
@@ -21304,10 +21304,10 @@ class Strapi {
21304
21304
  return await this.uploadForm(form);
21305
21305
  }
21306
21306
  async uploadForm(form) {
21307
- return await this.baseRequest('upload', {
21307
+ return (await this.baseRequest('upload', {
21308
21308
  method: 'POST',
21309
21309
  body: form,
21310
- });
21310
+ })).data;
21311
21311
  }
21312
21312
  async baseRequest(endpoint, params = {}) {
21313
21313
  const response = await fetch(`${this.url}/api/${endpoint}`, _.merge({