@malevich-studio/strapi-sdk-typescript 1.0.6 → 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 +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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({
|