@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 +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 +17 -4
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/generate-strapi-types.d.ts +0 -5
- package/dist/test.cjs +0 -114
- package/dist/test.cjs.map +0 -1
- package/dist/test.d.ts +0 -1
- package/dist/test.mjs +0 -112
- package/dist/test.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -21284,10 +21284,10 @@ class Strapi {
|
|
|
21284
21284
|
return await this.uploadForm(form);
|
|
21285
21285
|
}
|
|
21286
21286
|
async uploadForm(form) {
|
|
21287
|
-
return await this.baseRequest('upload', {
|
|
21287
|
+
return (await this.baseRequest('upload', {
|
|
21288
21288
|
method: 'POST',
|
|
21289
21289
|
body: form,
|
|
21290
|
-
});
|
|
21290
|
+
})).data;
|
|
21291
21291
|
}
|
|
21292
21292
|
async baseRequest(endpoint, params = {}) {
|
|
21293
21293
|
const response = await fetch(`${this.url}/api/${endpoint}`, _.merge({
|